1 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3 Remove the 'process_qsupported' linux target op and let a concrete
4 linux target define the op by overriding the op declaration in
5 process_stratum_target.
7 * linux-low.h (struct linux_target_ops): Remove the op.
8 (class linux_process_target) <process_qsupported>: Remove.
9 * linux-low.cc (linux_process_target::process_qsupported): Remove.
10 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
11 (x86_linux_process_qsupported): Turn into...
12 (x86_target::process_qsupported): ...this.
13 (the_low_target): Remove the op field.
14 * linux-aarch64-low.cc (the_low_target): Remove the op
16 * linux-arm-low.cc (the_low_target): Ditto.
17 * linux-bfin-low.cc (the_low_target): Ditto.
18 * linux-crisv32-low.cc (the_low_target): Ditto.
19 * linux-m32r-low.cc (the_low_target): Ditto.
20 * linux-m68k-low.cc (the_low_target): Ditto.
21 * linux-ppc-low.cc (the_low_target): Ditto.
22 * linux-s390-low.cc (the_low_target): Ditto.
23 * linux-sh-low.cc (the_low_target): Ditto.
24 * linux-tic6x-low.cc (the_low_target): Ditto.
25 * linux-tile-low.cc (the_low_target): Ditto.
26 * linux-xtensa-low.cc (the_low_target): Ditto.
28 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
30 Turn the 'prepare_to_resume' linux target op into a method of
33 * linux-low.h (struct linux_target_ops): Remove the op.
34 (class linux_process_target) <low_prepare_to_resume>: Declare.
35 * linux-low.cc (linux_process_target::low_prepare_to_resume):
38 Update the callers below:
40 (linux_process_target::resume_one_lwp_throw)
41 (linux_process_target::low_prepare_to_resume)
43 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
45 (x86_target::low_prepare_to_resume): Define.
46 (the_low_target): Remove the op field.
47 * linux-aarch64-low.cc (class aarch64_target)
48 <low_prepare_to_resume>: Declare.
49 (aarch64_target::low_prepare_to_resume): Define.
50 (the_low_target): Remove the op field.
51 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
53 (arm_prepare_to_resume): Turn into...
54 (arm_target::low_prepare_to_resume): ...this.
55 (the_low_target): Remove the op field.
56 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
58 (mips_linux_prepare_to_resume): Turn into...
59 (mips_target::low_prepare_to_resume): ...this.
60 (the_low_target): Remove the op field.
61 * linux-bfin-low.cc (the_low_target): Remove the op field.
62 * linux-crisv32-low.cc (the_low_target): Ditto.
63 * linux-m32r-low.cc (the_low_target): Ditto.
64 * linux-m68k-low.cc (the_low_target): Ditto.
65 * linux-ppc-low.cc (the_low_target): Ditto.
66 * linux-s390-low.cc (the_low_target): Ditto.
67 * linux-sh-low.cc (the_low_target): Ditto.
68 * linux-tic6x-low.cc (the_low_target): Ditto.
69 * linux-tile-low.cc (the_low_target): Ditto.
70 * linux-xtensa-low.cc (the_low_target): Ditto.
72 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
74 Turn the 'new_process', 'delete_process', 'new_thread',
75 'delete_thread', and 'new_fork' linux target ops into methods
76 of linux_process_target.
78 * linux-low.h (struct linux_target_ops): Remove the ops.
79 (class linux_process_target) <add_linux_process>
84 <check_zombie_leaders>
90 <low_new_fork>: Declare.
91 * linux-low.cc (delete_lwp): Turn into...
92 (linux_process_target::delete_lwp): ...this.
93 (linux_process_target::low_delete_thread): Define.
94 (linux_add_process): Turn into...
95 (linux_process_target::add_linux_process): ...this.
96 (linux_process_target::low_new_process): Define.
97 (linux_process_target::low_delete_process): Define.
98 (linux_process_target::low_new_fork): Define.
99 (add_lwp): Turn into...
100 (linux_process_target::add_lwp): ...this.
101 (linux_process_target::low_new_thread): Define.
102 (linux_attach_lwp): Turn into...
103 (linux_process_target::attach_lwp): ...this.
104 (linux_detach_one_lwp): Turn into...
105 (linux_process_target::detach_one_lwp): ...this.
106 (linux_detach_lwp_callback): Remove and inline...
107 (linux_process_target::detach): ...here.
108 (check_zombie_leaders): Turn into...
109 (linux_process_target::check_zombie_leaders): ...this.
110 (filter_exit_event): Turn into...
111 (linux_process_target::filter_exit_event): ...this.
113 Update the callers below.
115 (linux_process_target::handle_extended_wait)
116 (linux_process_target::create_inferior)
117 (attach_proc_task_lwp_callback)
118 (linux_process_target::attach)
119 (linux_process_target::detach)
120 (linux_process_target::mourn)
121 * thread-db.cc (attach_thread)
123 * linux-x86-low.cc (class x86_target) <low_new_process>
127 <low_new_fork>: Declare.
128 (x86_linux_new_process): Turn into...
129 (x86_target::low_new_process): ...this.
130 (x86_linux_delete_process): Turn into...
131 (x86_target::low_delete_process): ...this.
132 (x86_target::low_new_thread): Define.
133 (x86_target::low_delete_thread): Define.
134 (x86_linux_new_fork): Turn into...
135 (x86_target::low_new_fork): ...this.
136 (the_low_target): Remove the op fields.
137 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
141 <low_new_fork>: Declare.
142 (aarch64_linux_new_process): Turn into...
143 (aarch64_target::low_new_process): ...this.
144 (aarch64_linux_delete_process): Turn into...
145 (aarch64_target::low_delete_process): ...this.
146 (aarch64_target::low_new_thread): Define.
147 (aarch64_target::low_delete_thread): Define.
148 (aarch64_linux_new_fork): Turn into...
149 (aarch64_target::low_new_fork): ...this.
150 (the_low_target): Remove the op fields.
151 * linux-arm-low.cc (class arm_target) <low_new_process>
155 <low_new_fork>: Declare.
156 (arm_new_process): Turn into...
157 (arm_target::low_new_process): ...this.
158 (arm_delete_process): Turn into...
159 (arm_target::low_delete_process): ...this.
160 (arm_new_thread): Turn into...
161 (arm_target::low_new_thread): ...this.
162 (arm_delete_thread): Turn into...
163 (arm_target::low_delete_thread): ...this.
164 (arm_new_fork): Turn into...
165 (arm_target::low_new_fork): ...this.
166 (the_low_target): Remove the op fields.
167 * linux-mips-low.cc (class mips_target) <low_new_process>
171 <low_new_fork>: Declare.
172 (mips_linux_new_process): Turn into...
173 (mips_target::low_new_process): ...this.
174 (mips_linux_delete_process): Turn into...
175 (mips_target::low_delete_process): ...this.
176 (mips_linux_new_thread): Turn into...
177 (mips_target::low_new_thread): ...this.
178 (mips_linux_delete_thread): Turn into...
179 (mips_target::low_delete_thread): ...this.
180 (mips_linux_new_fork): Turn into...
181 (mips_target::low_new_fork): ...this.
182 (the_low_target): Remove the op fields.
183 * linux-bfin-low.cc (the_low_target): Remove the op fields.
184 * linux-crisv32-low.cc (the_low_target): Ditto.
185 * linux-m32r-low.cc (the_low_target): Ditto.
186 * linux-m68k-low.cc (the_low_target): Ditto.
187 * linux-ppc-low.cc (the_low_target): Ditto.
188 * linux-s390-low.cc (the_low_target): Ditto.
189 * linux-sh-low.cc (the_low_target): Ditto.
190 * linux-tic6x-low.cc (the_low_target): Ditto.
191 * linux-tile-low.cc (the_low_target): Ditto.
192 * linux-xtensa-low.cc (the_low_target): Ditto.
194 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
196 Turn the 'siginfo_fixup' linux target op into a method of
197 linux_process_target.
199 * linux-low.h (struct linux_target_ops): Remove the op.
200 (class linux_process_target) <siginfo_fixup>
201 <low_siginfo_fixup>: Declare.
202 * linux-low.cc (siginfo_fixup): Turn into...
203 (linux_process_target::siginfo_fixup): ...this.
204 (linux_process_target::low_siginfo_fixup): Define.
205 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
206 (x86_siginfo_fixup): Turn into...
207 (x86_target::low_siginfo_fixup): ...this.
208 (the_low_target): Remove the op field.
209 * linux-aarch64-low.cc (class aarch64_target):
210 <low_siginfo_fixup>: Declare.
211 (aarch64_linux_siginfo_fixup): Turn into...
212 (aarch64_target::low_siginfo_fixup): ...this.
213 (the_low_target): Remove the op field.
214 * linux-arm-low.cc (the_low_target): Remove the op field.
215 * linux-bfin-low.cc (the_low_target): Ditto.
216 * linux-crisv32-low.cc (the_low_target): Ditto.
217 * linux-m32r-low.cc (the_low_target): Ditto.
218 * linux-m68k-low.cc (the_low_target): Ditto.
219 * linux-mips-low.cc (the_low_target): Ditto.
220 * linux-ppc-low.cc (the_low_target): Ditto.
221 * linux-s390-low.cc (the_low_target): Ditto.
222 * linux-sh-low.cc (the_low_target): Ditto.
223 * linux-tic6x-low.cc (the_low_target): Ditto.
224 * linux-tile-low.cc (the_low_target): Ditto.
225 * linux-xtensa-low.cc (the_low_target): Ditto.
227 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
229 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
230 linux target ops into methods of linux_process_target.
232 * linux-low.h (struct linux_target_ops): Remove the ops.
233 (class linux_process_target) <low_collect_ptrace_register>
234 <low_store_ptrace_register>: Declare.
235 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
236 (linux_process_target::low_supply_ptrace_register): Define.
238 Update the callers below.
240 (linux_process_target::fetch_register)
241 (linux_process_target::store_register)
243 * linux-x86-low.cc (the_low_target): Remove the op fields.
244 * linux-aarch64-low.cc (the_low_target): Ditto.
245 * linux-arm-low.cc (the_low_target): Ditto.
246 * linux-bfin-low.cc (the_low_target): Ditto.
247 * linux-crisv32-low.cc (the_low_target): Ditto.
248 * linux-m32r-low.cc (the_low_target): Ditto.
249 * linux-m68k-low.cc (the_low_target): Ditto.
250 * linux-sh-low.cc (the_low_target): Ditto.
251 * linux-sparc-low.cc (the_low_target): Ditto.
252 * linux-tic6x-low.cc (the_low_target): Ditto.
253 * linux-tile-low.cc (the_low_target): Ditto.
254 * linux-xtensa-low.cc (the_low_target): Ditto.
255 * linux-mips-low.cc (class mips_target)
256 <low_collect_ptrace_register>
257 <low_supply_ptrace_register>: Declare.
258 (mips_collect_ptrace_register): Turn into ...
259 (mips_target::low_collect_ptrace_register): ...this.
260 (mips_supply_ptrace_register): Turn into...
261 (mips_target::low_supply_ptrace_register): ...this.
262 (the_low_target): Remove the op fields.
263 * linux-ppc-low.cc (class ppc_target)
264 <low_collect_ptrace_register>
265 <low_supply_ptrace_register>: Declare.
266 (ppc_collect_ptrace_register): Turn into ...
267 (ppc_target::low_collect_ptrace_register): ...this.
268 (ppc_supply_ptrace_register): Turn into ...
269 (ppc_target::low_supply_ptrace_register): ...this.
270 (ppc_fill_gregset): Update for the calls to
271 low_collect_ptrace_register.
272 (the_low_target): Remove the op fields.
273 * linux-s390-low.cc (class s390_target)
274 <low_collect_ptrace_register>
275 <low_supply_ptrace_register>: Declare.
276 (s390_collect_ptrace_register): Turn into ...
277 (s390_target::low_collect_ptrace_register): ...this.
278 (s390_supply_ptrace_register): Turn into ...
279 (s390_target::low_supply_ptrace_register): ...this.
280 (s390_fill_gregset): Update for the calls to
281 low_collect_ptrace_register.
282 (the_low_target): Remove the op fields.
284 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
286 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
287 target ops into methods of linux_process_target.
289 * linux-low.h (struct linux_target_ops): Remove the ops.
290 (class linux_process_target) <check_stopped_by_watchpoint>
291 <low_stopped_by_watchpoint>
292 <low_stopped_data_address>: Declare.
293 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
294 (linux_process_target::check_stopped_by_watchpoint): ...this.
295 (linux_process_target::low_stopped_by_watchpoint): Define.
296 (linux_process_target::low_stopped_data_address): Define.
297 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
298 <low_stopped_data_address>: Declare.
299 (x86_stopped_by_watchpoint): Turn into...
300 (x86_target::low_stopped_by_watchpoint): ...this.
301 (x86_stopped_data_address): Turn into...
302 (x86_target::low_stopped_data_address): ...this.
303 (the_low_target): Remove the op fields.
304 * linux-aarch64-low.cc (class aarch64_target)
305 <low_stopped_by_watchpoint>
306 <low_stopped_data_address>: Declare.
307 (aarch64_stopped_by_watchpoint): Turn into...
308 (aarch64_target::low_stopped_by_watchpoint): ...this.
309 (aarch64_stopped_data_address): Turn into...
310 (aarch64_target::low_stopped_data_address): ...this.
311 (the_low_target): Remove the op fields.
312 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
313 <low_stopped_data_address>: Declare.
314 (arm_stopped_by_watchpoint): Turn into...
315 (arm_target::low_stopped_by_watchpoint): ...this.
316 (arm_stopped_data_address): Turn into...
317 (arm_target::low_stopped_data_address): ...this.
318 (the_low_target): Remove the op fields.
319 * linux-crisv32-low.cc (class crisv32_target)
320 <low_stopped_by_watchpoint>
321 <low_stopped_data_address>: Declare.
322 (cris_stopped_by_watchpoint): Turn into...
323 (crisv32_target::low_stopped_by_watchpoint): ...this.
324 (cris_stopped_data_address): Turn into...
325 (crisv32_target::low_stopped_data_address): ...this.
326 (the_low_target): Remove the op fields.
327 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
328 <low_stopped_data_address>: Declare.
329 (mips_stopped_by_watchpoint): Turn into...
330 (mips_target::low_stopped_by_watchpoint): ...this.
331 (mips_stopped_data_address): Turn into...
332 (mips_target::low_stopped_data_address): ...this.
333 (the_low_target): Remove the op fields.
334 * linux-bfin-low.cc (the_low_target): Remove the op fields.
335 * linux-m32r-low.cc (the_low_target): Ditto.
336 * linux-m68k-low.cc (the_low_target): Ditto.
337 * linux-ppc-low.cc (the_low_target): Ditto.
338 * linux-s390-low.cc (the_low_target): Ditto.
339 * linux-sh-low.cc (the_low_target): Ditto.
340 * linux-sparc-low.cc (the_low_target): Ditto.
341 * linux-tic6x-low.cc (the_low_target): Ditto.
342 * linux-tile-low.cc (the_low_target): Ditto.
343 * linux-xtensa-low.cc (the_low_target): Ditto.
345 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
347 Turn the 'insert_point' and 'remove_point' linux target ops into
348 methods of linux_process_target.
350 * linux-low.h (struct linux_target_ops): Remove the ops.
351 (class linux_process_target) <low_insert_point>
352 <low_remove_point>: Declare.
353 * linux-low.cc (linux_process_target::low_insert_point)
354 (linux_process_target::low_remove_point): Define.
355 (linux_process_target::insert_point)
356 (linux_process_target::remove_point): Update for calls to
357 low_insert_point and low_remove_point.
358 * linux-x86-low.cc (class x86_target) <low_insert_point>
359 <low_remove_point>: Declare.
360 (x86_insert_point): Turn into...
361 (x86_target::low_insert_point): ...this.
362 (x86_remove_point): Turn into...
363 (x86_target::low_remove_point): ...this.
364 (the_low_target): Remove the op fields.
365 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
366 <low_remove_point>: Declare.
367 (aarch64_insert_point): Turn into...
368 (aarch64_target::low_insert_point): ...this.
369 (aarch64_remove_point): Turn into...
370 (aarch64_target::low_remove_point): ...this.
371 (the_low_target): Remove the op fields.
372 * linux-arm-low.cc (class arm_target) <low_insert_point>
373 <low_remove_point>: Declare.
374 (arm_insert_point): Turn into...
375 (arm_target::low_insert_point): ...this.
376 (arm_remove_point): Turn into...
377 (arm_target::low_remove_point): ...this.
378 (the_low_target): Remove the op fields.
379 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
380 <low_remove_point>: Declare.
381 (crisv32_insert_point): Turn into...
382 (crisv32_target::low_insert_point): ...this.
383 (crisv32_remove_point): Turn into...
384 (crisv32_target::low_remove_point): ...this.
385 (the_low_target): Remove the op fields.
386 * linux-mips-low.cc (class mips_target) <low_insert_point>
387 <low_remove_point>: Declare.
388 (mips_insert_point): Turn into...
389 (mips_target::low_insert_point): ...this.
390 (mips_remove_point): Turn into...
391 (mips_target::low_remove_point): ...this.
392 (the_low_target): Remove the op fields.
393 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
394 <low_remove_point>: Declare.
395 (ppc_insert_point): Turn into...
396 (ppc_target::low_insert_point): ...this.
397 (ppc_remove_point): Turn into...
398 (ppc_target::low_remove_point): ...this.
399 (the_low_target): Remove the op fields.
400 * linux-bfin-low.cc (the_low_target): Remove the op fields.
401 * linux-m32r-low.cc (the_low_target): Ditto.
402 * linux-m68k-low.cc (the_low_target): Ditto.
403 * linux-s390-low.cc (the_low_target): Ditto.
404 * linux-sh-low.cc (the_low_target): Ditto.
405 * linux-sparc-low.cc (the_low_target): Ditto.
406 * linux-tic6x-low.cc (the_low_target): Ditto.
407 * linux-tile-low.cc (the_low_target): Ditto.
408 * linux-xtensa-low.cc (the_low_target): Ditto.
410 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
412 Remove the 'supports_z_point_type' linux target op and let the
413 concrete linux target define it by overriding the op declared in
414 process_stratum_target.
416 * linux-low.cc (linux_process_target::supports_z_point_type):
418 * linux-low.h (struct linux_target_ops): Remove the op.
419 (class linux_process_target) <supports_z_point_type>: Remove.
420 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
422 (x86_supports_z_point_type): Turn into...
423 (x86_target::supports_z_point_type): ...this.
424 (the_low_target): Remove the op field.
425 * linux-aarch64-low.cc (class aarch64_target)
426 <supports_z_point_type>: Declare.
427 (aarch64_supports_z_point_type): Turn into...
428 (aarch64_target::supports_z_point_type): ...this.
429 (the_low_target): Remove the op field.
430 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
432 (arm_supports_z_point_type): Turn into...
433 (arm_target::supports_z_point_type): ...this.
434 (the_low_target): Remove the op field.
435 * linux-crisv32-low.cc (class crisv32_target)
436 <supports_z_point_type>: Declare.
437 (cris_supports_z_point_type): Turn into...
438 (crisv32_target::supports_z_point_type): ...this.
439 (the_low_target): Remove the op field.
440 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
442 (mips_supports_z_point_type): Turn into...
443 (mips_target::supports_z_point_type): ...this.
444 (the_low_target): Remove the op field.
445 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
447 (ppc_supports_z_point_type): Turn into...
448 (ppc_target::supports_z_point_type): ...this.
449 (the_low_target): Remove the op field.
450 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
452 (s390_supports_z_point_type): Turn into...
453 (s390_target::supports_z_point_type): ...this.
454 (the_low_target): Remove the op field.
455 * linux-bfin-low.cc (the_low_target): Remove the op field.
456 * linux-m32r-low.cc (the_low_target): Ditto.
457 * linux-m68k-low.cc (the_low_target): Ditto.
458 * linux-sh-low.cc (the_low_target): Ditto.
459 * linux-sparc-low.cc (the_low_target): Ditto.
460 * linux-tic6x-low.cc (the_low_target): Ditto.
461 * linux-tile-low.cc (the_low_target): Ditto.
462 * linux-xtensa-low.cc (the_low_target): Ditto.
464 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
466 Turn the 'breakpoint_at' linux target op into a method of
467 linux_process_target.
469 * linux-low.h (struct linux_target_ops): Remove the op.
470 (class linux_process_target) <low_breakpoint_at>: Declare.
472 Update the callers below:
474 * linux-low.cc (linux_process_target::save_stop_reason)
475 (linux_process_target::thread_still_has_status_pending)
476 (linux_process_target::wait_1)
478 * linux-x86-low.cc (class x86_target)
479 <low_breakpoint_at>: Declare.
480 (x86_breakpoint_at): Turn into...
481 (x86_target::low_breakpoint_at): ...this.
482 (the_low_target): Remove the op field.
483 * linux-aarch64-low.cc (class aarch64_target)
484 <low_breakpoint_at>: Declare.
485 (aarch64_breakpoint_at): Turn into...
486 (aarch64_target::low_breakpoint_at): ...this.
487 (the_low_target): Remove the op field.
488 * linux-arm-low.cc (class arm_target)
489 <low_breakpoint_at>: Declare.
490 (arm_target::low_breakpoint_at): Define.
491 (the_low_target): Remove the op field.
492 * linux-bfin-low.cc (class bfin_target)
493 <low_breakpoint_at>: Declare.
494 (bfin_breakpoint_at): Turn into...
495 (bfin_target::low_breakpoint_at): ...this.
496 (the_low_target): Remove the op field.
497 * linux-cris-low.cc (class cris_target)
498 <low_breakpoint_at>: Declare.
499 (cris_breakpoint_at): Turn into...
500 (cris_target::low_breakpoint_at): ...this.
501 (the_low_target): Remove the op field.
502 * linux-crisv32-low.cc (class crisv32_target)
503 <low_breakpoint_at>: Declare.
504 (crisv32_breakpoint_at): Turn into...
505 (crisv32_target::low_breakpoint_at): ...this.
506 (the_low_target): Remove the op field.
507 * linux-ia64-low.cc (class ia64_target)
508 <low_breakpoint_at>: Declare.
509 (ia64_target::low_breakpoint_at): Define.
510 * linux-m32r-low.cc (class m32r_target)
511 <low_breakpoint_at>: Declare.
512 (m32r_breakpoint_at): Turn into...
513 (m32r_target::low_breakpoint_at): ...this.
514 (the_low_target): Remove the op field.
515 * linux-m68k-low.cc (class m68k_target)
516 <low_breakpoint_at>: Declare.
517 (m68k_breakpoint_at): Turn into...
518 (m68k_target::low_breakpoint_at): ...this.
519 (the_low_target): Remove the op field.
520 * linux-mips-low.cc (class mips_target)
521 <low_breakpoint_at>: Declare.
522 (mips_breakpoint_at): Turn into...
523 (mips_target::low_breakpoint_at): ...this.
524 (the_low_target): Remove the op field.
525 * linux-nios2-low.cc (class nios2_target)
526 <low_breakpoint_at>: Declare.
527 (nios2_breakpoint_at): Turn into...
528 (nios2_target::low_breakpoint_at): ...this.
529 (the_low_target): Remove the op field.
530 * linux-ppc-low.cc (class ppc_target)
531 <low_breakpoint_at>: Declare.
532 (ppc_breakpoint_at): Turn into...
533 (ppc_target::low_breakpoint_at): ...this.
534 (the_low_target): Remove the op field.
535 * linux-riscv-low.cc (class riscv_target)
536 <low_breakpoint_at>: Declare.
537 (riscv_breakpoint_at): Turn into...
538 (riscv_target::low_breakpoint_at): ...this.
539 (the_low_target): Remove the op field.
540 * linux-s390-low.cc (class s390_target)
541 <low_breakpoint_at>: Declare.
542 (s390_breakpoint_at): Turn into...
543 (s390_target::low_breakpoint_at): ...this.
544 (the_low_target): Remove the op field.
545 * linux-sh-low.cc (class sh_target)
546 <low_breakpoint_at>: Declare.
547 (sh_breakpoint_at): Turn into...
548 (sh_target::low_breakpoint_at): ...this.
549 (the_low_target): Remove the op field.
550 * linux-sparc-low.cc (class sparc_target)
551 <low_breakpoint_at>: Declare.
552 (sparc_breakpoint_at): Turn into...
553 (sparc_target::low_breakpoint_at): ...this.
554 (the_low_target): Remove the op field.
555 * linux-tic6x-low.cc (class tic6x_target)
556 <low_breakpoint_at>: Declare.
557 (tic6x_breakpoint_at): Turn into...
558 (tic6x_target::low_breakpoint_at): ...this.
559 (the_low_target): Remove the op field.
560 * linux-tile-low.cc (class tile_target)
561 <low_breakpoint_at>: Declare.
562 (tile_breakpoint_at): Turn into...
563 (tile_target::low_breakpoint_at): ...this.
564 (the_low_target): Remove the op field.
565 * linux-xtensa-low.cc (class xtensa_target)
566 <low_breakpoint_at>: Declare.
567 (xtensa_breakpoint_at): Turn into...
568 (xtensa_target::low_breakpoint_at): ...this.
569 (the_low_target): Remove the op field.
571 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
573 Turn the 'decr_pc_after_break' linux_target_ops field into
574 a method of linux_process_target.
576 * linux-low.h (struct linux_target_ops)
577 <decr_pc_after_break>: Remove.
578 (class linux_process_target) <low_decr_pc_after_break>: New method
580 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
581 New method implementation.
583 Update the users below.
585 (linux_process_target::save_stop_reason)
586 (linux_process_target::wait_1)
587 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
589 (x86_target::low_decr_pc_after_break): New method implementation.
590 (the_low_target): Remove the field.
591 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
593 (bfin_target::low_decr_pc_after_break): New method implementation.
594 (the_low_target): Remove the field.
595 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
597 (m68k_target::low_decr_pc_after_break): New method implementation.
598 (the_low_target): Remove the field.
599 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
601 (s390_target::low_decr_pc_after_break): New method implementation.
602 (the_low_target): Remove the field.
603 * linux-aarch64-low.cc (the_low_target): Remove the field.
604 * linux-arm-low.cc (the_low_target): Remove the field.
605 * linux-cris-low.cc (the_low_target): Remove the field.
606 * linux-crisv32-low.cc (the_low_target): Remove the field.
607 * linux-m32r-low.cc (the_low_target): Remove the field.
608 * linux-mips-low.cc (the_low_target): Remove the field.
609 * linux-nios2-low.cc (the_low_target): Remove the field.
610 * linux-ppc-low.cc (the_low_target): Remove the field.
611 * linux-riscv-low.cc (the_low_target): Remove the field.
612 * linux-sh-low.cc (the_low_target): Remove the field.
613 * linux-sparc-low.cc (the_low_target): Remove the field.
614 * linux-tic6x-low.cc (the_low_target): Remove the field.
615 * linux-tile-low.cc (the_low_target): Remove the field.
616 * linux-xtensa-low.cc (the_low_target): Remove the field.
618 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
620 Remove the 'supports_software_single_step' linux target op and let
621 the concrete linux target define it by overriding the op in
622 process_stratum_target.
623 Turn the 'get_next_pcs' linux target op into a method of
624 linux_process_target.
626 * linux-low.h (struct linux_target_ops): Remove the ops.
627 (class linux_process_target) <supports_software_single_step>:
629 <low_get_next_pcs>: Declare.
630 * linux-low.cc (can_software_single_step): Remove.
631 (linux_process_target::low_get_next_pcs): Define.
632 (linux_process_target::supports_software_single_step): Remove.
634 Update the callers below.
636 (linux_process_target::handle_extended_wait)
637 (linux_process_target::wait_1)
638 (linux_process_target::install_software_single_step_breakpoints)
639 (linux_process_target::single_step)
640 (linux_process_target::thread_needs_step_over)
641 (linux_process_target::proceed_one_lwp)
642 (linux_process_target::supports_range_stepping)
644 * linux-x86-low.cc (the_low_target): Remove the op field.
645 * linux-aarch64-low.cc (the_low_target): Ditto.
646 * linux-bfin-low.cc (the_low_target): Ditto.
647 * linux-cris-low.cc (the_low_target): Ditto.
648 * linux-crisv32-low.cc (the_low_target): Ditto.
649 * linux-m32r-low.cc (the_low_target): Ditto.
650 * linux-m68k-low.cc (the_low_target): Ditto.
651 * linux-mips-low.cc (the_low_target): Ditto.
652 * linux-nios2-low.cc (the_low_target): Ditto.
653 * linux-ppc-low.cc (the_low_target): Ditto.
654 * linux-riscv-low.cc (the_low_target): Ditto.
655 * linux-s390-low.cc (the_low_target): Ditto.
656 * linux-sh-low.cc (the_low_target): Ditto.
657 * linux-sparc-low.cc (the_low_target): Ditto.
658 * linux-tic6x-low.cc (the_low_target): Ditto.
659 * linux-tile-low.cc (the_low_target): Ditto.
660 * linux-xtensa-low.cc (the_low_target): Ditto.
661 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
662 <supports_software_single_step>: Declare.
663 (arm_target::supports_software_single_step): Define.
664 (arm_gdbserver_get_next_pcs): Turn into...
665 (arm_target::low_get_next_pcs): ...this.
666 (the_low_target): Remove the op field.
668 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
670 Remove the 'sw_breakpoint_from_kind' linux target op, and let
671 the concrete linux target define it by overriding the op
672 in process_stratum_target.
674 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
676 * linux-low.h (struct linux_target_ops): Remove the op.
677 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
678 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
680 (x86_sw_breakpoint_from_kind): Turn into...
681 (x86_target::sw_breakpoint_from_kind): ...this.
682 (the_low_target): Remove the op field.
683 * linux-aarch64-low.cc (class aarch64_target)
684 <sw_breakpoint_from_kind>: Declare.
685 (aarch64_sw_breakpoint_from_kind): Turn into...
686 (aarch64_target::sw_breakpoint_from_kind): ...this.
687 (the_low_target): Remove the op field.
688 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
690 (arm_target::sw_breakpoint_from_kind): Define.
691 (the_low_target): Remove the op field.
692 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
694 (bfin_sw_breakpoint_from_kind): Turn into...
695 (bfin_target::sw_breakpoint_from_kind): ...this.
696 (the_low_target): Remove the op field.
697 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
699 (cris_sw_breakpoint_from_kind): Turn into...
700 (cris_target::sw_breakpoint_from_kind): ...this.
701 (the_low_target): Remove the op field.
702 * linux-crisv32-low.cc (class crisv32_target)
703 <sw_breakpoint_from_kind>: Declare.
704 (cris_sw_breakpoint_from_kind): Turn into...
705 (crisv32_target::sw_breakpoint_from_kind): ...this.
706 (the_low_target): Remove the op field.
707 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
709 (ia64_target::sw_breakpoint_from_kind): Define.
710 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
712 (m32r_sw_breakpoint_from_kind): Turn into...
713 (m32r_target::sw_breakpoint_from_kind): ...this.
714 (the_low_target): Remove the op field.
715 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
717 (m68k_sw_breakpoint_from_kind): Turn into...
718 (m68k_target::sw_breakpoint_from_kind): ...this.
719 (the_low_target): Remove the op field.
720 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
722 (mips_sw_breakpoint_from_kind): Turn into...
723 (mips_target::sw_breakpoint_from_kind): ...this.
724 (the_low_target): Remove the op field.
725 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
727 (nios2_sw_breakpoint_from_kind): Turn into...
728 (nios2_target::sw_breakpoint_from_kind): ...this.
729 (the_low_target): Remove the op field.
730 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
732 (ppc_sw_breakpoint_from_kind): Turn into...
733 (ppc_target::sw_breakpoint_from_kind): ...this.
734 (the_low_target): Remove the op field.
735 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
737 (riscv_sw_breakpoint_from_kind): Turn into...
738 (riscv_target::sw_breakpoint_from_kind): ...this.
739 (the_low_target): Remove the op field.
740 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
742 (s390_sw_breakpoint_from_kind): Turn into...
743 (s390_target::sw_breakpoint_from_kind): ...this.
744 (the_low_target): Remove the op field.
745 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
747 (sh_sw_breakpoint_from_kind): Turn into...
748 (sh_target::sw_breakpoint_from_kind): ...this.
749 (the_low_target): Remove the op field.
750 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
752 (sparc_sw_breakpoint_from_kind): Turn into...
753 (sparc_target::sw_breakpoint_from_kind): ...this.
754 (the_low_target): Remove the op field.
755 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
757 (tic6x_sw_breakpoint_from_kind): Turn into...
758 (tic6x_target::sw_breakpoint_from_kind): ...this.
759 (the_low_target): Remove the op field.
760 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
762 (tile_sw_breakpoint_from_kind): Turn into...
763 (tile_target::sw_breakpoint_from_kind): ...this.
764 (the_low_target): Remove the op field.
765 * linux-xtensa-low.cc (class xtensa_target)
766 <sw_breakpoint_from_kind>: Declare.
767 (xtensa_sw_breakpoint_from_kind): Turn into...
768 (xtensa_target::sw_breakpoint_from_kind): ...this.
769 (the_low_target): Remove the op field.
771 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
773 Remove the 'breakpoint_kind_from_pc' and
774 'breakpoint_kind_from_current_state' linux target ops, and let the
775 concrete linux target define them by overriding the ops of
776 process_stratum_target.
778 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
780 (linux_process_target::breakpoint_kind_from_current_state): Remove.
781 * linux-low.h (struct linux_target_ops): Remove ops.
782 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
783 <breakpoint_kind_from_current_state>: Remove.
784 * linux-x86-low.cc (the_low_target): Remove the op fields.
785 * linux-bfin-low.cc (the_low_target): Ditto.
786 * linux-cris-low.cc (the_low_target): Ditto.
787 * linux-crisv32-low.cc (the_low_target): Ditto.
788 * linux-m32r-low.cc (the_low_target): Ditto.
789 * linux-m68k-low.cc (the_low_target): Ditto.
790 * linux-mips-low.cc (the_low_target): Ditto.
791 * linux-nios2-low.cc (the_low_target): Ditto.
792 * linux-ppc-low.cc (the_low_target): Ditto.
793 * linux-s390-low.cc (the_low_target): Ditto.
794 * linux-sh-low.cc (the_low_target): Ditto.
795 * linux-sparc-low.cc (the_low_target): Ditto.
796 * linux-tic6x-low.cc (the_low_target): Ditto.
797 * linux-tile-low.cc (the_low_target): Ditto.
798 * linux-xtensa-low.cc (the_low_target): Ditto.
799 * linux-aarch64-low.cc (class aarch64_target)
800 <breakpoint_kind_from_pc>
801 <breakpoint_kind_from_current_state>: Declare.
802 (aarch64_breakpoint_kind_from_pc): Turn into...
803 (aarch64_target::breakpoint_kind_from_pc): ...this.
804 (aarch64_breakpoint_kind_from_current_state): Turn into...
805 (aarch64_target::breakpoint_kind_from_current_state): ...this.
806 (the_low_target): Remove the op fields.
807 * linux-arm-low.cc (class arm_target):
808 <breakpoint_kind_from_pc>
809 <breakpoint_kind_from_current_state>: Declare.
810 (arm_target::breakpoint_kind_from_pc): Define.
811 (arm_target::breakpoint_kind_from_current_state): Define.
812 (the_low_target): Remove the op fields.
813 * linux-riscv-low.cc (class riscv_target):
814 <breakpoint_kind_from_pc>: Declare.
815 (riscv_breakpoint_kind_from_pc): Turn into...
816 (riscv_target::breakpoint_kind_from_pc): ...this.
817 (the_low_target): Remove the op fields.
819 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
821 Turn the 'get_pc' and 'set_pc' linux target ops into methods
822 of linux_process_target.
824 * linux-low.h (struct linux_target_ops): Remove the ops.
825 (class linux_process_target) <low_supports_breakpoints>
827 <low_set_pc>: Declare.
828 * linux-low.cc (supports_breakpoints): Turn into...
829 (linux_process_target::low_supports_breakpoints): ...this.
830 (linux_process_target::low_get_pc): Define.
831 (linux_process_target::low_set_pc): Define.
833 Update the callers below.
835 (linux_process_target::get_pc)
836 (linux_process_target::save_stop_reason)
837 (linux_process_target::maybe_move_out_of_jump_pad)
838 (linux_process_target::wait_1)
839 (linux_process_target::resume_one_lwp_throw)
840 (linux_process_target::resume)
841 (linux_process_target::proceed_all_lwps)
842 (linux_process_target::read_pc)
843 (linux_process_target::write_pc)
845 * linux-x86-low.cc (class linux_process_target)
846 <low_supports_breakpoints>
848 <low_set_pc>: Declare.
849 (x86_target::low_supports_breakpoints): Define.
850 (x86_get_pc): Turn into...
851 (x86_target::low_get_pc): ...this.
852 (x86_set_pc): Turn into...
853 (x86_target::low_set_pc): ...this.
854 (the_low_target): Remove the op fields.
855 * linux-arm-low.cc (class arm_target)
856 <low_supports_breakpoints>
858 <low_set_pc>: Declare.
859 (arm_target::low_supports_breakpoints)
860 (arm_target::low_get_pc)
861 (arm_target::low_set_pc): Define.
862 (the_low_target): Remove the op fields.
863 * linux-bfin-low.cc (class bfin_target)
864 <low_supports_breakpoints>
866 <low_set_pc>: Declare.
867 (bfin_target::low_supports_breakpoints)
868 (bfin_target::low_get_pc)
869 (bfin_target::low_set_pc): Define.
870 (the_low_target): Remove the op fields.
871 * linux-cris-low.cc (class cris_target)
872 <low_supports_breakpoints>
874 <low_set_pc>: Declare.
875 (cris_target::low_supports_breakpoints)
876 (cris_target::low_get_pc)
877 (cris_target::low_set_pc): Define.
878 (the_low_target): Remove the op fields.
879 * linux-crisv32-low.cc (class crisv32_target)
880 <low_supports_breakpoints>
882 <low_set_pc>: Declare.
883 (crisv32_target::low_supports_breakpoints)
884 (crisv32_target::low_get_pc)
885 (crisv32_target::low_set_pc): Define.
886 (the_low_target): Remove the op fields.
887 * linux-m32r-low.cc (class m32r_target)
888 <low_supports_breakpoints>
890 <low_set_pc>: Declare.
891 (m32r_target::low_supports_breakpoints)
892 (m32r_target::low_get_pc)
893 (m32r_target::low_set_pc): Define.
894 (the_low_target): Remove the op fields.
895 * linux-m68k-low.cc (class m68k_target)
896 <low_supports_breakpoints>
898 <low_set_pc>: Declare.
899 (m68k_target::low_supports_breakpoints)
900 (m68k_target::low_get_pc)
901 (m68k_target::low_set_pc): Define.
902 (the_low_target): Remove the op fields.
903 * linux-nios2-low.cc (class nios2_target)
904 <low_supports_breakpoints>
906 <low_set_pc>: Declare.
907 (nios2_target::low_supports_breakpoints)
908 (nios2_target::low_get_pc)
909 (nios2_target::low_set_pc): Define.
910 (the_low_target): Remove the op fields.
911 * linux-sh-low.cc (class sh_target)
912 <low_supports_breakpoints>
914 <low_set_pc>: Declare.
915 (sh_target::low_supports_breakpoints)
916 (sh_target::low_get_pc)
917 (sh_target::low_set_pc): Define.
918 (the_low_target): Remove the op fields.
919 * linux-xtensa-low.cc (class xtensa_target)
920 <low_supports_breakpoints>
922 <low_set_pc>: Declare.
923 (xtensa_target::low_supports_breakpoints)
924 (xtensa_target::low_get_pc)
925 (xtensa_target::low_set_pc): Define.
926 (the_low_target): Remove the op fields.
927 * linux-sparc-low.cc (class sparc_target)
928 <low_supports_breakpoints>
929 <low_get_pc>: Declare.
930 (sparc_target::low_supports_breakpoints)
931 (sparc_target::low_get_pc): Define.
932 (the_low_target): Remove the op fields.
933 * linux-tile-low.cc (class tile_target)
934 <low_supports_breakpoints>
936 <low_set_pc>: Declare.
937 (tile_target::low_supports_breakpoints)
938 (tile_target::low_get_pc)
939 (tile_target::low_set_pc): Define.
940 (the_low_target): Remove the op fields.
941 * linux-aarch64-low.cc (class aarch64_target)
942 <low_supports_breakpoints>
944 <low_set_pc>: Declare.
945 (aarch64_target::low_supports_breakpoints): Define.
946 (aarch64_get_pc): Turn into...
947 (aarch64_target::low_get_pc): ...this.
948 (aarch64_set_pc): Turn into...
949 (aarch64_target::low_set_pc): ...this.
950 (the_low_target): Remove the op fields.
951 * linux-mips-low.cc (class mips_target)
952 <low_supports_breakpoints>
954 <low_set_pc>: Declare.
955 (mips_target::low_supports_breakpoints): Define.
956 (mips_get_pc): Turn into...
957 (mips_target::low_get_pc): ...this.
958 (mips_set_pc): Turn into...
959 (mips_target::low_set_pc): ...this.
960 (the_low_target): Remove the op fields.
961 * linux-ppc-low.cc (class ppc_target)
962 <low_supports_breakpoints>
964 <low_set_pc>: Declare.
965 (ppc_target::low_supports_breakpoints): Define.
966 (ppc_get_pc): Turn into...
967 (ppc_target::low_get_pc): ...this.
968 (ppc_set_pc): Turn into...
969 (ppc_target::low_set_pc): ...this.
970 (the_low_target): Remove the op fields.
971 * linux-riscv-low.cc (class riscv_target)
972 <low_supports_breakpoints>
974 <low_set_pc>: Declare.
975 (riscv_target::low_supports_breakpoints): Define.
976 (riscv_get_pc): Turn into...
977 (riscv_target::low_get_pc): ...this.
978 (riscv_set_pc): Turn into...
979 (riscv_target::low_set_pc): ...this.
980 (the_low_target): Remove the op fields.
981 * linux-s390-low.cc (class s390_target)
982 <low_supports_breakpoints>
984 <low_set_pc>: Declare.
985 (s390_target::low_supports_breakpoints): Define.
986 (s390_get_pc): Turn into...
987 (s390_target::low_get_pc): ...this.
988 (s390_set_pc): Turn into...
989 (s390_target::low_set_pc): ...this.
990 (the_low_target): Remove the op fields.
991 * linux-tic6x-low.cc (class tic6x_target)
992 <low_supports_breakpoints>
994 <low_set_pc>: Declare.
995 (tic6x_target::low_supports_breakpoints): Define.
996 (tic6x_get_pc): Turn into...
997 (tic6x_target::low_get_pc): ...this.
998 (tic6x_set_pc): Turn into...
999 (tic6x_target::low_set_pc): ...this.
1000 (the_low_target): Remove the op fields.
1002 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1004 Turn some more static methods in linux-low into private methods
1005 of linux_process_target.
1007 * linux-low.cc (get_pc): Turn into...
1008 (linux_process_target::get_pc): ...this.
1009 (save_stop_reason): Turn into...
1010 (linux_process_target::save_stop_reason): ...this.
1011 (thread_still_has_status_pending_p): Turn into...
1012 (linux_process_target::thread_still_has_status_pending): ...this.
1013 (status_pending_p_callback): Turn into...
1014 (linux_process_target::status_pending_p_callback): ...this.
1015 (resume_stopped_resumed_lwps): Turn into...
1016 (linux_process_target::resume_stopped_resumed_lwps): ...this.
1017 (install_software_single_step_breakpoints): Turn into...
1018 (linux_process_target::install_software_single_step_breakpoints):
1020 (single_step): Turn into...
1021 (linux_process_target::single_step): ...this.
1022 (linux_resume_one_lwp_throw): Turn into...
1023 (linux_process_target::resume_one_lwp_throw): ...this.
1024 (linux_resume_one_lwp): Turn into...
1025 (linux_process_target::resume_one_lwp): ...this.
1026 (resume_status_pending_p): Turn into...
1027 (linux_process_target::resume_status_pending): ...this.
1028 (need_step_over_p): Turn into...
1029 (linux_process_target::thread_needs_step_over): ...this.
1030 (linux_resume_one_thread): Turn into...
1031 (linux_process_target::resume_one_thread): ...this.
1032 (proceed_one_lwp): Turn into...
1033 (linux_process_target::proceed_one_lwp): ...this.
1034 (unsuspend_and_proceed_one_lwp): Turn into...
1035 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
1037 Update the calls/references to the above functions below.
1039 (linux_process_target::handle_extended_wait)
1040 (linux_process_target::filter_event)
1041 (linux_process_target::wait_for_event_filtered)
1042 (linux_process_target::wait_1)
1043 (linux_process_target::move_out_of_jump_pad)
1044 (linux_process_target::start_step_over)
1045 (linux_process_target::resume)
1046 (linux_process_target::proceed_all_lwps)
1047 (regsets_store_inferior_registers)
1048 (linux_process_target::store_register)
1050 * linux-low.h (class linux_process_target)
1053 <thread_still_has_status_pending>
1054 <status_pending_p_callback>
1055 <resume_stopped_resumed_lwps>
1056 <install_software_single_step_breakpoints>
1058 <resume_one_lwp_throw>
1060 <resume_status_pending>
1061 <thread_needs_step_over>
1064 <unsuspend_and_proceed_one_lwp>: Declare.
1066 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1068 Turn the 'fetch_register' linux target op into a method of
1069 linux_process_target.
1071 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
1072 (class linux_process_target) <low_fetch_register>: Declare.
1073 * linux-x86-low.cc (the_low_target)
1074 * linux-aarch64-low.cc (the_low_target)
1075 * linux-arm-low.cc (the_low_target)
1076 * linux-bfin-low.cc (the_low_target)
1077 * linux-cris-low.cc (the_low_target)
1078 * linux-crisv32-low.cc (the_low_target)
1079 * linux-m32r-low.cc (the_low_target)
1080 * linux-m68k-low.cc (the_low_target)
1081 * linux-nios2-low.cc (the_low_target)
1082 * linux-ppc-low.cc (the_low_target)
1083 * linux-s390-low.cc (the_low_target)
1084 * linux-sh-low.cc (the_low_target)
1085 * linux-sparc-low.cc (the_low_target)
1086 * linux-tic6x-low.cc (the_low_target)
1087 * linux-tile-low.cc (the_low_target)
1088 * linux-xtensa-low.cc (the_low_target): Remove the op field.
1089 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
1091 (ia64_fetch_register): Turn into...
1092 (ia64_target::low_fetch_register): ...this.
1093 (the_low_target): Remove the op field.
1094 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
1096 (mips_fetch_register): Turn into...
1097 (mips_target::low_fetch_register): ...this.
1098 (the_low_target): Remove the op field.
1099 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
1101 (riscv_fetch_register): Turn into...
1102 (riscv_target::low_fetch_register): ...this.
1103 (the_low_target): Remove the op field.
1105 Update the callers below.
1107 * linux-low.cc (linux_process_target::fetch_registers)
1108 (linux_process_target::low_fetch_register)
1110 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1112 Turn the 'cannot_fetch_register' and 'cannot_store_register'
1113 linux target ops into methods of linux_process_target.
1115 * linux-low.h (struct linux_target_ops): Remove the low target ops.
1116 (class linux_process_target) <fetch_register>
1118 <usr_fetch_inferior_registers>
1119 <usr_store_inferior_registers>
1120 <low_cannot_fetch_register>
1121 <low_cannot_fetch_register> Declare.
1122 * linux-low.cc (fetch_register): Turn into...
1123 (linux_process_target::fetch_register): ...this.
1124 (store_register): Turn into ...
1125 (linux_process_target::store_register): ...this.
1126 (usr_fetch_inferior_registers): Turn into...
1127 (linux_process_target::usr_fetch_inferior_registers): ...this.
1128 (usr_store_inferior_registers): Turn into...
1129 (linux_process_target::usr_store_inferior_registers): ...this.
1130 * linux-x86-low.cc (class x86_target)
1131 <low_cannot_fetch_register>
1132 <low_cannot_store_register>: Declare.
1133 (x86_cannot_store_register): Turn into...
1134 (x86_target::low_cannot_store_register): ...this.
1135 (x86_cannot_fetch_register): Turn into...
1136 (x86_target::low_cannot_fetch_register): ...this.
1137 (the_low_target): Remove the target op fields.
1138 * linux-aarch64-low.cc (class aarch64_target)
1139 <low_cannot_fetch_register>
1140 <low_cannot_store_register>: Declare.
1141 (aarch64_target::low_cannot_fetch_register)
1142 (aarch64_target::low_cannot_store_register): Define.
1143 (the_low_target): Remove the op fields.
1144 * linux-arm-low.cc (class arm_target)
1145 <low_cannot_fetch_register>
1146 <low_cannot_store_register>: Declare.
1147 (arm_cannot_fetch_register): Turn into...
1148 (arm_target::low_cannot_fetch_register): ...this.
1149 (arm_cannot_store_register): Turn into...
1150 (arm_target::low_cannot_store_register): ...this.
1151 (the_low_target): Remove the op fields.
1152 * linux-bfin-low.cc (class bfin_target)
1153 <low_cannot_fetch_register>
1154 <low_cannot_store_register>: Declare.
1155 (bfin_cannot_fetch_register): Turn into...
1156 (bfin_target::low_cannot_fetch_register): ...this.
1157 (bfin_cannot_store_register): Turn into...
1158 (bfin_target::low_cannot_store_register): ...this.
1159 (the_low_target): Remove the op fields.
1160 * linux-cris-low.cc (class cris_target)
1161 <low_cannot_fetch_register>
1162 <low_cannot_store_register>: Declare.
1163 (cris_cannot_fetch_register): Turn into...
1164 (cris_target::low_cannot_fetch_register): ...this.
1165 (cris_cannot_store_register): Turn into...
1166 (cris_target::low_cannot_store_register): ...this.
1167 (the_low_target): Remove the op fields.
1168 * linux-crisv32-low.cc (class crisv32_target)
1169 <low_cannot_fetch_register>
1170 <low_cannot_store_register>: Declare.
1171 (crisv32_target::low_cannot_fetch_register)
1172 (crisv32_target::low_cannot_store_register): Define.
1173 (the_low_target): Remove the op fields.
1174 * linux-ia64-low.cc (class ia64_target)
1175 <low_cannot_fetch_register>
1176 <low_cannot_store_register>: Declare.
1177 (ia64_cannot_fetch_register): Turn into...
1178 (ia64_target::low_cannot_fetch_register): ...this.
1179 (ia64_cannot_store_register): Turn into...
1180 (ia64_target::low_cannot_store_register): ...this.
1181 (the_low_target): Remove the op fields.
1182 * linux-m32r-low.cc (class m32r_target)
1183 <low_cannot_fetch_register>
1184 <low_cannot_store_register>: Declare.
1185 (m32r_cannot_fetch_register): Turn into...
1186 (m32r_target::low_cannot_fetch_register): ...this.
1187 (m32r_cannot_store_register): Turn into...
1188 (m32r_target::low_cannot_store_register): ...this.
1189 (the_low_target): Remove the op fields.
1190 * linux-m68k-low.cc (class m68k_target)
1191 <low_cannot_fetch_register>
1192 <low_cannot_store_register>: Declare.
1193 (m68k_cannot_fetch_register): Turn into...
1194 (m68k_target::low_cannot_fetch_register): ...this.
1195 (m68k_cannot_store_register): Turn into...
1196 (m68k_target::low_cannot_store_register): ...this.
1197 (the_low_target): Remove the op fields.
1198 * linux-mips-low.cc (class mips_target)
1199 <low_cannot_fetch_register>
1200 <low_cannot_store_register>: Declare.
1201 (mips_cannot_fetch_register): Turn into...
1202 (mips_target::low_cannot_fetch_register): ...this.
1203 (mips_cannot_store_register): Turn into...
1204 (mips_target::low_cannot_store_register): ...this.
1205 (get_usrregs_info): Inline at the call sites in
1206 low_cannot_fetch_register and low_cannot_store_register,
1208 (the_low_target): Remove the op fields.
1209 * linux-nios2-low.cc (class nios2_target)
1210 <low_cannot_fetch_register>
1211 <low_cannot_store_register>: Declare.
1212 (nios2_cannot_fetch_register): Turn into...
1213 (nios2_target::low_cannot_fetch_register): ...this.
1214 (nios2_cannot_store_register): Turn into...
1215 (nios2_target::low_cannot_store_register): ...this.
1216 (the_low_target): Remove the op fields.
1217 * linux-ppc-low.cc (class ppc_target)
1218 <low_cannot_fetch_register>
1219 <low_cannot_store_register>: Declare.
1220 (ppc_cannot_fetch_register): Turn into...
1221 (ppc_target::low_cannot_fetch_register): ...this.
1222 (ppc_cannot_store_register): Turn into...
1223 (ppc_target::low_cannot_store_register): ...this.
1224 (the_low_target): Remove the op fields.
1225 * linux-riscv-low.cc (class riscv_target)
1226 <low_cannot_fetch_register>
1227 <low_cannot_store_register>: Declare.
1228 (riscv_target::low_cannot_fetch_register)
1229 (riscv_target::low_cannot_store_register): Define.
1230 (the_low_target): Remove the op fields.
1231 * linux-s390-low.cc (class s390_target)
1232 <low_cannot_fetch_register>
1233 <low_cannot_store_register>: Declare.
1234 (s390_cannot_fetch_register): Turn into...
1235 (s390_target::low_cannot_fetch_register): ...this.
1236 (s390_cannot_store_register): Turn into...
1237 (s390_target::low_cannot_store_register): ...this.
1238 (the_low_target): Remove the op fields.
1239 * linux-sh-low.cc (class sh_target)
1240 <low_cannot_fetch_register>
1241 <low_cannot_store_register>: Declare.
1242 (sh_cannot_fetch_register): Turn into...
1243 (sh_target::low_cannot_fetch_register): ...this.
1244 (sh_cannot_store_register): Turn into...
1245 (sh_target::low_cannot_store_register): ...this.
1246 (the_low_target): Remove the op fields.
1247 * linux-sparc-low.cc (class sparc_target)
1248 <low_cannot_fetch_register>
1249 <low_cannot_store_register>: Declare.
1250 (sparc_cannot_fetch_register): Turn into...
1251 (sparc_target::low_cannot_fetch_register): ...this.
1252 (sparc_cannot_store_register): Turn into...
1253 (sparc_target::low_cannot_store_register): ...this.
1254 (the_low_target): Remove the op fields.
1255 * linux-tic6x-low.cc (class tic6x_target)
1256 <low_cannot_fetch_register>
1257 <low_cannot_store_register>: Declare.
1258 (tic6x_cannot_fetch_register): Turn into...
1259 (tic6x_target::low_cannot_fetch_register): ...this.
1260 (tic6x_cannot_store_register): Turn into...
1261 (tic6x_target::low_cannot_store_register): ...this.
1262 (the_low_target): Remove the op fields.
1263 * linux-tile-low.cc (class tile_target)
1264 <low_cannot_fetch_register>
1265 <low_cannot_store_register>: Declare.
1266 (tile_cannot_fetch_register): Turn into...
1267 (tile_target::low_cannot_fetch_register): ...this.
1268 (tile_cannot_store_register): Turn into...
1269 (tile_target::low_cannot_store_register): ...this.
1270 (the_low_target): Remove the op fields.
1271 * linux-xtensa-low.cc (class xtensa_target)
1272 <low_cannot_fetch_register>
1273 <low_cannot_store_register>: Declare.
1274 (xtensa_target::low_cannot_fetch_register)
1275 (xtensa_target::low_cannot_store_register): Define.
1276 (the_low_target): Remove the op fields.
1278 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1280 Turn the 'regs_info' linux target op into a method of
1281 linux_process_target.
1283 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
1284 (class linux_process_target) <get_regs_info>: Define.
1286 Update the callers below.
1288 * linux-low.cc (linux_process_target::fetch_registers)
1289 (linux_process_target::store_registers)
1290 * proc-service.cc (gregset_info)
1292 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
1293 (x86_linux_regs_info): Turn into ...
1294 (x86_target::get_regs_info): ...this.
1295 (the_low_target): Remove the op field.
1296 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
1298 (aarch64_regs_info): Turn into ...
1299 (aarch64_target::get_regs_info): ...this.
1300 (the_low_target): Remove the op field.
1301 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
1302 (arm_regs_info): Turn into ...
1303 (arm_target::get_regs_info): ...this.
1304 (the_low_target): Remove the op field.
1305 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
1306 (bfin_regs_info): Turn into ...
1307 (bfin_target::get_regs_info): ...this.
1308 (the_low_target): Remove the op field.
1309 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
1310 (cris_regs_info): Turn into ...
1311 (cris_target::get_regs_info): ...this.
1312 (the_low_target): Remove the op field.
1313 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
1315 (crisv32_regs_info): Turn into ...
1316 (crisv32_target::get_regs_info): ...this.
1317 (the_low_target): Remove the op field.
1318 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
1319 (ia64_regs_info): Turn into ...
1320 (ia64_target::get_regs_info): ...this.
1321 (the_low_target): Remove the op field.
1322 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
1323 (m32r_regs_info): Turn into ...
1324 (m32r_target::get_regs_info): ...this.
1325 (the_low_target): Remove the op field.
1326 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
1327 (m68k_regs_info): Turn into ...
1328 (m68k_target::get_regs_info): ...this.
1329 (the_low_target): Remove the op field.
1330 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
1331 (mips_regs_info): Turn into ...
1332 (mips_target::get_regs_info): ...this.
1333 (the_low_target): Remove the op field.
1334 (get_usrregs_info): Update the call to the op.
1335 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
1336 (nios2_regs_info): Turn into ...
1337 (nios2_target::get_regs_info): ...this.
1338 (the_low_target): Remove the op field.
1339 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
1340 (ppc_regs_info): Turn into ...
1341 (ppc_target::get_regs_info): ...this.
1342 (the_low_target): Remove the op field.
1343 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
1344 (riscv_regs_info): Turn into ...
1345 (riscv_target::get_regs_info): ...this.
1346 (the_low_target): Remove the op field.
1347 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
1348 (s390_regs_info): Turn into ...
1349 (s390_target::get_regs_info): ...this.
1350 (the_low_target): Remove the op field.
1351 (s390_collect_ptrace_register)
1352 (s390_supply_ptrace_register)
1353 (s390_fill_gregset): Update the call to the op.
1354 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
1355 (sh_regs_info): Turn into ...
1356 (sh_target::get_regs_info): ...this.
1357 (the_low_target): Remove the op field.
1358 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
1359 (sparc_regs_info): Turn into ...
1360 (sparc_target::get_regs_info): ...this.
1361 (the_low_target): Remove the op field.
1362 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
1363 (tic6x_regs_info): Turn into ...
1364 (tic6x_target::get_regs_info): ...this.
1365 (the_low_target): Remove the op field.
1366 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
1367 (tile_regs_info): Turn into ...
1368 (tile_target::get_regs_info): ...this.
1369 (the_low_target): Remove the op field.
1370 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
1372 (xtensa_regs_info): Turn into ...
1373 (xtensa_target::get_regs_info): ...this.
1374 (the_low_target): Remove the op field.
1376 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1378 Turn the 'arch_setup' linux target op into a method of
1379 linux_process_target.
1381 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
1382 (class linux_process_target) <arch_setup_thread>
1383 <low_arch_setup>: New declarations.
1384 * linux-low.cc (linux_arch_setup): Delete.
1385 (linux_arch_setup_thread): Turn into...
1386 (linux_process_target::arch_setup_thread): ... this.
1388 Update the callers below.
1390 (linux_process_target::handle_extended_wait)
1391 (linux_process_target::post_create_inferior)
1392 (linux_process_target::filter_event)
1394 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
1396 (x86_linux_update_xmltarget): Turn into...
1397 (x86_target::update_xmltarget): ...this.
1398 (x86_linux_process_qsupported): Update the call to
1399 x86_linux_update_xmltarget.
1400 (x86_arch_setup): Turn into ...
1401 (x86_target::low_arch_setup): ...this.
1402 (the_low_target): Remove the op field.
1403 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
1405 (aarch64_arch_setup): Turn into ...
1406 (aarch64_target::low_arch_setup): ...this.
1407 (the_low_target): Remove the op field.
1408 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
1410 (arm_arch_setup): Turn into ...
1411 (arm_target::low_arch_setup): ...this.
1412 (the_low_target): Remove the op field.
1413 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
1415 (bfin_arch_setup): Turn into ...
1416 (bfin_target::low_arch_setup): ...this.
1417 (the_low_target): Remove the op field.
1418 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
1420 (cris_arch_setup): Turn into ...
1421 (cris_target::low_arch_setup): ...this.
1422 (the_low_target): Remove the op field.
1423 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
1425 (crisv32_arch_setup): Turn into ...
1426 (crisv32_target::low_arch_setup): ...this.
1427 (the_low_target): Remove the op field.
1428 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
1430 (ia64_arch_setup): Turn into ...
1431 (ia64_target::low_arch_setup): ...this.
1432 (the_low_target): Remove the op field.
1433 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
1435 (m32r_arch_setup): Turn into ...
1436 (m32r_target::low_arch_setup): ...this.
1437 (the_low_target): Remove the op field.
1438 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
1440 (m68k_arch_setup): Turn into ...
1441 (m68k_target::low_arch_setup): ...this.
1442 (the_low_target): Remove the op field.
1443 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
1445 (mips_arch_setup): Turn into ...
1446 (mips_target::low_arch_setup): ...this.
1447 (the_low_target): Remove the op field.
1448 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
1450 (nios2_arch_setup): Turn into ...
1451 (nios2_target::low_arch_setup): ...this.
1452 (the_low_target): Remove the op field.
1453 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
1455 (ppc_arch_setup): Turn into ...
1456 (ppc_target::low_arch_setup): ...this.
1457 (the_low_target): Remove the op field.
1458 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
1460 (riscv_arch_setup): Turn into ...
1461 (riscv_target::low_arch_setup): ...this.
1462 (the_low_target): Remove the op field.
1463 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
1465 (s390_arch_setup): Turn into ...
1466 (s390_target::low_arch_setup): ...this.
1467 (the_low_target): Remove the op field.
1468 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
1470 (sh_arch_setup): Turn into ...
1471 (sh_target::low_arch_setup): ...this.
1472 (the_low_target): Remove the op field.
1473 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
1475 (sparc_arch_setup): Turn into ...
1476 (sparc_target::low_arch_setup): ...this.
1477 (the_low_target): Remove the op field.
1478 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
1480 (tic6x_arch_setup): Turn into ...
1481 (tic6x_target::low_arch_setup): ...this.
1482 (the_low_target): Remove the op field.
1483 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
1485 (tile_arch_setup): Turn into ...
1486 (tile_target::low_arch_setup): ...this.
1487 (the_low_target): Remove the op field.
1488 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
1490 (xtensa_arch_setup): Turn into ...
1491 (xtensa_target::low_arch_setup): ...this.
1492 (the_low_target): Remove the op field.
1494 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1496 * linux-low.h (the_linux_target): New extern declaration.
1497 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
1499 (the_linux_target): Remove.
1500 * linux-x86-low.cc (class x86_target): New class.
1501 (the_x86_target): New static object.
1502 (the_linux_target): Define as pointer to the_x86_target.
1503 * linux-aarch64-low.cc (class aarch64_target): New class.
1504 (the_aarch64_target): New static object.
1505 (the_linux_target): Define as pointer to the_aarch64_target.
1506 * linux-arm-low.cc (class arm_target): New class.
1507 (the_arm_target): New static object.
1508 (the_linux_target): Define as pointer to the_arm_target.
1509 * linux-bfin-low.cc (class bfin_target): New class.
1510 (the_bfin_target): New static object.
1511 (the_linux_target): Define as pointer to the_bfin_target.
1512 * linux-cris-low.cc (class cris_target): New class.
1513 (the_cris_target): New static object.
1514 (the_linux_target): Define as pointer to the_cris_target.
1515 * linux-crisv32-low.cc (class crisv32_target): New class.
1516 (the_crisv32_target): New static object.
1517 (the_linux_target): Define as pointer to the_crisv32_target.
1518 * linux-ia64-low.cc (class ia64_target): New class.
1519 (the_ia64_target): New static object.
1520 (the_linux_target): Define as pointer to the_ia64_target.
1521 * linux-m32r-low.cc (class m32r_target): New class.
1522 (the_m32r_target): New static object.
1523 (the_linux_target): Define as pointer to the_m32r_target.
1524 * linux-m68k-low.cc (class m68k_target): New class.
1525 (the_m68k_target): New static object.
1526 (the_linux_target): Define as pointer to the_m68k_target.
1527 * linux-mips-low.cc (class mips_target): New class.
1528 (the_mips_target): New static object.
1529 (the_linux_target): Define as pointer to the_mips_target.
1530 * linux-nios2-low.cc (class nios2_target): New class.
1531 (the_nios2_target): New static object.
1532 (the_linux_target): Define as pointer to the_nios2_target.
1533 * linux-ppc-low.cc (class ppc_target): New class.
1534 (the_ppc_target): New static object.
1535 (the_linux_target): Define as pointer to the_ppc_target.
1536 * linux-riscv-low.cc (class riscv_target): New class.
1537 (the_riscv_target): New static object.
1538 (the_linux_target): Define as pointer to the_riscv_target.
1539 * linux-s390-low.cc (class s390_target): New class.
1540 (the_s390_target): New static object.
1541 (the_linux_target): Define as pointer to the_s390_target.
1542 * linux-sh-low.cc (class sh_target): New class.
1543 (the_sh_target): New static object.
1544 (the_linux_target): Define as pointer to the_sh_target.
1545 * linux-sparc-low.cc (class sparc_target): New class.
1546 (the_sparc_target): New static object.
1547 (the_linux_target): Define as pointer to the_sparc_target.
1548 * linux-tic6x-low.cc (class tic6x_target): New class.
1549 (the_tic6x_target): New static object.
1550 (the_linux_target): Define as pointer to the_tic6x_target.
1551 * linux-tile-low.cc (class tile_target): New class.
1552 (the_tile_target): New static object.
1553 (the_linux_target): Define as pointer to the_tile_target.
1554 * linux-xtensa-low.cc (class xtensa_target): New class.
1555 (the_xtensa_target): New static object.
1556 (the_linux_target): Define as pointer to the_xtensa_target.
1558 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1560 Turn some static functions in linux-low.cc into private methods of
1561 linux_process_target.
1563 * linux-low.cc (handle_extended_wait): Turn into ...
1564 (linux_process_target::handle_extended_wait): ...this. Call
1565 'mourn' on 'this' object instead of 'the_target'.
1566 (maybe_move_out_of_jump_pad): Turn into...
1567 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
1568 (linux_low_filter_event): Turn into...
1569 (linux_process_target::filter_event): ...this.
1570 (linux_wait_for_event_filtered): Turn into...
1571 (linux_process_target::wait_for_event_filtered): ...this.
1572 (linux_wait_for_event): Turn into...
1573 (linux_process_target::wait_for_event): ...this.
1574 (linux_wait_1): Turn into...
1575 (linux_process_target::wait_1): ...this.
1576 (wait_for_sigstop): Turn into...
1577 (linux_process_target::wait_for_sigstop): ...this.
1578 (move_out_of_jump_pad_callback): Turn into...
1579 (linux_process_target::move_out_of_jump_pad): ...this.
1580 (stop_all_lwps): Turn into...
1581 (linux_process_target::stop_all_lwps): ...this.
1582 (start_step_over): Turn into...
1583 (linux_process_target::start_step_over): ...this.
1584 (complete_ongoing_step_over): Turn into...
1585 (linux_process_target::complete_ongoing_step_over): ...this.
1586 (proceed_all_lwps): Turn into...
1587 (linux_process_target::proceed_all_lwps): ...this.
1588 (unstop_all_lwps): Turn into...
1589 (linux_process_target::unstop_all_lwps): ...this.
1591 * linux-low.h (class linux_process_target)
1592 <handle_extended_wait>
1593 <maybe_move_out_of_jump_pad>
1595 <wait_for_event_filtered>
1599 <move_out_of_jump_pad>
1602 <complete_ongoing_step_over>
1604 <unstop_all_lwps>: Declare.
1606 Update the callers below.
1608 * linux-low.cc (linux_process_target::attach): Update.
1609 (linux_process_target::stabilize_threads): Ditto.
1610 (linux_process_target::wait): Ditto.
1612 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1614 * linux-low.h (struct linux_target_ops): Update the comment for
1615 'cannot_store_register' to return 0 or 1.
1616 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
1619 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
1621 * config.in: Re-generate.
1622 * configure: Re-generate.
1624 2020-03-17 Kamil Rytarowski <n54@gmx.com>
1626 * regcache.cc (find_register_by_number): Update.
1627 * tdesc.cc (init_target_desc): Likewise.
1628 * tdesc.h (target_desc::reg_defs): Likewise.
1630 2020-03-12 Tom Tromey <tom@tromey.com>
1632 * configure: Rebuild.
1633 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
1634 (WIN32APILIBS): New subst.
1635 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
1637 (gdbsupport/%.o): Remove target.
1638 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
1639 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
1640 (WIN32APILIBS): New variable.
1641 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
1642 (gdbreplay$(EXEEXT)): Likewise.
1644 2020-03-12 Tom Tromey <tom@tromey.com>
1646 * config.in, configure: Rebuild.
1647 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
1648 * acinclude.m4: Include gettext-sister.m4.
1649 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
1651 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
1652 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
1654 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
1656 * acinclude.m4: Update path to selftest.m4.
1658 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
1660 * configure.ac: Don't source bfd/development.sh, move
1661 GDB_AC_COMMON higher.
1662 * configure: Re-generate.
1664 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
1666 * configure: Re-generate.
1668 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
1670 * configure: Re-generate.
1672 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
1674 * .dir-locals.el: New file.
1676 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1678 * .gitattributes: New file.
1680 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
1682 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
1683 reply into an S reply.
1684 * server.cc (disable_packet_T): New global.
1685 (captured_main): Set new global when appropriate.
1686 * server.h (disable_packet_T): Declare.
1688 2020-02-21 Tom Tromey <tom@tromey.com>
1690 * Makefile.in (mostlyclean): New target.
1692 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1694 * target.h (struct process_stratum_target): Remove.
1695 (class process_target): Rename to ...
1696 (class process_stratum_target): ... this.
1697 * linux-low.h (class linux_process_target): Derive from
1698 'process_stratum_target'.
1699 * linux-low.cc (linux_target_ops): Remove.
1700 (initialize_low): Set the_target to the singleton instance of
1701 linux_process_target.
1702 * lynx-low.h (class lynx_process_target): Derive from
1703 'process_stratum_target'.
1704 * lynx-low.cc (lynx_target_ops): Remove.
1705 (initialize_low): Set the_target to the singleton instance of
1706 lynx_process_target.
1707 * nto-low.h (class nto_process_target): Derive from
1708 'process_stratum_target'.
1709 * nto-low.cc (nto_target_ops): Remove.
1710 (initialize_low): Set the_target to the singleton instance of
1712 * win32-low.h (class win32_process_target): Derive from
1713 'process_stratum_target'.
1714 * win32-low.cc (win32_target_ops): Remove.
1715 (initialize_low): Set the_target to the singleton instance of
1716 win32_process_target.
1718 Replace 'the_target->pt' with 'the_target' in the uses below.
1720 * hostio.cc (hostio_error)
1725 * linux-aarch32-low.cc (arm_breakpoint_at)
1726 * linux-aarch64-low.cc (aarch64_breakpoint_at)
1727 * linux-arm-low.cc (arm_sigreturn_next_pc)
1729 (arm_get_syscall_trapinfo)
1730 * linux-cris-low.cc (cris_breakpoint_at)
1731 * linux-crisv32-low.cc (cris_breakpoint_at)
1732 * linux-low.cc (handle_extended_wait)
1735 (linux_process_target::breakpoint_kind_from_pc)
1737 * linux-m32r-low.cc (m32r_breakpoint_at)
1738 * linux-mips-low.cc (mips_breakpoint_at)
1739 * linux-nios2-low.cc (nios2_breakpoint_at)
1740 * linux-ppc-low.cc (ppc_breakpoint_at)
1741 * linux-s390-low.cc (s390_get_hwcap)
1742 * linux-sh-low.cc (sh_breakpoint_at)
1743 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
1744 (sparc_store_gregset_from_stack)
1745 (sparc_breakpoint_at)
1746 * linux-tic6x-low.cc (tic6x_breakpoint_at)
1747 * linux-tile-low.cc (tile_breakpoint_at)
1748 * linux-x86-low.cc (x86_breakpoint_at)
1749 * linux-xtensa-low.cc (xtensa_breakpoint_at)
1750 * mem-break.cc (bp_size)
1752 (insert_memory_breakpoint)
1753 (set_raw_breakpoint_at)
1754 (delete_raw_breakpoint)
1756 (uninsert_raw_breakpoint)
1757 (reinsert_raw_breakpoint)
1758 (validate_inserted_breakpoint)
1759 * regcache.cc (regcache_read_pc)
1761 * remote-utils.cc (putpkt_binary_1)
1764 (prepare_resume_reply)
1765 * server.cc (handle_general_set)
1768 (handle_qxfer_exec_file)
1769 (handle_qxfer_libraries_svr4)
1770 (handle_qxfer_osdata)
1771 (handle_qxfer_siginfo)
1772 (handle_qxfer_fdpic)
1776 (queue_stop_reply_callback)
1778 * target.cc (prepare_to_access_memory)
1779 (done_accessing_memory)
1780 (read_inferior_memory)
1781 (target_write_memory)
1782 (target_stop_and_wait)
1784 (target_mourn_inferior)
1785 (target_continue_no_signal)
1787 (target_supports_multi_process)
1790 (target_create_inferior)
1791 (target_post_create_inferior)
1793 (target_supports_fork_events)
1794 (target_supports_vfork_events)
1795 (target_supports_exec_events)
1796 (target_handle_new_gdb_connection)
1799 (fetch_inferior_registers)
1800 (store_inferior_registers)
1802 (target_supports_non_stop)
1804 (target_process_qsupported)
1805 (target_supports_catch_syscall)
1806 (target_get_ipa_tdesc_idx)
1807 (target_supports_tracepoints)
1808 (target_supports_fast_tracepoints)
1809 (target_get_min_fast_tracepoint_insn_len)
1810 (target_thread_stopped)
1812 (target_unpause_all)
1813 (target_stabilize_threads)
1814 (target_install_fast_tracepoint_jump_pad)
1816 (target_supports_disable_randomization)
1817 (target_supports_agent)
1818 (target_enable_btrace)
1819 (target_disable_btrace)
1820 (target_read_btrace)
1821 (target_read_btrace_conf)
1822 (target_supports_range_stepping)
1823 (target_supports_stopped_by_sw_breakpoint)
1824 (target_stopped_by_sw_breakpoint)
1825 (target_supports_stopped_by_hw_breakpoint)
1826 (target_supports_hardware_single_step)
1827 (target_stopped_by_hw_breakpoint)
1828 (target_breakpoint_kind_from_pc)
1829 (target_breakpoint_kind_from_current_state)
1830 (target_supports_software_single_step)
1831 (target_core_of_thread)
1832 (target_thread_name)
1833 (target_thread_handle)
1834 * win32-low.cc (do_initial_child_stuff)
1836 Rename target op default definitions listed below.
1838 * target.cc (process_target::post_create_inferior): Rename as ...
1839 (process_stratum_target::post_create_inferior): ... this.
1840 (process_target::prepare_to_access_memory): Rename as ...
1841 (process_stratum_target::prepare_to_access_memory): ... this.
1842 (process_target::done_accessing_memory): Rename as ...
1843 (process_stratum_target::done_accessing_memory): ... this.
1844 (process_target::look_up_symbols): Rename as ...
1845 (process_stratum_target::look_up_symbols): ... this.
1846 (process_target::supports_read_auxv): Rename as ...
1847 (process_stratum_target::supports_read_auxv): ... this.
1848 (process_target::read_auxv): Rename as ...
1849 (process_stratum_target::read_auxv): ... this.
1850 (process_target::supports_z_point_type): Rename as ...
1851 (process_stratum_target::supports_z_point_type): ... this.
1852 (process_target::insert_point): Rename as ...
1853 (process_stratum_target::insert_point): ... this.
1854 (process_target::remove_point): Rename as ...
1855 (process_stratum_target::remove_point): ... this.
1856 (process_target::stopped_by_sw_breakpoint): Rename as ...
1857 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
1858 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
1859 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
1860 (process_target::stopped_by_hw_breakpoint): Rename as ...
1861 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
1862 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
1863 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
1864 (process_target::supports_hardware_single_step): Rename as ...
1865 (process_stratum_target::supports_hardware_single_step): ... this.
1866 (process_target::stopped_by_watchpoint): Rename as ...
1867 (process_stratum_target::stopped_by_watchpoint): ... this.
1868 (process_target::stopped_data_address): Rename as ...
1869 (process_stratum_target::stopped_data_address): ... this.
1870 (process_target::supports_read_offsets): Rename as ...
1871 (process_stratum_target::supports_read_offsets): ... this.
1872 (process_target::read_offsets): Rename as ...
1873 (process_stratum_target::read_offsets): ... this.
1874 (process_target::supports_get_tls_address): Rename as ...
1875 (process_stratum_target::supports_get_tls_address): ... this.
1876 (process_target::get_tls_address): Rename as ...
1877 (process_stratum_target::get_tls_address): ... this.
1878 (process_target::hostio_last_error): Rename as ...
1879 (process_stratum_target::hostio_last_error): ... this.
1880 (process_target::supports_qxfer_osdata): Rename as ...
1881 (process_stratum_target::supports_qxfer_osdata): ... this.
1882 (process_target::qxfer_osdata): Rename as ...
1883 (process_stratum_target::qxfer_osdata): ... this.
1884 (process_target::supports_qxfer_siginfo): Rename as ...
1885 (process_stratum_target::supports_qxfer_siginfo): ... this.
1886 (process_target::qxfer_siginfo): Rename as ...
1887 (process_stratum_target::qxfer_siginfo): ... this.
1888 (process_target::supports_non_stop): Rename as ...
1889 (process_stratum_target::supports_non_stop): ... this.
1890 (process_target::async): Rename as ...
1891 (process_stratum_target::async): ... this.
1892 (process_target::start_non_stop): Rename as ...
1893 (process_stratum_target::start_non_stop): ... this.
1894 (process_target::supports_multi_process): Rename as ...
1895 (process_stratum_target::supports_multi_process): ... this.
1896 (process_target::supports_fork_events): Rename as ...
1897 (process_stratum_target::supports_fork_events): ... this.
1898 (process_target::supports_vfork_events): Rename as ...
1899 (process_stratum_target::supports_vfork_events): ... this.
1900 (process_target::supports_exec_events): Rename as ...
1901 (process_stratum_target::supports_exec_events): ... this.
1902 (process_target::handle_new_gdb_connection): Rename as ...
1903 (process_stratum_target::handle_new_gdb_connection): ... this.
1904 (process_target::handle_monitor_command): Rename as ...
1905 (process_stratum_target::handle_monitor_command): ... this.
1906 (process_target::core_of_thread): Rename as ...
1907 (process_stratum_target::core_of_thread): ... this.
1908 (process_target::supports_read_loadmap): Rename as ...
1909 (process_stratum_target::supports_read_loadmap): ... this.
1910 (process_target::read_loadmap): Rename as ...
1911 (process_stratum_target::read_loadmap): ... this.
1912 (process_target::process_qsupported): Rename as ...
1913 (process_stratum_target::process_qsupported): ... this.
1914 (process_target::supports_tracepoints): Rename as ...
1915 (process_stratum_target::supports_tracepoints): ... this.
1916 (process_target::read_pc): Rename as ...
1917 (process_stratum_target::read_pc): ... this.
1918 (process_target::write_pc): Rename as ...
1919 (process_stratum_target::write_pc): ... this.
1920 (process_target::supports_thread_stopped): Rename as ...
1921 (process_stratum_target::supports_thread_stopped): ... this.
1922 (process_target::thread_stopped): Rename as ...
1923 (process_stratum_target::thread_stopped): ... this.
1924 (process_target::supports_get_tib_address): Rename as ...
1925 (process_stratum_target::supports_get_tib_address): ... this.
1926 (process_target::get_tib_address): Rename as ...
1927 (process_stratum_target::get_tib_address): ... this.
1928 (process_target::pause_all): Rename as ...
1929 (process_stratum_target::pause_all): ... this.
1930 (process_target::unpause_all): Rename as ...
1931 (process_stratum_target::unpause_all): ... this.
1932 (process_target::stabilize_threads): Rename as ...
1933 (process_stratum_target::stabilize_threads): ... this.
1934 (process_target::supports_fast_tracepoints): Rename as ...
1935 (process_stratum_target::supports_fast_tracepoints): ... this.
1936 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
1937 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
1938 (process_target::emit_ops): Rename as ...
1939 (process_stratum_target::emit_ops): ... this.
1940 (process_target::supports_disable_randomization): Rename as ...
1941 (process_stratum_target::supports_disable_randomization): ... this.
1942 (process_target::supports_qxfer_libraries_svr4): Rename as ...
1943 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
1944 (process_target::qxfer_libraries_svr4): Rename as ...
1945 (process_stratum_target::qxfer_libraries_svr4): ... this.
1946 (process_target::supports_agent): Rename as ...
1947 (process_stratum_target::supports_agent): ... this.
1948 (process_target::enable_btrace): Rename as ...
1949 (process_stratum_target::enable_btrace): ... this.
1950 (process_target::disable_btrace): Rename as ...
1951 (process_stratum_target::disable_btrace): ... this.
1952 (process_target::read_btrace): Rename as ...
1953 (process_stratum_target::read_btrace): ... this.
1954 (process_target::read_btrace_conf): Rename as ...
1955 (process_stratum_target::read_btrace_conf): ... this.
1956 (process_target::supports_range_stepping): Rename as ...
1957 (process_stratum_target::supports_range_stepping): ... this.
1958 (process_target::supports_pid_to_exec_file): Rename as ...
1959 (process_stratum_target::supports_pid_to_exec_file): ... this.
1960 (process_target::pid_to_exec_file): Rename as ...
1961 (process_stratum_target::pid_to_exec_file): ... this.
1962 (process_target::supports_multifs): Rename as ...
1963 (process_stratum_target::supports_multifs): ... this.
1964 (process_target::multifs_open): Rename as ...
1965 (process_stratum_target::multifs_open): ... this.
1966 (process_target::multifs_unlink): Rename as ...
1967 (process_stratum_target::multifs_unlink): ... this.
1968 (process_target::multifs_readlink): Rename as ...
1969 (process_stratum_target::multifs_readlink): ... this.
1970 (process_target::breakpoint_kind_from_pc): Rename as ...
1971 (process_stratum_target::breakpoint_kind_from_pc): ... this.
1972 (process_target::breakpoint_kind_from_current_state): Rename as ...
1973 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
1974 (process_target::thread_name): Rename as ...
1975 (process_stratum_target::thread_name): ... this.
1976 (process_target::thread_handle): Rename as ...
1977 (process_stratum_target::thread_handle): ... this.
1978 (process_target::supports_software_single_step): Rename as ...
1979 (process_stratum_target::supports_software_single_step): ... this.
1980 (process_target::supports_catch_syscall): Rename as ...
1981 (process_stratum_target::supports_catch_syscall): ... this.
1982 (process_target::get_ipa_tdesc_idx): Rename as ...
1983 (process_stratum_target::get_ipa_tdesc_idx): ... this.
1985 2020-02-20 Pedro Alves <palves@redhat.com>
1987 * target.cc (set_target_ops): Simply copy the given target pointer
1988 instead of creating a copy of the pointed object.
1990 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1992 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
1995 * target.h (struct process_stratum_target): Remove the target op.
1996 (class process_target): Add the target op.
1997 (target_get_ipa_tdesc_idx): Update the macro.
1998 * target.cc (process_target::get_ipa_tdesc_idx): Define.
2000 Update the derived classes and callers below.
2002 * linux-low.cc (linux_target_ops): Update.
2003 (linux_get_ipa_tdesc_idx): Turn into ...
2004 (linux_process_target::get_ipa_tdesc_idx): ... this.
2005 * linux-low.h (class linux_process_target): Update.
2006 * lynx-low.cc (lynx_target_ops): Update.
2007 * nto-low.cc (nto_target_ops): Update.
2008 * win32-low.cc (win32_target_ops): Update.
2010 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2012 Turn process_stratum_target's supports_catch_syscall op into a
2013 method of process_target.
2015 * target.h (struct process_stratum_target): Remove the target op.
2016 (class process_target): Add the target op.
2017 (target_supports_catch_syscall): Update the macro.
2018 * target.cc (process_target::supports_catch_syscall): Define.
2020 Update the derived classes and callers below.
2022 * linux-low.cc (linux_target_ops): Update.
2023 (linux_supports_catch_syscall): Turn into ...
2024 (linux_process_target::supports_catch_syscall): ... this.
2025 * linux-low.h (class linux_process_target): Update.
2026 * lynx-low.cc (lynx_target_ops): Update.
2027 * nto-low.cc (nto_target_ops): Update.
2028 * win32-low.cc (win32_target_ops): Update.
2030 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2032 Turn process_stratum_target's supports_software_single_step op
2033 into a method of process_target.
2035 * target.h (struct process_stratum_target): Remove the target op.
2036 (class process_target): Add the target op.
2037 (target_supports_software_single_step): Update the macro.
2038 * target.cc (process_target::supports_software_single_step): Define.
2040 Update the derived classes and callers below.
2042 * linux-low.cc (linux_target_ops): Update.
2043 (linux_supports_software_single_step): Turn into ...
2044 (linux_process_target::supports_software_single_step): ... this.
2045 * linux-low.h (class linux_process_target): Update.
2046 * lynx-low.cc (lynx_target_ops): Update.
2047 * nto-low.cc (nto_target_ops): Update.
2048 * win32-low.cc (win32_target_ops): Update.
2050 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2052 Turn process_stratum_target's thread_name and thread_handle ops
2053 into methods of process_target.
2055 * target.h (struct process_stratum_target): Remove the target ops.
2056 (class process_target): Add the target ops.
2057 (target_thread_name): Update the macro.
2058 (target_thread_handle): Update the macro.
2059 * target.cc (process_target::thread_name): Define.
2060 (process_target::thread_handle): Define.
2062 Update the derived classes and callers below.
2064 * linux-low.cc (linux_target_ops): Update.
2065 (linux_process_target::thread_name): Define.
2066 (linux_process_target::thread_handle): Define.
2067 * linux-low.h (class linux_process_target): Update.
2068 * lynx-low.cc (lynx_target_ops): Update.
2069 * nto-low.cc (nto_target_ops): Update.
2070 * win32-low.cc (win32_target_ops): Update.
2072 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2074 Turn process_stratum_target's breakpoint_kind_from_pc,
2075 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
2076 ops into methods of process_target.
2078 * target.h (struct process_stratum_target): Remove the target op.
2079 (class process_target): Add the target op.
2080 (target_breakpoint_kind_from_pc): Update the macro.
2081 (target_breakpoint_kind_from_current_state): Update the macro.
2082 (default_breakpoint_kind_from_pc): Remove declaration.
2083 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
2084 (process_target::breakpoint_kind_from_pc): ... this.
2085 (process_target::breakpoint_kind_from_current_state): Define.
2087 Update the derived classes and callers below.
2089 * mem-break.cc (bp_size): Update.
2090 (bp_opcode): Update.
2091 * linux-low.cc (linux_target_ops): Update.
2092 (linux_wait_1): Update.
2093 (linux_breakpoint_kind_from_pc): Turn into ...
2094 (linux_process_target::breakpoint_kind_from_pc): ... this.
2095 (linux_sw_breakpoint_from_kind): Turn into ...
2096 (linux_process_target::sw_breakpoint_from_kind): ... this.
2097 (linux_breakpoint_kind_from_current_state): Turn into ...
2098 (linux_process_target::breakpoint_kind_from_current_state): ... this.
2099 * linux-low.h (class linux_process_target): Update.
2100 * lynx-low.cc (lynx_target_ops): Update.
2101 (lynx_process_target::sw_breakpoint_from_kind): Define.
2102 * lynx-low.h (class lynx_process_target): Update.
2103 * nto-low.cc (nto_target_ops): Update.
2104 (nto_sw_breakpoint_from_kind): Turn into ...
2105 (nto_process_target::sw_breakpoint_from_kind): ... this.
2106 * nto-low.h (class nto_process_target): Update.
2107 * win32-low.cc (win32_target_ops): Update.
2108 (win32_sw_breakpoint_from_kind): Turn into ...
2109 (win32_process_target::sw_breakpoint_from_kind): ... this.
2110 * win32-low.h (class win32_process_target): Update.
2112 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2114 Turn process_stratum_target's multifs_open, multifs_readlink,
2115 multifs_unlink ops into methods of process_target.
2117 * target.h (struct process_stratum_target): Remove the target ops.
2118 (class process_target): Add the target ops. Also add
2120 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
2122 (process_target::supports_multifs): Define.
2123 (process_target::multifs_open): Define.
2124 (process_target::multifs_readlink): Define.
2125 (process_target::multifs_unlink): Define.
2127 Update the derived classes and callers below.
2129 * hostio.cc (handle_setfs): Update.
2130 (handle_open): Update.
2131 (handle_unlink): Update.
2132 (handle_readlink): Update.
2133 * linux-low.cc (linux_target_ops): Update.
2134 (linux_process_target::supports_multifs): Define.
2135 (linux_process_target::multifs_open): Define.
2136 (linux_process_target::multifs_readlink): Define.
2137 (linux_process_target::multifs_unlink): Define.
2138 * linux-low.h (class linux_process_target): Update.
2139 * lynx-low.cc (lynx_target_ops): Update.
2140 * nto-low.cc (nto_target_ops): Update.
2141 * win32-low.cc (win32_target_ops): Update.
2143 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2145 Turn process_stratum_target's pid_to_exec_file op into a method
2148 * target.h (struct process_stratum_target): Remove the target op.
2149 (class process_target): Add the target op. Also add
2150 'supports_pid_to_exec_file'.
2151 * target.cc (process_target::pid_to_exec_file): Define.
2152 (process_target::supports_pid_to_exec_file): Define.
2154 Update the derived classes and callers below.
2156 * server.cc (handle_qxfer_exec_file): Update.
2157 (handle_query): Update.
2158 * linux-low.cc (linux_target_ops): Update.
2159 (linux_process_target::supports_pid_to_exec_file): Define.
2160 (linux_process_target::pid_to_exec_file): Define.
2161 * linux-low.h (class linux_process_target): Update.
2162 * lynx-low.cc (lynx_target_ops): Update.
2163 * nto-low.cc (nto_target_ops): Update.
2164 * win32-low.cc (win32_target_ops): Update.
2166 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2168 Turn process_stratum_target's supports_range_stepping op into a
2169 method of process_target.
2171 * target.h (struct process_stratum_target): Remove the target op.
2172 (class process_target): Add the target op.
2173 (target_supports_range_stepping): Update the macro.
2174 * target.cc (process_target::supports_range_stepping): Define.
2176 Update the derived classes and callers below.
2178 * linux-low.cc (linux_target_ops): Update.
2179 (linux_supports_range_stepping): Turn into ...
2180 (linux_process_target::supports_range_stepping): ... this.
2181 * linux-low.h (class linux_process_target): Update.
2182 * lynx-low.cc (lynx_target_ops): Update.
2183 * nto-low.cc (nto_target_ops): Update.
2184 * win32-low.cc (win32_target_ops): Update.
2186 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2188 Turn process_stratum_target's btrace-related ops (enable_btrace,
2189 disable_btrace, read_btrace, read_btrace_conf) into methods of
2192 * target.h (struct process_stratum_target): Remove the target ops.
2193 (class process_target): Add the target ops.
2194 (target_enable_btrace): Update.
2195 (target_disable_btrace): Update.
2196 (target_read_btrace): Update.
2197 (target_read_btrace_conf): Update.
2198 * target.cc (process_target::enable_btrace): Define.
2199 (process_target::disable_btrace): Define.
2200 (process_target::read_btrace): Define.
2201 (process_target::read_btrace_conf): Define.
2203 Update the derived classes and callers below.
2205 * linux-low.cc (linux_target_ops): Update.
2206 (linux_process_target:enable_btrace): Define as a wrapper around
2207 linux_enable_btrace.
2208 (linux_low_disable_btrace): Turn into ...
2209 (linux_process_target::disable_btrace): ... this.
2210 (linux_low_read_btrace): Turn into ...
2211 (linux_process_target::read_btrace): ... this.
2212 (linux_low_btrace_conf): Turn into ...
2213 (linux_process_target::read_btrace_conf): ... this.
2214 * linux-low.h (class linux_process_target): Update.
2215 * lynx-low.cc (lynx_target_ops): Update.
2216 * nto-low.cc (nto_target_ops): Update.
2217 * win32-low.cc (win32_target_ops): Update.
2219 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2221 Turn process_stratum_target's supports_agent op into a method of
2224 * target.h (struct process_stratum_target): Remove the target op.
2225 (class process_target): Add the target op.
2226 (target_supports_agent): Update the macro.
2227 * target.cc (process_target::supports_agent): Define.
2229 Update the derived classes and callers below.
2231 * linux-low.cc (linux_target_ops): Update.
2232 (linux_supports_agent): Turn into ...
2233 (linux_process_target::supports_agent): ... this.
2234 * linux-low.h (class linux_process_target): Update.
2235 * lynx-low.cc (lynx_target_ops): Update.
2236 * nto-low.cc (nto_target_ops): Update.
2237 * win32-low.cc (win32_target_ops): Update.
2239 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2241 Turn process_stratum_target's qxfer_libraries_svr4 op into a
2242 method of process_target.
2244 * target.h (struct process_stratum_target): Remove the target op.
2245 (class process_target): Add the target op. Also add
2246 'supports_qxfer_libraries_svr4'.
2247 * target.cc (process_target::qxfer_libraries_svr4): Define.
2248 (process_target::supports_qxfer_libraries_svr4): Define.
2250 Update the derived classes and callers below.
2252 * server.cc (handle_qxfer_libraries_svr4): Update.
2253 (handle_query): Update.
2254 * linux-low.cc (linux_target_ops): Update.
2255 (linux_process_target::supports_qxfer_libraries_svr4): Define.
2256 (linux_qxfer_libraries_svr4): Turn into ...
2257 (linux_process_target::qxfer_libraries_svr4): ... this.
2258 * linux-low.h (class linux_process_target): Update.
2259 * lynx-low.cc (lynx_target_ops): Update.
2260 * nto-low.cc (nto_target_ops): Update.
2261 * win32-low.cc (win32_target_ops): Update.
2263 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2265 Turn process_stratum_target's supports_disable_randomization op
2266 into a method of process_target.
2268 * target.h (struct process_stratum_target): Remove the target op.
2269 (class process_target): Add the target op.
2270 (target_supports_disable_randomization): Update the macro.
2271 * target.cc (process_target::supports_disable_randomization): Define.
2273 Update the derived classes and callers below.
2275 * linux-low.cc (linux_target_ops): Update.
2276 (linux_supports_disable_randomization): Turn into ...
2277 (linux_process_target::supports_disable_randomization): ... this.
2278 * linux-low.h (class linux_process_target): Update.
2279 * lynx-low.cc (lynx_target_ops): Update.
2280 * nto-low.cc (nto_target_ops): Update.
2281 * win32-low.cc (win32_target_ops): Update.
2283 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2285 Turn process_stratum_target's emit_ops op into a method of
2288 * target.h (struct process_stratum_target): Remove the target op.
2289 (class process_target): Add the target op.
2290 (target_emit_ops): Update the macro.
2291 * target.cc (process_target::emit_ops): Define.
2293 Update the derived classes and callers below.
2295 * linux-low.cc (linux_target_ops): Update.
2296 (linux_emit_ops): Turn into ...
2297 (linux_process_target::emit_ops): ... this.
2298 * linux-low.h (class linux_process_target): Update.
2299 * lynx-low.cc (lynx_target_ops): Update.
2300 * nto-low.cc (nto_target_ops): Update.
2301 * win32-low.cc (win32_target_ops): Update.
2303 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2305 Turn process_stratum_target's install_fast_tracepoint_jump_pad
2306 and get_min_fast_tracepoint_insn_len ops into methods of
2309 * target.h (struct process_stratum_target): Remove the target ops.
2310 (class process_target): Add the target ops. Also add
2311 'supports_fast_tracepoints'.
2312 (target_supports_fast_tracepoints): Update the macro.
2313 (target_get_min_fast_tracepoint_insn_len): Update the macro.
2314 (install_fast_tracepoint_jump_pad): Update and rename the macro
2316 (target_install_fast_tracepoint_jump_pad): ... this.
2317 * target.cc (process_target::supports_fast_tracepoints): Define.
2318 (process_target::install_fast_tracepoint_jump_pad): Define.
2319 (process_target::get_min_fast_tracepoint_insn_len): Define.
2321 Update the derived classes and callers below.
2323 * tracepoint.cc (install_fast_tracepoint): Update.
2324 * linux-low.cc (linux_target_ops): Update.
2325 (linux_process_target::supports_fast_tracepoints): Define.
2326 (linux_install_fast_tracepoint_jump_pad): Turn into ...
2327 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
2328 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
2329 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
2330 * linux-low.h (class linux_process_target): Update.
2331 * lynx-low.cc (lynx_target_ops): Update.
2332 * nto-low.cc (nto_target_ops): Update.
2333 * win32-low.cc (win32_target_ops): Update.
2335 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2337 Turn process_stratum_target's stabilize_threads op into a
2338 method of process_target.
2340 * target.h (struct process_stratum_target): Remove the target op.
2341 (class process_target): Add the target op.
2342 (target_stabilize_threads): Update the macro.
2343 * target.cc (process_target::stabilize_threads): Define.
2345 Update the derived classes and callers below.
2347 * server.cc (handle_status): Update.
2348 * tracepoint.cc (cmd_qtdp): Update.
2349 (cmd_qtstart): Update.
2350 * linux-low.cc (linux_target_ops): Update.
2351 (linux_stabilize_threads): Turn into ...
2352 (linux_process_target::stabilize_threads): ... this.
2353 (linux_wait_1): Update.
2354 * linux-low.h (class linux_process_target): Update.
2355 * lynx-low.cc (lynx_target_ops): Update.
2356 * nto-low.cc (nto_target_ops): Update.
2357 * win32-low.cc (win32_target_ops): Update.
2359 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2361 Turn process_stratum_target's pause_all and unpause_all ops
2362 into methods of process_target.
2364 * target.h (struct process_stratum_target): Remove the target ops.
2365 (class process_target): Add the target ops.
2366 (pause_all): Update the macro and rename to...
2367 (target_pause_all): ... this.
2368 (unpause_all): Update the macro and rename to...
2369 (target_unpause_all): ... this.
2370 * target.cc (process_target::pause_all): Define.
2371 (process_target::unpause_all): Define.
2373 Update the derived classes and callers below.
2375 * server.cc (handle_status): Update.
2376 * tracepoint.cc (clear_installed_tracepoints): Update.
2378 (cmd_qtstart): Update.
2379 (stop_tracing): Update.
2380 (cmd_qtstatus): Update.
2381 (upload_fast_traceframes): Update.
2382 (run_inferior_command): Update.
2383 * linux-low.cc (linux_target_ops): Update.
2384 (linux_pause_all): Turn into ...
2385 (linux_process_target::pause_all): ... this.
2386 (linux_unpause_all): Turn into ...
2387 (linux_process_target::unpause_all): ... this.
2388 (linux_process_target::prepare_to_access_memory): Update.
2389 (linux_process_target::done_accessing_memory): Update.
2390 * linux-low.h (class linux_process_target): Update.
2391 * lynx-low.cc (lynx_target_ops): Update.
2392 * nto-low.cc (nto_target_ops): Update.
2393 * win32-low.cc (win32_target_ops): Update.
2395 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2397 Turn process_stratum_target's get_tib_address op into a method of
2400 * target.h (struct process_stratum_target): Remove the target op.
2401 (class process_target): Add the target op. Also add
2402 'supports_get_tib_address'.
2403 * target.cc (process_target::get_tib_address): Define.
2404 (process_target::supports_get_tib_address): Define.
2406 Update the derived classes and callers below.
2408 * server.cc (handle_query): Update.
2409 * linux-low.cc (win32_target_ops): Update.
2410 * lynx-low.cc (lynx_target_ops): Update.
2411 * nto-low.cc (nto_target_ops): Update.
2412 * win32-low.cc (win32_target_ops): Update.
2413 (win32_process_target::supports_get_tib_address): Define.
2414 (win32_get_tib_address): Turn into ...
2415 (win32_process_target::get_tib_address): ... this.
2416 * win32-low.h (class win32_process_target): Update.
2418 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2420 Turn process_stratum_target's thread_stopped op into a method of
2423 * target.h (struct process_stratum_target): Remove the target op.
2424 (class process_target): Add the target op. Also add
2425 'supports_thread_stopped'.
2426 (target_thread_stopped): Update the macro.
2427 * target.cc (process_target::thread_stopped): Define.
2428 (process_target::supports_thread_stopped): Define.
2429 (prepare_to_access_memory): Update.
2431 Update the derived classes and callers below.
2433 * server.cc (queue_stop_reply_callback): Update.
2434 * linux-low.cc (linux_target_ops): Update.
2435 (linux_process_target::supports_thread_stopped): Define.
2436 (linux_thread_stopped): Turn into ...
2437 (linux_process_target::thread_stopped): ... this.
2438 * linux-low.h (class linux_process_target): Update.
2439 * lynx-low.cc (lynx_target_ops): Update.
2440 * nto-low.cc (nto_target_ops): Update.
2441 * win32-low.cc (win32_target_ops): Update.
2443 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2445 Turn process_stratum_target's read_pc and write_pc ops into
2446 methods of process_target.
2448 * target.h (struct process_stratum_target): Remove the target ops.
2449 (class process_target): Add the target ops.
2450 * target.cc (process_target::read_pc): Define.
2451 (process_target::write_pc): Define.
2453 Update the derived classes and callers below.
2455 * regcache.cc (regcache_read_pc): Update.
2456 (regcache_write_pc): Update.
2457 * linux-low.cc (linux_target_ops): Update.
2458 (linux_read_pc): Turn into ...
2459 (linux_process_target::read_pc): ... this.
2460 (linux_write_pc): Turn into ...
2461 (linux_process_target::write_pc): ... this.
2462 * linux-low.h (class linux_process_target): Update.
2463 * lynx-low.cc (lynx_target_ops): Update.
2464 * nto-low.cc (nto_target_ops): Update.
2465 * win32-low.cc (win32_target_ops): Update.
2467 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2469 Turn process_stratum_target's supports_tracepoints op into a
2470 method of process_target.
2472 * target.h (struct process_stratum_target): Remove the target op.
2473 (class process_target): Add the target op.
2474 (target_supports_tracepoints): Update the macro.
2475 * target.cc (process_target::supports_tracepoints): Define.
2477 Update the derived classes and callers below.
2479 * linux-low.cc (linux_target_ops): Update.
2480 (linux_supports_tracepoints): Turn into ...
2481 (linux_process_target::supports_tracepoints): ... this.
2482 * linux-low.h (class linux_process_target): Update.
2483 * lynx-low.cc (lynx_target_ops): Update.
2484 * nto-low.cc (nto_target_ops): Update.
2485 * win32-low.cc (win32_target_ops): Update.
2487 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2489 Turn process_stratum_target's process_qsupported op into a method
2492 * target.h (struct process_stratum_target): Remove the target op.
2493 (class process_target): Add the target op.
2494 (target_process_qsupported): Update the macro.
2495 * target.cc (process_target::process_qsupported): Define.
2497 Update the derived classes and callers below.
2499 * linux-low.cc (linux_target_ops): Update.
2500 (linux_process_qsupported): Turn into ...
2501 (linux_process_target::process_qsupported): ... this.
2502 * linux-low.h (class linux_process_target): Update.
2503 * lynx-low.cc (lynx_target_ops): Update.
2504 * nto-low.cc (nto_target_ops): Update.
2505 * win32-low.cc (win32_target_ops): Update.
2507 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2509 Turn process_stratum_target's read_loadmap op into a method of
2512 * target.h (struct process_stratum_target): Remove the target op.
2513 (class process_target): Add the target op. Also add
2514 'supports_read_loadmap'.
2515 * target.cc (process_target::read_loadmap): Define.
2516 (process_target::supports_read_loadmap): Define.
2518 Update the derived classes and callers below.
2520 * server.cc (handle_qxfer_fdpic): Update.
2521 (handle_query): Update.
2522 * linux-low.cc (linux_target_ops): Update.
2523 (linux_process_target::supports_read_loadmap): Define.
2524 (linux_read_loadmap): Turn into ...
2525 (linux_process_target::read_loadmap): ... this.
2526 * linux-low.h (class linux_process_target): Update.
2527 * lynx-low.cc (lynx_target_ops): Update.
2528 * nto-low.cc (nto_target_ops): Update.
2529 * win32-low.cc (win32_target_ops): Update.
2531 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2533 Turn process_stratum_target's core_of_thread op into a method of
2536 * target.h (struct process_stratum_target): Remove the target op.
2537 (class process_target): Add the target op.
2538 (target_core_of_thread): Update the macro.
2539 * target.cc (process_target::core_of_thread): Define.
2541 Update the derived classes and callers below.
2543 * linux-low.cc (linux_target_ops): Update.
2544 (linux_process_target::core_of_thread): Define.
2545 * linux-low.h (class linux_process_target): Update.
2546 * lynx-low.cc (lynx_target_ops): Update.
2547 * nto-low.cc (nto_target_ops): Update.
2548 * win32-low.cc (win32_target_ops): Update.
2550 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2552 Turn process_stratum_target's handle_monitor_command op into a
2553 method of process_target.
2555 * target.h (struct process_stratum_target): Remove the target op.
2556 (class process_target): Add the target op.
2557 (target_handle_monitor_command): Update the macro.
2558 * target.cc (process_target::handle_monitor_command): Define.
2560 Update the derived classes and callers below.
2562 * server.cc (handle_query): Update.
2563 * linux-low.cc (linux_target_ops): Update.
2564 (linux_process_target::handle_monitor_command): Define.
2565 * linux-low.h (class linux_process_target): Update.
2566 * lynx-low.cc (lynx_target_ops): Update.
2567 * nto-low.cc (nto_target_ops): Update.
2568 * win32-low.cc (win32_target_ops): Update.
2570 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2572 Turn process_stratum_target's handle_new_gdb_connection op into a
2573 method of process_target.
2575 * target.h (struct process_stratum_target): Remove the target op.
2576 (class process_target): Add the target op.
2577 (target_handle_new_gdb_connection): Update the macro.
2578 * target.cc (process_target::handle_new_gdb_connection): Define.
2580 Update the derived classes and callers below.
2582 * linux-low.cc (linux_target_ops): Update.
2583 (linux_handle_new_gdb_connection): Turn into ...
2584 (linux_process_target::handle_new_gdb_connection): ... this.
2585 * linux-low.h (class linux_process_target): Update.
2586 * lynx-low.cc (lynx_target_ops): Update.
2587 * nto-low.cc (nto_target_ops): Update.
2588 * win32-low.cc (win32_target_ops): Update.
2590 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2592 Turn process_stratum_target's supports_fork_events,
2593 supports_vfork_events, and supports_exec_events ops into methods
2596 * target.h (struct process_stratum_target): Remove the target ops.
2597 (class process_target): Add the target ops.
2598 (target_supports_fork_events): Update the macro.
2599 (target_supports_vfork_events): Update the macro.
2600 (target_supports_exec_events): Update the macro.
2601 * target.cc (process_target::supports_fork_events): Define.
2602 (process_target::supports_vfork_events): Define.
2603 (process_target::supports_exec_events): Define.
2605 Update the derived classes and callers below.
2607 * linux-low.cc (linux_target_ops): Update.
2608 (linux_supports_fork_events): Turn into ...
2609 (linux_process_target::supports_fork_events): ... this.
2610 (linux_supports_vfork_events): Turn into ...
2611 (linux_process_target::supports_vfork_events): ... this.
2612 (linux_supports_exec_events): Turn into ...
2613 (linux_process_target::supports_exec_events): ... this.
2614 * linux-low.h (class linux_process_target): Update.
2615 * lynx-low.cc (lynx_target_ops): Update.
2616 * nto-low.cc (nto_target_ops): Update.
2617 * win32-low.cc (win32_target_ops): Update.
2619 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2621 Turn process_stratum_target's supports_multi_process op into a
2622 method of process_target.
2624 * target.h (struct process_stratum_target): Remove the target op.
2625 (class process_target): Add the target op.
2626 * target.cc (process_target::supports_multi_process): Define.
2627 (target_supports_multi_process): Update.
2629 Update the derived classes and callers below.
2631 * linux-low.cc (linux_target_ops): Update.
2632 (linux_supports_multi_process): Turn into ...
2633 (linux_process_target::supports_multi_process): ... this.
2634 * linux-low.h (class linux_process_target): Update.
2635 * lynx-low.cc (lynx_target_ops): Update.
2636 * nto-low.cc (nto_target_ops): Update.
2637 * win32-low.cc (win32_target_ops): Update.
2639 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2641 Turn process_stratum_target's supports_non_stop, async, and
2642 start_non_stop ops into methods of process_target.
2644 * target.h (struct process_stratum_target): Remove the target ops.
2645 (class process_target): Add the target ops.
2646 (target_supports_non_stop): Update the macro.
2647 (target_async): Update the macro.
2648 (start_non_stop): Remove declaration.
2649 * target.cc (process_target::supports_non_stop): Define.
2650 (process_target::async): Define.
2651 (process_target::start_non_stop): Define.
2652 (start_non_stop): Remove.
2654 Update the derived classes and callers below.
2656 * server.cc (handle_qxfer_siginfo): Update.
2657 (handle_query): Update.
2658 * linux-low.cc (linux_target_ops): Update.
2659 (linux_supports_non_stop): Turn into ...
2660 (linux_process_target::supports_non_stop): ... this.
2661 (linux_async): Turn into ...
2662 (linux_process_target::async): ... this.
2663 (linux_start_non_stop): Turn into ...
2664 (linux_process_target::start_non_stop): ... this.
2665 * linux-low.h (class linux_process_target): Update.
2666 * lynx-low.cc (lynx_target_ops): Update.
2667 * nto-low.cc (nto_target_ops): Update.
2668 (nto_supports_non_stop): Remove; rely on the default behavior
2670 * win32-low.cc (win32_target_ops): Update.
2672 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2674 Turn process_stratum_target's qxfer_siginfo op into a method of
2677 * target.h (struct process_stratum_target): Remove the target op.
2678 (class process_target): Add the target op. Also add
2679 'supports_qxfer_siginfo'.
2680 * target.cc (process_target::qxfer_siginfo): Define.
2681 (process_target::supports_qxfer_siginfo): Define.
2683 Update the derived classes and callers below.
2685 * server.cc (handle_qxfer_siginfo): Update.
2686 (handle_query): Update.
2687 * linux-low.cc (linux_target_ops): Update.
2688 (linux_process_target::supports_qxfer_siginfo): Define.
2689 (linux_xfer_siginfo): Turn into ...
2690 (linux_process_target::qxfer_siginfo): ... this.
2691 * linux-low.h (class linux_process_target): Update.
2692 * lynx-low.cc (lynx_target_ops): Update.
2693 * nto-low.cc (nto_target_ops): Update.
2694 * win32-low.cc (win32_target_ops): Update.
2696 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2698 Turn process_stratum_target's qxfer_osdata op into a method of
2701 * target.h (struct process_stratum_target): Remove the target op.
2702 (class process_target): Add the target op. Also add
2703 'supports_qxfer_osdata'.
2704 * target.cc (process_target::qxfer_osdata): Define.
2705 (process_target::supports_qxfer_osdata): Define.
2707 Update the derived classes and callers below.
2709 * server.cc (handle_qxfer_osdata): Update.
2710 (handle_query): Update.
2711 * linux-low.cc (linux_target_ops): Update.
2712 (linux_process_target::supports_qxfer_osdata): Define.
2713 (linux_qxfer_osdata): Turn into ...
2714 (linux_process_target::qxfer_osdata): ... this.
2715 * linux-low.h (class linux_process_target): Update.
2716 * lynx-low.cc (lynx_target_ops): Update.
2717 * nto-low.cc (nto_target_ops): Update.
2718 * win32-low.cc (win32_target_ops): Update.
2720 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2722 Turn process_stratum_target's hostio_last_error op into a
2723 method of process_target.
2725 * target.h (struct process_stratum_target): Remove the target op.
2726 (class process_target): Add the target op.
2727 * target.cc: Add "hostio.h" to includes.
2728 (process_target::hostio_last_error): Define.
2730 Update the derived classes and callers below.
2732 * hostio.cc (hostio_error): Update.
2733 * linux-low.cc: Remove "hostio.h" from includes.
2734 (linux_target_ops): Update.
2735 * lynx-low.cc (lynx_target_ops): Update.
2736 * nto-low.cc (nto_target_ops): Update.
2737 * win32-low.h (class win32_process_target): Update.
2738 * win32-low.cc (win32_target_ops): Update.
2739 (wince_hostio_last_error): Turn into ...
2740 (win32_process_target::hostio_last_error): ... this.
2742 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2744 Turn process_stratum_target's get_tls_address op into a method of
2747 * target.h (struct process_stratum_target): Remove the target op.
2748 (class process_target): Add the target op. Also add
2749 'supports_get_tls_address'.
2750 * target.cc (process_target::get_tls_address): Define.
2751 (process_target::supports_get_tls_address): Define.
2753 Update the derived classes and callers below.
2755 * server.cc (handle_query): Update.
2756 * linux-low.cc (linux_target_ops): Update.
2757 (linux_process_target::supports_get_tls_address): Define.
2758 (linux_process_target::get_tls_address): Define.
2759 * linux-low.h (class linux_process_target): Update.
2760 * lynx-low.cc (lynx_target_ops): Update.
2761 * nto-low.cc (nto_target_ops): Update.
2762 * win32-low.cc (win32_target_ops): Update.
2764 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2766 Turn process_stratum_target's read_offsets op into a method of
2769 * target.h (struct process_stratum_target): Remove the target op.
2770 (class process_target): Add the target op. Also add
2771 'supports_read_offsets'.
2772 * target.cc (process_target::read_offsets): Define.
2773 (process_target::supports_read_offsets): Define.
2775 Update the derived classes and callers below.
2777 * server.cc (handle_query): Update.
2778 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
2779 (linux_target_ops): Update.
2780 (linux_process_target::supports_read_offsets): Define.
2781 (linux_read_offsets): Turn into ...
2782 (linux_process_target::read_offsets): ... this.
2783 * linux-low.h (class linux_process_target): Update.
2784 * lynx-low.cc (lynx_target_ops): Update.
2785 * nto-low.cc (nto_target_ops): Update.
2786 * win32-low.cc (win32_target_ops): Update.
2788 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2790 Turn process_stratum_target's stopped_by_watchpoint and
2791 stopped_data_address ops into methods of process_target.
2793 * target.h (struct process_stratum_target): Remove the target ops.
2794 (class process_target): Add the target ops.
2795 * target.cc (process_target::stopped_by_watchpoint): Define.
2796 (process_target::stopped_data_address): Define.
2798 Update the derived classes and callers below.
2800 * remote-utils.cc (prepare_resume_reply): Update.
2801 * linux-low.cc (linux_target_ops): Update.
2802 (linux_stopped_by_watchpoint): Turn into ...
2803 (linux_process_target::stopped_by_watchpoint): ... this.
2804 (linux_stopped_data_address): Turn into ...
2805 (linux_process_target::stopped_data_address): ... this.
2806 * linux-low.h (class linux_process_target): Update.
2807 * lynx-low.cc (lynx_target_ops): Update.
2808 * nto-low.cc (nto_target_ops): Update.
2809 (nto_stopped_by_watchpoint): Turn into ...
2810 (nto_process_target::stopped_by_watchpoint): ... this.
2811 (nto_stopped_data_address): Turn into ...
2812 (nto_process_target::stopped_data_address): ... this.
2813 * nto-low.h (class nto_process_target): Update.
2814 * win32-low.cc (win32_target_ops): Update.
2815 (win32_stopped_by_watchpoint): Turn into ...
2816 (win32_process_target::stopped_by_watchpoint): ... this.
2817 (win32_stopped_data_address): Turn into ...
2818 (win32_process_target::stopped_data_address): ... this.
2819 * win32-low.h (class win32_process_target): Update.
2821 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2823 Turn process_stratum_target's supports_hardware_single_step op into
2824 a method of process_target.
2826 * target.h (struct process_stratum_target): Remove the target op.
2827 (class process_target): Add the target op.
2828 (target_supports_hardware_single_step): Update the macro.
2829 (target_can_do_hardware_single_step): Remove declaration.
2830 * target.cc (process_target::supports_hardware_single_step): Define.
2831 (target_can_do_hardware_single_step): Remove.
2833 Update the derived classes and callers below.
2835 * linux-low.h (class linux_process_target): Update.
2836 * linux-low.cc (linux_target_ops): Update.
2837 (linux_supports_hardware_single_step): Turn into ...
2838 (linux_process_target::supports_hardware_single_step): ... this.
2839 * lynx-low.h (class lynx_process_target): Update.
2840 * lynx-low.cc (lynx_target_ops): Update.
2841 (lynx_process_target::supports_hardware_single_step): Define.
2842 * nto-low.h (class nto_process_target): Update.
2843 * nto-low.cc (nto_target_ops): Update.
2844 (nto_process_target::supports_hardware_single_step): Define.
2845 * win32-low.h (class win32_process_target): Update.
2846 * win32-low.cc (win32_target_ops): Update.
2847 (win32_process_target::supports_hardware_single_step): Define.
2849 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2851 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
2852 ops into methods of process_target.
2854 * target.h (struct process_stratum_target): Remove the target ops.
2855 (class process_target): Add the target ops.
2856 (target_stopped_by_hw_breakpoint): Update the macro.
2857 (target_supports_stopped_by_hw_breakpoint): Update the macro.
2858 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
2859 (process_target::supports_stopped_by_hw_breakpoint): Define.
2861 Update the derived classes and callers below.
2863 * linux-low.cc (linux_target_ops): Update.
2864 (linux_stopped_by_hw_breakpoint): Turn into ...
2865 (linux_process_target::stopped_by_hw_breakpoint): ... this.
2866 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
2867 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
2868 * linux-low.h (class linux_process_target): Update.
2869 * lynx-low.cc (lynx_target_ops): Update.
2870 * nto-low.cc (nto_target_ops): Update.
2871 * win32-low.cc (win32_target_ops): Update.
2873 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2875 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
2876 ops into methods of process_target.
2878 * target.h (struct process_stratum_target): Remove the target ops.
2879 (class process_target): Add the target ops.
2880 (target_stopped_by_sw_breakpoint): Update the macro.
2881 (target_supports_stopped_by_sw_breakpoint): Update the macro.
2882 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
2883 (process_target::supports_stopped_by_sw_breakpoint): Define.
2885 Update the derived classes and callers below.
2887 * linux-low.cc (linux_target_ops): Update.
2888 (linux_stopped_by_sw_breakpoint): Turn into ...
2889 (linux_process_target::stopped_by_sw_breakpoint): ... this.
2890 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
2891 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
2892 * linux-low.h (class linux_process_target): Update.
2893 * lynx-low.cc (lynx_target_ops): Update.
2894 * nto-low.cc (nto_target_ops): Update.
2895 * win32-low.cc (win32_target_ops): Update.
2897 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2899 Turn process_stratum_target's insert_point and remove_point ops
2900 into methods of process_target.
2902 * target.h (struct process_stratum_target): Remove the target ops.
2903 (class process_target): Add the target ops.
2904 * target.cc (process_target::insert_point): Define.
2905 (process_target::remove_point): Define.
2907 Update the derived classes and callers below.
2909 * mem-break.cc (set_raw_breakpoint_at): Update.
2910 (delete_raw_breakpoint): Update.
2911 (uninsert_raw_breakpoint): Update.
2912 (reinsert_raw_breakpoint): Update.
2913 * linux-low.cc (linux_target_ops): Update.
2914 (linux_insert_point): Turn into ...
2915 (linux_process_target::insert_point): ... this.
2916 (linux_remove_point): Turn into ...
2917 (linux_process_target::remove_point): ... this.
2918 * linux-low.h (class linux_process_target): Update.
2919 * lynx-low.cc (lynx_target_ops): Update.
2920 * nto-low.cc (nto_target_ops): Update.
2921 (nto_insert_point): Turn into ...
2922 (nto_process_target::insert_point): ... this.
2923 (nto_remove_point): Turn into ...
2924 (nto_process_target::remove_point): ... this.
2925 * nto-low.h (class nto_process_target): Update.
2926 * win32-low.cc (win32_target_ops): Update.
2927 (win32_insert_point): Turn into ...
2928 (win32_process_target::insert_point): ... this.
2929 (win32_remove_point): Turn into ...
2930 (win32_process_target::remove_point): ... this.
2931 * win32-low.h (class win32_process_target): Update.
2933 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2935 Turn process_stratum_target's supports_z_point_type op into a
2936 method of process_target.
2938 * target.h (struct process_stratum_target): Remove the target op.
2939 (class process_target): Add the target op.
2940 * target.cc (process_target::supports_z_point_type): Define.
2942 Update the derived classes and callers below.
2944 * mem-break.cc (z_type_supported): Update.
2945 * linux-low.cc (linux_target_ops): Update.
2946 (linux_supports_z_point_type): Turn into ...
2947 (linux_process_target::supports_z_point_type): ... this.
2948 * linux-low.h (class linux_process_target): Update.
2949 * lynx-low.cc (lynx_target_ops): Update.
2950 * nto-low.cc (nto_target_ops): Update.
2951 (nto_supports_z_point_type): Turn into ...
2952 (nto_process_target::supports_z_point_type): ... this.
2953 * nto-low.h (class nto_process_target): Update.
2954 * win32-low.cc (win32_target_ops): Update.
2955 (win32_supports_z_point_type): Turn into ...
2956 (win32_process_target::supports_z_point_type): ... this.
2957 * win32-low.h (class win32_process_target): Update.
2959 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2961 Turn process_stratum_target's read_auxv op into a method of
2964 * target.h (class process_stratum_target): Remove the target op.
2965 (struct process_target): Add the target op. Also add
2966 'supports_read_auxv'.
2967 * target.cc (process_target::read_auxv): Define.
2968 (process_target::supports_read_auxv): Define.
2970 Update the derived classes and callers below.
2972 * server.cc (handle_qxfer_auxv): Update.
2973 (handle_query): Update.
2974 * linux-low.cc (linux_target_ops): Update.
2975 (linux_process_target::supports_read_auxv): Define.
2976 (linux_read_auxv): Turn into ...
2977 (linux_process_target::read_auxv): ... this.
2978 * linux-low.h (class linux_process_target): Update.
2979 * lynx-low.cc (lynx_target_ops): Update.
2980 * nto-low.cc (nto_target_ops): Update.
2981 (nto_process_target::supports_read_auxv): Define.
2982 (nto_read_auxv): Turn into ...
2983 (nto_process_target::read_auxv): ... this.
2984 * nto-low.h (class nto_process_target): Update.
2985 * win32-low.cc (win32_target_ops): Update.
2987 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2989 Turn process_stratum_target's request_interrupt op into a method of
2992 * target.h (struct process_stratum_target): Remove the target op.
2993 (class process_target): Add the target op.
2995 Update the derived classes and callers below.
2997 * remote-utils.cc (putpkt_binary_1): Update.
2998 (input_interrupt): Update.
3000 * server.cc (handle_v_requests): Update.
3001 * linux-low.cc (linux_target_ops): Update.
3002 (linux_request_interrupt): Turn into ...
3003 (linux_process_target::request_interrupt): ... this.
3004 * linux-low.h (class linux_process_target): Update.
3005 * lynx-low.cc (lynx_target_ops): Update.
3006 (lynx_request_interrupt): Turn into ...
3007 (lynx_process_target::request_interrupt): ... this.
3008 * lynx-low.h (class lynx_process_target): Update.
3009 * nto-low.cc (nto_target_ops): Update.
3010 (nto_request_interrupt): Turn into ...
3011 (nto_process_target::request_interrupt): ... this.
3012 * nto-low.h (class nto_process_target): Update.
3013 * win32-low.cc (win32_target_ops): Update.
3014 (win32_request_interrupt): Turn into ...
3015 (win32_process_target::request_interrupt): ... this.
3016 * win32-low.h (class win32_process_target): Update.
3018 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3020 Turn process_stratum_target's look_up_symbols op into a method of
3023 * target.h (struct process_stratum_target): Remove the target op.
3024 (class process_target): Add the target op.
3025 * target.cc (process_target::look_up_symbols): Define.
3027 Update the derived classes and callers below.
3029 * server.cc (handle_query): Update.
3030 * linux-low.cc (linux_target_ops): Update.
3031 (linux_look_up_symbols): Turn into ...
3032 (linux_process_target::look_up_symbols): ... this.
3033 * linux-low.h (class linux_process_target): Update.
3034 * lynx-low.cc (lynx_target_ops): Update.
3035 * nto-low.cc (nto_target_ops): Update.
3036 * win32-low.cc (win32_target_ops): Update.
3038 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3040 Turn process_stratum_target's read_memory and write_memory
3041 ops into methods of process_target.
3043 * target.h (struct process_stratum_target): Remove the target ops.
3044 (class process_target): Add the target ops.
3046 Update the derived classes and callers below.
3048 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
3049 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
3050 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
3051 (arm_get_syscall_trapinfo): Update.
3052 * linux-cris-low.cc (cris_breakpoint_at): Update.
3053 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
3054 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
3055 * linux-mips-low.cc (mips_breakpoint_at): Update.
3056 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
3057 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
3058 * linux-sh-low.cc (sh_breakpoint_at): Update.
3059 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
3060 (sparc_store_gregset_from_stack): Update.
3061 (sparc_breakpoint_at): Update.
3062 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
3063 * linux-tile-low.cc (tile_breakpoint_at): Update.
3064 * linux-x86-low.cc (x86_breakpoint_at): Update.
3065 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
3066 * mem-brea.cc (insert_memory_breakpoint): Update.
3067 (validate_inserted_breakpoint): Update.
3068 * target.cc (read_inferior_memory): Update.
3069 (target_write_memory): Update.
3070 * linux-low.cc (linux_target_ops): Update.
3071 (linux_read_memory): Make a wrapper around the read_memory target
3073 (linux_process_target::read_memory): Rename from linux_read_memory.
3074 (linux_write_memory): Turn into ...
3075 (linux_process_target::write_memory): ... this.
3076 * linux-low.h (class linux_process_target): Update.
3077 * lynx-low.cc (lynx_target_ops): Update.
3078 (lynx_read_memory): Turn into ...
3079 (lynx_process_target::read_memory): ... this.
3080 (lynx_write_memory): Turn into ...
3081 (lynx_process_target::write_memory): ... this.
3082 * lynx-low.h (class lynx_process_target): Update.
3083 * nto-low.cc (nto_target_ops): Update.
3084 (nto_read_memory): Turn into ...
3085 (nto_process_target::read_memory): ... this.
3086 (nto_write_memory): Turn into ...
3087 (nto_process_target::write_memory): ... this.
3088 * nto-low.h (class nto_process_target): Update.
3089 * win32-low.cc (win32_target_ops): Update.
3090 (win32_read_inferior_memory): Turn into ...
3091 (win32_process_target::read_memory): ... this.
3092 (win32_write_inferior_memory): Turn into ...
3093 (win32_process_target::write_memory): ... this.
3094 * win32-low.h (class win32_process_target): Update.
3096 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3098 Turn process_stratum_target's prepare_to_access_memory and
3099 done_accessing_memory ops into methods of process_target.
3101 * target.h (struct process_stratum_target): Remove the target ops.
3102 (class process_target): Add the target ops.
3103 * target.cc (process_target::prepare_to_access_memory): Define.
3104 (process_target::done_accessing_memory): Define.
3105 (prepare_to_access_memory): Update.
3106 (done_accessing_memory): Update.
3108 Update the derived classes and callers below.
3110 * linux-low.cc (linux_target_ops): Update.
3111 (linux_prepare_to_access_memory): Turn into ...
3112 (linux_process_target::prepare_to_access_memory): ... this.
3113 (linux_done_accessing_memory): Turn into ...
3114 (linux_process_target::done_accessing_memory): ... this.
3115 * linux-low.h (class linux_process_target): Update.
3116 * lynx-low.cc (lynx_target_ops): Update.
3117 * nto-low.cc (nto_target_ops): Update.
3118 * win32-low.cc (win32_target_ops): Update.
3120 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3122 Turn process_stratum_target's fetch_registers and store_registers
3123 ops into methods of process_target.
3125 * target.h (struct process_stratum_target): Remove the target ops.
3126 (class process_target): Add the target ops.
3127 (fetch_inferior_registers): Update the macro.
3128 (store_inferior_registers): Update the macro.
3130 Update the derived classes and callers below.
3132 * linux-low.cc (linux_target_ops): Update.
3133 (linux_fetch_registers): Turn into ...
3134 (linux_process_target::fetch_registers): ... this.
3135 (linux_store_registers): Turn into ...
3136 (linux_process_target::store_registers): ... this.
3137 * linux-low.h (class linux_process_target): Update.
3138 * lynx-low.cc (lynx_target_ops): Update.
3139 (lynx_fetch_registers): Turn into ...
3140 (lynx_process_target::fetch_registers): ... this.
3141 (lynx_store_registers): Turn into ...
3142 (lynx_process_target::store_registers): ... this.
3143 * lynx-low.h (class lynx_process_target): Update.
3144 * nto-low.cc (nto_target_ops): Update.
3145 (nto_fetch_registers): Turn into ...
3146 (nto_process_target::fetch_registers): ... this.
3147 (nto_store_registers): Turn into ...
3148 (nto_process_target::store_registers): ... this.
3149 * nto-low.h (class nto_process_target): Update.
3150 * win32-low.cc (win32_target_ops): Update.
3151 (win32_fetch_inferior_registers): Turn into ...
3152 (win32_process_target::fetch_registers): ... this.
3153 (win32_store_inferior_registers): Turn into ...
3154 (win32_process_target::store_registers): ... this.
3155 * win32-low.h (class win32_process_target): Update.
3157 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3159 Turn process_stratum_target's wait op into a method of
3162 * target.h (struct process_stratum_target): Remove the target op.
3163 (class process_target): Add the target op.
3165 Update the derived classes and callers below.
3167 * target.cc (target_wait): Update.
3168 * linux-low.cc (linux_target_ops): Update.
3169 (linux_wait): Turn into ...
3170 (linux_process_target::wait): ... this.
3171 * linux-low.h (class linux_process_target): Update.
3172 * lynx-low.cc (lynx_target_ops): Update.
3173 (lynx_wait): Turn into ...
3174 (lynx_process_target::wait): ... this.
3175 * lynx-low.h (class lynx_process_target): Update.
3176 * nto-low.cc (nto_target_ops): Update.
3177 (nto_wait): Turn into ...
3178 (nto_process_target::wait): ... this.
3179 * nto-low.h (class nto_process_target): Update.
3180 * win32-low.cc (win32_target_ops): Update.
3181 (win32_wait): Turn into ...
3182 (win32_process_target::wait): ... this.
3183 (do_initial_child_stuff): Update.
3184 * win32-low.h (class win32_process_target): Update.
3186 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3188 Turn process_stratum_target's resume op into a method of
3191 * target.h (struct process_stratum_target): Remove the target op.
3192 (class process_target): Add the target op.
3194 Update the derived classes and callers below.
3196 * server.cc (resume): Update.
3197 * target.cc (target_stop_and_wait): Update.
3198 (target_continue_no_signal): Update.
3199 (target_continue): Update.
3200 * linux-low.cc (linux_target_ops): Update.
3201 (linux_resume): Turn into ...
3202 (linux_process_target::resume): ... this.
3203 * linux-low.h (class linux_process_target): Update.
3204 * lynx-low.cc (lynx_target_ops): Update.
3205 (lynx_resume): Turn into ...
3206 (lynx_process_target::resume): ... this.
3207 * lynx-low.h (class lynx_process_target): Update.
3208 * nto-low.cc (nto_target_ops): Update.
3209 (nto_resume): Turn into ...
3210 (nto_process_target::resume): ... this.
3211 * nto-low.h (class nto_process_target): Update.
3212 * win32-low.cc (win32_target_ops): Update.
3213 (win32_resume): Turn into ...
3214 (win32_process_target::resume): ... this.
3215 (win32_process_target::detach): Update.
3216 (do_initial_child_stuff): Update.
3217 * win32-low.h (class win32_process_target): Update.
3219 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3221 Turn process_stratum_target's thread_alive op into a method of
3224 * target.h (struct process_stratum_target): Remove the target op.
3225 (class process_target): Add the target op.
3226 (mythread_alive): Update the macro.
3228 Update the derived classes and callers below.
3230 * linux-low.cc (linux_target_ops): Update.
3231 (linux_thread_alive): Turn into ...
3232 (linux_process_target::thread_alive): ... this.
3233 (wait_for_sigstop): Update.
3234 * linux-low.h (class linux_process_target): Update.
3235 * lynx-low.cc (lynx_target_ops): Update.
3236 (lynx_thread_alive): Turn into ...
3237 (lynx_process_target::thread_alive): ... this.
3238 * lynx-low.h (class lynx_process_target): Update.
3239 * nto-low.cc (nto_target_ops): Update.
3240 (nto_thread_alive): Turn into ...
3241 (nto_process_target::thread_alive): ... this.
3242 * nto-low.h (class nto_process_target): Update.
3243 * win32-low.cc (win32_target_ops): Update.
3244 (win32_thread_alive): Turn into ...
3245 (win32_process_target::thread_alive): ... this.
3246 * win32-low.h (class win32_process_target): Update.
3248 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3250 Turn process_stratum_target's join op into a method of
3253 * target.h (struct process_stratum_target): Remove the target op.
3254 (class process_target): Add the target op.
3255 (join_inferior): Update the macro.
3257 Update the derived classes and callers below.
3259 * linux-low.cc (linux_target_ops): Update.
3260 (linux_join): Turn into ...
3261 (linux_process_target::join): ... this.
3262 * linux-low.h (class linux_process_target): Update.
3263 * lynx-low.cc (lynx_target_ops): Update.
3264 (lynx_join): Turn into ...
3265 (lynx_process_target::join): ... this.
3266 * lynx-low.h (class lynx_process_target): Update.
3267 * nto-low.cc (nto_target_ops): Update.
3268 (nto_process_target::join): Define.
3269 * nto-low.h (class nto_process_target): Update.
3270 * win32-low.cc (win32_target_ops): Update.
3271 (win32_join): Turn into ...
3272 (win32_process_target::join): ... this.
3273 * win32-low.h (class win32_process_target): Update.
3275 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3277 Turn process_stratum_target's mourn op into a method of
3280 * target.h (struct process_stratum_target): Remove the target op.
3281 (class process_target): Add the target op.
3283 Update the derived classes and callers below.
3285 * target.cc (target_mourn_inferior): Update.
3286 * linux-low.cc (linux_target_ops): Update.
3287 (linux_mourn): Turn into ...
3288 (linux_process_target::mourn): ... this.
3289 (handle_extended_wait): Update.
3290 (linux_process_target::kill): Update.
3291 (linux_process_target::detach): Update.
3292 * linux-low.h (class linux_process_target): Update.
3293 * lynx-low.cc (lynx_target_ops): Update.
3294 (lynx_mourn): Turn into ...
3295 (lynx_process_target::mourn): ... this.
3296 * lynx-low.h (class lynx_process_target): Update.
3297 * nto-low.cc (nto_target_ops): Update.
3298 (nto_mourn): Turn into ...
3299 (nto_process_target::mourn): ... this.
3300 * nto-low.h (class nto_process_target): Update.
3301 * win32-low.cc (win32_target_ops): Update.
3302 (win32_mourn): Turn into ...
3303 (win32_process_target::mourn): ... this.
3304 * win32-low.h (class win32_process_target): Update.
3306 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3308 Turn process_stratum_target's detach op into a method of
3311 * target.h (struct process_stratum_target): Remove the target op.
3312 (class process_target): Add the target op.
3313 (detach_inferior): Update the macro.
3315 Update the derived classes and callers below.
3317 * linux-low.cc (linux_target_ops): Update.
3318 (linux_detach): Turn into ...
3319 (linux_process_target::detach): ... this.
3320 * linux-low.h (class linux_process_target): Update.
3321 * lynx-low.cc (lynx_target_ops): Update.
3322 (lynx_detach): Turn into ...
3323 (lynx_process_target::detach): ... this.
3324 * lynx-low.h (class lynx_process_target): Update.
3325 * nto-low.cc (nto_target_ops): Update.
3326 (nto_detach): Turn into ...
3327 (nto_process_target::detach): ... this.
3328 * nto-low.h (class nto_process_target): Update.
3329 * win32-low.cc (win32_target_ops): Update.
3330 (win32_detach): Turn into ...
3331 (win32_process_target::detach): ... this.
3332 * win32-low.h (class win32_process_target): Update.
3334 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3336 Turn process_stratum_target's kill op into a method of
3339 * target.h (struct process_stratum_target): Remove the target op.
3340 (class process_target): Add the target op.
3342 Update the derived classes and callers below.
3344 * target.cc (kill_inferior): Update.
3345 * linux-low.cc (linux_target_ops): Update.
3346 (linux_kill): Turn into ...
3347 (linux_process_target::kill): ... this.
3348 * linux-low.h (class linux_process_target): Update.
3349 * lynx-low.cc (lynx_target_ops): Update.
3350 (lynx_kill): Turn into ...
3351 (lynx_process_target::kill): ... this.
3352 * lynx-low.h (class lynx_process_target): Update.
3353 * nto-low.cc (nto_target_ops): Update.
3354 (nto_kill): Turn into ...
3355 (nto_process_target::kill): ... this.
3356 * nto-low.h (class nto_process_target): Update.
3357 * win32-low.cc (win32_target_ops): Update.
3358 (win32_kill): Turn into ...
3359 (win32_process_target::kill): ... this.
3360 * win32-low.h (class win32_process_target): Update.
3362 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3364 Turn process_stratum_target's attach op into a method of
3367 * target.h (struct process_stratum_target): Remove the target op.
3368 (class process_target): Add the target op.
3369 (myattach): Update the macro.
3371 Update the derived classes and callers below.
3373 * linux-low.cc (linux_target_ops): Update.
3374 (linux_attach): Turn into ...
3375 (linux_process_target::attach): ... this.
3376 * linux-low.h (class linux_process_target): Update.
3377 * lynx-low.cc (lynx_target_ops): Update.
3378 (lynx_attach): Turn into ...
3379 (lynx_process_target::attach): ... this.
3380 * lynx-low.h (class lynx_process_target): Update.
3381 * nto-low.cc (nto_target_ops): Update.
3382 (nto_attach): Turn into ...
3383 (nto_process_target::attach): ... this.
3384 * nto-low.h (class nto_process_target): Update.
3385 * win32-low.cc (win32_target_ops): Update.
3386 (win32_attach): Turn into ...
3387 (win32_process_target::attach): ... this.
3388 * win32-low.h (class win32_process_target): Update.
3390 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3392 Turn process_stratum_target's post_create_inferior op into a method
3395 * target.h (struct process_stratum_target): Remove the target op.
3396 (class process_target): Add the target op.
3397 (target_post_create_inferior): Update the macro.
3398 * target.cc (process_target::post_create_inferior): Define.
3400 Update the derived classes and callers below.
3402 * linux-low.cc (linux_target_ops): Update.
3403 (linux_post_create_inferior): Turn into ...
3404 (linux_process_target::post_create_inferior): ... this.
3405 * linux-low.h (class linux_process_target): Update.
3406 * lynx-low.cc (lynx_target_ops): Update.
3407 * nto-low.cc (nto_target_ops): Update.
3408 * win32-low.cc (win32_target_ops): Update.
3410 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3412 Turn process_stratum_target's create_inferior op into a method of
3415 * target.h (struct process_stratum_target): Remove the target op.
3416 (class process_target): Add the target op.
3417 (create_inferior): Rename the macro to ...
3418 (target_create_inferior): ... this.
3420 Update the derived classes and callers below.
3422 * server.cc (handle_v_run): Update.
3423 (captured_main): Update.
3424 (process_serial_event): Update.
3425 * linux-low.cc (linux_target_ops): Update.
3426 (linux_create_inferior): Turn into ...
3427 (linux_process_target::create_inferior): ... this.
3428 * linux-low.h (class linux_process_target): Update.
3429 * lynx-low.cc (lynx_target_ops): Update.
3430 (lynx_create_inferior): Turn into ...
3431 (lynx_process_target::create_inferior): ... this.
3432 * lynx-low.h (class lynx_process_target): Update.
3433 * nto-low.cc (nto_target_ops): Update.
3434 (nto_create_inferior): Turn into ...
3435 (nto_process_target::create_inferior): ... this.
3436 * nto-low.h (class nto_process_target): Update.
3437 * win32-low.cc (win32_target_ops): Update.
3438 (win32_create_inferior): Turn into ...
3439 (win32_process_target::create_inferior): ... this.
3440 * win32-low.h (class win32_process_target): Update.
3442 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3444 * target.h (class process_target): New class definition.
3445 (struct process_stratum_target) <pt>: New field with type
3447 * linux-low.h (class linux_process_target): Define as a derived
3448 class of 'process_target'.
3449 * linux-low.cc (linux_target_ops): Add a linux_process_target*
3451 * lynx-low.h (class lynx_process_target): Define as a derived
3452 class of 'process_target'.
3453 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
3455 * nto-low.h (class nto_process_target): Define as a derived
3456 class of 'process_target'.
3457 * nto-low.cc (nto_target_ops): Add an nto_process_target*
3459 * win32-low.h (class win32_process_target): Define as a derived
3460 class of 'process_target'.
3461 * win32-low.cc (win32_target_ops): Add a win32_process_target*
3464 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
3466 * configure: Regenerate.
3468 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
3469 Andrew Burgess <andrew.burgess@embecosm.com>
3471 * linux-riscv-low.cc: New file.
3472 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
3473 and nat/riscv-linux-tdesc.c.
3474 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
3475 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
3478 2020-02-14 Tom Tromey <tom@tromey.com>
3480 * acinclude.m4: Don't include acx_configure_dir.m4.
3481 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
3482 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
3483 (all, install-only, uninstall, clean-info, clean)
3484 (maintainer-clean): Don't recurse.
3485 (subdir_do, all-lib): Remove.
3486 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
3488 (generated_files): Update.
3489 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
3490 * configure: Rebuild.
3491 * configure.ac: Don't configure gnulib or libiberty.
3494 2020-02-14 Eli Zaretskii <eliz@gnu.org>
3496 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
3497 preparing the command line for CreateProcess.
3498 (win32_create_inferior): Reflect the program name in debugging
3499 output that shows the process and its command line.
3501 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
3503 * Makefile.in: Rename source files from .c to .cc.
3504 * %.c: Rename to %.cc.
3505 * configure.ac: Rename server.c to server.cc.
3506 * configure: Re-generate.
3508 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
3510 * Makefile.in: Rename gdbsupport source files from .c to .cc.
3512 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
3514 * win32-low.c (win32_create_inferior): Set signal_pid.
3516 2020-02-12 Maciej W. Rozycki <macro@wdc.com>
3517 Pedro Alves <palves@redhat.com>
3519 Skip building gdbserver in a cross-configuration.
3520 * configure.srv: Set $gdbserver_host depending on whether $target
3521 is $host. Use $gdbserver_host instead of $host.
3523 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
3525 * configure: Re-generate.
3527 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
3529 * configure: Re-generate.
3531 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
3533 * acinclude.m4: Update warning.m4 path.
3535 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
3537 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
3538 (handle_exception): Set siginfo_er.
3539 (win32_xfer_siginfo): New function.
3541 2020-02-07 Tom Tromey <tom@tromey.com>
3542 Pedro Alves <palves@redhat.com>
3544 * README: Update build documentation.
3545 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
3547 * configure.ac: Update paths.
3548 * configure: Rebuild.
3549 * acinclude.m4: Update paths.
3550 * Makefile.in: Update include paths.
3551 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
3552 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
3553 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
3554 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
3555 (%-generated.c): Update paths.
3556 * Move entire directory from ../gdb/gdbserver.
3558 2020-01-29 Maciej W. Rozycki <macro@wdc.com>
3560 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
3562 2020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3564 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
3565 assignment instead of srv_linux_obj.
3567 2020-01-28 Hannes Domani <ssbssa@yahoo.de>
3569 * server.c (handle_qxfer_libraries): Write segment-address with
3572 2020-01-24 Hannes Domani <ssbssa@yahoo.de>
3574 * Makefile.in (install-strip): New target.
3575 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
3576 * aclocal.m4: Regenerate.
3577 * configure: Regenerate.
3578 * configure.ac: Add AM_PROG_INSTALL_STRIP.
3580 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
3582 * Makefile.in (SFILES): Adjust paths to point to real files.
3583 (OBS): Move waitstatus.o to target/waitstatus.o.
3584 (TAGS): Transform paths appropriately.
3586 (nat/%.o): ... this pattern rule.
3588 (target/%.o): ... this pattern rule.
3589 * configure.srv: Adjust paths throughout to include nat/ prefix
3590 with the revant files.
3591 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
3592 * configure: Regenerate.
3594 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
3596 * Makefile.in (TAGS): Remove config files from the recipe.
3598 2020-01-14 Tom Tromey <tom@tromey.com>
3600 * configure: Rebuild.
3601 * configure.ac: Remove any checks that were added to common.m4.
3602 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
3605 2020-01-14 Tom Tromey <tom@tromey.com>
3607 * server.h: Include config.h.
3608 * gdbreplay.c: Include config.h.
3609 * configure: Rebuild.
3610 * configure.ac: Don't source common.host.
3611 * acinclude.m4: Update path.
3612 * Makefile.in (INCSUPPORT): New variable.
3613 (INCLUDE_CFLAGS): Add INCSUPPORT.
3614 (SFILES): Update paths.
3615 (version-generated.c): Update path to create-version.sh.
3616 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
3618 2020-01-14 Tom Tromey <tom@tromey.com>
3620 * configure.ac (LIBS): Use WIN32APILIBS.
3621 (USE_WIN32API): Don't define.
3622 * configure: Rebuild.
3624 2020-01-14 Tom Tromey <tom@tromey.com>
3626 * configure: Rebuild.
3628 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
3630 * Makefile.in (%-generated.c): Remove rule for files from
3633 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
3635 * configure: Re-generate.
3637 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
3639 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
3641 * tracepoint.c (stop_tracing, flush_trace_buffer,
3642 about_to_request_buffer_space, get_trace_state_variable_value,
3643 set_trace_state_variable_value, gdb_collect): Add declaration.
3645 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
3647 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
3648 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
3649 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
3650 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
3651 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
3654 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
3656 * inferiors.c: Include gdbsupport/common-inferior.h.
3658 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
3660 * hostio-errno.c: Include hostio.h.
3662 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
3664 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
3667 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3669 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
3670 * linux-arm-tdesc.h: Include arch/arm.h.
3672 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3674 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
3676 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3678 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
3679 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
3681 2020-01-10 Pedro Alves <palves@redhat.com>
3683 * fork-child.c (post_fork_inferior): Pass target down to
3685 * inferiors.c (switch_to_thread): Add process_stratum_target
3687 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
3688 * nto-low.c (nto_target_ops): Now a process_stratum_target.
3689 * linux-low.c (linux_target_ops): Now a process_stratum_target.
3690 * remote-utils.c (prepare_resume_reply): Pass the target to
3692 * target.c (the_target): Now a process_stratum_target.
3693 (done_accessing_memory): Pass the target to switch_to_thread.
3694 (set_target_ops): Ajust to use process_stratum_target.
3695 * target.h (struct target_ops): Rename to ...
3696 (struct process_stratum_target): ... this.
3697 (the_target, set_target_ops): Adjust.
3698 (prepare_to_access_memory): Adjust comment.
3699 * win32-low.c (child_xfer_memory): Adjust to use
3700 process_stratum_target.
3701 (win32_target_ops): Now a process_stratum_target.
3703 2020-01-06 Eli Zaretskii <eliz@gnu.org>
3704 Pedro Alves <palves@redhat.com>
3706 * win32-low.c (get_child_debug_event): Extract the fatal exception
3707 from the exit status and convert to the equivalent Posix signal
3709 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
3710 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
3712 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
3714 * Makefile.in: Use INSTALL_PROGRAM_ENV.
3716 2020-01-01 Joel Brobecker <brobecker@adacore.com>
3718 * server.c (gdbserver_version): Change copyright year to 2020.
3719 * gdbreplay.c (gdbreplay_version): Likewise.
3721 2019-12-19 Christian Biesinger <cbiesinger@google.com>
3723 * configure: Regenerate.
3724 * configure.ac: Quote variable arguments of test.
3726 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
3728 * Makefile.in: Fix build with GNU Make 3.81
3730 2019-12-16 Tom Tromey <tromey@adacore.com>
3732 * server.c (get_exec_file): Constify result.
3734 2019-12-10 Christian Biesinger <cbiesinger@google.com>
3736 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
3737 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
3738 * config.in: Regenerate.
3739 * configure: Regenerate.
3740 * configure.ac: Don't check for strerror.
3741 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
3742 Call safe_strerror instead of strerror.
3743 * server.h (strerror): Remove this now-unnecessary declaration.
3744 * tracepoint.c (init_named_socket): Call safe_strerror instead of
3746 (gdb_agent_helper_thread): Likewise.
3747 * utils.c (perror_with_name): Likewise.
3749 2019-11-26 Tom Tromey <tom@tromey.com>
3751 * configure, config.in: Rebuild.
3753 2019-11-26 Tom Tromey <tom@tromey.com>
3755 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
3756 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
3758 * configure, config.in: Rebuild.
3760 2019-11-26 Tom Tromey <tom@tromey.com>
3762 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
3763 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
3764 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
3765 * acinclude.m4: Include ax_pthread.m4.
3766 * config.in, configure: Rebuild.
3768 2019-11-26 Christian Biesinger <cbiesinger@google.com>
3770 * debug.c (debug_set_output): Call safe_strerror instead of
3772 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
3773 (linux_kill_one_lwp): Likewise.
3774 (linux_detach_one_lwp): Likewise.
3775 (linux_wait_for_event_filtered): Likewise.
3776 (store_register): Likewise.
3777 * lynx-low.c (lynx_attach): Likewise.
3778 * mem-break.c (insert_memory_breakpoint): Likewise.
3779 (remove_memory_breakpoint): Likewise.
3780 (delete_fast_tracepoint_jump): Likewise.
3781 (set_fast_tracepoint_jump): Likewise.
3782 (uninsert_fast_tracepoint_jumps_at): Likewise.
3783 (reinsert_fast_tracepoint_jumps_at): Likewise.
3784 * nto-low.c (nto_xfer_memory): Likewise.
3785 (nto_resume): Likewise.
3787 2019-11-20 Luis Machado <luis.machado@linaro.org>
3789 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
3790 instead of register count.
3791 * tdesc.c (tdesc_contains_feature): New function.
3792 * tdesc.h (tdesc_contains_feature): New prototype.
3794 2019-11-15 Christian Biesinger <cbiesinger@google.com>
3796 * Makefile.in: Add safe-strerror.c.
3797 * configure: Regenerate.
3798 * configure.ac: Don't source common.host.
3800 2019-11-15 Christian Biesinger <cbiesinger@google.com>
3802 * config.in: Regenerate.
3803 * configure: Regenerate.
3805 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
3807 * ax.c (ax_printf): Handle size_t_arg.
3809 2019-11-06 Christian Biesinger <cbiesinger@google.com>
3811 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
3812 * mi/mi-main.c (output_cores): Likewise.
3813 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
3814 (linux_xfer_osdata_modules): Likewise.
3815 * remote.c (register_remote_support_xml): Likewise.
3816 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
3817 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
3819 2019-11-01 Christian Biesinger <cbiesinger@google.com>
3821 * configure: Regenerate.
3822 * configure.ac: Remove check for strerror_r.
3824 2019-10-31 Christian Biesinger <cbiesinger@google.com>
3826 * config.in: Regenerate.
3827 * configure: Regenerate.
3828 * configure.ac: Also check for strerror_r.
3830 2019-10-31 Christian Biesinger <cbiesinger@google.com>
3832 * ax.h (debug_agent): Remove duplicate declaration.
3834 2019-10-26 Tom de Vries <tdevries@suse.de>
3836 * linux-aarch64-low.c: Fix typos in comments.
3837 * linux-arm-low.c: Same.
3838 * linux-low.c: Same.
3839 * linux-ppc-low.c: Same.
3840 * proc-service.c: Same.
3843 * tracepoint.c: Same.
3844 * win32-low.c: Same.
3846 2019-10-25 Tom Tromey <tromey@adacore.com>
3848 * utils.c (xstrdup): Remove.
3850 2019-10-23 Tom Tromey <tom@tromey.com>
3852 * configure, config.in: Rebuild.
3854 2019-10-23 Tom Tromey <tom@tromey.com>
3856 * configure: Rebuild.
3857 * acinclude.m4: Use m4_include, not sinclude.
3859 2019-10-17 Tom Tromey <tromey@adacore.com>
3861 * configure: Rebuild.
3862 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
3863 in AC_CONFIG_FILES invocation.
3864 * Makefile.in (stamp-h, Makefile): Use new-style config.status
3867 2019-10-16 Christian Biesinger <cbiesinger@google.com>
3869 * server.c: Include xml-builtin.h.
3870 (get_xml_features): Don't declare xml_builtins here.
3872 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
3874 * Makefile.in: Remove references to vec-ipa.o.
3876 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
3878 * Makefile.in: Remove references to vec.c.
3880 2019-10-02 Christian Biesinger <cbiesinger@google.com>
3882 * server.c (server_waiting): Change to bool.
3883 (extended_protocol): Likewise.
3884 (response_needed): Likewise.
3885 (exit_requested): Likewise.
3886 (run_once): Likewise.
3887 (report_no_resumed): Likewise.
3888 (non_stop): Likewise.
3889 (disable_packet_vCont): Likewise.
3890 (disable_packet_Tthread): Likewise.
3891 (disable_packet_qC): Likewise.
3892 (disable_packet_qfThreadInfo): Likewise.
3893 (handle_general_set): Update.
3894 (handle_detach): Update.
3895 (handle_monitor_command): Update.
3896 (handle_query): Update.
3897 (captured_main): Update.
3898 (process_serial_event): Update.
3899 * server.h (server_waiting): Change to bool.
3900 (disable_packet_vCont): Likewise.
3901 (disable_packet_Tthread): Likewise.
3902 (disable_packet_qC): Likewise.
3903 (disable_packet_qfThreadInfo): Likewise.
3904 (run_once): Likewise.
3905 (non_stop): Likewise.
3906 * target.c (target_stop_and_wait): Update.
3908 2019-10-02 Tom Tromey <tromey@adacore.com>
3910 * Makefile.in (SFILES): Add common-inferior.c.
3911 (OBS): Add common-inferior.o.
3912 * server.c (startup_with_shell): Don't define.
3914 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3916 * linux-low.c (linux_low_read_btrace): Update for change to
3919 2019-09-20 Christian Biesinger <cbiesinger@google.com>
3921 * debug.c (debug_threads): Remove comment in favor of the header.
3922 * debug.h (using_threads): Add declaration.
3923 (debug_threads): Add comment.
3924 * linux-aarch64-low.c: Include debug.h and remove declaration of
3926 * nto-low.c: Likewise.
3927 * remote-utils.c: Likewise.
3928 * thread-db.c: Likewise.
3930 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
3932 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
3933 and powerpc-cell64l-ipa.o.
3934 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
3935 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
3936 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
3939 * spu-low.c: Remove file.
3941 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
3942 (parse_spufs_run): Remove.
3943 (ppc_get_pc): Remove Cell/B.E. support.
3944 (ppc_set_pc): Likewise.
3945 (ppc_breakpoint_at): Likewise.
3946 (ppc_arch_setup): Likewise.
3947 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
3948 tdesc_powerpc_cell32l.
3949 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
3950 or init_registers_powerpc_cell32l.
3951 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
3952 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
3953 or init_registers_powerpc_cell32l.
3954 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
3955 (init_registers_powerpc_cell32l): Remove prototype.
3956 (init_registers_powerpc_cell64l): Likewise.
3958 * target.h (struct target_ops): Remove qxfer_spu member.
3959 * server.c (handle_qxfer_spu): Remove.
3960 (qxfer_packets): Remove entry for "spu".
3961 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
3962 * linux-low.c (SPUFS_MAGIC): Remove.
3963 (spu_enumerate_spu_ids): Remove.
3964 (linux_qxfer_spu): Remove.
3965 (linux_target_ops): Remove qxfer_spu member.
3966 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
3967 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
3968 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
3970 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
3972 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
3973 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
3974 * config.in: Regenerate.
3975 * configure: Regenerate.
3977 2019-08-15 Tom Tromey <tromey@adacore.com>
3979 * target.c (target_write_memory): Use gdb::byte_vector.
3981 2019-08-15 Tom Tromey <tromey@adacore.com>
3983 * tracepoint.c (write_inferior_data_pointer)
3984 (write_inferior_integer, write_inferior_int8)
3985 (write_inferior_uinteger, m_tracepoint_action_download)
3986 (r_tracepoint_action_download, x_tracepoint_action_download)
3987 (l_tracepoint_action_download, clear_inferior_trace_buffer)
3988 (download_agent_expr, download_tracepoint_1)
3989 (download_trace_state_variables, upload_fast_traceframes): Update.
3990 * server.c (gdb_write_memory): Update.
3991 * remote-utils.c (relocate_instruction): Update.
3992 * proc-service.c (ps_pdwrite): Update.
3993 * mem-break.c (remove_memory_breakpoint)
3994 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
3995 (uninsert_fast_tracepoint_jumps_at)
3996 (reinsert_fast_tracepoint_jumps_at): Update.
3997 * linux-x86-low.c (append_insns)
3998 (i386_install_fast_tracepoint_jump_pad)
3999 (amd64_write_goto_address, i386_write_goto_address): Update.
4000 * linux-s390-low.c (append_insns, s390_write_goto_address):
4002 * linux-ppc-low.c (ppc_relocate_instruction)
4003 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
4004 (ppc_write_goto_address): Update.
4005 * linux-aarch64-low.c (append_insns): Update.
4006 * target.h (struct target_ops): Update.
4007 (write_inferior_memory): Don't declare.
4008 * target.c (target_write_memory): Rename from
4009 write_inferior_memory. Remove old target_write_memory.
4011 2019-08-15 Tom Tromey <tromey@adacore.com>
4013 * target.c (write_inferior_memory): Use std::vector.
4015 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
4018 * configure.ac: Drop enable-libmcheck support.
4019 * configure, config.in: Rebuild.
4020 * acinclude.m4: Don't include it.
4022 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4024 * configure.srv: Remove Arm xml files.
4026 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4028 * configure.srv: Add new files. Remove xml generated files.
4029 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
4031 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
4032 * linux-aarch32-tdesc.c: New file.
4033 * linux-aarch32-tdesc.h: New file.
4034 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
4035 * linux-arm-low.c (init_registers_arm, tdesc_arm)
4036 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
4037 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
4038 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
4039 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
4040 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
4041 (arm_read_description): Call arm_linux_read_description.
4042 (initialize_low_arch): Don't init registers.
4043 * linux-arm-tdesc.c: New file.
4044 * linux-arm-tdesc.h: New file.
4046 2019-07-10 Alan Hayward <alan.hayward@arm.com>
4048 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
4049 Move counter inside for.
4050 (arm_read_description): Check ptrace earlier.
4051 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
4053 2019-07-09 Tom Tromey <tom@tromey.com>
4055 * configure: Rebuild.
4056 * configure.ac: Change common to gdbsupport.
4057 * acinclude.m4: Change common to gdbsupport.
4058 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
4059 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
4060 common to gdbsupport.
4061 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
4062 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
4063 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
4064 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
4065 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
4066 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
4067 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
4068 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
4069 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
4070 common to gdbsupport.
4072 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4074 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
4076 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
4078 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4080 * configure.srv: Remove legacy xml.
4081 * linux-aarch64-low.c (initialize_low_arch): Remove
4082 initialize_low_tdesc call.
4083 * linux-aarch64-tdesc-selftest.c: Remove file.
4084 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
4085 * linux-x86-low.c (initialize_low_arch): Remove
4086 initialize_low_tdesc call.
4087 * linux-x86-tdesc-selftest.c: Remove file.
4088 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
4090 2019-06-20 Tom de Vries <tdevries@suse.de>
4092 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
4093 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
4095 2019-06-19 Tom de Vries <tdevries@suse.de>
4097 * debug.h (debug_write): Change return type to ssize_t.
4098 * debug.c (debug_write): Same.
4100 2019-06-14 Tom Tromey <tom@tromey.com>
4102 * configure.ac: Use new path to gnulib.
4103 * configure: Rebuild.
4104 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
4107 2019-06-11 Tom Tromey <tom@tromey.com>
4109 * Makefile.in (SFILES): Add alloc.c.
4111 (IPA_OBJS): Add alloc-ipa.o.
4112 (alloc-ipa.o): New target.
4113 (%.o: ../%.c): New pattern rule.
4115 2019-06-10 Tom Tromey <tromey@adacore.com>
4117 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
4118 end warning with a newline.
4119 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
4121 * thread-db.c (attach_thread): Don't end warning with a newline.
4122 (thread_db_notice_clone): Likewise.
4123 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
4125 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
4126 end warning with a newline.
4128 2019-06-04 Pedro Alves <palves@redhat.com>
4130 * server.c (captured_main): Use make_unique_xstrdup.
4132 2019-06-02 Tom Tromey <tom@tromey.com>
4134 * gdbreplay.c (fromhex): Remove.
4135 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
4137 2019-05-29 Tom Tromey <tromey@adacore.com>
4139 * configure: Rebuild.
4141 2019-05-06 Kevin Buettner <kevinb@redhat.com>
4143 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
4144 sign extension code on 32-bit builds.
4146 2019-05-03 Eli Zaretskii <eliz@gnu.org>
4149 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
4151 2019-04-19 Tom Tromey <tom@tromey.com>
4153 * server.c (struct vstop_notif): Derive from notif_event.
4155 (queue_stop_reply): Update.
4156 (remove_all_on_match_ptid): Change type. Rewrite.
4157 (discard_queued_stop_replies): Rewrite.
4158 (in_queued_stop_replies_ptid): Change type.
4159 (in_queued_stop_replies): Rewrite.
4160 (notif_stop): Update.
4161 (queue_stop_reply_callback): Update.
4162 (captured_main): Don't call initialize_notif.
4163 (push_stop_notification): Update.
4164 * notif.c (notif_write_event, handle_notif_ack)
4165 (notif_event_enque, notif_push): Update.
4166 (notif_event_xfree, initialize_notif): Remove.
4167 * notif.h (struct notif_event): Include <list>, not
4169 (struct notif_server) <queue>: Now a std::list.
4170 (notif_event_p): Remove typedef.
4171 (initialize_notif): Don't declare.
4172 (struct notif_event): Add virtual destructor.
4174 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4176 * ax.c (ax_vdebug): Call debug_printf.
4177 * debug.c (debug_write): New function.
4178 * debug.h (debug_write): New declaration.
4179 * linux-low.c (sigchld_handler): Call debug_write.
4181 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4183 * debug.c (debug_set_output): New function.
4184 (debug_vprintf): Send output to debug_file.
4185 (debug_flush): Likewise.
4186 * debug.h (debug_set_output): New declaration.
4187 * server.c (handle_monitor_command): Add debug-file option.
4188 (captured_main): Likewise.
4190 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4192 * debug.c (remote_debug): Add definition.
4193 * debug.h (remote_debug): Add declaration.
4194 * hostio.c (remote_debug): Remove declaration.
4195 * remote-utils.c (struct ui_file): Likewise.
4196 (remote_debug): Likewise.
4197 * remote-utils.h (remote_debug): Likewise,
4198 * server.c (remote_debug): Remove definition.
4200 2019-04-10 Kevin Buettner <kevinb@redhat.com>
4202 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
4203 when using a 64-bit gdbserver.
4205 2019-04-09 Tom Tromey <tromey@adacore.com>
4207 * linux-low.c (select_event_lwp): Use find_thread_in_random.
4209 2019-04-08 Tom Tromey <tom@tromey.com>
4211 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
4213 (linux_resume_one_lwp): Likewise.
4215 2019-04-08 Tom Tromey <tom@tromey.com>
4217 * gdbreplay.c: Update.
4218 * linux-low.c: Update.
4221 2019-04-08 Tom Tromey <tom@tromey.com>
4223 * server.c: Use C++ exception handling.
4224 * linux-low.c: Use C++ exception handling.
4225 * gdbreplay.c: Use C++ exception handling.
4227 2019-04-08 Tom Tromey <tom@tromey.com>
4229 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
4230 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
4231 (captured_main, main): Update.
4232 * gdbreplay.c (main): Update.
4234 2019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4236 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
4237 value in argument pointer, return 1 if the entry is found and 0
4238 otherwise. Move comment.
4239 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
4240 * linux-low.h (linux_get_auxv): Declare.
4241 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
4243 2019-04-05 Tom Tromey <tromey@adacore.com>
4245 * server.c (gdbserver_usage): Use upper-case for metasyntactic
4248 2019-03-28 Alan Hayward <alan.hayward@arm.com>
4250 * linux-low.c (AT_HWCAP2): Add define if not already included.
4252 2019-03-26 Alan Hayward <alan.hayward@arm.com>
4254 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
4255 (aarch64_arch_setup): Call linux_get_hwcap.
4256 * linux-arm-low.c (arm_get_hwcap): Remove function.
4257 (arm_read_description): Call linux_get_hwcap.
4258 * linux-low.c (linux_get_auxv): New function.
4259 (linux_get_hwcap): Likewise.
4260 (linux_get_hwcap2): Likewise.
4261 * linux-low.h (linux_get_hwcap): New declaration.
4262 (linux_get_hwcap2): Likewise.
4263 * linux-ppc-low.c (ppc_get_auxv): Remove function.
4264 (ppc_arch_setup): Call linux_get_hwcap.
4265 * linux-s390-low.c (s390_get_hwcap): Remove function.
4266 (s390_arch_setup): Call linux_get_hwcap.
4268 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4269 Jiong Wang <jiong.wang@arm.com>
4271 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
4272 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
4274 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
4276 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4277 Jiong Wang <jiong.wang@arm.com>
4279 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
4280 (aarch64_get_hwcap): New function.
4281 (aarch64_arch_setup): Read APIA hwcap.
4283 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4284 Jiong Wang <jiong.wang@arm.com>
4286 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
4287 (initialize_low_tracepoint): Likewise.
4288 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
4289 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
4290 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
4291 (aarch64_linux_read_description): Likewise.
4292 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
4294 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4296 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
4297 i386_create_target_description for 'segments' parameter.
4298 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
4299 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
4300 * win32-i386-low.c (i386_arch_setup): Likewise.
4302 2019-03-12 Tom Tromey <tromey@adacore.com>
4304 * linux-low.c (iterate_over_lwps): Update.
4306 2019-03-06 Tom Tromey <tom@tromey.com>
4308 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
4309 (captured_main): Use SCOPE_EXIT.
4311 2019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
4313 * configure.srv: Use '$enable_unittest' instead of '$development'
4314 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
4317 2019-02-27 Tom Tromey <tromey@adacore.com>
4319 * gdbreplay.c (logchar): Handle \r\n.
4321 2019-02-07 Alan Hayward <alan.hayward@arm.com>
4323 * linux-low.c (linux_attach): Add process before lwp.
4324 * server.c (attach_inferior): Check if already attached.
4326 2019-02-07 Tom Tromey <tom@tromey.com>
4328 * x86-tdesc.h: Rename include guard.
4329 * x86-low.h: Add include guard.
4330 * wincecompat.h: Rename include guard.
4331 * win32-low.h: Add include guard.
4332 * utils.h: Rename include guard.
4333 * tracepoint.h: Rename include guard.
4334 * tdesc.h: Rename include guard.
4335 * target.h: Rename include guard.
4336 * server.h: Rename include guard.
4337 * remote-utils.h: Rename include guard.
4338 * regcache.h: Rename include guard.
4339 * nto-low.h: Rename include guard.
4340 * notif.h: Add include guard.
4341 * mem-break.h: Rename include guard.
4342 * lynx-low.h: Add include guard.
4343 * linux-x86-tdesc.h: Add include guard.
4344 * linux-s390-tdesc.h: Add include guard.
4345 * linux-ppc-tdesc-init.h: Add include guard.
4346 * linux-low.h: Add include guard.
4347 * linux-aarch64-tdesc.h: Add include guard.
4348 * linux-aarch32-low.h: Add include guard.
4349 * inferiors.h: Rename include guard.
4350 * i387-fp.h: Rename include guard.
4351 * hostio.h: Rename include guard.
4352 * gdbthread.h: Rename include guard.
4353 * gdb_proc_service.h: Rename include guard.
4354 * event-loop.h: Rename include guard.
4355 * dll.h: Rename include guard.
4356 * debug.h: Rename include guard.
4357 * ax.h: Rename include guard.
4359 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
4362 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
4363 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
4365 2019-01-25 Tom Tromey <tom@tromey.com>
4367 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
4369 2019-01-25 Tom Tromey <tom@tromey.com>
4371 * win32-low.c: Fix common/ includes.
4372 * win32-i386-low.c: Fix common/ includes.
4373 * tracepoint.c: Fix common/ includes.
4374 * thread-db.c: Fix common/ includes.
4375 * target.h: Fix common/ includes.
4376 * symbol.c: Fix common/ includes.
4377 * spu-low.c: Fix common/ includes.
4378 * server.h: Fix common/ includes.
4379 * server.c: Fix common/ includes.
4380 * remote-utils.c: Fix common/ includes.
4381 * regcache.h: Fix common/ includes.
4382 * regcache.c: Fix common/ includes.
4383 * nto-x86-low.c: Fix common/ includes.
4384 * notif.h: Fix common/ includes.
4385 * mem-break.h: Fix common/ includes.
4386 * lynx-low.c: Fix common/ includes.
4387 * lynx-i386-low.c: Fix common/ includes.
4388 * linux-x86-tdesc-selftest.c: Fix common/ includes.
4389 * linux-x86-low.c: Fix common/ includes.
4390 * linux-low.c: Fix common/ includes.
4391 * inferiors.h: Fix common/ includes.
4392 * i387-fp.c: Fix common/ includes.
4393 * hostio.c: Fix common/ includes.
4394 * hostio-errno.c: Fix common/ includes.
4395 * gdbthread.h: Fix common/ includes.
4396 * gdbreplay.c: Fix common/ includes.
4397 * fork-child.c: Fix common/ includes.
4398 * event-loop.c: Fix common/ includes.
4400 (enum gdb_agent_op): Fix common/ includes.
4402 2019-01-21 Tom Tromey <tom@tromey.com>
4404 * tracepoint.c: Fix includes.
4405 * remote-utils.c: Fix includes.
4406 * linux-x86-low.c: Fix includes.
4408 2019-01-01 Joel Brobecker <brobecker@adacore.com>
4410 * gdbreplay.c (gdbreplay_version): Update copyright year in
4412 * server.c (gdbserver_version): Likewise.
4414 2018-12-05 Alan Hayward <alan.hayward@arm.com>
4416 * linux-low.c (add_lwp): Switch ordering.
4418 2018-11-29 Tom Tromey <tom@tromey.com>
4420 * win32-low.c (win32_join): Take pid, not process.
4421 * target.h (struct target_ops) <join>: Change argument type.
4422 (join_inferior): Change argument name.
4423 * spu-low.c (spu_join): Take pid, not process.
4424 * server.c (handle_detach): Preserve pid before destroying
4426 * lynx-low.c (lynx_join): Take pid, not process.
4427 * linux-low.c (linux_join): Take pid, not process.
4429 2018-11-23 Alan Hayward <alan.hayward@arm.com>
4431 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
4432 (aarch64_cannot_fetch_register): Likewise.
4433 (struct linux_target_ops): Update references.
4435 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4437 * linux-ppc-low.c: Include nat/linux-ptrace.h.
4439 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4441 * configure.srv (ipa_ppc_linux_regobj): Add
4442 powerpc-isa207-htm-vsx32l-ipa.o and
4443 powerpc-isa207-htm-vsx64l-ipa.o.
4444 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
4445 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
4446 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
4447 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
4448 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
4449 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
4450 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
4451 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
4452 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
4453 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
4454 (init_registers_powerpc_isa207_htm_vsx32l)
4455 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
4456 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
4457 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
4458 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
4459 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
4460 (ppc_store_tm_ctarregset): New functions.
4461 (ppc_regsets): Add entries for HTM regsets.
4462 (ppc_arch_setup): Set htm in features struct when needed. Set
4463 sizes for the HTM regsets.
4464 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
4465 (initialize_low_arch): Call
4466 init_registers_powerpc_isa207_htm_vsx32l and
4467 init_registers_powerpc_isa207_htm_vsx64l.
4468 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
4469 PPC_TDESC_ISA207_HTM_VSX.
4470 (initialize_low_tracepoint): Call
4471 init_registers_powerpc_isa207_htm_vsx32l and
4472 init_registers_powerpc_isa207_htm_vsx64l.
4474 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4476 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
4477 rs6000/power-linux-pmu.xml to srv_xmlfiles.
4478 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
4479 (ppc_store_pmuregset): New functions.
4480 (ppc_regsets): Add entries for ebb and pmu regsets.
4481 (ppc_arch_setup): Set isa207 in features struct if the ebb and
4482 pmu regsets are available. Set sizes for these regsets.
4484 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4486 * configure.srv (ipa_ppc_linux_regobj): Add
4487 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
4488 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
4489 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
4490 rs6000/powerpc-isa207-vsx32l.xml, and
4491 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
4492 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
4493 <PPC_TDESC_ISA207_VSX>: New enum value.
4494 (init_registers_powerpc_isa207_vsx32l): Declare.
4495 (init_registers_powerpc_isa207_vsx64l): Declare.
4496 * linux-ppc-low.c (ppc_fill_tarregset): New function.
4497 (ppc_store_tarregset): New function.
4498 (ppc_regsets): Add entry for the TAR regset.
4499 (ppc_arch_setup): Set isa207 in features struct when needed. Set
4500 size for the TAR regsets.
4501 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
4502 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
4503 and init_registers_powerpc_isa207_vsx64l.
4504 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
4505 (initialize_low_tracepoint): Call
4506 init_registers_powerpc_isa207_vsx32l and
4507 init_registers_powerpc_isa207_vsx64l.
4509 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4510 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4512 * configure.srv (ipa_ppc_linux_regobj): Add
4513 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
4514 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
4515 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
4516 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
4517 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
4518 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
4519 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
4520 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
4521 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
4522 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
4523 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
4524 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
4525 (ppc_hwcap): Add comment.
4526 (ppc_hwcap2): New global.
4527 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
4528 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
4529 (ppc_regsets): Add entries for the DSCR and PPR regsets.
4530 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
4531 when needed. Set sizes for the the DSCR and PPR regsets.
4532 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
4533 (initialize_low_arch): Call
4534 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
4535 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
4536 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
4537 PPC_TDESC_ISA205_PPR_DSCR_VSX.
4538 (initialize_low_tracepoint): Call
4539 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
4540 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
4542 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4544 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
4546 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
4547 Simon Marchi <simark@simark.ca>
4549 * acinclude.m4: Include "../selftest.m4".
4550 * configure: Regenerate.
4551 * configure.ac: Use "GDB_AC_SELFTEST".
4552 * configure.srv: Use "$enable_unittests" instead of
4553 "$development" when checking whether unit tests have been
4555 * server.c (captured_main): Update message informing that
4556 selftests have been disabled.
4558 2018-10-04 Tom Tromey <tom@tromey.com>
4560 * configure: Rebuild.
4562 2018-10-04 Tom Tromey <tom@tromey.com>
4564 * server.c (handle_status): Rename inner "thread".
4565 (process_serial_event): Declare "res" in 'm' case.
4566 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
4567 (iterate_over_lwps): Rename inner "thread".
4568 (linux_qxfer_libraries_svr4): Rename inner "len".
4569 * gdbthread.h (find_thread_in_random): Rename inner "thread".
4571 2018-10-01 Gary Benson <gbenson@redhat.com>
4573 * gdb_proc_service.h: Moved common code to
4574 common/gdb_proc_service.h.
4576 2018-10-01 Gary Benson <gbenson@redhat.com>
4578 * gdb_proc_service.h: Synchronize comments and whitespace with
4579 GDB's version of this file.
4581 2018-09-25 Tom Tromey <tom@tromey.com>
4583 * configure: Rebuild.
4584 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
4586 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
4588 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
4589 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
4590 ($(IPA_LIB)): Sort IPA_OBJS.
4592 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
4594 * Makefile.in: Remove references to $(ADD_DEPS).
4596 2018-09-16 Tom Tromey <tom@tromey.com>
4598 * remote-utils.c (remote_open): Use GNU style for metasyntactic
4600 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
4603 2018-09-05 Tom Tromey <tom@tromey.com>
4605 * configure: Rebuild.
4607 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
4610 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
4612 2018-08-27 Tom Tromey <tom@tromey.com>
4615 * configure: Rebuild.
4617 2018-08-27 Tom Tromey <tom@tromey.com>
4619 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
4620 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
4621 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
4622 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
4623 (s390x_emit_stack_adjust): Add casts to unsigned char.
4625 2018-08-22 Simon Marchi <simon.marchi@ericsson.com>
4629 * server.h (struct client_state) <disable_randomization>:
4632 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4634 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
4636 (mips_supply_ptrace_register): Likewise.
4638 2018-07-22 Tom Tromey <tom@tromey.com>
4640 * configure: Rebuild.
4642 2018-07-22 Tom Tromey <tom@tromey.com>
4644 * win32-low.c (win32_create_inferior): Remove unused variables.
4645 * gdbreplay.c (remote_open): Remove unused variable.
4646 * remote-utils.c (remote_prepare): Remove unused variable.
4647 * x86-tdesc.h (X86_TDESC_H): Define.
4648 (amd64_expedite_regs): Define conditionally.
4649 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
4650 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
4651 * remote-utils.c (readchar): Remove unused variable.
4653 2018-07-13 Pedro Alves <palves@redhat.com>
4655 * linux-low.c (linux_kill): Change parameter to process_info
4656 pointer instead of pid. Adjust.
4657 * lynx-low.c (lynx_kill): Likewise.
4658 * nto-low.c (nto_kill): Likewise.
4659 * spu-low.c (spu_kill): Likewise.
4660 * win32-low.c (win32_kill): Likewise.
4661 * server.c (handle_v_kill, kill_inferior_callback)
4662 (detach_or_kill_for_exit): Adjust.
4663 * target.c (kill_inferior): Change parameter to process_info
4664 pointer instead of pid. Adjust.
4665 * target.h (struct target_ops) <kill>: Change parameter to
4666 process_info pointer instead of pid. Adjust all implementations
4668 (kill_inferior): Likewise.
4670 2018-07-13 Pedro Alves <palves@redhat.com>
4672 * linux-low.c (linux_detach, linux_join): Change parameter to
4673 process_info pointer instead of pid. Adjust.
4674 * lynx-low.c (lynx_detach, lynx_join): Likewise.
4675 * nto-low.c (nto_detach): Likewise.
4676 * spu-low.c (spu_detach, spu_join): Likewise.
4677 * win32-low.c (win32_detach, win32_join): Likewise.
4678 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
4679 * target.h (struct target_ops) <detach, join>: Change parameter to
4680 process_info pointer instead of pid. Adjust all implementations
4682 (detach_inferior, join_inferior): Rename 'pid' parameter to
4685 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4686 Jan Kratochvil <jan.kratochvil@redhat.com>
4687 Paul Fertser <fercerpav@gmail.com>
4688 Tsutomu Seki <sekiriki@gmail.com>
4690 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
4691 (OBS): Add 'common/netstuff.o'.
4692 (GDBREPLAY_OBS): Likewise.
4693 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
4694 (remote_open): Implement support for IPv6
4696 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
4698 (handle_accept_event): Accept connections from IPv6 sources.
4699 (remote_prepare): Handle IPv6-style hostnames; implement
4700 support for IPv6 connections.
4701 (remote_open): Implement support for printing connections from
4704 2018-07-11 Pedro Alves <palves@redhat.com>
4707 * mem-break.c (any_persistent_commands): Add process_info
4708 parameter and use it instead of relying on the current process.
4709 Change return type to bool.
4710 * mem-break.h (any_persistent_commands): Add process_info
4711 parameter and change return type to bool.
4712 * server.c (handle_detach): Remove require_running_or_return call.
4713 Look up the process_info for the process we're about to detach.
4714 If not found, return back error to GDB. Adjust
4715 any_persistent_commands call to pass down a process pointer.
4717 2018-07-11 Pedro Alves <palves@redhat.com>
4719 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
4720 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
4721 instead of collect_register_by_name.
4722 * regcache.c (regcache_raw_get_unsigned_by_name): New.
4723 * regcache.h (regcache_raw_get_unsigned_by_name): New.
4725 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
4726 Pedro Alves <palves@redhat.com>
4728 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
4730 2018-07-03 Tom Tromey <tom@tromey.com>
4732 * linux-low.c: Update.
4733 * lynx-low.c: Update.
4734 * mem-break.c: Update.
4735 * nto-low.c: Update.
4736 * remote-utils.c: Update.
4738 * spu-low.c: Update.
4740 * win32-low.c: Update.
4742 2018-07-03 Tom Tromey <tom@tromey.com>
4746 2018-07-03 Tom Tromey <tom@tromey.com>
4748 * linux-low.c: Update.
4750 2018-07-03 Tom Tromey <tom@tromey.com>
4754 2018-07-03 Tom Tromey <tom@tromey.com>
4756 * linux-low.c: Update.
4757 * linux-mips-low.c: Update.
4758 * lynx-low.c: Update.
4759 * nto-low.c: Update.
4760 * remote-utils.c: Update.
4762 * spu-low.c: Update.
4764 * thread-db.c: Update.
4766 2018-07-03 Tom Tromey <tom@tromey.com>
4768 * linux-low.c: Update.
4769 * linux-mips-low.c: Update.
4770 * lynx-low.c: Update.
4771 * mem-break.c: Update.
4772 * nto-low.c: Update.
4773 * remote-utils.c: Update.
4775 * spu-low.c: Update.
4777 * tracepoint.c: Update.
4779 2018-07-03 Tom Tromey <tom@tromey.com>
4781 * linux-low.c: Update.
4782 * linux-ppc-low.c: Update.
4783 * linux-x86-low.c: Update.
4784 * proc-service.c: Update.
4786 * spu-low.c: Update.
4787 * thread-db.c: Update.
4788 * win32-low.c: Update.
4790 2018-07-03 Tom Tromey <tom@tromey.com>
4792 * linux-low.c: Update.
4793 * lynx-low.c: Update.
4794 * nto-low.c: Update.
4795 * remote-utils.c: Update.
4796 * spu-low.c: Update.
4797 * thread-db.c: Update.
4798 * win32-low.c: Update.
4800 2018-06-29 Joel Brobecker <brobecker@adacore.com>
4802 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
4803 parameter in call to 'amd64_create_target_description'.
4805 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4807 * x86-tdesc.h: Remove executable permission flag.
4809 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
4811 * configure.ac: Remove AC_PREREQ, add missing quoting.
4812 * configure: Re-generate.
4813 * config.in: Re-generate.
4814 * aclocal.m4: Re-generate.
4816 2018-06-18 Simon Marchi <simon.marchi@ericsson.com>
4818 * tracepoint.h (current_traceframe): Remove declaration.
4820 2018-06-18 Alan Hayward <alan.hayward@arm.com>
4822 * linux-aarch64-low.c (is_sve_tdesc): New function.
4823 (aarch64_sve_regs_copy_to_regcache): Likewise.
4824 (aarch64_sve_regs_copy_from_regcache): Likewise.
4825 (aarch64_regs_info): Add SVE checks.
4826 (initialize_low_arch): Initialize SVE.
4828 2018-06-18 Alan Hayward <alan.hayward@arm.com>
4830 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
4832 2018-06-11 Alan Hayward <alan.hayward@arm.com>
4834 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
4835 (initialize_low_tracepoint): Likewise
4836 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
4837 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
4839 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
4841 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
4843 2018-06-11 Alan Hayward <alan.hayward@arm.com>
4845 * server.h (PBUFSIZ): Increase size
4847 2018-06-11 Alan Hayward <alan.hayward@arm.com>
4849 * regcache.c (regcache::raw_compare): New function.
4850 * regcache.h (regcache::raw_compare): New declaration.
4852 2018-06-11 Alan Hayward <alan.hayward@arm.com>
4854 * regcache.c (new_register_cache): Use new.
4855 (free_register_cache): Use delete.
4856 (register_data): Use const.
4857 (supply_register): Move body inside regcache.
4858 (regcache::raw_supply): New override function.
4859 (collect_register): Move body inside regcache.
4860 (regcache::raw_collect): New override function.
4861 (regcache::get_register_status): New override function.
4862 * regcache.h (struct regcache): Inherit from reg_buffer_common.
4864 2018-06-09 Tom Tromey <tom@tromey.com>
4866 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
4868 (event_queue): Use std::queue.
4869 (gdb_event_xfree): Remove.
4870 (initialize_event_loop, process_event, wait_for_event): Update.
4872 2018-06-08 Stan Cox <scox@redhat.com>
4874 * win32-low.c (win32_create_inferior): last_ptid and last_status
4875 moved to client_state.
4877 2018-06-08 Pedro Alves <palves@redhat.com>
4879 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
4880 common/common-exceptions.o, common/common-utils.o,
4881 common/errors.o, common/print-utils.o and utils.o.
4882 * gdbreplay.c: Include "common-defs.h" instead of the two
4883 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
4884 string.h or alloca.h.
4885 (perror_with_name): Delete.
4886 (remote_open): Use xstrdup instead of strdup.
4887 (main): Rename to ...
4888 (captured_main): ... this.
4891 2018-06-08 Tom Tromey <tom@tromey.com>
4893 * linux-low.c (linux_low_read_btrace): Update.
4895 2018-06-04 Stan Cox <scox@redhat.com>
4897 * server.h (struct client_state): New.
4898 * server.c (cont_thread, general_thread, multi_process)
4899 (report_fork_events, report_vfork_events, report_exec_events)
4900 (report_thread_events, swbreak_feature, hwbreak_feature)
4901 (vCont_supported, disable_randomization, pass_signals)
4902 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
4903 Moved to client_state.
4904 * remote-utils.c (remote_debug, noack_mode)
4905 (transport_is_reliable): Moved to client_state.
4906 * tracepoint.c (current_traceframe): Moved to client_state.
4909 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
4910 linux-low.c, remote-utils.h, target.c: Use client_state.
4912 2018-05-31 Alan Hayward <alan.hayward@arm.com>
4914 * configure.srv: Add new c/h file.
4916 2018-05-31 Alan Hayward <alan.hayward@arm.com>
4918 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
4921 2018-05-25 Maciej W. Rozycki <macro@mips.com>
4923 * gdb.arch/mips-fpregset-core.exp: New test.
4924 * gdb.arch/mips-fpregset-core.c: New test source.
4926 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
4929 * hostio.c (require_int): Do not report overflow for integers
4930 between 0xfffffff and 0x7fffffff.
4932 2018-05-22 Maciej W. Rozycki <macro@mips.com>
4934 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
4935 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
4936 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
4938 (the_low_target): Wire them.
4940 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4942 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
4943 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
4944 mode. Call collect_register_by_name with vscr using
4945 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
4946 (ppc_store_vrregset): Add and set vscr_offset variable as in
4947 ppc_fill_vrregset. Call supply_register_by_name with vscr using
4950 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4952 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
4953 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
4954 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
4956 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4958 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
4959 (ppc_store_vsxregset): Likewise.
4960 (ppc_fill_vrregset): Likewise.
4961 (ppc_store_vrregset): Likewise.
4962 (ppc_fill_evrregset): Likewise.
4963 (ppc_store_evrregset): Likewise.
4964 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
4965 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
4968 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4970 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
4971 wordsize of the inferior. Call ppc_linux_target_wordsize.
4973 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4975 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
4976 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
4977 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
4978 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
4979 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
4980 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
4981 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
4982 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
4983 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
4984 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
4985 (tdesc_powerpc_e500l): Remove.
4986 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
4987 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
4988 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
4989 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
4991 (ppc_arch_setup): Remove target description matching code. Fill a
4992 ppc_linux_features struct and call ppc_linux_match_description
4995 2018-05-22 Maciej W. Rozycki <macro@mips.com>
4997 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
4998 width of the requested register exceeds the width of the
5000 (mips_cannot_store_register): Likewise.
5002 2018-05-21 Maciej W. Rozycki <macro@mips.com>
5004 * linux-mips-low.c (mips_fetch_register): New function. Update
5006 (mips_store_gregset): Supply 0 rather than $restart for $zero.
5007 (the_low_target): Wire `mips_fetch_register'.
5009 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5011 * lynx-i386-low.c (LYNXOS_178): New macro.
5012 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
5013 the layout on LynxOS-178.
5014 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
5015 handle floating point registers that are not supported by
5018 2018-05-10 Tom Tromey <tom@tromey.com>
5020 * configure: Rebuild.
5022 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5025 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
5026 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
5027 Use it to set the expedite_regs field in the given tdesc.
5028 * x86-tdesc.h: New file.
5029 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
5030 Adjust following the addition of the new expedite_regs parameter
5031 to init_target_desc.
5032 * linux-tic6x-low.c (tic6x_read_description): Likewise.
5033 * linux-x86-tdesc.c: #include "x86-tdesc.h".
5034 (i386_linux_read_description, amd64_linux_read_description):
5035 Adjust following the addition of the new expedite_regs parameter
5036 to init_target_desc.
5037 * lynx-i386-low.c: #include "x86-tdesc.h".
5038 (lynx_i386_arch_setup): Adjust following the addition of the new
5039 expedite_regs parameter to init_target_desc.
5040 * nto-x86-low.c: #include "x86-tdesc.h".
5041 (nto_x86_arch_setup): Adjust following the addition of the new
5042 expedite_regs parameter to init_target_desc.
5043 * win32-i386-low.c: #include "x86-tdesc.h".
5044 (i386_arch_setup): Adjust following the addition of the new
5045 expedite_regs parameter to init_target_desc.
5047 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5050 * win32-low.c (win32_create_inferior): Add call to my_wait
5051 setting last_status global.
5053 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5056 * win32-low.c (create_process): Only call gdb_tilde_expand if
5057 inferior_cwd is not NULL.
5059 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5061 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
5062 registers to the cache if their values have changed.
5063 (i387_xsave_to_cache): Provide default values for x87 control
5064 registers when these features are available, but disabled.
5065 * regcache.c (supply_register_by_name_zeroed): New function.
5066 * regcache.h (supply_register_by_name_zeroed): Declare new
5069 2018-05-07 Tom Tromey <tom@tromey.com>
5071 * configure: Rebuild.
5073 2018-05-04 Tom Tromey <tom@tromey.com>
5075 * configure: Rebuild.
5077 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5078 Pedro Alves <palves@redhat.com>
5080 * linux-aarch64-low.c (aarch64_stopped_data_address):
5083 2018-04-27 Tom Tromey <tom@tromey.com>
5085 * configure: Rebuild.
5087 2018-04-23 Tom Tromey <tom@tromey.com>
5089 * configure: Rebuild.
5091 2018-04-19 Simon Marchi <simon.marchi@ericsson.com>
5093 * Makefile.in (depcomp): Add "..".
5094 (all_deps_files): New and use it.
5096 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5098 * configure.srv (aarch64*-*-linux*): Don't include xml.
5099 (i[34567]86-*-cygwin*): Likewise.
5100 (i[34567]86-*-linux*): Likewise.
5101 (i[34567]86-*-lynxos*): Likewise.
5102 (i[34567]86-*-mingw32ce*): Likewise.
5103 (i[34567]86-*-mingw*): Likewise.
5104 (i[34567]86-*-nto*): Likewise.
5105 (tic6x-*-uclinux): Likewise.
5106 (x86_64-*-linux*): Likewise.
5107 (x86_64-*-mingw*): Likewise.
5108 (x86_64-*-cygwin*): Likewise.
5110 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5112 * tdesc.c: Remove xml parameter.
5114 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5116 * server.c (get_features_xml): Remove cast.
5117 * tdesc.c (void target_desc::accept): Fill in function.
5118 (tdesc_get_features_xml): Remove old xml creation.
5119 (print_xml_feature::visit_pre): Add xml vistor.
5120 * tdesc.h (struct target_desc): Make xmltarget mutable.
5121 (tdesc_get_features_xml): Remove declaration.
5123 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5125 * tdesc.c (tdesc_architecture_name): Add new function.
5126 (tdesc_osabi_name): Likewise.
5127 (tdesc_get_features_xml): Use new functions.
5129 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5131 * tdesc.c (tdesc_create_flags): Remove.
5132 (tdesc_add_flag): Likewise.
5133 (tdesc_named_type): Likewise.
5134 (tdesc_create_union): Likewise.
5135 (tdesc_create_struct): Likewise.
5136 (tdesc_create_vector): Likewise.
5137 (tdesc_add_bitfield): Likewise.
5138 (tdesc_add_field): Likewise.
5139 (tdesc_set_struct_size): Likewise.
5141 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5143 * tdesc.c (~target_desc): Remove implictly deleted items.
5144 (init_target_desc): Iterate all features.
5145 (tdesc_get_features_xml): Use vector.
5146 (tdesc_create_feature): Create feature.
5147 * tdesc.h (tdesc_feature) Remove
5148 (target_desc): Add features.
5150 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5152 * Makefile.in: Add common/tdesc.c
5153 * tdesc.c (init_target_desc): init all reg_defs from register
5155 (tdesc_create_reg): Create tdesc_reg.
5156 * tdesc.h (tdesc_feature): Add register vector.
5158 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
5160 * tdesc.h (struct target_desc) <features>: Change type to
5161 std::vector<std::string>.
5162 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
5164 (tdesc_get_features_xml): Likewise.
5165 (tdesc_create_feature): Likewise.
5167 2018-03-26 Alan Hayward <alan.hayward@arm.com>
5169 * regcache.c (find_register_by_number): Return a ref.
5170 (find_regno): Use references.
5171 (register_size): Likewise.
5172 (register_data): Likewise.
5173 * tdesc.c (target_desc::~target_desc): Remove free calls.
5174 (target_desc::operator==): Use std::vector compare.
5175 (init_target_desc): Use reference.
5176 (tdesc_create_reg): Use reg constructors.
5177 * tdesc.h (struct target_desc): Replace pointer with object.
5179 2018-03-23 Alan Hayward <alan.hayward@arm.com>
5181 * regcache.c (find_register_by_number): Make static.
5182 (find_regno): Use find_register_by_number
5183 * regcache.h (struct reg): Remove declaration.
5185 2018-03-23 Alan Hayward <alan.hayward@arm.com>
5187 * tdesc.c (target_desc::~target_desc): Move to here.
5188 (target_desc::operator==): Likewise.
5189 * tdesc.h (target_desc::~target_desc): Move from here.
5190 (target_desc::operator==): Likewise.
5192 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
5194 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
5196 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5198 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
5200 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
5201 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
5202 and init_registers_s390_gs_linux64.
5204 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5206 * linux-s390-low.c (s390_fill_gs): Remove function.
5207 (s390_fill_gsbc): Remove function.
5208 (s390_regsets): Set fill functions for the guarded storage regsets
5211 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5213 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
5214 the word size. Add comment.
5215 (s390_get_wordsize): New function.
5216 (s390_arch_setup): No longer select a temporary tdesc to fetch the
5217 pswm with it. Instead, use s390_get_wordsize to determine the
5218 word size first and derive the correct tdesc from that directly.
5220 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
5222 * Makefile.in: Include silent-rules.mk.
5223 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
5224 (COMPILE): Add ECHO_CXX.
5225 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5226 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5227 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
5228 (version-generated.c): Add ECHO_GEN.
5229 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
5230 (IPAGENT_COMPILE): Add ECHO_CXX.
5231 (%-generated.c): Add ECHO_REGDAT.
5233 2018-03-14 Tom Tromey <tom@tromey.com>
5236 * ax.c (ax_printf): Special case for NULL.
5238 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5240 * linux-low.c (linux_qxfer_libraries_svr4): Use
5241 xml_escape_text_append.
5243 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5245 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
5247 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5249 * server.c (handle_general_set): Remove unnecessary xstrdup.
5251 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5253 * server.c (parse_debug_format_options): Adjust to
5254 delim_string_to_char_ptr_vec changes.
5255 * thread-db.c (thread_db_load_search): Adjust to
5256 dirnames_to_char_ptr_vec changes.
5258 2018-03-01 Markus Metzger <markus.t.metzger@intel.com>
5260 * target.h (target_enable_btrace, target_disable_btrace)
5261 (target_read_btrace, target_read_btrace_conf): Turn macro into
5262 inline function. Throw error if target method is not defined.
5263 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
5264 check for btrace target method. Be prepared to handle exceptions
5265 from btrace target methods.
5267 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5269 * server.c (captured_main): Change order of error message printed
5270 when the current working directory cannot be found.
5272 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5274 * server.c: Include "filenames.h" and "pathstuff.h".
5275 (program_name): Delete variable.
5276 (program_path): New anonymous class.
5277 (get_exec_wrapper): Use "program_path" instead of
5279 (handle_v_run): Likewise.
5280 (captured_main): Likewise.
5281 (process_serial_event): Likewise.
5283 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5285 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
5286 (OBJS): Add "pathstuff.o".
5287 * server.c (current_directory): New global variable.
5288 (captured_main): Initialize "current_directory".
5290 2018-02-26 Alan Hayward <alan.hayward@arm.com>
5292 * tdesc.c: Use common/tdesc.h.
5293 * tdesc.h: Likewise.
5295 2018-02-20 Alan Hayward <alan.hayward@arm.com>
5296 Simon Marchi <simon.marchi@ericsson.com>
5298 * Makefile.in: Switch order of make rules.
5300 2018-02-19 Alan Hayward <alan.hayward@arm.com>
5302 * Makefile.in: Add common directory in build.
5303 * configure.ac: Add common reference.
5304 * configure: Regenerate.
5306 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5308 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
5309 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
5310 * spu-low.c (spu_target_ops): Likewise.
5311 * win32-low.c (win32_target_ops): Likewise.
5312 * server.c (supported_btrace_packets): Report packets unconditionally.
5313 * target.h (target_ops) <supports_btrace>: Remove.
5314 (target_supports_btrace): Remove.
5316 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5318 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
5319 (handle_btrace_disable): Change return type to void. Use exceptions
5321 (handle_btrace_general_set): Catch exception and copy message to
5324 2018-02-08 Tom Tromey <tom@tromey.com>
5326 * linux-low.c (install_software_single_step_breakpoints): Use
5327 make_scoped_restore.
5328 * inferiors.c (make_cleanup_restore_current_thread): Remove.
5329 (do_restore_current_thread_cleanup): Remove.
5330 * gdbthread.h (make_cleanup_restore_current_thread): Don't
5333 2018-02-08 Tom Tromey <tom@tromey.com>
5335 * mem-break.c (set_raw_breakpoint_at): Use
5336 gdb::unique_xmalloc_ptr.
5338 2018-01-30 Pedro Alves <palves@redhat.com>
5341 * target.c (target_terminal::terminal_state): Rename to ...
5342 (target_terminal::m_terminal_state): ... this.
5344 2018-01-19 James Clarke <jrtc27@jrtc27.com>
5346 * linux-low.c (handle_extended_wait): Surround call to
5347 thread_db_notice_clone with #ifdef USE_THREAD_DB.
5349 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
5351 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
5352 linux_ptrace_attach_fail_reason_string now returning an
5354 (linux_attach): Likewise.
5355 * thread-db.c (attach_thread): Likewise.
5357 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
5360 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
5361 checking for fs_base/gs_base fields in struct user_regs_struct.
5362 * configure: Regenerate.
5364 2018-01-16 Yao Qi <yao.qi@linaro.org>
5367 * linux-low.c (fetch_register): Call supply_register instead of
5370 2018-01-08 Yao Qi <yao.qi@linaro.org>
5371 Simon Marchi <simon.marchi@ericsson.com>
5373 * Makefile.in (OBS): Remove selftest.o.
5374 * configure.ac: Set srv_selftest_objs if $development is true.
5375 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
5376 * configure: Re-generated.
5377 * server.c (captured_main): Wrap variable selftest_filter with
5380 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
5382 * server.c (parse_debug_format_options): Return std::string.
5383 (handle_monitor_command, captured_main): Adjust.
5385 2018-01-05 Pedro Alves <palves@redhat.com>
5388 * server.c (captured_main): Pass quiet=false to
5389 save_original_signals_state.
5391 2018-01-01 Joel Brobecker <brobecker@adacore.com>
5393 * gdbreplay.c (gdbreplay_version): Update copyright year in
5395 * server.c (gdbserver_version): Likewise.
5397 2017-12-08 Tom Tromey <tom@tromey.com>
5399 * ax.c (ax_printf): Update.
5401 2017-12-07 Yao Qi <yao.qi@linaro.org>
5403 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
5404 aarch64_linux_read_description.
5405 * linux-amd64-ipa.c (idx2mask): New array.
5406 (get_ipa_tdesc): Move idx2mask out.
5407 (initialize_low_tracepoint): Initialize target descriptions.
5408 * linux-i386-ipa.c (idx2mask): New array.
5409 (get_ipa_tdesc): Move idx2mask out.
5410 (initialize_low_tracepoint): Initialize target descriptions.
5412 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
5414 * tdesc.c (struct tdesc_type): Change return type.
5415 (tdesc_add_flag): Change parameter type.
5416 (tdesc_add_bitfield): Likewise.
5417 (tdesc_add_field): Likewise.
5418 (tdesc_set_struct_size): Likewise.
5420 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
5422 * regcache.c (registers_to_string): Remove unused variable.
5424 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5426 * inferiors.c (for_each_inferior_with_data): Remove.
5427 * inferiors.h (for_each_inferior_with_data): Remove.
5428 * server.c (handle_qxfer_threads_worker): Change parameter type.
5429 (handle_qxfer_threads_proper): Use for_each_thread.
5431 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5433 * inferiors.c (for_each_inferior): Remove.
5434 (clear_inferiors): Use for_each_thread.
5435 * inferiors.h (for_each_inferior): Remove.
5436 * linux-low.c (linux_wait_for_event_filtered): Use
5438 (linux_stabilize_threads): Likewise.
5439 * regcache.c (regcache_release): Likewise.
5440 * server.c (gdb_wants_all_threads_stopped): Likewise.
5441 (clear_pending_status_callback): Remove.
5442 (handle_status): Use for_each_thread.
5443 (captured_main): Likewise.
5444 * win32-low.c (child_init_thread_list): Likewise.
5445 (win32_clear_inferiors): Likewise.
5446 (fake_breakpoint_event): Likewise.
5448 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5450 * inferiors.h (find_inferior): Remove.
5451 * inferiors.c (find_inferior): Remove.
5453 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5455 * linux-low.c (resume_status_pending_p): Update comment.
5456 (need_step_over_p): Update comment.
5458 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5460 * linux-low.c (proceed_one_lwp): Return void, change parameter
5462 (unsuspend_and_proceed_one_lwp): Likewise.
5463 (proceed_all_lwps): Use for_each_thread.
5464 (unstop_all_lwps): Likewise.
5466 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5468 * linux-low.c (linux_resume_one_thread): Return void, take
5470 (linux_resume): Use for_each_thread.
5472 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5474 * linux-low.c (send_sigstop_callback): Return void, change
5475 parameter type. Rename to...
5476 (send_sigstop): ... this.
5477 (suspend_and_send_sigstop_callback): Return void, change parameter
5479 (suspend_and_send_sigstop): ... this.
5480 (stop_all_lwps): Use for_each_thread.
5482 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5484 * linux-low.c (lwp_running): Return bool, remove unused
5486 (linux_stabilize_threads): Use find_thread.
5488 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5490 * linux-low.c (select_singlestep_lwp_callback): Remove.
5491 (count_events_callback): Remove.
5492 (select_event_lwp_callback): Remove.
5493 (select_event_lwp): Use find_thread/for_each_thread.
5495 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5497 * linux-low.c (not_stopped_callback): Return bool, take filter
5499 (linux_wait_for_event_filtered): Use find_thread.
5500 (linux_wait_1): Likewise.
5502 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5504 * linux-low.c (same_lwp): Remove.
5505 (find_lwp_pid): Use find_thread.
5507 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5509 * linux-low.c (delete_lwp_callback): Remove.
5510 (linux_mourn): Use for_each_thread.
5512 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5514 * linux-low.c (linux_detach_lwp_callback): Return void, remove
5515 args parameter, don't check for pid.
5516 (linux_detach): Use for_each_thread.
5518 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5520 * linux-low.c (struct counter): Remove.
5521 (second_thread_of_pid_p): Remove.
5522 (last_thread_of_process_p): Use find_thread.
5524 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5526 * inferiors.c (find_inferior_in_random): Remove.
5527 * inferiors.h (find_inferior_in_random): Remove.
5528 * linux-low.c (status_pending_p_callback): Return bool, accept
5529 parameter ptid directly.
5530 (linux_wait_for_event_filtered): Use find_thread_in_random.
5531 (linux_wait_1): Likewise.
5533 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5535 * inferiors.c (find_inferior_id): Remove.
5536 (find_thread_ptid): Move implemention from find_inferior_id to
5538 * inferiors.h (find_inferior_id): Remove.
5539 * server.c (handle_status): Use find_thread_ptid.
5540 (process_serial_event): Likewise.
5541 * thread-db.c (find_one_thread): Likewise.
5542 (thread_db_thread_handle): Likewise.
5543 * win32-low.c (thread_rec): Likewise.
5544 (child_delete_thread): Likewise.
5545 (win32_thread_alive): Likewise.
5546 (get_child_debug_event): Likewise.
5548 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5550 * linux-mips-low.c (update_watch_registers_callback): Return
5551 void, remove pid_p parameter, don't check for pid.
5552 (mips_insert_point, mips_remove_point): Use for_each_thread.
5554 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5556 * lynx.low (lynx_delete_thread_callback): Remove.
5557 (lynx_mourn): Use for_each_thread.
5559 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5561 * regcache.c (regcache_invalidate_one): Remove.
5562 (regcache_invalidate_pid): use for_each_thread.
5564 2017-11-26 Tom Tromey <tom@tromey.com>
5566 * linux-low.c (linux_create_inferior): Update.
5568 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
5570 * spu-low.c (spu_create_inferior): Fix typo in argument name.
5572 2017-11-24 Alan Hayward <alan.hayward@arm.com>
5574 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
5575 * linux-aarch64-low.c (initialize_low_arch): Call init func.
5576 * linux-aarch64-tdesc-selftest.c: New file.
5577 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
5579 2017-11-24 Alan Hayward <alan.hayward@arm.com>
5581 * configure.srv: Add new file.
5582 * linux-aarch64-low.c (initialize_low_arch): Call init func.
5583 * linux-aarch64-tdesc-selftest.c: New file.
5584 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
5586 2017-11-24 Alan Hayward <alan.hayward@arm.com>
5588 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
5589 * linux-aarch64-low.c (initialize_low_arch): Remove init.
5590 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
5592 2017-11-24 Alan Hayward <alan.hayward@arm.com>
5594 * configure.srv: Add new files.
5595 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
5596 aarch64_linux_read_description.
5597 * linux-aarch64-low.c (aarch64_linux_read_description):
5598 Merge with aarch64_arch_setup.
5599 (aarch64_arch_setup): Call aarch64_linux_read_description.
5600 * linux-aarch64-tdesc.c: New file.
5601 * linux-aarch64-tdesc.h: New file.
5603 2017-11-24 Yao Qi <yao.qi@linaro.org>
5605 * configure.srv: Set $srv_regobj for tic6x-linux.
5606 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
5607 (tic6x_read_description): Move some code to tic6x_arch_setup.
5608 (tic6x_tdesc_test): New function.
5609 (initialize_low_arch): Call selftests::register_test.
5611 2017-11-22 Yao Qi <yao.qi@linaro.org>
5613 * remote-utils.c (prepare_resume_reply): Use memcpy.
5615 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5617 * linux-low.c (kill_one_lwp_callback): Return void, take
5618 argument directly, don't filter on pid.
5619 (linux_kill): Use for_each_thread.
5621 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5623 * linux-low.c (need_step_over_p): Return bool, remove dummy
5625 (linux_resume, proceed_all_lwps): Use find_thread.
5627 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5629 * linux-low.c (resume_status_pending_p): Return bool, remove
5631 (linux_resume): Use find_thread.
5633 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5635 * linux-low.c (struct thread_resume_array): Remove.
5636 (linux_set_resume_request): Return void, take arguments
5638 (linux_resume): Use for_each_thread.
5640 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5642 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
5643 return bool, remove data argument.
5644 (linux_stabilize_threads): Use find_thread.
5646 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5648 * linux-low.c (unsuspend_one_lwp): Remove.
5649 (unsuspend_all_lwps): Use for_each_thread, inline code from
5652 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5654 * gdbthread.h (find_thread): Add overload with ptid_t filter.
5655 * linux-low.c (struct iterate_over_lwps_args): Remove.
5656 (iterate_over_lwps_filter): Remove.
5657 (iterate_over_lwps): Use find_thread.
5659 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5661 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
5662 (linux_handle_new_gdb_connection): Use for_each_thread, inline
5663 code from reset_lwp_ptrace_options_callback.
5665 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5667 * linux-arm-low.c (struct update_registers_data): Remove.
5668 (update_registers_callback): Return void, take arguments
5669 directly, don't check thread's pid.
5670 (arm_insert_point, arm_remove_point): Use for_each_thread.
5672 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5674 * win32-low.c (continue_one_thread): Return void, take argument
5676 (child_continue): Use for_each_thread.
5678 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5680 * win32-i386-low.c (update_debug_registers_callback): Rename
5682 (update_debug_registers): ... this, return void, remove pid_p arg.
5683 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
5685 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
5687 * inferiors.h (struct process_info): Add constructor, initialize
5689 <syscalls_to_catch>: Change type to std::vector<int>.
5690 * inferiors.c (add_process): Allocate process_info with new.
5691 (remove_process): Free process_info with delete.
5692 * linux-low.c (handle_extended_wait): Adjust.
5693 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
5694 * server.c (handle_general_set): Adjust.
5696 2017-11-16 Pedro Alves <palves@redhat.com>
5698 * remote-utils.c (remote_close): Block SIGIO signals instead of
5699 uninstalling the SIGIO handler.
5701 2017-11-16 Alan Hayward <alan.hayward@arm.com>
5703 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
5705 2017-11-16 Yao Qi <yao.qi@linaro.org>
5707 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
5708 (tic6x_store_gregset): Likewise.
5709 (tic6x_usrregs_info): Move it up.
5711 2017-11-15 Alan Hayward <alan.hayward@arm.com>
5713 * Makefile.in: Update arch rules.
5714 * configure.srv: Explicitly mark arch/ files.
5716 2017-11-13 Andreas Schwab <schwab@suse.de>
5718 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
5720 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
5722 2017-11-06 Pedro Alves <palves@redhat.com>
5724 * config.in, configure: Regenerate.
5726 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
5728 * target.c (struct thread_search): Remove.
5729 (thread_search_callback): Remove.
5730 (prepare_to_access_memory): Use for_each_thread instead of
5731 find_inferior. Inline code from thread_search_callback.
5733 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
5735 * server.c (struct visit_actioned_threads_data): Remove.
5736 (visit_actioned_threads): Change prototype to take arguments
5738 (resume): Use find_thread instead of find_inferior.
5740 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
5742 * server.c (queue_stop_reply_callback): Change prototype, return
5744 (find_status_pending_thread_callback): Remove.
5745 (handle_status): Replace find_inferior with find_thread and
5748 2017-10-25 Alan Hayward <alan.hayward@arm.com>
5750 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
5752 (aarch64_store_gregset): Likewise.
5753 (aarch64_fill_fpregset): Likewise.
5754 (aarch64_store_fpregset): Likewise.
5756 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
5758 * gdbthread.h (find_thread, for_each_thread): New functions.
5759 * inferiors.c (thread_of_pid): Remove.
5760 (find_any_thread_of_pid): Use find_thread.
5761 * linux-low.c (num_lwps): Use for_each_thread.
5763 2017-10-17 Yao Qi <yao.qi@linaro.org>
5765 * Makefile.in: Remove one rule.
5766 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
5768 2017-10-17 Yao Qi <yao.qi@linaro.org>
5770 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
5771 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
5773 2017-10-17 Yao Qi <yao.qi@linaro.org>
5775 * configure.srv: Rename arm.o with arch/arm.o.
5777 2017-10-17 Yao Qi <yao.qi@linaro.org>
5779 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
5780 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
5781 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
5782 (arch-i386.o, arch-amd64.o): Remove rules.
5783 (arch/%.o): New rule.
5784 Update POSTCOMPILE and COMPILE.pre.
5785 * configure.ac: Invoke AC_CONFIG_COMMANDS.
5786 * configure: Re-generated.
5787 * configure.srv: Replace arch-i386.o with arch/i386.o.
5788 Replace arch-amd64.o with arch/amd64.o.
5790 2017-10-16 Yao Qi <yao.qi@linaro.org>
5792 * configure: Regenerated.
5794 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
5796 * inferiors.h: (struct inferior_list): Remove.
5797 (struct inferior_list_entry); Remove.
5798 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
5799 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
5800 get_first_inferior): Remove.
5801 (for_each_inferior, for_each_inferior_with_data, find_inferior,
5802 find_inferior_id, find_inferior_in_random): Change signature.
5803 * inferiors.c (all_threads): Change type to
5804 std::list<thread_info *>.
5805 (get_thread): Remove macro.
5806 (find_inferior, find_inferior_id): Change signature, implement
5808 (find_inferior_in_random): Change signature, implement using
5809 find_thread_in_random.
5810 (for_each_inferior, for_each_inferior_with_data): Change
5811 signature, implement using for_each_thread.
5812 (add_inferior_to_list, remove_inferior): Remove.
5813 (add_thread, get_first_thread, thread_of_pid,
5814 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
5815 (get_first_inferior, one_inferior_p, clear_inferior_list):
5817 (clear_inferiors, get_thread_process): Update.
5818 * gdbthread.h: Include <list>.
5819 (struct thread_info) <entry>: Remove field.
5821 (all_threads): Change type to std::list<thread_info *>.
5822 (get_first_inferior): Add doc.
5823 (find_thread, for_each_thread, find_thread_in_random): New
5825 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
5826 * linux-arm-low.c (update_registers_callback): Update.
5827 * linux-low.c (second_thread_of_pid_p): Update.
5828 (kill_one_lwp_callback, linux_detach_lwp_callback,
5829 delete_lwp_callback, status_pending_p_callback, same_lwp,
5830 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
5831 iterate_over_lwps, not_stopped_callback,
5832 resume_stopped_resumed_lwps, count_events_callback,
5833 select_singlestep_lwp_callback, select_event_lwp_callback,
5834 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
5835 suspend_and_send_sigstop_callback, wait_for_sigstop,
5836 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
5837 lwp_running, linux_set_resume_request, resume_status_pending_p,
5838 need_step_over_p, start_step_over, linux_resume_one_thread,
5839 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
5840 reset_lwp_ptrace_options_callback): Update.
5841 * linux-mips-low.c (update_watch_registers_callback): Update.
5842 * regcache.c (regcache_invalidate_one, regcache_invalidate):
5844 (free_register_cache_thread_one): Remove.
5845 (regcache_release): Update.
5846 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
5847 handle_qxfer_threads_worker): Update.
5848 (handle_query): Update, use list iterator.
5849 (visit_actioned_threads, handle_pending_status,
5850 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
5851 clear_pending_status_callback, set_pending_status_callback,
5852 find_status_pending_thread_callback, handle_status,
5853 process_serial_event): Update.
5854 * target.c (thread_search_callback): Update.
5855 * thread-db.c (thread_db_get_tls_address): Update.
5856 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
5858 * win32-i386-low.c (update_debug_registers_callback): Update.
5859 * win32-low.c (delete_thread_info, child_delete_thread,
5860 continue_one_thread, suspend_one_thread,
5861 get_child_debug_event): Adjust.
5863 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
5865 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
5866 * inferiors.h: Include <list>.
5867 (struct process_info) <entry>: Remove field.
5869 (pid_of): Change macro to function.
5870 (ptid_of, lwpid_of): Remove macro.
5871 (all_processes): Change type to std::list<process_info *>.
5872 (ALL_PROCESSES): Remove macro.
5873 (for_each_process, find_process): New function.
5874 * inferiors.c (all_processes): Change type to
5875 std::list<process_info *>.
5876 (find_thread_process): Adjust.
5877 (add_process): Likewise.
5878 (remove_process): Likewise.
5879 (find_process_pid): Likewise.
5880 (get_first_process): Likewise.
5881 (started_inferior_callback): Remove.
5882 (have_started_inferiors_p): Adjust.
5883 (attached_inferior_callback): Remove.
5884 (have_attached_inferiors_p): Adjust.
5885 * linux-low.c (check_zombie_leaders): Likewise.
5886 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
5887 (x86_linux_update_xmltarget): Adjust.
5888 * server.c (handle_query): Likewise.
5889 (gdb_reattached_process): Remove.
5890 (handle_status): Adjust.
5891 (kill_inferior_callback): Likewise.
5892 (detach_or_kill_inferior): Remove.
5893 (print_started_pid): Likewise.
5894 (print_attached_pid): Likewise.
5895 (detach_or_kill_for_exit): Update.
5896 (process_serial_event): Likewise.
5897 * linux-arm-low.c (arm_new_fork): Likewise.
5899 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
5901 * dll.h: Include <list>.
5902 (struct dll_info): Add constructor.
5903 <entry>: Remove field.
5904 (all_dlls): Change type to std::list<dll_info>.
5905 * dll.c: Include <algorithm>.
5906 (get_dll): Remove macro.
5907 (all_dlls): Change type to std::list<dll_info *>.
5908 (free_one_dll): Remove.
5909 (match_dll): Likewise.
5910 (loaded_dll): Adjust.
5911 (unloaded_dll): Adjust to all_dlls type change, use
5912 std::find_if. Inline code from match_dll.
5913 (clear_dlls): Adjust to all_dlls type change.
5914 * server.c (emit_dll_description): Remove.
5915 (handle_qxfer_libraries): Adjust to all_dlls type change,
5916 integrate emit_dll_description's functionality.
5918 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
5920 * linux-low.h (struct linux_target_ops) <delete_process>: New
5922 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
5923 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
5924 (struct linux_target_ops): Add delete_process callback.
5925 * linux-arm-low.c (arm_delete_process): New.
5926 (struct linux_target_ops): Add delete_process callback.
5927 * linux-bfin-low.c (struct linux_target_ops): Likewise.
5928 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
5929 * linux-m32r-low.c (struct linux_target_ops): Likewise.
5930 * linux-mips-low.c (mips_linux_delete_process): New.
5931 (struct linux_target_ops): Add delete_process callback.
5932 * linux-ppc-low.c (struct linux_target_ops): Likewise.
5933 * linux-s390-low.c (struct linux_target_ops): Likewise.
5934 * linux-sh-low.c (struct linux_target_ops): Likewise.
5935 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
5936 * linux-tile-low.c (struct linux_target_ops): Likewise.
5937 * linux-x86-low.c (x86_linux_delete_process): New.
5938 (struct linux_target_ops): Add delete_process callback.
5939 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
5941 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
5943 * linux-aarch64-low.c (the_low_target): Add thread delete
5945 * linux-arm-low.c (arm_delete_thread): New function.
5946 (the_low_target): Add thread delete callback.
5947 * linux-bfin-low.c (the_low_target): Likewise.
5948 * linux-crisv32-low.c (the_low_target): Likewise.
5949 * linux-low.c (delete_lwp): Invoke delete_thread callback if
5951 * linux-low.h (struct linux_target_ops) <delete_thread>: New
5953 * linux-m32r-low.c (the_low_target): Add thread delete callback.
5954 * linux-mips-low.c (mips_linux_delete_thread): New function.
5955 (the_low_target): Add thread delete callback.
5956 * linux-ppc-low.c (the_low_target): Likewise.
5957 * linux-s390-low.c (the_low_target): Likewise.
5958 * linux-sh-low.c (the_low_target): Likewise.
5959 * linux-tic6x-low.c (the_low_target): Likewise.
5960 * linux-tile-low.c (the_low_target): Likewise.
5961 * linux-x86-low.c (the_low_target): Likewise.
5962 * linux-xtensa-low.c (the_low_target): Likewise.
5964 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
5966 * win32-low.c: Include "common-inferior.h".
5968 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
5970 * inferiors.c (set_inferior_cwd): New function.
5971 * server.c (handle_general_set): Handle QSetWorkingDir packet.
5972 (handle_query): Inform that QSetWorkingDir is supported.
5973 * win32-low.c (create_process): Pass the inferior's cwd to
5976 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
5978 * inferiors.c (current_inferior_cwd): New global variable.
5979 (get_inferior_cwd): New function.
5980 * inferiors.h (struct process_info) <cwd>: New field.
5982 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
5984 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
5985 (OBS): Add gdb_tilde_expand.o.
5987 2017-10-02 Simon Marchi <simon.marchi@ericsson.com>
5989 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
5990 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
5992 2017-09-29 Pedro Alves <palves@redhat.com>
5994 * ax.c (gdb_parse_agent_expr): Constify.
5995 * ax.h (gdb_parse_agent_expr): Constify.
5996 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
5998 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
5999 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
6000 * remote-utils.h (read_ptid): Constify.
6001 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
6002 (process_point_options, process_serial_event): Constify.
6003 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
6004 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
6005 (cmd_qtbuffer): Constify.
6007 2017-09-29 Pedro Alves <palves@redhat.com>
6009 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
6012 2017-09-29 Pedro Alves <palves@redhat.com>
6014 * linux-low.c (handle_extended_wait): Pass parent thread instead
6015 of process to thread_db_notice_clone.
6016 * linux-low.h (thread_db_notice_clone): Replace parent process
6017 parameter with parent thread parameter.
6018 * thread-db.c (find_one_thread): Add comment.
6019 (thread_db_notice_clone): Replace parent process parameter with
6020 parent thread parameter. Temporarily switch to the parent thread.
6022 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
6024 * gdbthread.h: Include "common-gdbthread.h".
6025 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
6026 "if" when validating the ptid.
6027 * remote-utils.c: Include "gdbthread.h".
6028 (prepare_resume_reply): Use "switch_to_thread".
6029 * target.c (done_accessing_memory): Likewise.
6031 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6033 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
6034 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
6035 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
6036 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
6037 s390x-gs-linux64-ipa.o to ipa_obj.
6038 * linux-s390-low.c (HWCAP_S390_GS): New define.
6039 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
6041 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
6042 (s390_arch_setup): Check for guarded-storage support and choose
6044 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
6045 init_registers_s390x_gs_linux64.
6046 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
6048 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
6049 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
6051 2017-09-22 Simon Marchi <simon.marchi@ericsson.com>
6053 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
6055 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6057 * linux-low.h (struct lwp_info): Add new field, thread_handle.
6058 (thread_db_thread_handle): Declare.
6059 * linux-low.c (linux_target_ops): Initialize thread_handle.
6060 * server.c (handle_qxfer_threads_worker): Add support for
6062 * target.h (struct target_ops): Add new function pointer,
6064 (target_thread_handle): Define.
6065 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
6067 (thread_db_thread_handle): New function.
6069 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6071 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
6072 * linux-low.h (thread_db_notice_clone): Declare.
6073 * thread-db.c (thread_db_notice_clone): New function.
6075 2017-09-21 Pedro Alves <palves@redhat.com>
6077 * server.c (gdb_read_memory, handle_status, process_serial_event)
6078 (handle_serial_event, handle_target_event): Adjust to
6079 set_desired_thread prototype change.
6080 * target.c (set_desired_thread): Remove 'use_general' parameter
6082 * target.h (set_desired_thread): Remove 'use_general' parameter.
6084 2017-09-20 Tom Tromey <tom@tromey.com>
6086 * target.c (target_terminal::terminal_state): Define.
6087 (target_terminal::init): Rename from target_terminal_init.
6088 (target_terminal::inferior): Rename from
6089 target_terminal_inferior.
6090 (target_terminal::ours): Rename from target_terminal_ours.
6091 (target_terminal::ours_for_output, target_terminal::info): New.
6093 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6095 * server.c (accumulate_file_name_length): Remove.
6096 (emit_dll_description): Adjust to std::string change.
6097 (handle_qxfer_libraries): Use std::string to hold document.
6099 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6101 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
6102 return type of xml_escape_text.
6103 * server.c (emit_dll_description): Likewise.
6105 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6107 * server.c (captured_main): Accept argument for --selftest.
6108 Update run_tests call.
6109 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
6110 when registering selftests.
6112 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
6114 * regcache.c (get_thread_regcache): Update code to use "std::vector"
6115 instead of "VEC" for "target_desc.reg_defs".
6116 (regcache_cpy): Likewise.
6117 (registers_to_string): Likewise.
6118 (registers_from_string): Likewise.
6119 (find_regno): Likewise.
6120 (supply_regblock): Likewise.
6121 (regcache_raw_read_unsigned): Likewise.
6122 * tdesc.c (init_target_desc): Likewise.
6123 (tdesc_create_reg): Likewise.
6124 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
6125 (struct target_desc) <reg_defs>: Convert to "std::vector".
6126 (target_desc): Do not initialize "reg_defs".
6127 (~target_desc): Update code to use "std::vector" instead of "VEC"
6128 for "target_desc.reg_defs".
6129 (operator==): Likewise.
6131 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6133 * inferiors.h (thread_to_gdb_id): Remove.
6134 * inferiors.c (thread_to_gdb_id): Remove.
6135 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
6136 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
6137 lynx_store_registers, lynx_read_memory, lynx_write_memory):
6139 * nto-low.c (nto_fetch_registers, nto_store_registers,
6140 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
6142 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6144 * inferiors.h (gdb_id_to_thread_id): Remove.
6145 * inferiors.c (gdb_id_to_thread_id): Remove.
6146 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
6147 removal. Move pid declaration closer to where it's used.
6149 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6151 * server.c (handle_detach): New function.
6152 (process_serial_event): Move code out, call handle_detach.
6154 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6156 * server.c (require_running): Rename to ...
6157 (require_running_or_return): ... this ...
6158 (require_running_or_break): ... and this.
6159 (handle_query, process_serial_event): Adjust.
6161 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6163 * linux-low.c (linux_set_resume_request): Remove unused
6166 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6168 * server.c (first_thread_of): Remove.
6169 (process_serial_event): Replace usage of first_thread_of with
6170 find_any_thread_of_pid.
6171 * tracepoint.c (same_process_p): Remove.
6172 (gdb_agent_about_to_close): Replace usage of same_process_p with
6173 find_any_thread_of_pid.
6174 * linux-x86-low.c (same_process_callback): Remove.
6175 (x86_arch_setup_process_callback): Replace usage of
6176 same_process_callback with find_any_thread_of_pid.
6177 * thread-db.c (any_thread_of): Remove.
6178 (switch_to_process): Replace usage of any_thread_of with
6179 find_any_thread_of_pid.
6180 * inferiors.c (thread_pid_matches_callback): Remove.
6181 (find_thread_process): Adjust to use find_any_thread_of_pid.
6183 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6185 * regcache.c (get_thread_regcache): Guard calls to "memset"
6188 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6190 * linux-low.c (handle_extended_wait): Use
6191 "allocate_target_description" instead of "XNEW".
6192 * linux-x86-low.c (initialize_low_arch): Likewise.
6194 2017-09-05 Yao Qi <yao.qi@linaro.org>
6196 * configure.srv (srv_i386_regobj): Remove.
6197 (srv_amd64_regobj): Remove.
6198 (srv_regobj): Set it to "" for x86 non-linux targets.
6199 * linux-x86-tdesc.c (i386_linux_read_description):
6200 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
6201 (init_registers_i386): Remove the declaration.
6202 (tdesc_i386): Remove the declaration.
6203 (lynx_i386_arch_setup): Call i386_create_target_description.
6204 * nto-x86-low.c: Likewise.
6205 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
6206 [!__x86_64__]: include arch/i386.h.
6207 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
6209 2017-09-05 Yao Qi <yao.qi@linaro.org>
6211 * configure.srv (srv_amd64_linux_xmlfiles): Remove
6212 i386/amd64-XXX-linux from it.
6214 2017-09-05 Yao Qi <yao.qi@linaro.org>
6216 * configure.srv: Empty srv_amd64_linux_regobj if $development is
6218 (ipa_amd64_linux_regobj): Remove.
6219 (ipa_x32_linux_regobj): Remove.
6221 2017-09-05 Yao Qi <yao.qi@linaro.org>
6223 * Makefile.in (arch-amd64.o): New rule.
6224 * configure.srv: Append arch-amd64.o.
6225 * linux-amd64-ipa.c: Include common/x86-xstate.h.
6226 (get_ipa_tdesc): Call amd64_linux_read_description.
6227 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
6228 and init_registers_amd64_XXX.
6229 * linux-x86-low.c (x86_linux_read_description): Call
6230 amd64_linux_read_description.
6231 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
6232 (initialize_low_arch): Don't call init_registers_x32_XXX and
6233 init_registers_amd64_XXX.
6234 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
6235 and tdesc_amd64_XXX.
6236 [__x86_64__] (amd64_tdesc_test): New function.
6237 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
6238 and init_registers_amd64_XXX.
6239 * linux-x86-tdesc.c: Include arch/amd64.h.
6240 (xcr0_to_tdesc_idx): New function.
6241 (i386_linux_read_description): New function.
6242 (amd64_get_ipa_tdesc_idx): New function.
6243 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
6244 (amd64_get_ipa_tdesc): Declare.
6246 2017-09-05 Yao Qi <yao.qi@linaro.org>
6248 * configure.srv (srv_i386_linux_xmlfiles): Remove
6249 i386/i386-XXX-linux.xml from it.
6251 2017-09-05 Yao Qi <yao.qi@linaro.org>
6253 * configure.srv: Set srv_i386_linux_regobj empty if $development
6255 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
6256 initialize_low_tdesc.
6257 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
6258 with #if initialize_low_tdesc.
6259 * linux-x86-tdesc-selftest.c: New file.
6260 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
6262 2017-09-05 Yao Qi <yao.qi@linaro.org>
6264 * Makefile.in (arch-i386.o): New rule.
6265 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
6266 (x86_64-*-linux*): Likewise.
6267 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
6268 include arch/i386.h.
6269 (i386_linux_read_description): Remove code and call
6270 i386_create_target_description.
6271 * tdesc.c (allocate_target_description): New function.
6272 * tdesc.h (set_tdesc_architecture): Remove declaration.
6273 (set_tdesc_osabi): Likewise.
6275 2017-09-05 Yao Qi <yao.qi@linaro.org>
6277 * linux-x86-tdesc.c: Don't include <inttypes.h>.
6278 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
6279 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
6281 * server.c (get_features_xml): Call tdesc_get_features_xml.
6282 * tdesc.c (set_tdesc_architecture): New function.
6283 (set_tdesc_osabi): New function.
6284 (tdesc_get_features_xml): New function.
6285 (tdesc_create_feature): Add an argument.
6286 * tdesc.h (struct target_desc) <features>: New field.
6287 <arch, osabi>: New field.
6288 (~target_desc): xfree features, arch, and osabi.
6289 (target_desc::oerator==): Don't compare .xmltarget.
6290 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
6291 (set_tdesc_osabi): Likewise.
6292 (tdesc_get_features_xml): Likewise.
6294 2017-09-05 Yao Qi <yao.qi@linaro.org>
6296 * linux-x86-tdesc.c: Include selftest.h.
6297 (i386_tdesc_test): New function.
6298 (initialize_low_tdesc): Call selftests::register_test.
6299 * tdesc.h: Include regdef.h.
6300 (target_desc): Override operator == and !=.
6302 2017-09-05 Yao Qi <yao.qi@linaro.org>
6304 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
6305 (ipa_obj): Likewise.
6306 * linux-i386-ipa.c: Include common/x86-xstate.h
6307 (get_ipa_tdesc): Call i386_linux_read_description.
6308 (initialize_low_tracepoint): Don't call init_registers_XXX
6309 functions, call initialize_low_tdesc instead.
6310 * linux-x86-low.c (x86_linux_read_description): Call
6311 i386_linux_read_description.
6312 (initialize_low_arch): Don't call init_registers_i386_XXX
6313 functions, call initialize_low_tdesc.
6314 * linux-x86-tdesc.c: New file.
6315 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
6316 (i386_get_ipa_tdesc_idx): Declare.
6317 (i386_get_ipa_tdesc): Declare.
6318 (initialize_low_tdesc): Declare.
6320 2017-09-05 Yao Qi <yao.qi@linaro.org>
6322 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
6325 2017-09-05 Yao Qi <yao.qi@linaro.org>
6327 * Makefile.in (IPA_OBJS): Add vec-ipa.o
6328 * regcache.c (get_thread_regcache): Use VEC_length.
6329 (init_register_cache): Likewise.
6330 (regcache_cpy): Likewise.
6331 (registers_to_string): Iterate reg_defs via VEC_iterate.
6332 (find_regno): Likewise.
6333 (find_register_by_number): Use VEC_index.
6334 (register_size): Call find_register_by_number.
6335 (register_data): Call find_register_by_number.
6336 (supply_regblock): Use VEC_length.
6337 (regcache_raw_read_unsigned): Likewise.
6338 * tdesc.c (init_target_desc): Iterate reg_defs via
6340 (default_description): Update initializer.
6341 (copy_target_description): Don't update field num_registers.
6342 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
6343 <num_registers>: Remove.
6345 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
6347 * Makefile.in (.SECONDARY): Define target.
6349 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
6351 * linux-low.c (linux_wait_1): Adjust.
6352 * server.c (queue_stop_reply_callback): Adjust.
6354 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
6356 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
6357 QEnvironmentUnset and QEnvironmentReset packets.
6358 (handle_query): Inform remote that QEnvironmentHexEncoded,
6359 QEnvironmentUnset and QEnvironmentReset are supported.
6361 2017-08-25 Simon Marchi <simon.marchi@ericsson.com>
6363 * inferiors.h (inferior_target_data): Rename to ...
6364 (thread_target_data): ... this.
6365 (inferior_regcache_data): Rename to ...
6366 (thread_regcache_data): ... this.
6367 (set_inferior_regcache_data): Rename to ...
6368 (set_thread_regcache_data): ... this.
6369 * inferiors.c (inferior_target_data): Rename to ...
6370 (thread_target_data): ... this.
6371 (inferior_regcache_data): Rename to ...
6372 (thread_regcache_data): ... this.
6373 (set_inferior_regcache_data): Rename to ...
6374 (set_thread_regcache_data): ... this.
6375 (free_one_thread): Update.
6376 * linux-low.h (get_thread_lwp): Update.
6377 * regcache.c (get_thread_regcache): Update.
6378 (regcache_invalidate_thread): Update.
6379 (free_register_cache_thread): Update.
6380 * win32-i386-low.c (update_debug_registers_callback): Update.
6381 (win32_get_current_dr): Update.
6382 * win32-low.c (thread_rec): Update.
6383 (delete_thread_info): Update.
6384 (continue_one_thread): Update.
6385 (suspend_one_thread): Update.
6387 2017-08-24 Simon Marchi <simon.marchi@ericsson.com>
6389 * inferiors.c (set_inferior_target_data): Remove.
6390 * inferiors.h (set_inferior_target_data): Remove.
6392 2017-08-18 Yao Qi <yao.qi@linaro.org>
6394 * Makefile.in (OBS): Add selftest.o.
6395 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
6396 * configure, config.in: Re-generated.
6397 * server.c: Include common/sefltest.h.
6398 (captured_main): Handle option --selftest.
6400 2017-08-09 Yao Qi <yao.qi@linaro.org>
6402 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
6403 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
6404 i386-avx-mpx.o and i386-mmx.o.
6405 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
6406 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
6407 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
6408 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
6409 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
6410 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
6411 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
6412 i386/amd64-avx-mpx.xml.
6414 2017-08-09 Yao Qi <yao.qi@linaro.org>
6416 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
6417 and x32-avx-avx512.o.
6418 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
6419 i386/x32-avx-avx512.xml.
6421 2017-07-26 Simon Marchi <simon.marchi@ericsson.com>
6423 * tracepoint.h (enum class fast_tpoint_collect_result): New
6425 (fast_tracepoint_collecting): Change return type to
6426 fast_tpoint_collect_result.
6427 * tracepoint.c (fast_tracepoint_collecting): Likewise.
6428 * linux-low.h: Include tracepoint.h.
6429 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
6430 fast_tpoint_collect_result.
6431 * linux-low.c (handle_tracepoints): Adjust.
6432 (linux_fast_tracepoint_collecting): Change return type to
6433 fast_tpoint_collect_result.
6434 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
6435 linux_wait_1, stuck_in_jump_pad_callback,
6436 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
6437 proceed_one_lwp): Adjust to type change.
6439 2017-07-10 Yao Qi <yao.qi@linaro.org>
6441 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
6443 2017-06-29 Yao Qi <yao.qi@linaro.org>
6445 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
6447 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
6449 2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
6451 * Makefile.in (IPA_OBJS): Sort and format one item per line.
6453 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
6455 * linux-low.c (linux_create_inferior): Adjust code to access the
6456 environment information via 'gdb_environ' class.
6457 * lynx-low.c (lynx_create_inferior): Likewise.
6458 * server.c (our_environ): Make it an instance of 'gdb_environ'.
6459 (get_environ): Return a pointer to 'our_environ'.
6460 (captured_main): Initialize 'our_environ'.
6461 * server.h (get_environ): Adjust prototype.
6462 * spu-low.c (spu_create_inferior): Adjust code to access the
6463 environment information via 'gdb_environ' class.
6465 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6467 * linux-low.c (linux_read_memory, linux_write_memory): Remove
6468 usage of "register" keyword.
6470 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6472 * configure: Re-generate.
6474 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6476 * configure: Re-generate.
6478 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6480 * Makefile.in (COMPILE.pre): Add "-x c++".
6482 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
6484 * fork-child.c: Conditionally include <signal.h>.
6486 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6488 * server.c (handle_general_set): Handle new packet
6489 "QStartupWithShell".
6490 (handle_query): Add "QStartupWithShell" to the list of supported
6492 (gdbserver_usage): Add help text explaining the
6493 new "--startup-with-shell" and "--no-startup-with-shell" CLI
6495 (captured_main): Recognize and act upon the presence of the new
6498 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6499 Pedro Alves <palves@redhat.com>
6501 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
6502 * configure: Regenerate.
6503 * configure.srv (srv_linux_obj): Add "fork-child.o" and
6505 (i[34567]86-*-lynxos*): Likewise.
6506 (spu*-*-*): Likewise.
6507 * fork-child.c: New file.
6508 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
6510 (linux_ptrace_fun): New function.
6511 (linux_create_inferior): Adjust function prototype to reflect
6512 change on "target.h". Adjust function code to use
6514 (linux_request_interrupt): Delete "signal_pid".
6515 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
6516 (lynx_ptrace_fun): New function.
6517 (lynx_create_inferior): Adjust function prototype to reflect
6518 change on "target.h". Adjust function code to use
6520 * nto-low.c (nto_create_inferior): Adjust function prototype and
6521 code to reflect change on "target.h". Update comments.
6522 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
6523 "common-terminal.h" and "environ.h".
6524 (terminal_fd): Moved to fork-child.c.
6525 (old_foreground_pgrp): Likewise.
6526 (restore_old_foreground_pgrp): Likewise.
6527 (last_status): Make it global.
6528 (last_ptid): Likewise.
6529 (our_environ): New variable.
6530 (startup_with_shell): Likewise.
6531 (program_name): Likewise.
6532 (program_argv): Rename to...
6533 (program_args): ...this.
6534 (wrapper_argv): New variable.
6535 (start_inferior): Delete function.
6536 (get_exec_wrapper): New function.
6537 (get_exec_file): Likewise.
6538 (get_environ): Likewise.
6539 (prefork_hook): Likewise.
6540 (post_fork_inferior): Likewise.
6541 (postfork_hook): Likewise.
6542 (postfork_child_hook): Likewise.
6543 (handle_v_run): Update code to deal with arguments coming from the
6544 remote host. Update calls from "start_inferior" to
6546 (captured_main): Likewise. Initialize environment variable. Call
6548 * server.h (post_fork_inferior): New prototype.
6549 (get_environ): Likewise.
6550 (last_status): Declare.
6551 (last_ptid): Likewise.
6552 (signal_pid): Likewise.
6553 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
6554 (spu_ptrace_fun): New function.
6555 (spu_create_inferior): Adjust function prototype to reflect change
6556 on "target.h". Adjust function code to use "fork_inferior".
6557 * target.c (target_terminal_init): New function.
6558 (target_terminal_inferior): Likewise.
6559 (target_terminal_ours): Likewise.
6560 * target.h: Include <vector>.
6561 (struct target_ops) <create_inferior>: Update prototype.
6562 (create_inferior): Update macro.
6563 * utils.c (gdb_flush_out_err): New function.
6564 * win32-low.c (win32_create_inferior): Adjust function prototype
6565 and code to reflect change on "target.h".
6567 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6569 * inferiors.c (switch_to_thread): New function.
6571 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6573 * Makefile.in (SFILE): Add "common/job-control.c".
6574 (OBS): Add "job-control.o".
6576 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
6578 * Makefile: Remove "@host_makefile_frag@".
6580 2017-05-05 Pedro Alves <palves@redhat.com>
6582 * configure: Regenerate.
6584 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
6586 * configure: Regenerate.
6588 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6590 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
6591 software_single_step change of return type to
6592 std::vector<CORE_ADDR>.
6593 * linux-low.c (install_software_single_step_breakpoints):
6595 * linux-low.h (install_software_single_step_breakpoints):
6598 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
6600 * remote-utils.c: Include "gdb_termios.h" instead of
6602 * terminal.h: Delete file.
6604 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
6606 * server.c: Include <vector>.
6607 <program_argv, wrapper_argv>: Convert to std::vector.
6608 (start_inferior): Rewrite function to use C++.
6609 (handle_v_run): Likewise. Update code that calculates the argv
6610 based on the vRun packet; use C++.
6611 (captured_main): Likewise.
6613 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
6615 * server.c (handle_v_cont): Initialize thread_resume::thread
6618 2017-04-05 Pedro Alves <palves@redhat.com>
6620 * configure: Regenerate.
6622 2017-04-05 Pedro Alves <palves@redhat.com>
6624 * gdbreplay.c (sync_error): Constify.
6625 * linux-x86-low.c (push_opcode): Constify.
6627 2017-04-05 Pedro Alves <palves@redhat.com>
6629 * win32-low.c (get_child_debug_event)
6630 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
6631 Report TARGET_WAITKIND_SPURIOUS instead.
6633 2017-04-05 Pedro Alves <palves@redhat.com>
6635 * remote-utils.c (remote_prepare, remote_open): Constify.
6636 * remote-utils.h (remote_prepare, remote_open): Constify.
6637 * server.c (captured_main): Constify 'port' handling.
6639 2017-04-04 Simon Marchi <simon.marchi@ericsson.com>
6641 * Makefile.in (clean): Clear .deps.
6643 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
6645 * .gitignore: Remove generated files, replace with wildcard.
6646 * (clean): Replace removal of generated files with wildcard.
6647 (version.c): Replace with...
6648 (version-generated.c): ...this.
6649 (xml-builtin.c): Replace with...
6650 (xml-builtin-generated.c): ...this.
6651 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
6652 (%.c: *regformats*): Replace with...
6653 (%-generated.c: *regformats*): ...this.
6655 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
6657 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
6658 (xtensa_fill_gregset): Call collect_register_by_name for
6660 (xtensa_store_gregset): Call supply_register_by_name for
6663 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
6665 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
6666 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
6667 (xtensa_store_gregset): Call supply_register for all registers in
6668 a0_regnum..a0_regnum + C0_NREGS range.
6670 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6672 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
6673 (ax-ipa.o: ax.c): Remove.
6674 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
6675 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
6676 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
6677 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
6678 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
6680 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6682 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
6683 (print-utils-ipa.o: ../common/print-utils.c): Remove.
6684 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
6685 (errors-ipa.o: ../common/errors.c): Remove.
6686 (format-ipa.o: ../common/format.c): Remove.
6687 (common-utils-ipa.o: ../common/common-utils.c): Remove.
6689 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6691 * Makefile.in (%-ipa.o: %.c): New rule.
6692 (tracepoint-ipa.o: tracepoint.c): Remove.
6693 (utils-ipa.o: utils.c): Remove.
6694 (remote-utils-ipa.o: remote-utils.c): Remove.
6695 (regcache-ipa.o: regcache.c): Remove.
6696 (i386-linux-ipa.o: i386-linux.c): Remove.
6697 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
6698 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
6699 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
6700 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
6701 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
6702 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
6703 (amd64-linux-ipa.o: amd64-linux.c): Remove.
6704 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
6705 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
6706 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
6707 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
6708 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
6709 (aarch64-ipa.o: aarch64.c): Remove.
6710 (s390-linux32-ipa.o: s390-linux32.c): Remove.
6711 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
6712 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
6713 (s390-linux64-ipa.o: s390-linux64.c): Remove.
6714 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
6715 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
6716 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
6717 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
6718 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
6719 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
6720 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
6721 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
6722 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
6723 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
6724 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
6725 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
6726 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
6727 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
6728 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
6729 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
6730 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
6731 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
6732 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
6733 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
6734 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
6735 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
6736 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
6737 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
6738 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
6739 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
6740 (tdesc-ipa.o: tdesc.c): Remove.
6741 (x32-linux-ipa.o: x32-linux.c): Remove.
6742 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
6743 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
6745 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6747 * Makefile.in (%.o: ../arch/%.c): New rule.
6748 (arm.o: ../arch/arm.c): Remove.
6749 (arm-linux.o: ../arch/arm-linux.c): Remove.
6750 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
6751 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
6753 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6755 * Makefile.in (%.o: ../nat/%.c): New rule.
6756 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
6757 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
6758 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
6759 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
6760 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
6761 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
6762 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
6763 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
6764 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
6765 (linux-personality.o: ../nat/linux-personality.c): Remove.
6766 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
6767 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
6768 (x86-linux.o: ../nat/x86-linux.c): Remove.
6769 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
6770 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
6772 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6774 * Makefile.in (%.o: ../common/%.c): New rule.
6775 (signals.o: ../common/signals.c): Remove.
6776 (print-utils.o: ../common/print-utils.c): Remove.
6777 (rsp-low.o: ../common/rsp-low.c): Remove.
6778 (common-utils.o: ../common/common-utils.c): Remove.
6779 (posix-strerror.o: ../common/posix-strerror.c): Remove.
6780 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
6781 (vec.o: ../common/vec.c): Remove.
6782 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
6783 (xml-utils.o: ../common/xml-utils.c): Remove.
6784 (ptid.o: ../common/ptid.c): Remove.
6785 (buffer.o: ../common/buffer.c): Remove.
6786 (format.o: ../common/format.c): Remove.
6787 (filestuff.o: ../common/filestuff.c): Remove.
6788 (agent.o: ../common/agent.c): Remove.
6789 (errors.o: ../common/errors.c): Remove.
6790 (environ.o: ../common/environ.c): Remove.
6791 (common-debug.o: ../common/common-debug.c): Remove.
6792 (cleanups.o: ../common/cleanups.c): Remove.
6793 (common-exceptions.o: ../common/common-exceptions.c): Remove.
6794 (fileio.o: ../common/fileio.c): Remove.
6795 (common-regcache.o: ../common/common-regcache.c): Remove.
6796 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
6797 (new-op.o: ../common/new-op.c): Remove.
6798 (btrace-common.o: ../common/btrace-common.c): Remove.
6800 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6802 * Makefile.in (%.o: ../target/%.c): New rule.
6803 (waitstatus.o: ../target/waitstatus.c): Remove.
6805 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6808 (%.c: ../regformats/%.dat,
6809 (%.c: ../regformats/arm/%.dat,
6810 (%.c: ../regformats/i386/%.dat,
6811 (%.c: ../regformats/rs6000/%.dat): New rules.
6812 (aarch64.c): Remove.
6813 (reg-arm.c): Remove.
6814 (arm-with-iwmmxt.c): Remove.
6815 (arm-with-vfpv2.c): Remove.
6816 (arm-with-vfpv3.c): Remove.
6817 (arm-with-neon.c): Remove.
6818 (reg-bfin.c): Remove.
6819 (reg-cris.c): Remove.
6820 (reg-crisv32.c): Remove.
6822 (i386-linux.c): Remove.
6823 (i386-avx.c): Remove.
6824 (i386-avx-linux.c): Remove.
6825 (i386-avx-avx512.c): Remove.
6826 (i386-avx-avx512-linux.c): Remove.
6827 (i386-mpx.c): Remove.
6828 (i386-mpx-linux.c): Remove.
6829 (i386-avx-mpx-avx512-pku.c): Remove.
6830 (i386-avx-mpx-avx512-pku-linux.c): Remove.
6831 (i386-avx-mpx.c): Remove.
6832 (i386-avx-mpx-linux.c): Remove.
6833 (i386-mmx.c): Remove.
6834 (i386-mmx-linux.c): Remove.
6835 (reg-ia64.c): Remove.
6836 (reg-m32r.c): Remove.
6837 (reg-m68k.c): Remove.
6839 (mips-linux.c): Remove.
6840 (mips-dsp-linux.c): Remove.
6841 (mips64-linux.c): Remove.
6842 (mips64-dsp-linux.c): Remove.
6843 (nios2-linux.c): Remove.
6844 (powerpc-32.c): Remove.
6845 (powerpc-32l.c): Remove.
6846 (powerpc-altivec32l.c): Remove.
6847 (powerpc-cell32l.c): Remove.
6848 (powerpc-vsx32l.c): Remove.
6849 (powerpc-isa205-32l.c): Remove.
6850 (powerpc-isa205-altivec32l.c): Remove.
6851 (powerpc-isa205-vsx32l.c): Remove.
6852 (powerpc-e500l.c): Remove.
6853 (powerpc-64l.c): Remove.
6854 (powerpc-altivec64l.c): Remove.
6855 (powerpc-cell64l.c): Remove.
6856 (powerpc-vsx64l.c): Remove.
6857 (powerpc-isa205-64l.c): Remove.
6858 (powerpc-isa205-altivec64l.c): Remove.
6859 (powerpc-isa205-vsx64l.c): Remove.
6860 (s390-linux32.c): Remove.
6861 (s390-linux32v1.c): Remove.
6862 (s390-linux32v2.c): Remove.
6863 (s390-linux64.c): Remove.
6864 (s390-linux64v1.c): Remove.
6865 (s390-linux64v2.c): Remove.
6866 (s390-te-linux64.c): Remove.
6867 (s390-vx-linux64.c): Remove.
6868 (s390-tevx-linux64.c): Remove.
6869 (s390x-linux64.c): Remove.
6870 (s390x-linux64v1.c): Remove.
6871 (s390x-linux64v2.c): Remove.
6872 (s390x-te-linux64.c): Remove.
6873 (s390x-vx-linux64.c): Remove.
6874 (s390x-tevx-linux64.c): Remove.
6875 (tic6x-c64xp-linux.c): Remove.
6876 (tic6x-c64x-linux.c): Remove.
6877 (tic6x-c62x-linux.c): Remove.
6879 (reg-sparc64.c): Remove.
6880 (reg-spu.c): Remove.
6882 (amd64-linux.c): Remove.
6883 (amd64-avx.c): Remove.
6884 (amd64-avx-linux.c): Remove.
6885 (amd64-avx-avx512.c): Remove.
6886 (amd64-avx-avx512-linux.c): Remove.
6887 (amd64-mpx.c): Remove.
6888 (amd64-mpx-linux.c): Remove.
6889 (amd64-avx-mpx-avx512-pku.c): Remove.
6890 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
6891 (amd64-avx-mpx.c): Remove.
6892 (amd64-avx-mpx-linux.c): Remove.
6894 (x32-linux.c): Remove.
6895 (x32-avx.c): Remove.
6896 (x32-avx-linux.c): Remove.
6897 (x32-avx-avx512.c): Remove.
6898 (x32-avx-avx512-linux.c): Remove.
6899 (reg-xtensa.c): Remove.
6900 (reg-tilegx.c): Remove.
6901 (reg-tilegx32.c): Remove.
6903 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
6905 * Makefile.in (SFILES): Add "common/environ.c".
6906 (OBJS): Add "common/environ.h".
6908 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
6910 * configure.ac: Check if the fs_base and gs_base members of
6911 `struct user_regs_struct' exist.
6912 * config.in: Regenerated.
6913 * configure: Likewise.
6915 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
6917 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
6919 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
6920 (get_next_pcs_syscall_next_pc): Likewise.
6922 2016-12-23 Luis Machado <lgustavo@codesourcery.com>
6924 * win32-i386-low.c: Fix incorrect reference to a couple source files.
6925 * nto-x86-low.c: Likewise.
6927 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
6929 * Makefile.in: Include disable-implicit-rules.mk.
6931 2016-11-23 Pedro Alves <palves@redhat.com>
6933 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
6934 (debug_vprintf): Use std::chrono::steady_clock instead of
6935 gettimeofday. Use '.' instead of ':'.
6936 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
6937 (get_timestamp): Use std::chrono::steady_clock instead of
6940 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
6942 * Makefile.in: Fix whitespace formatting.
6944 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
6946 * Makefile.in (SFILES, OBS): Flatten list and order
6949 2016-11-23 Pedro Alves <palves@redhat.com>
6951 * event-loop.c (handle_file_event): Use warning.
6952 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
6953 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6956 2016-11-23 Pedro Alves <palves@redhat.com>
6958 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
6960 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
6961 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
6962 debug_printf and debug_flush for debug output.
6963 * server.c (handle_general_set): Likewise.
6964 * thread-db.c (try_thread_db_load): Use debug_printf for debug
6967 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6969 * Makefile.in (.c.o): Replace rule with ...
6970 (%.o: %.c): ... this one.
6972 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6974 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
6975 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
6977 * configure.ac: Remove checks for the make program.
6978 * configure: Re-generate.
6980 2016-10-28 Pedro Alves <palves@redhat.com>
6982 * Makefile.in (CXX_DIALECT): Get from configure.
6983 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
6984 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
6985 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
6986 * config.in: Regenerate.
6987 * configure: Regenerate.
6989 2016-10-27 Yao Qi <yao.qi@linaro.org>
6991 * linux-low.c (linux_supports_range_stepping): Return true if
6992 can_software_single_step return true.
6994 2016-10-27 Yao Qi <yao.qi@linaro.org>
6996 * inferiors.c (find_inferior_in_random): New function.
6997 * inferiors.h (find_inferior_in_random): Declare.
6998 * linux-low.c (linux_wait_for_event_filtered): Call
6999 find_inferior_in_random instead of find_inferior.
7001 2016-10-27 Yao Qi <yao.qi@linaro.org>
7003 * linux-low.c (linux_wait_1): If single-step breakpoints are
7004 inserted, remove them.
7006 2016-10-26 Pedro Alves <palves@redhat.com>
7008 * linux-low.c (handle_extended_wait): Link parent/child fork
7010 (linux_wait_1): Unlink them.
7011 (linux_set_resume_request): Ignore resume requests for
7012 already-resumed and unhandled fork child threads.
7013 * linux-low.h (struct lwp_info) <fork_relative>: New field.
7014 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
7016 (handle_v_requests) <vCont>: Don't call require_running.
7017 * server.h (in_queued_stop_replies): New declaration.
7019 2016-10-24 Yao Qi <yao.qi@linaro.org>
7022 * linux-aarch64-low.c (append_insns): Cast the return value to
7025 2016-10-10 Yao Qi <yao.qi@linaro.org>
7027 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
7029 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
7031 * target.c (target_supports_multi_process): New function, moved
7033 * target.h (target_supports_multi_process): ... here. Remove
7036 2016-10-05 Tom Tromey <tom@tromey.com>
7039 * tracepoint.c (handle_tracepoint_bkpts): Check
7040 ipa_error_tracepoint, not ipa_stopping_tracepoint.
7042 2016-10-05 Yao Qi <yao.qi@linaro.org>
7044 * configure.srv: Update the path of arm-*.xml files.
7046 2016-10-05 Terry Guo <terry.guo@arm.com>
7047 Yao Qi <yao.qi@linaro.org>
7049 * Makefile.in: Adjust the path of rules.
7050 * configure.srv: Update the path of xml files.
7051 * regformats/arm-with-iwmmxt.dat: Regenerated.
7052 * regformats/arm-with-neon.dat: Likewise.
7053 * regformats/arm-with-vfpv2.dat: Likewise.
7054 * regformats/arm-with-vfpv3.dat Likewise.
7056 2016-09-30 Yao Qi <yao.qi@linaro.org>
7059 * target.c (target_stop_and_wait): Don't call
7060 target_continue_no_signal, use resume_stop instead.
7062 2016-09-26 Yao Qi <yao.qi@linaro.org>
7064 * linux-low.c (linux_wait_1): Call debug_exit.
7066 2016-09-23 Pedro Alves <palves@redhat.com>
7068 * Makefile.in (SFILES): Add common/new-op.c.
7069 (OBS): Add common/new-op.o.
7070 (new-op.o): New rule.
7072 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
7074 * .gitinore: Ignore more files.
7076 2016-09-21 Yao Qi <yao.qi@linaro.org>
7078 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
7081 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
7083 * server.c (start_inferior): Call target_mourn_inferior instead of
7084 mourn_inferior; pass ptid_t argument to it.
7086 (handle_target_event): Likewise.
7087 * target.c (target_mourn_inferior): New function.
7088 * target.h (mourn_inferior): Delete macro.
7090 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
7092 * linux-low.c (lwp_is_stepping): New function.
7094 2016-09-06 Carl Love <cel@us.ibm.com>
7096 * server.c (start_inferior): Fixed comment, requested comment change
7097 didn't get updated correctly. Removed reference to ptrace () call as
7098 it is only true on Linux systems.
7100 2016-09-06 Carl Love <cel@us.ibm.com>
7102 * server.c (start_inferior): Do not call
7103 function target_post_create_inferior () if the
7104 inferior process has already exited.
7106 2016-09-05 Pedro Alves <palves@redhat.com>
7108 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
7109 (COMPILE.pre, CC_LD): Use CXX directly.
7110 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
7111 * acinclude.m4: Don't include build-with-cxx.m4.
7112 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
7113 * configure: Regenerate.
7115 2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
7118 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
7119 call writing data to own_buf.
7121 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7123 * target.c (mywait): Call target_wait instead of
7125 (target_wait): New function.
7127 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7129 * server.c (start_inferior): New variable 'ptid'. Replace calls
7130 to the_target->resume by target_continue{,_no_signal}, depending
7132 * target.c (target_stop_and_wait): Call target_continue_no_signal
7133 instead of the_target->resume.
7134 (target_continue): New function.
7136 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
7138 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
7140 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7143 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
7145 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
7146 * linux-arm-low.c (ps_get_thread_area): Likewise.
7147 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
7148 * linux-m68k-low.c (ps_get_thread_area): Likewise.
7149 * linux-mips-low.c (ps_get_thread_area): Likewise.
7150 * linux-nios2-low.c (ps_get_thread_area): Likewise.
7151 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
7152 * linux-x86-low.c (ps_get_thread_area): Likewise.
7153 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
7155 2016-08-19 Pedro Alves <palves@redhat.com>
7157 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
7159 2016-08-19 Pedro Alves <palves@redhat.com>
7161 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
7162 comment. Use memcpy instead of casting through unsigned long.
7164 2016-08-19 Pedro Alves <palves@redhat.com>
7166 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
7167 allocating around 0x80000000.
7169 2016-08-19 Pedro Alves <palves@redhat.com>
7172 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
7173 (x32-avx512-linux-ipa.o): New rules.
7174 * configure.ac (x86_64-*-linux*): New x32 check.
7175 * configure.srv (ipa_x32_linux_regobj): New.
7176 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
7177 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
7179 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
7181 * configure: Regenerate.
7183 2016-08-09 Pedro Alves <palves@redhat.com>
7186 * Makefile.in (OBS): Add signals-state-save-restore.o.
7187 (signals-state-save-restore.o): New rule.
7188 * config.in: Regenerate.
7189 * configure: Regenerate.
7190 * linux-low.c: Include "signals-state-save-restore.h".
7191 (linux_create_inferior): Call
7192 restore_original_signals_state.
7193 * server.c: Include "dispositions-save-restore.h".
7194 (captured_main): Call save_original_signals_state.
7196 2016-08-05 Pedro Alves <palves@redhat.com>
7198 * configure: Regenerate.
7200 2016-08-04 Yao Qi <yao.qi@linaro.org>
7202 * linux-low.c (regsets_fetch_inferior_registers): Check
7203 errno is ESRCH or not.
7205 2016-08-02 Yao Qi <yao.qi@linaro.org>
7207 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
7208 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
7209 (thread_db_load_search): Update.
7210 (try_thread_db_load_1): Don't look for td_ta_event_addr,
7211 td_ta_set_event and td_ta_event_getmsg.
7213 2016-07-26 Pedro Alves <palves@redhat.com>
7216 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
7217 of unsigned long for 64-bit registers and use uint32_t instead of
7218 unsigned int for 32-bit registers.
7220 2016-07-26 Pedro Alves <palves@redhat.com>
7222 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
7225 2016-07-21 Tom Tromey <tom@tromey.com>
7227 * configure: Rebuild.
7229 2016-07-21 Yao Qi <yao.qi@linaro.org>
7231 * mem-break.c (find_gdb_breakpoint): Cast bp to
7232 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
7234 2016-07-21 Yao Qi <yao.qi@linaro.org>
7236 * server.c (handle_v_requests): Support s and S actions
7237 if target_supports_software_single_step return true.
7239 2016-07-21 Yao Qi <yao.qi@linaro.org>
7241 * linux-low.c (resume_stopped_resumed_lwps): If resume request
7242 is resume_step, call maybe_hw_step.
7243 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
7245 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
7247 (proceed_one_lwp): If resume request is resume_step, install
7248 reinsert breakpoints and call maybe_hw_step.
7250 2016-07-21 Yao Qi <yao.qi@linaro.org>
7252 * linux-low.c (proceed_one_lwp): Declare.
7253 (linux_resume_one_thread): Remove local variable 'step'.
7254 Lift code enqueue signal. Call proceed_one_lwp instead of
7255 linux_resume_one_lwp.
7257 2016-07-21 Yao Qi <yao.qi@linaro.org>
7259 * linux-low.c (linux_resume_one_thread): Call
7260 enqueue_pending_signal.
7262 2016-07-21 Yao Qi <yao.qi@linaro.org>
7264 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
7265 * inferiors.c (do_restore_current_thread_cleanup): New function.
7266 (make_cleanup_restore_current_thread): Likewise.
7267 * linux-low.c (install_software_single_step_breakpoints): Call
7268 make_cleanup_restore_current_thread. Switch current_thread to
7271 2016-07-21 Yao Qi <yao.qi@linaro.org>
7273 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
7274 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
7275 (clone_one_breakpoint): Likewise.
7276 (delete_reinsert_breakpoints): Change parameter to thread.
7278 (has_reinsert_breakpoints): Likewise.
7279 (uninsert_reinsert_breakpoints): Likewise.
7280 (reinsert_reinsert_breakpoints): Likewise.
7281 * mem-break.h (set_reinsert_breakpoint): Update declaration.
7282 (delete_reinsert_breakpoints): Likewise.
7283 (reinsert_reinsert_breakpoints): Likewise.
7284 (uninsert_reinsert_breakpoints): Likewise.
7285 (has_reinsert_breakpoints): Likewise.
7287 2016-07-21 Yao Qi <yao.qi@linaro.org>
7289 * inferiors.c (get_thread_process): Make parameter const.
7290 * inferiors.h (get_thread_process): Update declaration.
7291 * mem-break.c (clone_all_breakpoints): Remove all parameters.
7292 Add new parameters child_thread and parent_thread. Callers
7294 * mem-break.h (clone_all_breakpoints): Update declaration.
7296 2016-07-21 Yao Qi <yao.qi@linaro.org>
7298 * mem-break.c (struct breakpoint) <cond_list>: Remove.
7299 <command_list, handler>: Remove.
7300 (struct gdb_breakpoint): New.
7301 (struct other_breakpoint): New.
7302 (struct reinsert_breakpoint): New.
7303 (is_gdb_breakpoint): New function.
7304 (any_persistent_commands): Update command_list if
7305 is_gdb_breakpoint returns true.
7306 (set_breakpoint): Create breakpoints according to their types.
7307 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
7308 (set_gdb_breakpoint_1): Likewise.
7309 (set_gdb_breakpoint): Likewise.
7310 (clear_breakpoint_conditions): Change parameter type to
7311 'struct gdb_breakpoint *'.
7312 (clear_breakpoint_commands): Likewise.
7313 (clear_breakpoint_conditions_and_commands): Likewise.
7314 (add_condition_to_breakpoint): Likewise.
7315 (add_breakpoint_condition): Likewise.
7316 (add_commands_to_breakpoint): Likewise.
7317 (check_breakpoints): Check other_breakpoint.
7318 (clone_one_breakpoint): Clone breakpopint according to its type.
7319 * mem-break.h (struct gdb_breakpoint): Declare.
7320 (set_gdb_breakpoint): Update declaration.
7321 (clear_breakpoint_conditions_and_commands): Likewise.
7322 (add_breakpoint_condition): Likewise.
7323 (add_breakpoint_commands): Likewise.
7324 * server.c (process_point_options): Change parameter type to
7325 'struct gdb_breakpoint *'.
7327 2016-07-21 Yao Qi <yao.qi@linaro.org>
7329 * mem-break.c (set_breakpoint_at): Rename it to ...
7330 (set_breakpoint_type_at): ... it.
7331 (set_breakpoint_at): Call set_breakpoint_type_at.
7332 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
7333 * mem-break.h (set_breakpoint_at): Update comments.
7335 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
7337 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
7339 (nios2_store_gregset): Likewise.
7341 2016-07-01 Pedro Alves <palves@redhat.com>
7342 Antoine Tremblay <antoine.tremblay@ericsson.com>
7344 * linux-low.c: Change interface to take the target lwp_info
7345 pointer directly and return void. Handle detaching from a zombie
7347 (linux_detach_lwp_callback): New function.
7348 (linux_detach): Detach from the leader thread after detaching from
7351 2016-06-28 Yao Qi <yao.qi@linaro.org>
7353 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
7354 for variable new_offset.
7355 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
7356 (aarch64_ftrace_insn_reloc_cb): Likewise.
7357 (aarch64_ftrace_insn_reloc_tb): Likewise.
7358 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
7359 PRIx64 instead of PRIx32.
7361 2016-06-28 Yao Qi <yao.qi@linaro.org>
7363 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
7364 (the_low_target): Install arm_get_syscall_trapinfo.
7366 2016-06-28 Yao Qi <yao.qi@linaro.org>
7368 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
7370 (the_low_target): Install aarch64_get_syscall_trapinfo.
7372 2016-06-28 Yao Qi <yao.qi@linaro.org>
7374 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
7376 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
7377 Remove parameter sysno.
7378 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
7381 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7383 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
7384 (s390_emit_ne_goto): Likewise.
7385 (s390_emit_lt_goto): Likewise.
7386 (s390_emit_le_goto): Likewise.
7387 (s390_emit_gt_goto): Likewise.
7388 (s390_emit_ge_goto): Likewise.
7389 (s390x_emit_eq_goto): Likewise.
7390 (s390x_emit_ne_goto): Likewise.
7391 (s390x_emit_lt_goto): Likewise.
7392 (s390x_emit_le_goto): Likewise.
7393 (s390x_emit_gt_goto): Likewise.
7394 (s390x_emit_ge_goto): Likewise.
7395 (s390_emit_ops_impl): Mark variable static.
7396 (s390x_emit_ops): Likewise.
7398 2016-06-17 Yao Qi <yao.qi@linaro.org>
7400 * linux-low.c (handle_extended_wait): Call
7401 uninsert_reinsert_breakpoints for the parent process. Remove
7402 reinsert breakpoints from the child process. Reinsert them to
7403 the parent process when vfork is done.
7404 * mem-break.c (uninsert_reinsert_breakpoints): New function.
7405 (reinsert_reinsert_breakpoints): New function.
7406 * mem-break.h (uninsert_reinsert_breakpoints): Declare
7407 (reinsert_reinsert_breakpoints): Declare.
7409 2016-06-17 Yao Qi <yao.qi@linaro.org>
7411 * linux-low.c (handle_extended_wait): If the parent is doing
7412 step-over, remove the reinsert breakpoints from the forked child.
7414 2016-06-17 Yao Qi <yao.qi@linaro.org>
7416 * linux-low.c (unsuspend_all_lwps): Declare.
7417 (linux_low_filter_event): If thread exited, call finish_step_over.
7418 If step-over is finished, unsuspend other threads.
7420 2016-06-17 Yao Qi <yao.qi@linaro.org>
7422 * linux-low.c (linux_resume_one_lwp_throw): Assert
7423 has_reinsert_breakpoints returns false.
7424 * mem-break.c (delete_disabled_breakpoints): Assert
7425 bp type isn't reinsert_breakpoint.
7427 2016-06-17 Yao Qi <yao.qi@linaro.org>
7429 * linux-low.c (maybe_hw_step): New function.
7430 (linux_resume_one_lwp_throw): Call maybe_hw_step.
7431 (finish_step_over): Switch current_thread to lwp temporarily,
7432 and assert has_reinsert_breakpoints returns true.
7433 (proceed_one_lwp): Call maybe_hw_step.
7434 * mem-break.c (has_reinsert_breakpoints): New function.
7435 * mem-break.h (has_reinsert_breakpoints): Declare.
7437 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
7439 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
7441 2016-05-17 Yao Qi <yao.qi@linaro.org>
7443 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
7444 instead of find_inferior.
7446 2016-05-05 Yao Qi <yao.qi@linaro.org>
7448 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
7449 Initialize res to zero.
7451 2016-05-05 Yao Qi <yao.qi@linaro.org>
7453 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
7456 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7458 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
7459 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
7460 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
7462 2016-04-28 Par Olsson <par.olsson@windriver.com>
7463 Simon Marchi <simon.marchi@ericsson.com>
7465 * tracepoint.c (write_inferior_int8): New function.
7466 (cmd_qtenable_disable): Write enable flag using
7467 write_inferior_int8.
7469 2016-04-25 Yao Qi <yao.qi@linaro.org>
7471 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
7472 (need_step_over_p): Return zero if the LWP has pending signals
7473 can be delivered on software single step target.
7475 2016-04-25 Yao Qi <yao.qi@linaro.org>
7477 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
7478 return instead of error.
7480 2016-04-22 Yao Qi <yao.qi@linaro.org>
7482 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
7485 2016-04-22 Yao Qi <yao.qi@linaro.org>
7487 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
7488 signal when stepping over breakpoint with software single
7491 2016-04-21 Pedro Alves <palves@redhat.com>
7493 * linux-s390-low.c (s390_collect_ptrace_register)
7494 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
7496 (s390_check_regset): Use void * instead of gdb_byte *.
7498 2016-04-20 Pedro Alves <palves@redhat.com>
7500 * configure: Renegerate.
7502 2016-04-20 Yao Qi <yao.qi@linaro.org>
7504 * linux-aarch32-low.c: Include "arch/arm-linux.h".
7505 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
7507 (arm_store_gregset): Likewise.
7509 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
7511 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
7512 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
7513 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
7514 (amd64-avx-mpx-linux.c): New rules.
7515 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
7516 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
7517 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
7518 (srv_amd64_regobj): Add amd64-avx-mpx.o.
7519 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
7520 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
7521 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
7522 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
7523 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
7524 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
7525 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
7526 * linux-x86-low.c (x86_linux_read_description): Add case for
7527 X86_XSTATE_AVX_MPX_MASK.
7528 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
7529 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
7530 init_registers_i386_avx_mpx_linux.
7531 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
7532 (initialize_low_tracepoint): Call
7533 init_registers_i386_avx_mpx_linux.
7534 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
7535 (initialize_low_tracepoint): Call
7536 init_registers_amd64_avx_mpx_linux.
7537 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
7538 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
7539 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
7542 2016-04-18 Pedro Alves <palves@redhat.com>
7544 * configure: Regenerate.
7546 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
7548 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
7549 (aarch64_emit_sub): Likewise.
7551 2016-04-12 Pedro Alves <palves@redhat.com>
7553 * utils.c (prepare_to_throw_exception): Delete.
7555 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
7557 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
7559 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
7561 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
7563 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
7565 * linux-aarch64-ipa.c: Add <elf.h> include.
7566 * linux-ppc-ipa.c: Add <elf.h> include.
7567 * linux-s390-ipa.c: Add <elf.h> include.
7569 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
7571 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
7572 (get_raw_reg_ptr): Likewise.
7573 (get_trace_state_variable_value_ptr): Likewise.
7574 (set_trace_state_variable_value_ptr): Likewise.
7575 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
7578 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
7579 Marcin Kościelnicki <koriakin@0x04.net>
7582 * linux-ppc-low.c (emit_insns): New function.
7583 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
7584 (ppc_emit_prologue): New function.
7585 (ppc_emit_epilogue): New function.
7586 (ppc_emit_add): New function.
7587 (ppc_emit_sub): New function.
7588 (ppc_emit_mul): New function.
7589 (ppc_emit_lsh): New function.
7590 (ppc_emit_rsh_signed): New function.
7591 (ppc_emit_rsh_unsigned): New function.
7592 (ppc_emit_ext): New function.
7593 (ppc_emit_zero_ext): New function.
7594 (ppc_emit_log_not): New function.
7595 (ppc_emit_bit_and): New function.
7596 (ppc_emit_bit_or): New function.
7597 (ppc_emit_bit_xor): New function.
7598 (ppc_emit_bit_not): New function.
7599 (ppc_emit_equal): New function.
7600 (ppc_emit_less_signed): New function.
7601 (ppc_emit_less_unsigned): New function.
7602 (ppc_emit_ref): New function.
7603 (ppc_emit_const): New function.
7604 (ppc_emit_reg): New function.
7605 (ppc_emit_pop): New function.
7606 (ppc_emit_stack_flush): New function.
7607 (ppc_emit_swap): New function.
7608 (ppc_emit_stack_adjust): New function.
7609 (ppc_emit_call): New function.
7610 (ppc_emit_int_call_1): New function.
7611 (ppc_emit_void_call_2): New function.
7612 (ppc_emit_if_goto): New function.
7613 (ppc_emit_goto): New function.
7614 (ppc_emit_eq_goto): New function.
7615 (ppc_emit_ne_goto): New function.
7616 (ppc_emit_lt_goto): New function.
7617 (ppc_emit_le_goto): New function.
7618 (ppc_emit_gt_goto): New function.
7619 (ppc_emit_ge_goto): New function.
7620 (ppc_write_goto_address): New function.
7621 (ppc_emit_ops_impl): New static variable.
7622 (ppc64v1_emit_prologue): New function.
7623 (ppc64v2_emit_prologue): New function.
7624 (ppc64_emit_epilogue): New function.
7625 (ppc64_emit_add): New function.
7626 (ppc64_emit_sub): New function.
7627 (ppc64_emit_mul): New function.
7628 (ppc64_emit_lsh): New function.
7629 (ppc64_emit_rsh_signed): New function.
7630 (ppc64_emit_rsh_unsigned): New function.
7631 (ppc64_emit_ext): New function.
7632 (ppc64_emit_zero_ext): New function.
7633 (ppc64_emit_log_not): New function.
7634 (ppc64_emit_bit_and): New function.
7635 (ppc64_emit_bit_or): New function.
7636 (ppc64_emit_bit_xor): New function.
7637 (ppc64_emit_bit_not): New function.
7638 (ppc64_emit_equal): New function.
7639 (ppc64_emit_less_signed): New function.
7640 (ppc64_emit_less_unsigned): New function.
7641 (ppc64_emit_ref): New function.
7642 (ppc64_emit_const): New function.
7643 (ppc64v1_emit_reg): New function.
7644 (ppc64v2_emit_reg): New function.
7645 (ppc64_emit_pop): New function.
7646 (ppc64_emit_stack_flush): New function.
7647 (ppc64_emit_swap): New function.
7648 (ppc64v1_emit_call): New function.
7649 (ppc64v2_emit_call): New function.
7650 (ppc64v1_emit_int_call_1): New function.
7651 (ppc64v2_emit_int_call_1): New function.
7652 (ppc64v1_emit_void_call_2): New function.
7653 (ppc64v2_emit_void_call_2): New function.
7654 (ppc64_emit_if_goto): New function.
7655 (ppc64_emit_eq_goto): New function.
7656 (ppc64_emit_ne_goto): New function.
7657 (ppc64_emit_lt_goto): New function.
7658 (ppc64_emit_le_goto): New function.
7659 (ppc64_emit_gt_goto): New function.
7660 (ppc64_emit_ge_goto): New function.
7661 (ppc64v1_emit_ops_impl): New static variable.
7662 (ppc64v2_emit_ops_impl): New static variable.
7663 (ppc_emit_ops): New function.
7664 (linux_low_target): Wire in ppc_emit_ops.
7666 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
7667 Marcin Kościelnicki <koriakin@0x04.net>
7670 * Makefile.in: Add powerpc-*-ipa.o
7671 * configure.srv: Add ipa_obj for powerpc*-linux.
7672 * linux-ppc-ipa.c: New file.
7673 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
7675 (PPC_FIELD): New macro.
7676 (PPC_SEXT): New macro.
7677 (PPC_OP6): New macro.
7678 (PPC_BO): New macro.
7679 (PPC_LI): New macro.
7680 (PPC_BD): New macro.
7681 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
7682 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
7683 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
7684 (ppc_get_thread_area): New function.
7685 (is_elfv2_inferior): New function.
7686 (gen_ds_form): New function.
7687 (GEN_STD): New macro.
7688 (GEN_STDU): New macro.
7689 (GEN_LD): New macro.
7690 (GEN_LDU): New macro.
7691 (gen_d_form): New function.
7692 (GEN_ADDI): New macro.
7693 (GEN_ADDIS): New macro.
7694 (GEN_LI): New macro.
7695 (GEN_LIS): New macro.
7696 (GEN_ORI): New macro.
7697 (GEN_ORIS): New macro.
7698 (GEN_LWZ): New macro.
7699 (GEN_STW): New macro.
7700 (GEN_STWU): New macro.
7701 (gen_xfx_form): New function.
7702 (GEN_MFSPR): New macro.
7703 (GEN_MTSPR): New macro.
7704 (GEN_MFCR): New macro.
7705 (GEN_MTCR): New macro.
7706 (GEN_SYNC): New macro.
7707 (GEN_LWSYNC): New macro.
7708 (gen_x_form): New function.
7709 (GEN_OR): New macro.
7710 (GEN_MR): New macro.
7711 (GEN_LWARX): New macro.
7712 (GEN_STWCX): New macro.
7713 (GEN_CMPW): New macro.
7714 (gen_md_form): New function.
7715 (GEN_RLDICL): New macro.
7716 (GEN_RLDICR): New macro.
7717 (gen_i_form): New function.
7719 (GEN_BL): New macro.
7720 (gen_b_form): New function.
7721 (GEN_BNE): New macro.
7722 (GEN_LOAD): New macro.
7723 (GEN_STORE): New macro.
7724 (gen_limm): New function.
7725 (gen_atomic_xchg): New function.
7726 (gen_call): New function.
7727 (ppc_relocate_instruction): New function.
7728 (ppc_install_fast_tracepoint_jump_pad): New function.
7729 (ppc_get_min_fast_tracepoint_insn_len): New function.
7730 (ppc_get_ipa_tdesc_idx): New function.
7731 (the_low_target): Wire in the new functions.
7732 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
7734 * linux-ppc-tdesc.h: New file.
7736 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
7738 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
7739 (alloc_jump_pad_buffer): New function.
7740 * linux-amd64-ipa.c: Add <sys/mman.h> include.
7741 (alloc_jump_pad_buffer): New function.
7742 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
7743 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
7744 (alloc_jump_pad_buffer): New function.
7745 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
7746 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
7747 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
7748 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
7750 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
7752 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
7753 * linux-amd64-ipa.c: Likewise.
7754 * linux-i386-ipa.c: Likewise.
7755 * linux-s390-ipa.c: Likewise.
7756 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
7757 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
7758 set_trace_state_variable_value_ptr.
7759 (struct ipa_sym_addresses): Likewise.
7760 (symbol_list): Likewise.
7761 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
7762 accessing gdb_collect directly.
7763 (gdb_collect_ptr_type): New typedef.
7764 (get_raw_reg_ptr_type): New typedef.
7765 (get_trace_state_variable_value_ptr_type): New typedef.
7766 (set_trace_state_variable_value_ptr_type): New typedef.
7767 (gdb_collect_ptr): New global.
7768 (get_raw_reg_ptr): New global.
7769 (get_trace_state_variable_value_ptr): New global.
7770 (set_trace_state_variable_value_ptr): New global.
7771 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
7772 accessing get_raw_reg directly.
7773 (get_get_tsv_func_addr): Likewise for
7774 get_trace_state_variable_value_ptr.
7775 (get_set_tsv_func_addr): Likewise for
7776 set_trace_state_variable_value_ptr.
7777 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
7779 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
7781 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
7783 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
7785 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
7787 (relocate_instruction): Remove own_buf.
7788 * server.c (own_buf): Make global.
7789 (handle_v_requests): Make global.
7790 * server.h (own_buf): New declaration.
7791 (handle_v_requests): New prototype.
7793 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
7796 * linux-s390-low.c (add_insns): New function.
7797 (s390_emit_prologue): New function.
7798 (s390_emit_epilogue): New function.
7799 (s390_emit_add): New function.
7800 (s390_emit_sub): New function.
7801 (s390_emit_mul): New function.
7802 (s390_emit_lsh): New function.
7803 (s390_emit_rsh_signed): New function.
7804 (s390_emit_rsh_unsigned): New function.
7805 (s390_emit_ext): New function.
7806 (s390_emit_log_not): New function.
7807 (s390_emit_bit_and): New function.
7808 (s390_emit_bit_or): New function.
7809 (s390_emit_bit_xor): New function.
7810 (s390_emit_bit_not): New function.
7811 (s390_emit_equal): New function.
7812 (s390_emit_less_signed): New function.
7813 (s390_emit_less_unsigned): New function.
7814 (s390_emit_ref): New function.
7815 (s390_emit_if_goto): New function.
7816 (s390_emit_goto): New function.
7817 (s390_write_goto_address): New function.
7818 (s390_emit_litpool): New function.
7819 (s390_emit_const): New function.
7820 (s390_emit_call): New function.
7821 (s390_emit_reg): New function.
7822 (s390_emit_pop): New function.
7823 (s390_emit_stack_flush): New function.
7824 (s390_emit_zero_ext): New function.
7825 (s390_emit_swap): New function.
7826 (s390_emit_stack_adjust): New function.
7827 (s390_emit_set_r2): New function.
7828 (s390_emit_int_call_1): New function.
7829 (s390_emit_void_call_2): New function.
7830 (s390_emit_eq_goto): New function.
7831 (s390_emit_ne_goto): New function.
7832 (s390_emit_lt_goto): New function.
7833 (s390_emit_le_goto): New function.
7834 (s390_emit_gt_goto): New function.
7835 (s390_emit_ge_goto): New function.
7836 (s390x_emit_prologue): New function.
7837 (s390x_emit_epilogue): New function.
7838 (s390x_emit_add): New function.
7839 (s390x_emit_sub): New function.
7840 (s390x_emit_mul): New function.
7841 (s390x_emit_lsh): New function.
7842 (s390x_emit_rsh_signed): New function.
7843 (s390x_emit_rsh_unsigned): New function.
7844 (s390x_emit_ext): New function.
7845 (s390x_emit_log_not): New function.
7846 (s390x_emit_bit_and): New function.
7847 (s390x_emit_bit_or): New function.
7848 (s390x_emit_bit_xor): New function.
7849 (s390x_emit_bit_not): New function.
7850 (s390x_emit_equal): New function.
7851 (s390x_emit_less_signed): New function.
7852 (s390x_emit_less_unsigned): New function.
7853 (s390x_emit_ref): New function.
7854 (s390x_emit_if_goto): New function.
7855 (s390x_emit_const): New function.
7856 (s390x_emit_call): New function.
7857 (s390x_emit_reg): New function.
7858 (s390x_emit_pop): New function.
7859 (s390x_emit_stack_flush): New function.
7860 (s390x_emit_zero_ext): New function.
7861 (s390x_emit_swap): New function.
7862 (s390x_emit_stack_adjust): New function.
7863 (s390x_emit_int_call_1): New function.
7864 (s390x_emit_void_call_2): New function.
7865 (s390x_emit_eq_goto): New function.
7866 (s390x_emit_ne_goto): New function.
7867 (s390x_emit_lt_goto): New function.
7868 (s390x_emit_le_goto): New function.
7869 (s390x_emit_gt_goto): New function.
7870 (s390x_emit_ge_goto): New function.
7871 (s390_emit_ops): New function.
7872 (struct linux_target_ops): Fill in emit_ops hook.
7874 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
7877 * Makefile.in: Add s390 IPA files.
7878 * configure.srv: Build IPA for s390.
7879 * linux-s390-ipa.c: New file.
7880 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
7881 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
7882 (tdesc_s390_linux32): Likewise.
7883 (init_registers_s390_linux32v1): Likewise.
7884 (tdesc_s390_linux32v1): Likewise.
7885 (init_registers_s390_linux32v2): Likewise.
7886 (tdesc_s390_linux32v2): Likewise.
7887 (init_registers_s390_linux64): Likewise.
7888 (tdesc_s390_linux64): Likewise.
7889 (init_registers_s390_linux64v1): Likewise.
7890 (tdesc_s390_linux64v1): Likewise.
7891 (init_registers_s390_linux64v2): Likewise.
7892 (tdesc_s390_linux64v2): Likewise.
7893 (init_registers_s390_te_linux64): Likewise.
7894 (tdesc_s390_te_linux64): Likewise.
7895 (init_registers_s390_vx_linux64): Likewise.
7896 (tdesc_s390_vx_linux64): Likewise.
7897 (init_registers_s390_tevx_linux64): Likewise.
7898 (tdesc_s390_tevx_linux64): Likewise.
7899 (init_registers_s390x_linux64): Likewise.
7900 (tdesc_s390x_linux64): Likewise.
7901 (init_registers_s390x_linux64v1): Likewise.
7902 (tdesc_s390x_linux64v1): Likewise.
7903 (init_registers_s390x_linux64v2): Likewise.
7904 (tdesc_s390x_linux64v2): Likewise.
7905 (init_registers_s390x_te_linux64): Likewise.
7906 (tdesc_s390x_te_linux64): Likewise.
7907 (init_registers_s390x_vx_linux64): Likewise.
7908 (tdesc_s390x_vx_linux64): Likewise.
7909 (init_registers_s390x_tevx_linux64): Likewise.
7910 (tdesc_s390x_tevx_linux64): Likewise.
7911 (have_hwcap_s390_vx): New static variable.
7912 (s390_arch_setup): Fill have_hwcap_s390_vx.
7913 (s390_get_thread_area): New function.
7914 (s390_ft_entry_gpr_esa): New const.
7915 (s390_ft_entry_gpr_zarch): New const.
7916 (s390_ft_entry_misc): New const.
7917 (s390_ft_entry_fr): New const.
7918 (s390_ft_entry_vr): New const.
7919 (s390_ft_main_31): New const.
7920 (s390_ft_main_64): New const.
7921 (s390_ft_exit_fr): New const.
7922 (s390_ft_exit_vr): New const.
7923 (s390_ft_exit_misc): New const.
7924 (s390_ft_exit_gpr_esa): New const.
7925 (s390_ft_exit_gpr_zarch): New const.
7926 (append_insns): New function.
7927 (s390_relocate_instruction): New function.
7928 (s390_install_fast_tracepoint_jump_pad): New function.
7929 (s390_get_min_fast_tracepoint_insn_len): New function.
7930 (s390_get_ipa_tdesc_idx): New function.
7931 (struct linux_target_ops): Wire in the above functions.
7932 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
7933 * linux-s390-tdesc.h: New file.
7935 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
7937 * linux-s390-low.c (s390_supports_tracepoints): New function.
7938 (struct linux_target_ops): Fill supports_tracepoints hook.
7940 2016-03-18 Yao Qi <yao.qi@linaro.org>
7942 * linux-low.c (lwp_signal_can_be_delivered): New function.
7943 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
7945 2016-03-18 Yao Qi <yao.qi@linaro.org>
7947 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
7948 0 if signal is enqueued. Remove 'signal' from one debugging
7949 message. Move one debugging message to some lines below.
7950 Remove code setting 'signal' to 0.
7952 2016-03-18 Yao Qi <yao.qi@linaro.org>
7954 * linux-low.c (linux_low_filter_event): Remove redundant
7955 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
7957 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
7959 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
7960 (struct linux_target_ops): Wire in the above.
7962 2016-03-03 Yao Qi <yao.qi@linaro.org>
7964 * linux-low.c: Update comments to start_step_over.
7966 2016-03-03 Yao Qi <yao.qi@linaro.org>
7969 * linux-low.c (handle_extended_wait): Set child suspended
7970 if event_lwp->bp_reinsert isn't zero.
7972 2016-03-02 Yao Qi <yao.qi@linaro.org>
7974 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
7975 enqueue_pending_signal.
7977 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
7979 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
7982 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
7984 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
7985 (s390_regmap_3264) [!__s390x__]: New global.
7986 (s390_collect_ptrace_register): Skip map entries containing -1.
7987 (s390_supply_ptrace_register): Ditto.
7988 (s390_fill_gprs_high): New function.
7989 (s390_store_gprs_high): New function.
7990 (s390_regsets): Add NT_S390_HIGH_GPRS.
7991 (s390_get_hwcap): Enable on 31-bit.
7992 (have_hwcap_s390_high_gprs): Enable on 31-bit.
7993 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
7994 Detect NT_S390_HIGH_GPRS.
7995 (s390_usrregs_info_3264): Enable on 31-bit.
7996 (s390_regs_info): Enable regs_info_3264 on 31-bit.
7997 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
7999 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8002 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
8003 * configure.srv: Ditto.
8004 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
8005 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
8006 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
8007 (init_registers_amd64_linux): Remove prototype.
8008 (tdesc_amd64_linux): Remove declaration.
8009 (get_ipa_tdesc): New function.
8010 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8011 initialize remaining tdescs.
8012 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
8013 (init_registers_i386_linux): Remove prototype.
8014 (tdesc_i386_linux): Remove declaration.
8015 (get_ipa_tdesc): New function.
8016 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8017 initialize remaining tdescs.
8018 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
8019 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
8020 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
8021 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
8022 (x86_get_ipa_tdesc_idx): New function.
8023 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
8024 * linux-x86-tdesc.h: New file.
8025 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
8026 (target_get_ipa_tdesc_idx): New macro.
8027 * tracepoint.c (ipa_tdesc_idx): New macro.
8028 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
8029 (symbol_list): Add ipa_tdesc_idx.
8030 (cmd_qtstart): Write ipa_tdesc_idx in the target.
8031 (ipa_tdesc): Remove.
8032 (ipa_tdesc_idx): New variable.
8033 (get_context_regcache): Use get_ipa_tdesc.
8034 (gdb_collect): Ditto.
8036 * tracepoint.h (get_ipa_tdesc): New prototype.
8037 (ipa_tdesc): Remove.
8039 2016-02-24 Pedro Alves <palves@redhat.com>
8041 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
8042 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
8043 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
8044 Factor out common code between the USE_SIGTRAP_SIGINFO and
8045 !USE_SIGTRAP_SIGINFO blocks.
8046 (linux_low_filter_event): Call save_stop_reason instead of
8047 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
8049 (linux_wait_1): Update comments.
8051 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
8053 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
8054 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
8055 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
8056 ppc_insert_point, ppc_remove_point.
8058 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
8060 * linux-s390-low.c (s390_supports_z_point_type): New function.
8061 (struct linux_target_ops): Wire s390_supports_z_point_type in.
8063 2016-02-16 Yao Qi <yao.qi@linaro.org>
8065 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
8066 PC. Get pc from regcache_read_pc.
8068 2016-02-12 Yao Qi <yao.qi@linaro.org>
8070 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
8071 or linux_get_pc_32bit.
8072 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
8074 2016-02-12 Yao Qi <yao.qi@linaro.org>
8076 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
8077 arm_linux_get_next_pcs_fixup.
8079 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
8081 * tracepoint.c (x_tracepoint_action_download): Change
8082 write_inferior_data_ptr to write_inferior_data_pointer.
8083 (cmd_qtstart): Likewise.
8084 (write_inferior_data_ptr): Remove.
8085 (download_agent_expr): Change write_inferior_data_ptr to
8086 write_inferior_data_pointer.
8087 (download_tracepoint_1): Likewise.
8088 (download_tracepoint): Likewise.
8089 (download_trace_state_variables): Likewise.
8091 2016-02-11 Wei-cheng Wang <cole945@gmail.com>
8092 Marcin Kościelnicki <koriakin@0x04.net>
8094 * tracepoint.c (struct tracepoint_action_ops): Remove.
8095 (struct tracepoint_action): Remove ops.
8096 (m_tracepoint_action_download, r_tracepoint_action_download)
8097 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
8098 size and offset accordingly.
8099 (m_tracepoint_action_ops, r_tracepoint_action_ops)
8100 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
8101 (tracepoint_action_send, tracepoint_action_download): New functions.
8102 Helpers for trace action handlers.
8103 (add_tracepoint_action): Remove setup actions ops.
8104 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
8106 2016-02-10 Yao Qi <yao.qi@linaro.org>
8108 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
8110 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8112 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
8114 * configure: Regenerate.
8116 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8118 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
8119 void * to gdb_byte *.
8120 * linux-low.c (siginfo_fixup): Likewise.
8121 (linux_xfer_siginfo): Likewise.
8122 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
8124 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
8126 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
8128 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
8130 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
8132 * linux-x86-low.c [__x86_64__]: Include
8133 "nat/amd64-linux-siginfo.h".
8134 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
8135 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
8136 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
8137 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
8138 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
8139 (cpt_si_fd, si_timerid, si_overrun): Move from
8140 nat/amd64-linux-siginfo.c.
8141 * Makefile.in (amd64-linux-siginfo.o:): New rule.
8143 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
8145 * server.c (skip_to_semicolon): Remove.
8146 (process_point_options): Use strchrnul instead of
8149 2016-01-26 Yao Qi <yao.qi@linaro.org>
8151 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
8152 * linux-low.c (install_software_single_step_breakpoints): Don't
8153 call regcache_read_pc.
8154 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
8157 2016-01-26 Yao Qi <yao.qi@linaro.org>
8159 * linux-low.c (install_software_single_step_breakpoints): Call
8160 regcache_read_pc instead of get_pc.
8162 2016-01-26 Yao Qi <yao.qi@linaro.org>
8164 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
8165 (unblock_async_io): Rename to ...
8166 (block_unblock_async_io): ... it. New function.
8167 (enable_async_io): Don't install SIGIO handler. Unblock it
8169 (disable_async_io): Don't ignore SIGIO. Block it instead.
8170 (initialize_async_io): Install SIGIO handler. Don't call
8173 2016-01-26 Yao Qi <yao.qi@linaro.org>
8175 * remote-utils.c (getpkt): If the buffer isn't empty, and the
8176 first character is '\003', call *the_target->request_interrupt.
8178 2016-01-25 Yao Qi <yao.qi@linaro.org>
8180 * remote-utils.c (new_thread_notify): Remove.
8181 (dead_thread_notify): Likewise.
8182 * remote-utils.h (new_thread_notify): Remove declaration.
8183 (dead_thread_notify): Likewise.
8185 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
8187 * gdb.trace/pending.exp: Fix expected message on continue.
8189 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
8191 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
8192 it works properly on big-endian machines where sizeof (CORE_ADDR)
8195 2016-01-21 Pedro Alves <palves@redhat.com>
8197 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
8198 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
8199 * configure: Regenerate.
8201 2016-01-21 Yao Qi <yao.qi@linaro.org>
8203 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
8204 is_thumb and set it according to CPSR saved on the stack.
8205 (get_next_pcs_syscall_next_pc): Pass is_thumb to
8206 arm_sigreturn_next_pc.
8208 2016-01-18 Yao Qi <yao.qi@linaro.org>
8210 * linux-low.c (linux_set_pc_64bit): New function.
8211 (linux_get_pc_64bit): New function.
8212 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
8214 * linux-sparc-low.c (debug_threads): Remove declaration.
8215 (sparc_get_pc): Remove.
8216 (the_low_target): Use linux_get_pc_64bit instead of
8218 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
8219 (the_low_target): Use linux_get_pc_64bit and
8222 2016-01-18 Yao Qi <yao.qi@linaro.org>
8224 * linux-arm-low.c (debug_threads): Remove declaration.
8225 (arm_get_pc, arm_set_pc): Remove.
8226 (the_low_target): Use linux_get_pc_32bit and
8228 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
8229 (the_low_target): Use linux_get_pc_32bit and
8231 * linux-cris-low.c (debug_threads): Remove declaration.
8232 (cris_get_pc, cris_set_pc,): Remove.
8233 (the_low_target): Use linux_get_pc_32bit and
8235 * linux-crisv32-low.c (debug_threads): Remove declaration.
8236 (cris_get_pc, cris_set_pc): Remove.
8237 (the_low_target): Use linux_get_pc_32bit and
8239 * linux-low.c: Include inttypes.h.
8240 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
8241 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
8242 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
8243 (the_low_target): Use linux_get_pc_32bit and
8245 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
8246 (the_low_target): Use linux_get_pc_32bit and
8248 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
8249 (the_low_target): Use linux_get_pc_32bit and
8251 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
8252 (the_low_target): Use linux_get_pc_32bit and
8254 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
8255 (the_low_target): Use linux_get_pc_32bit and
8258 2016-01-18 Gary Benson <gbenson@redhat.com>
8260 * configure.ac (AC_FUNC_FORK): New check.
8261 * config.in: Regenerate.
8262 * configure: Likewise.
8264 2016-01-14 Yao Qi <yao.qi@linaro.org>
8266 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
8267 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
8268 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
8269 arm_get_next_pcs_ctor.
8271 2016-01-12 Josh Stone <jistone@redhat.com>
8272 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8274 * inferiors.h: Include "gdb_vecs.h".
8275 (struct process_info): Add syscalls_to_catch.
8276 * inferiors.c (remove_process): Free syscalls_to_catch.
8277 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
8278 syscall_return stops.
8279 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
8280 * server.c (handle_general_set): Handle QCatchSyscalls.
8281 (handle_query): Report support for QCatchSyscalls.
8282 * target.h (struct target_ops): Add supports_catch_syscall.
8283 (target_supports_catch_syscall): New macro.
8284 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
8285 (struct lwp_info): Add syscall_state.
8286 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
8287 Maintain syscall_state and syscalls_to_catch across exec.
8288 (get_syscall_trapinfo): New function, proxy to the_low_target.
8289 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
8290 (linux_low_filter_event): Toggle syscall_state entry/return for
8291 syscall traps, and set it ignored for all others.
8292 (gdb_catching_syscalls_p): New function.
8293 (gdb_catch_this_syscall_p): New function.
8294 (linux_wait_1): Handle SYSCALL_SIGTRAP.
8295 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
8296 (linux_supports_catch_syscall): New function.
8297 (linux_target_ops): Install it.
8298 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
8299 (the_low_target): Install it.
8301 2016-01-12 Mike Frysinger <vapier@gentoo.org>
8303 * acinclude.m4: Include new ../warning.m4 file.
8304 * configure: Regenerated.
8305 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
8307 2016-01-12 Mike Frysinger <vapier@gentoo.org>
8309 * ax.c (is_goto_target): Mark static.
8310 * linux-low.c (register_addr): Likewise.
8311 (linux_fetch_registers, linux_store_registers): Likewise.
8312 * mem-break.c (any_persistent_commands): Fix old prototype.
8313 (add_commands_to_breakpoint): Mark static.
8314 * regcache.c (find_register_by_name): Delete unused func.
8315 * remote-utils.c (hex_or_minus_one): Mark static.
8316 * server.c (monitor_show_help): Mark static.
8317 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
8318 handle_v_requests): Likewise.
8320 2016-01-12 Pedro Alves <palves@redhat.com>
8322 Remove use of the registered trademark symbol throughout.
8324 2016-01-08 Yao Qi <yao.qi@linaro.org>
8326 * remote-utils.c (getpkt): If c is '\003', call target hook
8329 2016-01-06 Yao Qi <yao.qi@linaro.org>
8331 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
8332 linux-aarch32-low.c.
8333 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8334 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8335 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8336 (thumb2_breakpoint): Declare.
8337 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
8338 linux-aarch32-low.h.
8339 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8340 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8341 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8343 2016-01-01 Joel Brobecker <brobecker@adacore.com>
8345 * gdbreplay.c (gdbreplay_version): Change copyright year in
8347 * server.c (gdbserver_version): Likewise.
8349 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
8351 * server.c (crc32_table): Delete.
8352 (crc32): Use libiberty's xcrc32 function.
8354 2015-12-22 Joel Brobecker <brobecker@adacore.com>
8356 * lynx-low.c (lynx_delete_thread_callback): New function.
8357 (lynx_mourn): Properly delete our process and all of its
8358 threads. Remove call to clear_inferiors.
8360 2015-12-22 Joel Brobecker <brobecker@adacore.com>
8362 * target.c (thread_search_callback): Add check that
8363 the thread_stopped target callback is not NULL before
8366 2015-12-21 Yao Qi <yao.qi@linaro.org>
8368 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
8371 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8373 * server.c (handle_query): Call target_supports_software_single_step.
8375 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8377 * linux-low.c (single_step): New function.
8378 (linux_resume_one_lwp_throw): Call single_step.
8379 (start_step_over): Likewise.
8381 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8383 * Makefile.in (SFILES): Append arch/arm-linux.c,
8384 arch/arm-get-next-pcs.c.
8385 (arm-linux.o): New rule.
8386 (arm-get-next-pcs.o): New rule.
8387 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
8389 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
8390 to linux-aarch32-low.c.
8391 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8392 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8393 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8394 (thumb2_breakpoint_len): Likewise.
8395 (arm_is_thumb_mode): Make non-static.
8396 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
8397 from linux-aarch32-low.c.
8398 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8399 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8400 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8401 (thumb2_breakpoint_len): Likewise.
8402 (arm_is_thumb_mode): New declaration.
8403 * linux-arm-low.c: Include arch/arm-linux.h
8404 aarch/arm-get-next-pcs.h, sys/syscall.h.
8405 (get_next_pcs_ops): New struct.
8406 (get_next_pcs_addr_bits_remove): New function.
8407 (get_next_pcs_is_thumb): New function.
8408 (get_next_pcs_read_memory_unsigned_integer): Likewise.
8409 (arm_sigreturn_next_pc): Likewise.
8410 (get_next_pcs_syscall_next_pc): Likewise.
8411 (arm_gdbserver_get_next_pcs): Likewise.
8412 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
8414 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
8415 * server.h: Include gdb_vecs.h.
8417 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8419 * Makefile.in (SFILES): Append common/common-regcache.c.
8420 (OBS): Append common-regcache.o.
8421 (common-regcache.o): New rule.
8422 * regcache.c (init_register_cache): Initialize cache to
8424 (regcache_raw_read_unsigned): New function.
8425 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
8426 register_status enum.
8428 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8430 * linux-aarch64-low.c (the_low_targets): Rename
8431 breakpoint_reinsert_addr to get_next_pcs.
8432 * linux-arm-low.c (the_low_targets): Likewise.
8433 * linux-bfin-low.c (the_low_targets): Likewise.
8434 * linux-cris-low.c (the_low_targets): Likewise.
8435 * linux-crisv32-low.c (the_low_targets): Likewise.
8436 * linux-low.c (can_software_single_step): Likewise.
8437 (install_software_single_step_breakpoints): New function.
8438 (start_step_over): Use install_software_single_step_breakpoints.
8439 * linux-low.h: New CORE_ADDR vector.
8440 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
8442 * linux-mips-low.c (the_low_targets): Likewise.
8443 * linux-nios2-low.c (the_low_targets): Likewise.
8444 * linux-sparc-low.c (the_low_targets): Likewise.
8446 2015-12-17 Pedro Alves <palves@redhat.com>
8448 * linux-low.c (linux_kill_one_lwp): Remove references to
8450 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
8452 (linux_init_signals): Delete.
8453 (initialize_low): Adjust.
8454 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
8456 2015-12-16 Pedro Alves <palves@redhat.com>
8458 * configure.ac (compiler warning flags): When testing a
8459 -Wno-foo option, check whether -Wfoo works instead.
8460 * configure: Regenerate.
8462 2015-12-11 Don Breazeal <donb@codesourcery.com>
8464 * server.c (process_serial_event): Don't exit from gdbserver
8465 in remote mode if there are still active inferiors.
8467 2015-12-11 Yao Qi <yao.qi@linaro.org>
8469 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
8470 arm_breakpoint_at if the process is 32-bit.
8472 2015-12-11 Yao Qi <yao.qi@linaro.org>
8474 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
8477 2015-12-07 Yao Qi <yao.qi@linaro.org>
8479 * configure.srv: Append arm.o to srv_tgtobj for
8480 aarch64*-*-linux* target.
8481 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
8482 from linux-arm-low.c.
8483 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8484 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8485 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8486 (thumb2_breakpoint_len): Likewise.
8487 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
8488 (arm_breakpoint_kinds): Likewise.
8489 (arm_breakpoint_kind_from_pc): Likewise.
8490 (arm_sw_breakpoint_from_kind): Likewise.
8491 (arm_breakpoint_kind_from_current_state): Likewise.
8492 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
8493 (arm_sw_breakpoint_from_kind): Declare.
8494 (arm_breakpoint_kind_from_current_state): Declare.
8495 (arm_breakpoint_at): Declare.
8496 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
8497 arm_sw_breakpoint_from_kind if process is 32-bit.
8498 (aarch64_breakpoint_kind_from_pc): New function.
8499 (aarch64_breakpoint_kind_from_current_state): New function.
8500 (the_low_target): Initialize fields breakpoint_kind_from_pc
8501 and breakpoint_kind_from_current_state.
8502 * linux-arm-low.c (arm_breakpoint_kinds): Move to
8503 linux-aarch32-low.c.
8504 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
8505 (arm_breakpoint, arm_breakpoint_len): Likewise.
8506 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
8507 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8508 (arm_is_thumb_mode): Likewise.
8509 (arm_breakpoint_at): Likewise.
8510 (arm_breakpoint_kind_from_pc): Likewise.
8511 (arm_sw_breakpoint_from_kind): Likewise.
8512 (arm_breakpoint_kind_from_current_state): Likewise.
8515 2015-08-04 Yao Qi <yao.qi@linaro.org>
8517 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
8518 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
8519 * server.c (extended_protocol): Remove "static".
8520 * server.h (extended_protocol): Declare it.
8522 2015-12-04 Josh Stone <jistone@redhat.com>
8524 * target.h (struct target_ops) <arch_setup>: Rename to ...
8525 (struct target_ops) <post_create_inferior>: ... this.
8526 (target_arch_setup): Rename to ...
8527 (target_post_create_inferior): ... this, calling post_create_inferior.
8528 * server.c (start_inferior): Update target_arch_setup calls to
8529 target_post_create_inferior.
8530 * linux-low.c (linux_low_ptrace_options): Forward declare.
8531 (linux_arch_setup): Update its comment for general use.
8532 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
8533 (struct linux_target_ops): Use linux_post_create_inferior.
8534 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
8535 to post_create_inferior.
8536 * nto-low.c (struct nto_target_ops): Likewise.
8537 * spu-low.c (struct spu_target_ops): Likewise.
8538 * win32-low.c (struct win32_target_ops): Likewise.
8540 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
8542 * linux-arm-low.c: Remove duplicate arch/arm.h include.
8544 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
8546 * linux-arm-low.c (arm_reinsert_addr): Remove function.
8547 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
8548 * linux-cris-low.c (cris_reinsert_addr> Remove function.
8549 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8550 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
8551 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8552 * linux-mips-low.c (mips_reinsert_addr): Remove function.
8553 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8554 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
8555 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8556 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
8557 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8559 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
8561 * linux-low.c (linux_look_up_symbols): Don't call
8562 linux_supports_traceclone.
8563 * linux-low.h (thread_db_init): Remove use_events argument.
8564 * thread-db.c (thread_db_use_event): Remove global variable.
8565 (struct thread_db) <td_thr_event_enable_p>: Remove field.
8566 (struct thread_db) <td_create_bp>: Remove field.
8567 (thread_db_create_event): Remove function.
8568 (thread_db_enable_reporting): Likewise.
8569 (find_one_thread): Don't check for thread_db_use_events.
8570 (attach_thread): Likewise.
8571 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
8572 (try_thread_db_load_1): Don't check for thread_db_use_events.
8573 (thread_db_init): Remove use_events argument and thread events
8575 (remove_thread_event_breakpoints): Remove function.
8576 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
8578 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
8580 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
8582 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8583 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
8584 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8585 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
8586 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
8588 * linux-crisv32-low.c (cris_supports_hardware_single_step):
8590 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8591 * linux-low.c (can_hardware_single_step): Use
8592 supports_hardware_single_step.
8593 (can_software_single_step): New function.
8594 (start_step_over): Call can_software_single_step.
8595 (linux_supports_hardware_single_step): New function.
8596 (struct target_ops) <supports_software_single_step>: Initialize.
8597 * linux-low.h (struct linux_target_ops)
8598 <supports_hardware_single_step>: Initialize.
8599 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
8600 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8601 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
8602 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
8603 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
8604 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8605 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
8606 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8607 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
8608 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
8610 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
8611 (struct linux_target_ops) <tile_supports_hardware_single_step>:
8613 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
8614 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8615 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
8617 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8618 * target.h (struct target_ops): <supports_software_single_step>:
8620 (target_supports_software_single_step): New macro.
8622 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
8624 * linux-low.c (linux_wait_1): Fix pc advance condition.
8625 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
8626 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
8628 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
8630 * linux-arm-low.c (arm_is_thumb_mode): New function.
8631 (arm_breakpoint_at): Use arm_is_thumb_mode.
8632 (arm_breakpoint_kind_from_current_state): New function.
8633 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
8635 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
8636 (linux_breakpoint_kind_from_current_state): New function.
8637 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
8638 * linux-low.h (struct linux_target_ops)
8639 <breakpoint_kind_from_current_state>: New field.
8640 * target.h (struct target_ops): Likewise.
8641 (target_breakpoint_kind_from_current_state): New macro.
8643 2015-11-30 Pedro Alves <palves@redhat.com>
8645 * linux-low.c (linux_resume): Wake up the event loop before
8648 2015-11-30 Pedro Alves <palves@redhat.com>
8650 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
8652 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
8654 * target.c (struct thread_search): New structure.
8655 (thread_search_callback): New function.
8656 (prev_general_thread): New global.
8657 (prepare_to_access_memory, done_accessing_memory): New functions.
8658 * target.h (prepare_to_access_memory, done_accessing_memory):
8659 Replace macros with function declarations.
8661 2015-11-30 Pedro Alves <palves@redhat.com>
8664 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
8665 report TARGET_WAITKIND_NO_RESUMED.
8666 * remote-utils.c (prepare_resume_reply): Handle
8667 TARGET_WAITKIND_NO_RESUMED.
8668 * server.c (report_no_resumed): New global.
8669 (handle_query) <qSupported>: Handle "no-resumed+". Report
8670 "no-resumed+" support.
8671 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
8672 return error if the client doesn't support no-resumed events.
8673 (push_stop_notification): New function.
8674 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
8675 events if the client supports them.
8677 2015-11-30 Pedro Alves <palves@redhat.com>
8679 * linux-low.c (thread_still_has_status_pending_p): Don't check
8681 (lwp_resumed): New function.
8682 (status_pending_p_callback): Return early if the LWP is not
8683 supposed to be resumed.
8685 2015-11-30 Pedro Alves <palves@redhat.com>
8687 * linux-low.c (handle_extended_wait): Assert that the LWP's
8688 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
8689 thread create events, leave the new child's status pending.
8690 (linux_low_filter_event): If GDB wants to hear about thread exit
8691 events, leave the LWP marked dead and don't delete it.
8692 (linux_wait_for_event_filtered): Don't check for thread exit.
8693 (filter_exit_event): New function.
8694 (linux_wait_1): Use it, when returning an exit event.
8695 (linux_resume_one_lwp_throw): Assert that the LWP's
8696 waitstatus is TARGET_WAITKIND_IGNORE.
8697 * remote-utils.c (prepare_resume_reply): Handle
8698 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
8699 * server.c (report_thread_events): New global.
8700 (handle_general_set): Handle QThreadEvents.
8701 (handle_query) <qSupported>: Handle and report QThreadEvents+;
8702 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
8703 TARGET_WAITKIND_THREAD_EXITED.
8704 * server.h (report_thread_events): Declare.
8706 2015-11-30 Pedro Alves <palves@redhat.com>
8708 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
8709 the thread's last_resume_kind was resume_stop.
8711 2015-11-30 Pedro Alves <palves@redhat.com>
8713 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
8716 2015-11-30 Pedro Alves <palves@redhat.com>
8718 * server.c (handle_v_requests): Handle vCtrlC.
8720 2015-11-30 Pedro Alves <palves@redhat.com>
8722 * gdbthread.h (find_any_thread_of_pid): Declare.
8723 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
8725 * server.c (handle_query): If current_thread is NULL, look for
8726 another thread of the selected process.
8728 2015-11-26 Daniel Colascione <dancol@dancol.org>
8729 Simon Marchi <simon.marchi@ericsson.com>
8731 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
8732 * server.c (handle_qxfer_threads_worker): Refactor to include thread
8734 * target.h (struct target_ops) <thread_name>: New field.
8735 (target_thread_name): New macro.
8737 2015-11-23 Joel Brobecker <brobecker@adacore.com>
8739 * regcache.h (regcache_invalidate_pid): Add declaration.
8740 * regcache.c (regcache_invalidate_pid): New function, extracted
8741 from regcache_invalidate.
8742 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
8743 Add trivial documentation comment.
8744 * lynx-low.c: Use regcache_invalidate_pid instead of
8745 regcache_invalidate.
8747 2015-11-23 Joel Brobecker <brobecker@adacore.com>
8749 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
8750 and Elf64_auxv_t if the target is Android.
8752 2015-11-22 Doug Evans <xdje42@gmail.com>
8754 * target.h: #include <sys/types.h>.
8756 2015-11-19 Pedro Alves <palves@redhat.com>
8758 * linux-low.c (linux_process_qsupported): Change prototype.
8760 * linux-low.h (struct linux_target_ops) <process_qsupported>:
8762 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
8763 and adjust to loop over all features.
8764 * server.c (handle_query) <qSupported>: Adjust to call
8765 target_process_qsupported once, passing it a vector of unprocessed
8767 * target.h (struct target_ops) <process_qsupported>: Change
8769 (target_process_qsupported): Adjust.
8771 2015-11-19 Pedro Alves <palves@redhat.com>
8773 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
8775 * configure: Regenerate.
8777 2015-11-19 Pedro Alves <palves@redhat.com>
8779 * configure: Regenerate.
8781 2015-11-19 Yao Qi <yao.qi@linaro.org>
8783 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
8786 2015-11-19 Yao Qi <yao.qi@linaro.org>
8788 * linux-aarch64-low.c (enum aarch64_operand_type): New.
8789 (struct aarch64_operand): Move enum out.
8791 2015-11-19 Yao Qi <yao.qi@linaro.org>
8793 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
8794 struct user_fpsimd_state *.
8795 (aarch64_store_fpregset): Likewise.
8797 2015-11-19 Yao Qi <yao.qi@linaro.org>
8799 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
8800 struct user_pt_regs *.
8801 (aarch64_store_gregset): Likewise.
8803 2015-11-18 Pedro Alves <palves@redhat.com>
8805 * Makefile.in (all_object_files): Add $IPA_OBJS.
8807 2015-11-17 Pedro Alves <palves@redhat.com>
8809 * win32-low.c (win32_resume): Use gdb_signal_from_host,
8810 GDB_SIGNAL_0 and gdb_signal_to_string.
8812 2015-11-17 Pedro Alves <palves@redhat.com>
8814 * win32-low.c (handle_output_debug_string): Remove parameter.
8815 (win32_kill): Remove our_status local and adjust call to
8816 handle_output_debug_string.
8817 (get_child_debug_event): Adjust call to
8818 handle_output_debug_string.
8820 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8822 * linux-mips-low.c (mips_fill_gregset): Add cast.
8823 (mips_store_gregset): Likewise.
8824 (mips_fill_fpregset): Likewise.
8825 (mips_store_fpregset): Likewise.
8827 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8829 * linux-mips-low.c (mips_add_watchpoint): Rename private to
8832 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8834 * linux-mips-low.c (mips_linux_new_thread): Change type of
8835 watch_type to enum target_hw_bp_type.
8837 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8839 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
8840 Change return type to arm_hwbp_type.
8842 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8844 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
8845 (arm_store_gregset): Likewise.
8846 * linux-arm-low.c (arm_get_hwcap): Likewise.
8847 (arm_read_description): Likewise.
8849 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8851 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
8853 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8855 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
8856 (ppc_fill_vsxregset): Likewise.
8857 (ppc_store_vsxregset): Likewise.
8858 (ppc_fill_vrregset): Likewise.
8859 (ppc_store_vrregset): Likewise.
8860 (ppc_fill_evrregset): Likewise.
8861 (ppc_store_evrregset): Likewise.
8863 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8865 * linux-ppc-low.c (ppc_usrregs_info): Remove
8866 forward-declaration.
8867 (ppc_arch_setup): Move lower in file.
8869 2015-10-30 Simon Marchi <simon.marchi@ericsson.com>
8871 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
8872 (ps_pdwrite): Likewise.
8874 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
8876 * linux-arm-low.c (arm_new_thread): Move pointer dereference
8877 to after assert checks.
8879 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
8881 * proc-service.c (ps_pdread): Add/adjust casts.
8882 (ps_pdwrite): Add/adjust casts.
8884 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
8886 * server.c (handle_search_memory_1): Cast return value of
8889 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
8891 * server.c (write_qxfer_response): Change type of data to
8894 2015-10-29 Pedro Alves <palves@redhat.com>
8896 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
8898 2015-10-29 Pedro Alves <palves@redhat.com>
8900 * tracepoint.c (clear_installed_tracepoints): Add casts.
8902 2015-10-29 Pedro Alves <palves@redhat.com>
8904 * server.c (handle_v_cont, process_serial_event): Add enum
8905 gdb_signal casts to signal parsing code.
8907 2015-10-29 Pedro Alves <palves@redhat.com>
8909 * linux-low.h (NULL_REGSET): Define.
8910 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
8911 * linux-arm-low.c (arm_regsets): Likewise.
8912 * linux-crisv32-low.c (cris_regsets): Likewise.
8913 * linux-m68k-low.c (m68k_regsets): Likewise.
8914 * linux-mips-low.c (mips_regsets): Likewise.
8915 * linux-nios2-low.c (nios2_regsets): Likewise.
8916 * linux-ppc-low.c (ppc_regsets): Likewise.
8917 * linux-s390-low.c (s390_regsets): Likewise.
8918 * linux-sh-low.c (sh_regsets): Likewise.
8919 * linux-sparc-low.c (sparc_regsets): Likewise.
8920 * linux-tic6x-low.c (tic6x_regsets): Likewise.
8921 * linux-tile-low.c (tile_regsets): Likewise.
8922 * linux-x86-low.c (x86_regsets): Likewise.
8923 * linux-xtensa-low.c (xtensa_regsets): Likewise.
8925 2015-10-29 Pedro Alves <palves@redhat.com>
8927 * linux-low.h (NULL_REGSET): Define.
8928 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
8929 * linux-arm-low.c (arm_regsets): Likewise.
8930 * linux-crisv32-low.c (cris_regsets): Likewise.
8931 * linux-m68k-low.c (m68k_regsets): Likewise.
8932 * linux-mips-low.c (mips_regsets): Likewise.
8933 * linux-nios2-low.c (nios2_regsets): Likewise.
8934 * linux-ppc-low.c (ppc_regsets): Likewise.
8935 * linux-s390-low.c (s390_regsets): Likewise.
8936 * linux-sh-low.c (sh_regsets): Likewise.
8937 * linux-sparc-low.c (sparc_regsets): Likewise.
8938 * linux-tic6x-low.c (tic6x_regsets): Likewise.
8939 * linux-tile-low.c (tile_regsets): Likewise.
8940 * linux-x86-low.c (x86_regsets): Likewise.
8941 * linux-xtensa-low.c (xtensa_regsets): Likewise.
8943 2015-10-26 Doug Evans <dje@google.com>
8945 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
8947 2015-10-26 Doug Evans <dje@google.com>
8949 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
8951 2015-10-26 Doug Evans <dje@google.com>
8953 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
8955 (attach_thread, find_new_threads_callback): Ditto.
8957 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
8959 * mem-break.h (set_breakpoint_data): Remove.
8961 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
8963 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
8964 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
8965 (initialize_low): Remove set_breakpoint_data call.
8966 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
8967 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
8968 (initialize_low): Remove set_breakpoint_data call.
8969 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
8970 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
8971 (initialize_low): Remove set_breakpoint_data call.
8973 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
8975 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
8976 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
8977 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
8978 * target.h (target_breakpoint_kind_from_pc): New macro.
8980 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
8982 * linux-low.c (default_breakpoint_kind_from_pc): New function.
8983 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
8984 the default breakpoint kind.
8986 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
8988 * linux-arm-low.c (arm_supports_z_point_type): Add software
8991 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
8993 * linux-arm-low.c: Refactor breakpoint definitions.
8994 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
8995 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
8997 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
8999 * Makefile.in: Add arm.c/o.
9000 * configure.srv: Likewise.
9001 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
9002 (arm_breakpoint_kind_from_pc): New function.
9003 (arm_sw_breakpoint_from_kind): Return proper kind.
9004 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
9006 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9008 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
9010 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
9011 (struct raw_breakpoint) <size>: Remove.
9012 (struct raw_breakpoint) <kind>: Add.
9013 (bp_size): New function.
9014 (bp_opcode): Likewise.
9015 (find_raw_breakpoint_at): Adjust for kind.
9016 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
9017 (remove_memory_breakpoint): Adjust for kind call bp_size.
9018 (set_raw_breakpoint_at): Adjust for kind.
9019 (set_breakpoint): Likewise.
9020 (set_breakpoint_at): Call breakpoint_kind_from_pc.
9021 (delete_raw_breakpoint): Adjust for kind.
9022 (delete_breakpoint): Likewise.
9023 (find_gdb_breakpoint): Likewise.
9024 (set_gdb_breakpoint_1): Likewise.
9025 (set_gdb_breakpoint): Likewise.
9026 (delete_gdb_breakpoint_1): Likewise.
9027 (delete_gdb_breakpoint): Likewise.
9028 (uninsert_raw_breakpoint): Likewise.
9029 (reinsert_raw_breakpoint): Likewise.
9030 (set_breakpoint_data): Remove.
9031 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
9032 (check_mem_read): Adjust for kind call bp_size.
9033 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
9034 (clone_one_breakpoint): Adjust for kind.
9035 * mem-break.h (set_gdb_breakpoint): Likewise.
9036 (delete_gdb_breakpoint): Likewise.
9037 * server.c (process_serial_event): Likewise.
9039 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9041 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
9042 (struct linux_target_ops) <breakpoint>: Remove.
9043 (struct linux_target_ops) <breakpoint_len>: Remove.
9044 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9045 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9046 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
9047 (arm_sw_breakpoint_from_kind): New function.
9048 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
9049 (struct linux_target_ops) <breakpoint>: Remove.
9050 (struct linux_target_ops) <breakpoint_len>: Remove.
9051 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9052 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9053 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
9054 (struct linux_target_ops) <breakpoint>: Remove.
9055 (struct linux_target_ops) <breakpoint_len>: Remove.
9056 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9057 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9058 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
9059 (struct linux_target_ops) <breakpoint>: Remove.
9060 (struct linux_target_ops) <breakpoint_len>: Remove.
9061 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9062 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9063 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
9064 and sw_breakpoint_from_kind to increment the pc.
9065 (linux_breakpoint_kind_from_pc): New function.
9066 (linux_sw_breakpoint_from_kind): New function.
9067 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
9068 (initialize_low): Call breakpoint_kind_from_pc and
9069 sw_breakpoint_from_kind to replace breakpoint_data/len.
9070 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
9072 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
9073 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
9074 (struct linux_target_ops) <breakpoint>: Remove.
9075 (struct linux_target_ops) <breakpoint_len>: Remove.
9076 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9077 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9078 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
9079 (struct linux_target_ops) <breakpoint>: Remove.
9080 (struct linux_target_ops) <breakpoint_len>: Remove.
9081 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9082 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9083 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
9084 (struct linux_target_ops) <breakpoint>: Remove.
9085 (struct linux_target_ops) <breakpoint_len>: Remove.
9086 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9087 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9088 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
9089 (struct linux_target_ops) <breakpoint>: Remove.
9090 (struct linux_target_ops) <breakpoint_len>: Remove.
9091 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9092 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9093 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
9094 (struct linux_target_ops) <breakpoint>: Remove.
9095 (struct linux_target_ops) <breakpoint_len>: Remove.
9096 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9097 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9098 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
9099 (struct linux_target_ops) <breakpoint>: Remove.
9100 (struct linux_target_ops) <breakpoint_len>: Remove.
9101 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9102 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9103 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
9104 (struct linux_target_ops) <breakpoint>: Remove.
9105 (struct linux_target_ops) <breakpoint_len>: Remove.
9106 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9107 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9108 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
9109 (struct linux_target_ops) <breakpoint>: Remove.
9110 (struct linux_target_ops) <breakpoint_len>: Remove.
9111 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9112 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9113 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
9114 (struct linux_target_ops) <breakpoint>: Remove.
9115 (struct linux_target_ops) <breakpoint_len>: Remove.
9116 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9117 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9118 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
9119 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
9120 (struct linux_target_ops) <breakpoint>: Remove.
9121 (struct linux_target_ops) <breakpoint_len>: Remove.
9122 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9123 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9124 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
9125 (struct linux_target_ops) <breakpoint>: Remove.
9126 (struct linux_target_ops) <breakpoint_len>: Remove.
9127 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9128 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9130 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9132 * linux-cris-low.c (cris_get_pc): Remove void arg.
9134 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9136 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
9139 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9141 * inferiors.c (thread_pid_matches_callback): New function.
9142 (find_thread_process): New function.
9143 (remove_thread): Reset current_thread.
9144 (remove_process): Assert threads have been removed first.
9146 2015-10-15 Yao Qi <yao.qi@linaro.org>
9148 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
9150 (aarch64_remove_point): Likewise.
9151 * regcache.c (regcache_register_size): New function.
9153 2015-10-12 Yao Qi <yao.qi@linaro.org>
9155 * linux-aarch64-low.c: Update all callers as emit_load_store
9156 is renamed to aarch64_emit_load_store.
9158 2015-10-12 Yao Qi <yao.qi@linaro.org>
9160 * linux-aarch64-low.c: Update all callers of function renaming
9161 from emit_insn to aarch64_emit_insn.
9163 2015-10-12 Yao Qi <yao.qi@linaro.org>
9165 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
9166 arch/aarch64-insn.h.
9167 (struct aarch64_memory_operand): Likewise.
9169 (emit_insn): Move to arch/aarch64-insn.c.
9170 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
9171 (emit_load_store): Move to arch/aarch64-insn.c.
9172 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
9173 (can_encode_int32): Remove.
9175 2015-10-12 Yao Qi <yao.qi@linaro.org>
9177 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
9178 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
9179 (aarch64_relocate_instruction): Likewise.
9180 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
9181 (struct aarch64_insn_visitor): Likewise.
9183 2015-10-12 Yao Qi <yao.qi@linaro.org>
9185 * linux-aarch64-low.c (struct aarch64_insn_data): New.
9186 (struct aarch64_insn_visitor): New.
9187 (struct aarch64_insn_relocation_data): New.
9188 (aarch64_ftrace_insn_reloc_b): New function.
9189 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
9190 (aarch64_ftrace_insn_reloc_cb): Likewise.
9191 (aarch64_ftrace_insn_reloc_tb): Likewise.
9192 (aarch64_ftrace_insn_reloc_adr): Likewise.
9193 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
9194 (aarch64_ftrace_insn_reloc_others): Likewise.
9196 (aarch64_relocate_instruction): Use visitor.
9198 2015-10-12 Yao Qi <yao.qi@linaro.org>
9200 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
9201 int. Add argument buf.
9202 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
9203 aarch64_relocate_instruction.
9205 2015-10-12 Yao Qi <yao.qi@linaro.org>
9207 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
9208 argument insn. Remove local variable insn. Don't call
9210 (aarch64_install_fast_tracepoint_jump_pad): Call
9213 2015-09-30 Yao Qi <yao.qi@linaro.org>
9215 * linux-aarch64-low.c (emit_movk): Shorten a long line.
9216 (emit_load_store_pair): Likewise.
9218 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9220 * dll.c (match_dll): Add cast(s).
9221 (unloaded_dll): Likewise.
9222 * linux-low.c (second_thread_of_pid_p): Likewise.
9223 (delete_lwp_callback): Likewise.
9224 (count_events_callback): Likewise.
9225 (select_event_lwp_callback): Likewise.
9226 (linux_set_resume_request): Likewise.
9227 * server.c (accumulate_file_name_length): Likewise.
9228 (emit_dll_description): Likewise.
9229 (handle_qxfer_threads_worker): Likewise.
9230 (visit_actioned_threads): Likewise.
9231 * thread-db.c (any_thread_of): Likewise.
9232 * tracepoint.c (same_process_p): Likewise.
9233 (match_blocktype): Likewise.
9234 (build_traceframe_info_xml): Likewise.
9236 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9238 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
9240 (gdb_unparse_agent_expr): Likewise.
9241 * hostio.c (require_data): Likewise.
9242 (handle_pread): Likewise.
9243 * linux-low.c (disable_regset): Likewise.
9244 (fetch_register): Likewise.
9245 (store_register): Likewise.
9246 (get_dynamic): Likewise.
9247 (linux_qxfer_libraries_svr4): Likewise.
9248 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
9249 (set_fast_tracepoint_jump): Likewise.
9250 (uninsert_fast_tracepoint_jumps_at): Likewise.
9251 (reinsert_fast_tracepoint_jumps_at): Likewise.
9252 (validate_inserted_breakpoint): Likewise.
9253 (clone_agent_expr): Likewise.
9254 * regcache.c (init_register_cache): Likewise.
9255 * remote-utils.c (putpkt_binary_1): Likewise.
9256 (decode_M_packet): Likewise.
9257 (decode_X_packet): Likewise.
9258 (look_up_one_symbol): Likewise.
9259 (relocate_instruction): Likewise.
9260 (monitor_output): Likewise.
9261 * server.c (handle_search_memory): Likewise.
9262 (handle_qxfer_exec_file): Likewise.
9263 (handle_qxfer_libraries): Likewise.
9264 (handle_qxfer): Likewise.
9265 (handle_query): Likewise.
9266 (handle_v_cont): Likewise.
9267 (handle_v_run): Likewise.
9268 (captured_main): Likewise.
9269 * target.c (write_inferior_memory): Likewise.
9270 * thread-db.c (try_thread_db_load_from_dir): Likewise.
9271 * tracepoint.c (init_trace_buffer): Likewise.
9272 (add_tracepoint_action): Likewise.
9273 (add_traceframe): Likewise.
9274 (add_traceframe_block): Likewise.
9275 (cmd_qtdpsrc): Likewise.
9276 (cmd_qtdv): Likewise.
9277 (cmd_qtstatus): Likewise.
9278 (response_source): Likewise.
9279 (response_tsv): Likewise.
9280 (cmd_qtnotes): Likewise.
9281 (gdb_collect): Likewise.
9282 (initialize_tracepoint): Likewise.
9284 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9286 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
9287 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
9288 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
9290 (enum aarch64_condition_codes): New enum.
9291 (w0): New static global.
9294 (struct aarch64_memory_operand) <type>: New
9295 MEMORY_OPERAND_POSTINDEX type.
9296 (postindex_memory_operand): New helper function.
9297 (emit_ret): New function.
9298 (emit_load_store_pair): New function, factored out of emit_stp
9299 with support for MEMORY_OPERAND_POSTINDEX.
9300 (emit_stp): Rewrite using emit_load_store_pair.
9301 (emit_ldp): New function.
9302 (emit_load_store): Likewise.
9303 (emit_ldr): Mention post-index instruction in comment.
9304 (emit_ldrh): New function.
9305 (emit_ldrb): New function.
9306 (emit_ldrsw): Mention post-index instruction in comment.
9307 (emit_str): Likewise.
9308 (emit_subs): New function.
9309 (emit_cmp): Likewise.
9310 (emit_and): Likewise.
9311 (emit_orr): Likewise.
9312 (emit_orn): Likewise.
9313 (emit_eor): Likewise.
9314 (emit_mvn): Likewise.
9315 (emit_lslv): Likewise.
9316 (emit_lsrv): Likewise.
9317 (emit_asrv): Likewise.
9318 (emit_mul): Likewise.
9319 (emit_sbfm): Likewise.
9320 (emit_sbfx): Likewise.
9321 (emit_ubfm): Likewise.
9322 (emit_ubfx): Likewise.
9323 (emit_csinc): Likewise.
9324 (emit_cset): Likewise.
9325 (emit_nop): Likewise.
9326 (emit_ops_insns): New helper function.
9327 (emit_pop): Likewise.
9328 (emit_push): Likewise.
9329 (aarch64_emit_prologue): New function.
9330 (aarch64_emit_epilogue): Likewise.
9331 (aarch64_emit_add): Likewise.
9332 (aarch64_emit_sub): Likewise.
9333 (aarch64_emit_mul): Likewise.
9334 (aarch64_emit_lsh): Likewise.
9335 (aarch64_emit_rsh_signed): Likewise.
9336 (aarch64_emit_rsh_unsigned): Likewise.
9337 (aarch64_emit_ext): Likewise.
9338 (aarch64_emit_log_not): Likewise.
9339 (aarch64_emit_bit_and): Likewise.
9340 (aarch64_emit_bit_or): Likewise.
9341 (aarch64_emit_bit_xor): Likewise.
9342 (aarch64_emit_bit_not): Likewise.
9343 (aarch64_emit_equal): Likewise.
9344 (aarch64_emit_less_signed): Likewise.
9345 (aarch64_emit_less_unsigned): Likewise.
9346 (aarch64_emit_ref): Likewise.
9347 (aarch64_emit_if_goto): Likewise.
9348 (aarch64_emit_goto): Likewise.
9349 (aarch64_write_goto_address): Likewise.
9350 (aarch64_emit_const): Likewise.
9351 (aarch64_emit_call): Likewise.
9352 (aarch64_emit_reg): Likewise.
9353 (aarch64_emit_pop): Likewise.
9354 (aarch64_emit_stack_flush): Likewise.
9355 (aarch64_emit_zero_ext): Likewise.
9356 (aarch64_emit_swap): Likewise.
9357 (aarch64_emit_stack_adjust): Likewise.
9358 (aarch64_emit_int_call_1): Likewise.
9359 (aarch64_emit_void_call_2): Likewise.
9360 (aarch64_emit_eq_goto): Likewise.
9361 (aarch64_emit_ne_goto): Likewise.
9362 (aarch64_emit_lt_goto): Likewise.
9363 (aarch64_emit_le_goto): Likewise.
9364 (aarch64_emit_gt_goto): Likewise.
9365 (aarch64_emit_ge_got): Likewise.
9366 (aarch64_emit_ops_impl): New static global variable.
9367 (aarch64_emit_ops): New target function, return
9368 &aarch64_emit_ops_impl.
9369 (struct linux_target_ops): Install it.
9371 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9373 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
9374 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
9376 * linux-aarch64-ipa.c: New file.
9377 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
9379 (aarch64_get_thread_area): New target method.
9380 (extract_signed_bitfield): New helper function.
9381 (aarch64_decode_ldr_literal): New function.
9382 (enum aarch64_opcodes): New enum.
9383 (struct aarch64_register): New struct.
9384 (struct aarch64_operand): New struct.
9385 (x0): New static global.
9394 (aarch64_register): New helper function.
9395 (register_operand): Likewise.
9396 (immediate_operand): Likewise.
9397 (struct aarch64_memory_operand): New struct.
9398 (offset_memory_operand): New helper function.
9399 (preindex_memory_operand): Likewise.
9400 (enum aarch64_system_control_registers): New enum.
9401 (ENCODE): New macro.
9402 (emit_insn): New helper function.
9403 (emit_b): New function.
9404 (emit_bcond): Likewise.
9405 (emit_cb): Likewise.
9406 (emit_tb): Likewise.
9407 (emit_blr): Likewise.
9408 (emit_stp): Likewise.
9409 (emit_ldp_q_offset): Likewise.
9410 (emit_stp_q_offset): Likewise.
9411 (emit_load_store): Likewise.
9412 (emit_ldr): Likewise.
9413 (emit_ldrsw): Likewise.
9414 (emit_str): Likewise.
9415 (emit_ldaxr): Likewise.
9416 (emit_stxr): Likewise.
9417 (emit_stlr): Likewise.
9418 (emit_data_processing_reg): Likewise.
9419 (emit_data_processing): Likewise.
9420 (emit_add): Likewise.
9421 (emit_sub): Likewise.
9422 (emit_mov): Likewise.
9423 (emit_movk): Likewise.
9424 (emit_mov_addr): Likewise.
9425 (emit_mrs): Likewise.
9426 (emit_msr): Likewise.
9427 (emit_sevl): Likewise.
9428 (emit_wfe): Likewise.
9429 (append_insns): Likewise.
9430 (can_encode_int32_in): New helper function.
9431 (aarch64_relocate_instruction): New function.
9432 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
9433 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
9434 (struct linux_target_ops): Install aarch64_get_thread_area,
9435 aarch64_install_fast_tracepoint_jump_pad and
9436 aarch64_get_min_fast_tracepoint_insn_len.
9438 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9440 * Makefile.in (aarch64-insn.o): New rule.
9441 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
9443 2015-09-21 Yao Qi <yao.qi@linaro.org>
9445 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
9447 2015-09-21 Yao Qi <yao.qi@linaro.org>
9449 * tracepoint.c (max_jump_pad_size): Remove.
9451 2015-09-18 Yao Qi <yao.qi@linaro.org>
9453 * linux-aarch64-low.c: Don't include sys/uio.h.
9454 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
9456 2015-09-16 Wei-cheng Wang <cole945@gmail.com>
9458 * tracepoint.c (eval_result_type): Change prototype.
9459 (condition_true_at_tracepoint): Fix argument to compiled_cond.
9461 2015-09-15 Pedro Alves <palves@redhat.com>
9463 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
9464 Check whether to report exec events instead of checking whether
9465 multiprocess is enabled.
9467 2015-09-15 Pedro Alves <palves@redhat.com>
9470 * remote-utils.c (prepare_resume_reply): Merge
9471 TARGET_WAITKIND_VFORK_DONE switch case with the
9472 TARGET_WAITKIND_FORKED case.
9474 2015-09-15 Yao Qi <yao.qi@linaro.org>
9476 * server.c (handle_query): Check string comparison using
9477 "else if" instead of "if".
9479 2015-09-15 Yao Qi <yao.qi@linaro.org>
9481 * server.c (vCont_supported): New global variable.
9482 (handle_query): Set vCont_supported to 1 if "vContSupported+"
9483 matches. Append ";vContSupported+" to own_buf.
9484 (handle_v_requests): Append ";s;S" to own_buf if target supports
9485 hardware single step or vCont_supported is false.
9486 (capture_main): Set vCont_supported to zero.
9488 2015-09-15 Yao Qi <yao.qi@linaro.org>
9490 * linux-low.c (linux_supports_conditional_breakpoints): Rename
9492 (linux_supports_hardware_single_step): ... New function.
9493 (linux_target_ops): Update.
9494 * lynx-low.c (lynx_target_ops): Set field
9495 supports_hardware_single_step to target_can_do_hardware_single_step.
9496 * nto-low.c (nto_target_ops): Likewise.
9497 * spu-low.c (spu_target_ops): Likewise.
9498 * win32-low.c (win32_target_ops): Likewise.
9499 * target.c (target_can_do_hardware_single_step): New function.
9500 * target.h (struct target_ops) <supports_conditional_breakpoints>:
9501 Remove. <supports_hardware_single_step>: New field.
9502 (target_supports_conditional_breakpoints): Remove.
9503 (target_supports_hardware_single_step): New macro.
9504 (target_can_do_hardware_single_step): Declare.
9505 * server.c (handle_query): Use target_supports_hardware_single_step
9506 instead of target_supports_conditional_breakpoints.
9508 2015-09-15 Yao Qi <yao.qi@linaro.org>
9510 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
9512 (struct linux_target_ops the_low_target): Install
9513 aarch64_linux_siginfo_fixup.
9515 2015-09-11 Don Breazeal <donb@codesourcery.com>
9516 Luis Machado <lgustavo@codesourcery.com>
9518 * linux-low.c (linux_mourn): Static declaration.
9519 (linux_arch_setup): Move in front of
9520 handle_extended_wait.
9521 (linux_arch_setup_thread): New function.
9522 (handle_extended_wait): Handle exec events. Call
9523 linux_arch_setup_thread. Make event_lwp argument a
9524 pointer-to-a-pointer.
9525 (check_zombie_leaders): Do not check stopped threads.
9526 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
9527 (linux_low_filter_event): Add lwp and thread for exec'ing
9528 non-leader thread if leader thread has been deleted.
9529 Refactor code into linux_arch_setup_thread and call it.
9530 Pass child lwp pointer by reference to handle_extended_wait.
9531 (linux_wait_for_event_filtered): Update comment.
9532 (linux_wait_1): Prevent clobbering exec event status.
9533 (linux_supports_exec_events): New function.
9534 (linux_target_ops) <supports_exec_events>: Initialize new member.
9535 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
9537 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
9538 * server.c (report_exec_events): New global variable.
9539 (handle_query): Handle qSupported query for exec-events feature.
9540 (captured_main): Initialize report_exec_events.
9541 * server.h (report_exec_events): Declare new global variable.
9542 * target.h (struct target_ops) <supports_exec_events>: New
9544 (target_supports_exec_events): New macro.
9545 * win32-low.c (win32_target_ops) <supports_exec_events>:
9546 Initialize new member.
9548 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
9550 * linux-low.c (linux_low_enable_btrace): Remove.
9551 (linux_target_ops): Replace linux_low_enable_btrace with
9552 linux_enable_btrace.
9554 2015-09-03 Yao Qi <yao.qi@linaro.org>
9556 * linux-aarch64-low.c (aarch64_insert_point): Call
9557 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
9560 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9562 * linux-low.c (check_stopped_by_breakpoint): Use
9563 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
9565 2015-08-27 Pedro Alves <palves@redhat.com>
9567 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
9569 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
9571 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
9572 the XNEW-family equivalent.
9573 (compile_bytecodes): Likewise.
9574 * dll.c (loaded_dll): Likewise.
9575 * event-loop.c (append_callback_event): Likewise.
9576 (create_file_handler): Likewise.
9577 (create_file_event): Likewise.
9578 * hostio.c (handle_open): Likewise.
9579 * inferiors.c (add_thread): Likewise.
9580 (add_process): Likewise.
9581 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
9582 * linux-arm-low.c (arm_new_process): Likewise.
9583 (arm_new_thread): Likewise.
9584 * linux-low.c (add_to_pid_list): Likewise.
9585 (linux_add_process): Likewise.
9586 (handle_extended_wait): Likewise.
9587 (add_lwp): Likewise.
9588 (enqueue_one_deferred_signal): Likewise.
9589 (enqueue_pending_signal): Likewise.
9590 (linux_resume_one_lwp_throw): Likewise.
9591 (linux_resume_one_thread): Likewise.
9592 (linux_read_memory): Likewise.
9593 (linux_write_memory): Likewise.
9594 * linux-mips-low.c (mips_linux_new_process): Likewise.
9595 (mips_linux_new_thread): Likewise.
9596 (mips_add_watchpoint): Likewise.
9597 * linux-x86-low.c (initialize_low_arch): Likewise.
9598 * lynx-low.c (lynx_add_process): Likewise.
9599 * mem-break.c (set_raw_breakpoint_at): Likewise.
9600 (set_breakpoint): Likewise.
9601 (add_condition_to_breakpoint): Likewise.
9602 (add_commands_to_breakpoint): Likewise.
9603 (clone_agent_expr): Likewise.
9604 (clone_one_breakpoint): Likewise.
9605 * regcache.c (new_register_cache): Likewise.
9606 * remote-utils.c (look_up_one_symbol): Likewise.
9607 * server.c (queue_stop_reply): Likewise.
9608 (start_inferior): Likewise.
9609 (queue_stop_reply_callback): Likewise.
9610 (handle_target_event): Likewise.
9611 * spu-low.c (fetch_ppc_memory): Likewise.
9612 (store_ppc_memory): Likewise.
9613 * target.c (set_target_ops): Likewise.
9614 * thread-db.c (thread_db_load_search): Likewise.
9615 (try_thread_db_load_1): Likewise.
9616 * tracepoint.c (add_tracepoint): Likewise.
9617 (add_tracepoint_action): Likewise.
9618 (create_trace_state_variable): Likewise.
9619 (cmd_qtdpsrc): Likewise.
9620 (cmd_qtro): Likewise.
9621 (add_while_stepping_state): Likewise.
9622 * win32-low.c (child_add_thread): Likewise.
9623 (get_image_name): Likewise.
9625 2015-08-25 Yao Qi <yao.qi@linaro.org>
9627 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
9629 2015-08-25 Yao Qi <yao.qi@linaro.org>
9631 * Makefile.in (aarch64-linux.o): New rule.
9632 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
9634 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
9635 (aarch64_init_debug_reg_state): Make it extern.
9636 (aarch64_linux_prepare_to_resume): Remove.
9638 2015-08-25 Yao Qi <yao.qi@linaro.org>
9640 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
9641 lwp_arch_private_info and ptid_of_lwp.
9643 2015-08-25 Yao Qi <yao.qi@linaro.org>
9645 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
9646 Find proc_info by find_process_pid. All callers updated.
9648 2015-08-25 Yao Qi <yao.qi@linaro.org>
9650 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
9652 (debug_reg_change_callback): Remove.
9653 (aarch64_notify_debug_reg_change): Remove.
9655 2015-08-25 Yao Qi <yao.qi@linaro.org>
9657 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
9658 Call current_lwp_ptid.
9660 2015-08-25 Yao Qi <yao.qi@linaro.org>
9662 * linux-aarch64-low.c (debug_reg_change_callback): Use
9665 2015-08-25 Yao Qi <yao.qi@linaro.org>
9667 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
9669 2015-08-25 Yao Qi <yao.qi@linaro.org>
9671 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
9673 2015-08-25 Yao Qi <yao.qi@linaro.org>
9675 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
9678 2015-08-25 Yao Qi <yao.qi@linaro.org>
9680 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
9682 (debug_reg_change_callback): Remove argument entry and add argument
9683 lwp. Remove local variable thread. Don't print thread id in the
9684 debugging output. Don't check whether pid of thread equals to pid.
9685 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
9686 iterate_over_lwps instead find_inferior.
9688 2015-08-24 Pedro Alves <palves@redhat.com>
9690 * inferiors.c (get_first_process): New function.
9691 * inferiors.h (get_first_process): New declaration.
9692 * remote-utils.c (read_ptid): Default to the first process in the
9693 list, instead of to the current thread's process.
9695 2015-08-24 Pedro Alves <palves@redhat.com>
9697 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
9698 * event-loop.c: Likewise.
9699 * remote-utils.c: Likewise.
9700 * tracepoint.c: Likewise.
9702 2015-08-24 Pedro Alves <palves@redhat.com>
9704 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
9707 2015-08-21 Pedro Alves <palves@redhat.com>
9709 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
9710 instead of literal 1.
9712 2015-08-21 Pedro Alves <palves@redhat.com>
9714 * tdesc.c (default_description): Explicitly zero-initialize.
9716 2015-08-21 Pedro Alves <palves@redhat.com>
9719 * inferiors.c (remove_thread): Discard any pending stop reply for
9721 * server.c (remove_all_on_match_pid): Rename to ...
9722 (remove_all_on_match_ptid): ... this. Work with a filter ptid
9724 (discard_queued_stop_replies): Change parameter to a ptid. Now
9726 (handle_v_kill, kill_inferior_callback, captured_main)
9727 (process_serial_event): Adjust.
9728 * server.h (discard_queued_stop_replies): Declare.
9730 2015-08-21 Pedro Alves <palves@redhat.com>
9732 * linux-low.c (wait_for_sigstop): Always switch to no thread
9733 selected if the previously current thread dies.
9734 * lynx-low.c (lynx_request_interrupt): Use the first thread's
9735 process instead of the current thread's.
9736 * remote-utils.c (input_interrupt): Don't check if there's no
9738 * server.c (gdb_read_memory, gdb_write_memory): If setting the
9739 current thread to the general thread fails, error out.
9740 (handle_qxfer_auxv, handle_qxfer_libraries)
9741 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
9742 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
9743 (handle_query): Check if there's a thread selected instead of
9744 checking whether there's any thread in the thread list.
9745 (handle_qxfer_threads, handle_qxfer_btrace)
9746 (handle_qxfer_btrace_conf): Don't error out early if there's no
9747 thread in the thread list.
9748 (handle_v_cont, myresume): Don't set the current thread to the
9750 (process_serial_event) <Hg handling>: Also set thread_id if the
9751 previous general thread is still alive.
9752 (process_serial_event) <g/G handling>: If setting the current
9753 thread to the general thread fails, error out.
9754 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
9755 thread's lwp instead of the current thread's.
9756 * target.c (set_desired_thread): If the desired thread was not
9757 found, leave the current thread pointing to NULL. Return an int
9758 (boolean) indicating success.
9759 * target.h (set_desired_thread): Change return type to int.
9761 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
9763 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
9764 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
9766 (ps_get_thread_area): New function.
9768 2015-08-19 Gary Benson <gbenson@redhat.com>
9770 * hostio.c (handle_pread): Do not attempt to read more data
9771 than hostio_reply_with_data can fit in a packet.
9773 2015-08-18 Joel Brobecker <brobecker@adacore.com>
9775 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
9777 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
9779 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
9781 2015-08-06 Pedro Alves <palves@redhat.com>
9783 * tracepoint.c (expr_eval_result): Now an int.
9785 2015-08-06 Pedro Alves <palves@redhat.com>
9787 * gdbthread.h (struct regcache): Forward declare.
9788 (struct thread_info) <regcache_data>: Now a struct regcache
9790 * inferiors.c (inferior_regcache_data)
9791 (set_inferior_regcache_data): Now work with struct regcache
9793 * inferiors.h (struct regcache): Forward declare.
9794 (inferior_regcache_data, set_inferior_regcache_data): Now work
9795 with struct regcache pointers.
9796 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
9797 (free_register_cache_thread): Remove struct regcache pointer
9800 2015-08-06 Pedro Alves <palves@redhat.com>
9802 * server.c (captured_main): On error, print the exception message
9803 to stderr, and if run_once is set, throw a quit.
9805 2015-08-06 Pedro Alves <palves@redhat.com>
9807 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
9810 2015-08-06 Pedro Alves <palves@redhat.com>
9812 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
9813 reading beyond the passed in buffer length.
9815 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
9817 * tracepoint.c (symbol_list) <required>: Remove.
9819 2015-08-06 Pedro Alves <palves@redhat.com>
9821 * linux-low.c (handle_extended_wait): Set the fork child's suspend
9822 count if stopping and suspending threads.
9823 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
9824 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
9825 (linux_detach): Complete an ongoing step-over.
9826 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
9828 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
9829 (linux_wait_1): If passing a signal to the inferior after
9830 finishing a step-over, unsuspend and re-resume all lwps. If we
9831 see a single-step event but the thread should be continuing, don't
9832 pass the trap to gdb.
9833 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
9834 internal_error instead of gdb_assert.
9835 (enqueue_pending_signal): New function.
9836 (check_ptrace_stopped_lwp_gone): Add debug output.
9837 (start_step_over): Use internal_error instead of gdb_assert.
9838 (complete_ongoing_step_over): New function.
9839 (linux_resume_one_thread): Don't resume a suspended thread.
9840 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
9843 2015-08-06 Pedro Alves <palves@redhat.com>
9845 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
9846 (linux_thread_alive): Use lwp_is_marked_dead.
9847 (extended_event_reported): Delete.
9848 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
9849 instead of extended_event_reported.
9850 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
9852 (lwp_is_marked_dead): New function.
9853 (lwp_running): Use lwp_is_marked_dead.
9854 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
9857 2015-08-06 Pedro Alves <palves@redhat.com>
9859 * linux-low.c (linux_wait_1): Move fork event output out of the
9860 !report_to_gdb check. Pass event_child->waitstatus to
9861 target_waitstatus_to_string instead of ourstatus.
9863 2015-08-04 Yao Qi <yao.qi@linaro.org>
9865 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
9866 if current_thread is 32 bit.
9868 2015-08-04 Yao Qi <yao.qi@linaro.org>
9870 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9871 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9872 * server.c (extended_protocol): Remove "static".
9873 * server.h (extended_protocol): Declare it.
9875 2015-08-04 Yao Qi <yao.qi@linaro.org>
9877 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
9878 both aarch64 and aarch32.
9879 (aarch64_set_pc): Likewise.
9881 2015-08-04 Yao Qi <yao.qi@linaro.org>
9883 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
9884 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
9885 arm-with-neon.xml to srv_xmlfiles.
9886 * linux-aarch64-low.c: Include linux-aarch32-low.h.
9887 (is_64bit_tdesc): New function.
9888 (aarch64_linux_read_description): New function.
9889 (aarch64_arch_setup): Call aarch64_linux_read_description.
9890 (regs_info): Rename to regs_info_aarch64.
9891 (aarch64_regs_info): Return right regs_info.
9892 (initialize_low_arch): Call initialize_low_arch_aarch32.
9894 2015-08-04 Yao Qi <yao.qi@linaro.org>
9896 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
9897 * linux-aarch32-low.c: New file.
9898 * linux-aarch32-low.h: New file.
9899 * linux-arm-low.c (arm_fill_gregset): Move it to
9900 linux-aarch32-low.c.
9901 (arm_store_gregset): Likewise.
9902 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
9903 (arm_store_vfpregset): Call arm_store_vfpregset_num.
9904 (arm_arch_setup): Check if PTRACE_GETREGSET works.
9905 (regs_info): Rename to regs_info_arm.
9906 (arm_regs_info): Return regs_info_aarch32 if
9907 have_ptrace_getregset is 1 and target description is
9908 arm_with_neon or arm_with_vfpv3.
9909 (initialize_low_arch): Don't call init_registers_arm_with_neon.
9910 Call initialize_low_arch_aarch32 instead.
9912 2015-08-04 Yao Qi <yao.qi@linaro.org>
9914 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
9915 * linux-low.c: ... here.
9916 * linux-low.h (have_ptrace_getregset): Declare it.
9918 2015-08-04 Pedro Alves <palves@redhat.com>
9920 * thread-db.c (struct thread_db): Use new typedefs.
9921 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
9923 (disable_thread_event_reporting): Cast result of dlsym to
9924 destination function pointer type.
9925 (thread_db_mourn): Use td_ta_delete_ftype.
9927 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
9929 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
9931 (CDX_BREAKPOINT): Define for R2.
9932 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
9933 (the_low_target): Add comments.
9935 2015-07-30 Yao Qi <yao.qi@linaro.org>
9937 * linux-arm-low.c (arm_hwcap): Remove it.
9938 (arm_read_description): New local variable arm_hwcap. Don't
9939 set arm_hwcap to zero.
9941 2015-07-30 Yao Qi <yao.qi@linaro.org>
9943 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
9944 Use regcache->tdesc instead.
9945 (arm_store_wmmxregset): Likewise.
9946 (arm_fill_vfpregset): Likewise.
9947 (arm_store_vfpregset): Likewise.
9949 2015-07-30 Yao Qi <yao.qi@linaro.org>
9951 * linux-arm-low.c: Include arch/arm.h.
9952 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
9953 (arm_store_gregset): Likewise.
9955 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
9957 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
9958 ptrace's 4th parameter.
9960 2015-07-27 Yao Qi <yao.qi@linaro.org>
9962 * configure.srv (case aarch64*-*-linux*): Don't set
9965 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
9967 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
9969 * linux-arm-low.c: Likewise.
9970 * linux-cris-low.c: Likewise.
9971 * linux-crisv32-low.c: Likewise.
9972 * linux-low.c: Likewise.
9973 * linux-m68k-low.c: Likewise.
9974 * linux-mips-low.c: Likewise.
9975 * linux-nios2-low.c: Likewise.
9976 * linux-s390-low.c: Likewise.
9977 * linux-sparc-low.c: Likewise.
9978 * linux-tic6x-low.c: Likewise.
9979 * linux-tile-low.c: Likewise.
9980 * linux-x86-low.c: Likewise.
9982 2015-07-24 Pedro Alves <palves@redhat.com>
9984 * config.in: Regenerate.
9985 * configure: Regenerate.
9987 2015-07-24 Pedro Alves <palves@redhat.com>
9989 * acinclude.m4: Include ../ptrace.m4.
9990 * configure.ac: Call GDB_AC_PTRACE.
9991 * config.in, configure: Regenerate.
9993 2015-07-24 Yao Qi <yao.qi@linaro.org>
9995 * linux-low.c (linux_create_inferior): Remove setting to
9996 proc->priv->new_inferior.
9997 (linux_attach): Likewise.
9998 (linux_low_filter_event): Likewise.
9999 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
10001 2015-07-24 Yao Qi <yao.qi@linaro.org>
10003 * linux-low.c (linux_arch_setup): New function.
10004 (linux_low_filter_event): If proc->tdesc is NULL and
10005 proc->attached is true, call the_low_target.arch_setup.
10006 Otherwise, keep status pending, and return.
10007 (linux_resume_one_lwp_throw): Don't call get_pc if
10008 thread->while_stepping isn't NULL. Don't call
10009 get_thread_regcache if proc->tdesc is NULL.
10010 (need_step_over_p): Return 0 if proc->tdesc is NULL.
10011 (linux_target_ops): Install arch_setup.
10012 * server.c (start_inferior): Call the_target->arch_setup.
10013 * target.h (struct target_ops) <arch_setup>: New field.
10014 (target_arch_setup): New marco.
10015 * lynx-low.c (lynx_target_ops): Update.
10016 * nto-low.c (nto_target_ops): Update.
10017 * spu-low.c (spu_target_ops): Update.
10018 * win32-low.c (win32_target_ops): Update.
10020 2015-07-24 Yao Qi <yao.qi@linaro.org>
10022 * linux-low.c (linux_add_process): Don't set
10023 proc->priv->new_inferior.
10024 (linux_create_inferior): Set proc->priv->new_inferior to 1.
10025 (linux_attach): Likewise.
10027 2015-07-24 Yao Qi <yao.qi@linaro.org>
10029 * server.c (start_inferior): Code refactor.
10031 2015-07-24 Yao Qi <yao.qi@linaro.org>
10033 * server.c (process_serial_event): Set general_thread.
10035 2015-07-21 Yao Qi <yao.qi@linaro.org>
10037 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
10038 aarch64_linux_get_debug_reg_capacity.
10040 2015-07-17 Yao Qi <yao.qi@linaro.org>
10042 * Makefile.in (aarch64-linux-hw-point.o): New rule.
10043 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
10044 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
10045 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
10046 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
10047 (AARCH64_HWP_ALIGNMENT): Likewise.
10048 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
10049 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
10050 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
10051 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
10052 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
10053 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
10054 (struct aarch64_debug_reg_state): Likewise.
10055 (struct arch_lwp_info): Likewise.
10056 (aarch64_align_watchpoint): Likewise.
10057 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
10058 (aarch64_watchpoint_length): Likewise.
10059 (aarch64_point_encode_ctrl_reg): Likewise
10060 (aarch64_point_is_aligned): Likewise.
10061 (aarch64_align_watchpoint): Likewise.
10062 (aarch64_linux_set_debug_regs):
10063 (aarch64_dr_state_insert_one_point): Likewise.
10064 (aarch64_dr_state_remove_one_point): Likewise.
10065 (aarch64_handle_breakpoint): Likewise.
10066 (aarch64_handle_aligned_watchpoint): Likewise.
10067 (aarch64_handle_unaligned_watchpoint): Likewise.
10068 (aarch64_handle_watchpoint): Likewise.
10070 2015-07-17 Yao Qi <yao.qi@linaro.org>
10072 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
10073 and don't aarch64_get_debug_reg_state. All callers update.
10074 (aarch64_handle_aligned_watchpoint): Likewise.
10075 (aarch64_handle_unaligned_watchpoint): Likewise.
10076 (aarch64_handle_watchpoint): Likewise.
10077 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
10078 (aarch64_remove_point): Likewise.
10080 2015-07-17 Yao Qi <yao.qi@linaro.org>
10082 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
10084 (aarch64_handle_unaligned_watchpoint): Likewise.
10086 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10088 Revert the previous 3 commits:
10089 Move gdb_regex* to common/
10090 Move linux_find_memory_regions_full & co.
10091 gdbserver build-id attribute generator
10093 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10094 Jan Kratochvil <jan.kratochvil@redhat.com>
10096 gdbserver build-id attribute generator.
10097 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
10098 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
10099 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
10101 (get_dynamic): Use find_pdhr to traverse program headers.
10102 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
10103 (compare_mapping_entry_range, struct find_memory_region_callback_data)
10104 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
10105 (get_hex_build_id): New.
10106 (linux_qxfer_libraries_svr4): Add optional build-id attribute
10107 to reply XML document.
10109 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10110 Jan Kratochvil <jan.kratochvil@redhat.com>
10112 * target.c: Include target/target-utils.h and fcntl.h.
10113 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
10114 (target_fileio_read_stralloc): New functions.
10116 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10118 * Makefile.in (OBS): Add gdb_regex.o.
10119 (gdb_regex.o): New.
10120 * config.in: Rebuilt.
10121 * configure: Rebuilt.
10123 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10124 Jan Kratochvil <jan.kratochvil@redhat.com>
10126 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
10127 * Makefile.in (OBS): Add target-utils.o.
10128 (linux-maps.o, target-utils.o): New.
10129 * configure.srv (srv_linux_obj): Add linux-maps.o.
10131 2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
10133 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
10134 function, return 1.
10135 (the_low_target): Install it.
10137 2015-07-14 Pedro Alves <palves@redhat.com>
10139 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
10140 Instead, ignore ECHILD, and throw an error for other errnos.
10142 2015-07-10 Pedro Alves <palves@redhat.com>
10144 * event-loop.c (struct callback_event) <data>: Change type to
10145 gdb_client_data instance instead of gdb_client_data pointer.
10146 (append_callback_event): Adjust.
10148 2015-07-10 Pierre Langlois <pierre.langlois@arm.com>
10150 * linux-aarch64-low.c: Add comments for each linux_target_ops
10151 method. Remove comments already covered in target_ops and
10152 linux_target_ops definitions.
10153 (the_low_target): Add comments for each unimplemented method.
10155 2015-07-09 Yao Qi <yao.qi@linaro.org>
10157 * linux-aarch64-low.c (aarch64_regmap): Remove.
10158 (aarch64_usrregs_info): Remove.
10159 (regs_info): Set field usrregs to NULL.
10161 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
10163 * linux-low.c: Include "rsp-low.h"
10164 (linux_low_encode_pt_config, linux_low_encode_raw): New.
10165 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
10166 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
10167 (handle_btrace_enable_pt): New.
10168 (handle_btrace_general_set): Support "pt".
10169 (handle_btrace_conf_general_set): Support "pt:size".
10171 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10173 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
10176 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10178 * linux-aarch64-low.c: Remove comment about endianness.
10179 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
10180 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
10183 2015-06-24 Gary Benson <gbenson@redhat.com>
10185 * linux-i386-ipa.c (stdint.h): Do not include.
10186 * lynx-i386-low.c (stdint.h): Likewise.
10187 * lynx-ppc-low.c (stdint.h): Likewise.
10188 * mem-break.c (stdint.h): Likewise.
10189 * thread-db.c (stdint.h): Likewise.
10190 * tracepoint.c (stdint.h): Likewise.
10191 * win32-low.c (stdint.h): Likewise.
10193 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
10195 * server.c (write_qxfer_response): Update call to
10196 remote_escape_output.
10198 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
10199 Jan Kratochvil <jan.kratochvil@redhat.com>
10201 Merge multiple hex conversions.
10202 * gdbreplay.c (tohex): Rename to 'fromhex'.
10203 (logchar): Use fromhex.
10205 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10207 * server.c (handle_qxfer_libraries): Set `version' attribute for
10210 2015-06-10 Gary Benson <gbenson@redhat.com>
10212 * target.h (struct target_ops) <multifs_open>: New field.
10213 <multifs_unlink>: Likewise.
10214 <multifs_readlink>: Likewise.
10215 * linux-low.c (nat/linux-namespaces.h): New include.
10216 (linux_target_ops): Initialize the_target->multifs_open,
10217 the_target->multifs_unlink and the_target->multifs_readlink.
10218 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
10219 * hostio.c (hostio_fs_pid): New static variable.
10220 (hostio_handle_new_gdb_connection): New function.
10221 (handle_setfs): Likewise.
10222 (handle_open): Use the_target->multifs_open as appropriate.
10223 (handle_unlink): Use the_target->multifs_unlink as appropriate.
10224 (handle_readlink): Use the_target->multifs_readlink as
10226 (handle_vFile): Handle vFile:setfs packets.
10227 * server.c (handle_query): Call hostio_handle_new_gdb_connection
10228 after target_handle_new_gdb_connection.
10230 2015-06-10 Gary Benson <gbenson@redhat.com>
10232 * configure.ac (AC_CHECK_FUNCS): Add setns.
10233 * config.in: Regenerate.
10234 * configure: Likewise.
10235 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
10236 (linux-namespaces.o): New rule.
10237 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
10239 2015-06-09 Gary Benson <gbenson@redhat.com>
10241 * hostio.c (handle_open): Process mode argument with
10242 fileio_to_host_mode.
10244 2015-06-01 Yao Qi <yao.qi@linaro.org>
10246 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
10247 * linux-x86-low.c: Likewise.
10249 2015-05-28 Don Breazeal <donb@codesourcery.com>
10251 * linux-low.c (handle_extended_wait): Initialize
10252 thread_info.last_resume_kind for new fork children.
10254 2015-05-15 Pedro Alves <palves@redhat.com>
10256 * target.h (target_handle_new_gdb_connection): Rewrite using if
10257 wrapped in do/while.
10259 2015-05-14 Joel Brobecker <brobecker@adacore.com>
10261 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
10262 * configure, config.in: Regenerate.
10263 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
10266 2015-05-12 Don Breazeal <donb@codesourcery.com>
10268 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
10269 PTRACE_EVENT_VFORK_DONE.
10270 (linux_low_ptrace_options, extended_event_reported): Add vfork
10272 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
10273 and "vforkdone" for RSP 'T' Stop Reply Packet.
10274 * server.h (report_vfork_events): Declare
10277 2015-05-12 Don Breazeal <donb@codesourcery.com>
10279 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
10280 (the_low_target) <new_fork>: Initialize new member.
10281 * linux-arm-low.c (arm_new_fork): New function.
10282 (the_low_target) <new_fork>: Initialize new member.
10283 * linux-low.c (handle_extended_wait): Call new target function
10285 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
10286 * linux-mips-low.c (mips_add_watchpoint): New function
10287 extracted from mips_insert_point.
10288 (the_low_target) <new_fork>: Initialize new member.
10289 (mips_linux_new_fork): New function.
10290 (mips_insert_point): Call mips_add_watchpoint.
10291 * linux-x86-low.c (x86_linux_new_fork): New function.
10292 (the_low_target) <new_fork>: Initialize new member.
10294 2015-05-12 Don Breazeal <donb@codesourcery.com>
10296 * linux-low.c (handle_extended_wait): Implement return value,
10297 rename argument 'event_child' to 'event_lwp', handle
10298 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
10299 (linux_low_ptrace_options): New function.
10300 (linux_low_filter_event): Call linux_low_ptrace_options,
10301 use different argument fo linux_enable_event_reporting,
10302 use return value from handle_extended_wait.
10303 (extended_event_reported): New function.
10304 (linux_wait_1): Call extended_event_reported and set
10305 status to report fork events.
10306 (linux_write_memory): Add pid to debug message.
10307 (reset_lwp_ptrace_options_callback): New function.
10308 (linux_handle_new_gdb_connection): New function.
10309 (linux_target_ops): Initialize new structure member.
10310 * linux-low.h (struct lwp_info) <waitstatus>: New member.
10311 * lynx-low.c: Initialize new structure member.
10312 * remote-utils.c (prepare_resume_reply): Implement stop reason
10313 "fork" for "T" stop message.
10314 * server.c (handle_query): Call handle_new_gdb_connection.
10315 * server.h (report_fork_events): Declare global flag.
10316 * target.h (struct target_ops) <handle_new_gdb_connection>:
10318 (target_handle_new_gdb_connection): New macro.
10319 * win32-low.c: Initialize new structure member.
10321 2015-05-12 Don Breazeal <donb@codesourcery.com>
10323 * mem-break.c (APPEND_TO_LIST): Define macro.
10324 (clone_agent_expr): New function.
10325 (clone_one_breakpoint): New function.
10326 (clone_all_breakpoints): New function.
10327 * mem-break.h: Declare new functions.
10329 2015-05-12 Don Breazeal <donb@codesourcery.com>
10331 * linux-low.c (linux_supports_fork_events): New function.
10332 (linux_supports_vfork_events): New function.
10333 (linux_target_ops): Initialize new structure members.
10334 (initialize_low): Call linux_check_ptrace_features.
10335 * lynx-low.c (lynx_target_ops): Initialize new structure
10337 * server.c (report_fork_events, report_vfork_events):
10339 (handle_query): Add new features to qSupported packet and
10341 (captured_main): Initialize new global variables.
10342 * target.h (struct target_ops) <supports_fork_events>:
10344 <supports_vfork_events>: New member.
10345 (target_supports_fork_events): New macro.
10346 (target_supports_vfork_events): New macro.
10347 * win32-low.c (win32_target_ops): Initialize new structure
10350 2015-05-12 Gary Benson <gbenson@redhat.com>
10352 * server.c (handle_qxfer_exec_file): Use current process
10355 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
10357 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
10358 Remove HAVE_PTRACE_GETREGS conditionals.
10359 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
10360 instead of PTRACE_GETREGS and PTRACE_SETREGS.
10362 2015-05-08 Yao Qi <yao.qi@linaro.org>
10364 * linux-low.c (linux_supports_conditional_breakpoints): New
10366 (linux_target_ops): Install new target method.
10367 * lynx-low.c (lynx_target_ops): Install NULL hook for
10368 supports_conditional_breakpoints.
10369 * nto-low.c (nto_target_ops): Likewise.
10370 * spu-low.c (spu_target_ops): Likewise.
10371 * win32-low.c (win32_target_ops): Likewise.
10372 * server.c (handle_query): Check
10373 target_supports_conditional_breakpoints.
10374 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10376 (target_supports_conditional_breakpoints): New macro.
10378 2015-05-06 Pedro Alves <palves@redhat.com>
10381 * server.c (start_inferior): If the process exits, mourn it.
10383 2015-04-21 Gary Benson <gbenson@redhat.com>
10385 * hostio.c (fileio_open_flags_to_host): Factored out to
10386 fileio_to_host_openflags in common/fileio.c. Single use
10389 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
10391 * linux-xtensa-low.c (xtensa_fill_gregset)
10392 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
10395 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
10397 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
10398 (regs_info): Replace usrregs pointer with NULL.
10400 2015-04-17 Gary Benson <gbenson@redhat.com>
10402 * target.h (struct target_ops) <pid_to_exec_file>: New field.
10403 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
10404 * server.c (handle_qxfer_exec_file): New function.
10405 (qxfer_packets): Add exec-file entry.
10406 (handle_query): Report qXfer:exec-file:read as supported packet.
10408 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
10410 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
10412 2015-04-09 Gary Benson <gbenson@redhat.com>
10414 * hostio-errno.c (errno_to_fileio_error): Remove function.
10415 Update caller to use remote_fileio_to_fio_error.
10417 2015-04-09 Yao Qi <yao.qi@linaro.org>
10419 * linux-low.c (linux_insert_point): Call
10420 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
10421 (linux_remove_point): Call remove_memory_breakpoint if type is
10423 * linux-x86-low.c (x86_insert_point): Don't call
10424 insert_memory_breakpoint.
10425 (x86_remove_point): Don't call remove_memory_breakpoint.
10427 2015-04-01 Pedro Alves <palves@redhat.com>
10428 Cleber Rosa <crosa@redhat.com>
10430 * server.c (gdbserver_usage): Reorganize and extend the usage
10433 2015-03-24 Pedro Alves <palves@redhat.com>
10435 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
10436 output. Also dump TRAP_TRACE.
10437 (linux_low_filter_event): In debug output, distinguish a
10438 resume_stop SIGSTOP from a delayed SIGSTOP.
10440 2015-03-24 Gary Benson <gbenson@redhat.com>
10442 * linux-x86-low.c (x86_linux_new_thread): Moved to
10444 (x86_linux_prepare_to_resume): Likewise.
10446 2015-03-24 Gary Benson <gbenson@redhat.com>
10448 * Makefile.in (x86-linux-dregs.o): New rule.
10449 * configure.srv: Add x86-linux-dregs.o to relevant targets.
10450 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
10451 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
10452 (x86_linux_dr_get): Likewise.
10453 (x86_linux_dr_set): Likewise.
10454 (update_debug_registers_callback): Likewise.
10455 (x86_linux_dr_set_addr): Likewise.
10456 (x86_linux_dr_get_addr): Likewise.
10457 (x86_linux_dr_set_control): Likewise.
10458 (x86_linux_dr_get_control): Likewise.
10459 (x86_linux_dr_get_status): Likewise.
10460 (x86_linux_update_debug_registers): Likewise.
10462 2015-03-24 Gary Benson <gbenson@redhat.com>
10464 * linux-x86-low.c (x86_linux_update_debug_registers):
10465 New function, factored out from...
10466 (x86_linux_prepare_to_resume): ...this.
10468 2015-03-24 Gary Benson <gbenson@redhat.com>
10470 * linux-x86-low.c (x86_linux_dr_get): Update comments.
10471 (x86_linux_dr_set): Likewise.
10472 (update_debug_registers_callback): Likewise.
10473 (x86_linux_dr_set_addr): Likewise.
10474 (x86_linux_dr_get_addr): Likewise.
10475 (x86_linux_dr_set_control): Likewise.
10476 (x86_linux_dr_get_control): Likewise.
10477 (x86_linux_dr_get_status): Likewise.
10478 (x86_linux_prepare_to_resume): Likewise.
10480 2015-03-24 Gary Benson <gbenson@redhat.com>
10482 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
10483 Use perror_with_name. Pass string through gettext.
10484 (x86_linux_dr_set): Likewise.
10486 2015-03-24 Gary Benson <gbenson@redhat.com>
10488 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
10489 (x86_linux_dr_set_addr): ...this.
10490 (x86_dr_low_get_addr): Rename to...
10491 (x86_linux_dr_get_addr): ...this.
10492 (x86_dr_low_set_control): Rename to...
10493 (x86_linux_dr_set_control): ...this.
10494 (x86_dr_low_get_control): Rename to...
10495 (x86_linux_dr_get_control): ...this.
10496 (x86_dr_low_get_status): Rename to...
10497 (x86_linux_dr_get_status): ...this.
10498 (x86_dr_low): Update with new function names.
10500 2015-03-24 Gary Benson <gbenson@redhat.com>
10502 * Makefile.in (x86-linux.o): New rule.
10503 * configure.srv: Add x86-linux.o to relevant targets.
10504 * linux-low.c (lwp_set_arch_private_info): New function.
10505 (lwp_arch_private_info): Likewise.
10506 * linux-x86-low.c: Include nat/x86-linux.h.
10507 (arch_lwp_info): Removed structure.
10508 (update_debug_registers_callback):
10509 Use lwp_set_debug_registers_changed.
10510 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
10511 and lwp_set_debug_registers_changed.
10512 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
10514 2015-03-24 Gary Benson <gbenson@redhat.com>
10516 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
10517 * linux-arm-low.c (arm_new_thread): Likewise.
10518 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
10519 * linux-mips-low.c (mips_linux_new_thread): Likewise.
10520 * linux-x86-low.c (x86_linux_new_thread): Likewise.
10521 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
10523 2015-03-24 Gary Benson <gbenson@redhat.com>
10525 * linux-low.c (ptid_of_lwp): New function.
10526 (lwp_is_stopped): Likewise.
10527 (lwp_stop_reason): Likewise.
10528 * linux-x86-low.c (update_debug_registers_callback):
10529 Use lwp_is_stopped.
10530 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
10533 2015-03-24 Gary Benson <gbenson@redhat.com>
10535 * linux-low.h (linux_stop_lwp): Remove declaration.
10537 2015-03-24 Gary Benson <gbenson@redhat.com>
10539 * linux-low.h: Include nat/linux-nat.h.
10540 * linux-low.c (iterate_over_lwps_args): New structure.
10541 (iterate_over_lwps_filter): New function.
10542 (iterate_over_lwps): Likewise.
10543 * linux-x86-low.c (update_debug_registers_callback):
10544 Update signature to what iterate_over_lwps expects.
10545 Remove PID check that iterate_over_lwps now performs.
10546 (x86_dr_low_set_addr): Use iterate_over_lwps.
10547 (x86_dr_low_set_control): Likewise.
10549 2015-03-24 Gary Benson <gbenson@redhat.com>
10551 * linux-x86-low.c (x86_debug_reg_state): New function.
10552 (x86_linux_prepare_to_resume): Use the above.
10554 2015-03-24 Gary Benson <gbenson@redhat.com>
10556 * linux-low.c (current_lwp_ptid): New function.
10557 * linux-x86-low.c: Include nat/linux-nat.h.
10558 (x86_dr_low_get_addr): Use current_lwp_ptid.
10559 (x86_dr_low_get_control): Likewise.
10560 (x86_dr_low_get_status): Likewise.
10562 2015-03-20 Pedro Alves <palves@redhat.com>
10564 * tracepoint.c (cmd_qtstatus): Make "str" const.
10566 2015-03-20 Pedro Alves <palves@redhat.com>
10568 * server.c (handle_general_set): Make "req_str" const.
10570 2015-03-19 Pedro Alves <palves@redhat.com>
10572 * linux-low.c (linux_resume_one_lwp): Rename to ...
10573 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
10574 instead call perror_with_name.
10575 (check_ptrace_stopped_lwp_gone): New function.
10576 (linux_resume_one_lwp): Reimplement as wrapper around
10577 linux_resume_one_lwp_throw that swallows errors if the LWP is
10580 2015-03-19 Pedro Alves <palves@redhat.com>
10582 * linux-low.c (count_events_callback, select_event_lwp_callback):
10583 No longer check whether the thread has resume_stop as last resume
10586 2015-03-19 Pedro Alves <palves@redhat.com>
10588 * linux-low.c (count_events_callback, select_event_lwp_callback):
10589 Use the lwp's status_pending_p field, not the thread's.
10591 2015-03-19 Pedro Alves <palves@redhat.com>
10593 * linux-low.c (select_event_lwp_callback): Update comments to
10594 no longer mention SIGTRAP.
10596 2015-03-18 Gary Benson <gbenson@redhat.com>
10598 * server.c (handle_query): Do not report vFile:fstat as supported.
10600 2015-03-11 Gary Benson <gbenson@redhat.com>
10602 * hostio.c (sys/types.h): New include.
10603 (sys/stat.h): Likewise.
10604 (common-remote-fileio.h): Likewise.
10605 (handle_fstat): New function.
10606 (handle_vFile): Handle vFile:fstat packets.
10608 2015-03-11 Gary Benson <gbenson@redhat.com>
10610 * configure.ac (AC_CHECK_MEMBERS): Add checks for
10611 struct stat.st_blocks and struct stat.st_blksize.
10612 * configure: Regenerate.
10613 * config.in: Likewise.
10614 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
10615 (OBS): Add common-remote-fileio.o.
10616 (common-remote-fileio.o): New rule.
10618 2015-03-09 Pedro Alves <palves@redhat.com>
10620 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
10621 'struct sockaddr' pointer in 'accept' call.
10623 2015-03-09 Pedro Alves <palves@redhat.com>
10626 2015-03-07 Pedro Alves <palves@redhat.com>
10627 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
10628 or <winsock2.h> here. Instead include "gdb_socket.h".
10629 (remote_open): Use union gdb_sockaddr_u.
10630 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
10631 or <winsock2.h> here. Instead include "gdb_socket.h".
10632 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
10633 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
10635 (init_named_socket, gdb_agent_helper_thread): Use union
10638 2015-03-07 Pedro Alves <palves@redhat.com>
10640 * configure.ac (build_warnings): Move
10641 -Wdeclaration-after-statement to the C-specific set.
10642 * configure: Regenerate.
10644 2015-03-07 Pedro Alves <palves@redhat.com>
10646 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
10647 or <winsock2.h> here. Instead include "gdb_socket.h".
10648 (remote_open): Use union gdb_sockaddr_u.
10649 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
10650 or <winsock2.h> here. Instead include "gdb_socket.h".
10651 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
10652 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
10654 (init_named_socket, gdb_agent_helper_thread): Use union
10657 2015-03-07 Pedro Alves <palves@redhat.com>
10659 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
10662 2015-03-06 Yao Qi <yao.qi@linaro.org>
10664 * linux-aarch64-low.c (aarch64_insert_point): Use
10665 show_debug_regs as a boolean.
10666 (aarch64_remove_point): Likewise.
10668 2015-03-05 Pedro Alves <palves@redhat.com>
10670 * lynx-low.c (lynx_target_ops): Install NULL hooks for
10671 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
10672 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
10673 * nto-low.c (nto_target_ops): Likewise.
10674 * spu-low.c (spu_target_ops): Likewise.
10675 * win32-low.c (win32_target_ops): Likewise.
10677 2015-03-04 Pedro Alves <palves@redhat.com>
10679 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
10680 Decide whether a breakpoint triggered based on the SIGTRAP's
10682 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
10683 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
10684 (linux_low_filter_event): Check for breakpoints before checking
10686 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
10688 (linux_stopped_by_sw_breakpoint)
10689 (linux_supports_stopped_by_sw_breakpoint)
10690 (linux_stopped_by_hw_breakpoint)
10691 (linux_supports_stopped_by_hw_breakpoint): New functions.
10692 (linux_target_ops): Install new target methods.
10694 2015-03-04 Pedro Alves <palves@redhat.com>
10696 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
10697 * server.c (swbreak_feature, hwbreak_feature): New globals.
10698 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
10699 (captured_main): Clear swbreak_feature and hwbreak_feature.
10700 * server.h (swbreak_feature, hwbreak_feature): Declare.
10701 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
10702 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
10703 supports_stopped_by_hw_breakpoint>: New fields.
10704 (target_supports_stopped_by_sw_breakpoint)
10705 (target_stopped_by_sw_breakpoint)
10706 (target_supports_stopped_by_hw_breakpoint)
10707 (target_stopped_by_hw_breakpoint): Declare.
10709 2015-03-04 Pedro Alves <palves@redhat.com>
10711 enum lwp_stop_reason -> enum target_stop_reason
10712 * linux-low.c (check_stopped_by_breakpoint): Adjust.
10713 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
10714 (linux_wait_1, stuck_in_jump_pad_callback)
10715 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
10716 (linux_stopped_by_watchpoint):
10717 * linux-low.h (enum lwp_stop_reason): Delete.
10718 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
10719 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
10721 2015-03-04 Yao Qi <yao.qi@linaro.org>
10723 * Makefile.in (SFILES): Add linux-aarch64-low.c.
10725 2015-03-03 Gary Benson <gbenson@redhat.com>
10727 * hostio.c (handle_vFile): Fix prefix lengths.
10729 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10731 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
10734 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
10736 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
10737 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
10738 (clean): Add "rm -f" for above C files.
10739 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
10740 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
10741 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
10742 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
10743 * linux-s390-low.c (HWCAP_S390_VX): New macro.
10744 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
10745 (init_registers_s390x_vx_linux64)
10746 (init_registers_s390x_tevx_linux64)
10747 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
10748 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
10750 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
10751 (s390_store_vxrs_high): New functions.
10752 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
10754 (s390_arch_setup): Add logic for selecting one of the new target
10755 descriptions. Activate the new vector regsets if applicable.
10756 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
10757 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
10758 and init_registers_s390x_tevx_linux64.
10760 2015-03-01 Pedro Alves <palves@redhat.com>
10762 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
10765 2015-02-27 Pedro Alves <palves@redhat.com>
10767 * linux-x86-low.c (u_debugreg_offset): New function.
10768 (x86_linux_dr_get, x86_linux_dr_set): Use it.
10770 2015-02-27 Pedro Alves <palves@redhat.com>
10772 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
10773 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
10774 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
10775 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
10776 (ps_lsetfpregs, ps_getpid)
10777 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
10778 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
10779 (ps_lsetxregs, ps_plog): Declare.
10781 2015-02-27 Pedro Alves <palves@redhat.com>
10783 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
10784 IP_AGENT_EXPORT_FUNC.
10785 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
10786 IP_AGENT_EXPORT_FUNC.
10787 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
10788 (IP_AGENT_EXPORT): Delete.
10789 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
10790 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
10791 (gdb_trampoline_buffer_error, collecting, gdb_collect)
10792 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
10793 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
10794 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
10795 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
10796 (traceframe_read_count, traceframe_write_count)
10797 (traceframes_created, trace_state_variables, get_raw_reg)
10798 (get_trace_state_variable_value, set_trace_state_variable_value)
10799 (ust_loaded, helper_thread_id, cmd_buf): Use
10800 IPA_SYM_EXPORTED_NAME.
10801 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
10802 (tracepoints) Use IP_AGENT_EXPORT_VAR.
10803 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
10804 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
10805 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
10806 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
10807 EXTERN_C_PUSH/EXTERN_C_POP.
10808 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
10809 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
10810 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
10811 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
10812 (traceframe_write_count, traceframe_read_count)
10813 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
10814 (about_to_request_buffer_space, get_trace_state_variable_value)
10815 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
10816 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
10817 EXTERN_C_PUSH/EXTERN_C_POP.
10818 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
10819 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
10820 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
10821 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
10822 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
10823 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
10824 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
10825 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
10827 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
10828 (IP_AGENT_EXPORT_VAR_DECL): Define.
10829 (tracing): Declare.
10830 (gdb_agent_get_raw_reg): Declare.
10832 2015-02-27 Tom Tromey <tromey@redhat.com>
10833 Pedro Alves <palves@redhat.com>
10835 Rename symbols whose names are reserved C++ keywords throughout.
10837 2015-02-27 Pedro Alves <palves@redhat.com>
10839 * Makefile.in (COMPILER): New, get it from autoconf.
10840 (CXX): Get from autoconf instead.
10841 (COMPILE.pre): Use COMPILER.
10842 (CC-LD): Rename to ...
10843 (CC_LD): ... this. Use COMPILER.
10844 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
10845 (CXX_FOR_TARGET): Default to g++ instead of gcc.
10846 * acinclude.m4: Include build-with-cxx.m4.
10847 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
10848 Disable -Werror by default if building in C++ mode.
10849 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
10850 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
10851 the C++ compiler. Save/restore CXXFLAGS too.
10852 * configure: Regenerate.
10854 2015-02-27 Pedro Alves <palves@redhat.com>
10856 * acinclude.m4: Include libiberty.m4.
10857 * configure.ac: Call libiberty_INIT.
10858 * config.in, configure: Regenerate.
10860 2015-02-26 Pedro Alves <palves@redhat.com>
10862 * linux-low.c (linux_wait_1): When incrementing the PC past a
10863 program breakpoint always use the_low_target.breakpoint_len as
10864 increment, rather than the maximum between that and
10865 the_low_target.decr_pc_after_break.
10867 2015-02-23 Pedro Alves <palves@redhat.com>
10869 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
10870 thread was doing a step-over; always adjust the PC if
10871 we stepped over a permanent breakpoint.
10872 (linux_wait_1): If we stepped over breakpoint that was on top of a
10873 permanent breakpoint, manually advance the PC past it.
10875 2015-02-23 Pedro Alves <palves@redhat.com>
10877 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
10879 (x86_fill_gregset, x86_store_gregset): Use it when handling
10882 2015-02-20 Pedro Alves <palves@redhat.com>
10884 * thread-db.c: Include "nat/linux-procfs.h".
10885 (thread_db_init): Skip listing new threads if the kernel supports
10886 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
10888 2015-02-20 Pedro Alves <palves@redhat.com>
10890 * linux-low.c (status_pending_p_callback): Use ptid_match.
10892 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
10894 PR breakpoints/16812
10895 * linux-low.c (wstatus_maybe_breakpoint): Remove.
10896 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
10897 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
10899 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
10901 PR breakpoints/15956
10902 * tracepoint.c (cmd_qtinit): Add check for current_thread.
10904 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10906 * linux-low.c (linux_low_btrace_conf): Print size.
10907 * server.c (handle_btrace_conf_general_set): New.
10908 (hanle_general_set): Call handle_btrace_conf_general_set.
10909 (handle_query): Report Qbtrace-conf:bts:size as supported.
10911 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10913 * linux-low.c (linux_low_enable_btrace): Update parameters.
10914 (linux_low_btrace_conf): New.
10915 (linux_target_ops)<to_btrace_conf>: Initialize.
10916 * server.c (current_btrace_conf): New.
10917 (handle_btrace_enable): Rename to ...
10918 (handle_btrace_enable_bts): ... this. Pass ¤t_btrace_conf
10919 to target_enable_btrace. Update comment. Update users.
10920 (handle_qxfer_btrace_conf): New.
10921 (qxfer_packets): Add btrace-conf entry.
10922 (handle_query): Report qXfer:btrace-conf:read as supported packet.
10923 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
10924 (target_ops)<read_btrace_conf>: New.
10925 (target_enable_btrace): Update parameters.
10926 (target_read_btrace_conf): New.
10928 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10930 * server.c (handle_btrace_general_set): Remove call to
10931 target_supports_btrace.
10932 (supported_btrace_packets): New.
10933 (handle_query): Call supported_btrace_packets.
10934 * target.h: include btrace-common.h.
10935 (btrace_target_info): Removed.
10936 (supports_btrace, target_supports_btrace): Update parameters.
10938 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10940 * Makefile.in (SFILES): Add common/btrace-common.c.
10941 (OBS): Add common/btrace-common.o.
10942 (btrace-common.o): Add build rules.
10943 * linux-low: Include btrace-common.h.
10944 (linux_low_read_btrace): Use struct btrace_data. Call
10945 btrace_data_init and btrace_data_fini.
10947 2015-02-06 Pedro Alves <palves@redhat.com>
10949 * thread-db.c (find_new_threads_callback): Add debug output.
10951 2015-02-04 Pedro Alves <palves@redhat.com>
10953 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
10954 (resume_stopped_resumed_lwps): New function.
10955 (linux_wait_for_event_filtered): Use it.
10957 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
10959 * Makefile.in (SFILES): Add linux-personality.c.
10960 (linux-personality.o): New rule.
10961 * configure.srv (srv_linux_obj): Add linux-personality.o to the
10962 list of objects to be built.
10963 * linux-low.c: Include nat/linux-personality.h.
10964 (linux_create_inferior): Remove code to disable address space
10965 randomization (moved to ../nat/linux-personality.c). Create
10966 cleanup to disable address space randomization.
10968 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
10970 * Makefile.in (posix-strerror.o): New rule.
10971 (mingw-strerror.o): Likewise.
10972 * configure: Regenerated.
10973 * configure.ac: Source file ../common/common.host. Initialize new
10974 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
10976 2015-01-14 Yao Qi <yao@codesourcery.com>
10978 * Makefile.in (SFILES): Add nat/ppc-linux.c.
10979 (ppc-linux.o): New rule.
10980 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
10981 * configure.ac: AC_CHECK_FUNCS(getauxval).
10982 * config.in: Re-generated.
10983 * configure: Re-generated.
10984 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
10985 ppc64_64bit_inferior_p
10987 2015-01-14 Yao Qi <yao@codesourcery.com>
10989 * linux-ppc-low.c: Include "nat/ppc-linux.h".
10990 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
10991 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
10992 (PT_ORIG_R3, PT_TRAP): Likewise.
10993 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
10994 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
10995 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
10997 2015-01-10 Joel Brobecker <brobecker@adacore.com>
10999 * i387-fp.c (i387_cache_to_xsave): In look over
11000 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
11001 zmmh_low_space field by use of zmmh_high_space.
11003 2015-01-09 Pedro Alves <palves@redhat.com>
11005 * linux-low.c (step_over_bkpt): Move higher up in the file.
11006 (handle_extended_wait): Don't store the stop_pc here.
11007 (get_stop_pc): Adjust comments and rename to ...
11008 (check_stopped_by_breakpoint): ... this. Record whether the LWP
11009 stopped for a software breakpoint or hardware breakpoint.
11010 (thread_still_has_status_pending_p): New function.
11011 (status_pending_p_callback): Use
11012 thread_still_has_status_pending_p. If the event is no longer
11013 interesting, resume the LWP.
11014 (handle_tracepoints): Add assert.
11015 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
11016 (wstatus_maybe_breakpoint): New function.
11017 (cancel_breakpoint): Delete function.
11018 (check_stopped_by_watchpoint): New function, factored out from
11019 linux_low_filter_event.
11020 (lp_status_maybe_breakpoint): Delete function.
11021 (linux_low_filter_event): Remove filter_ptid argument.
11022 Leave thread group exits pending here. Store the LWP's stop PC.
11023 Always leave events pending.
11024 (linux_wait_for_event_filtered): Pull all events out of the
11025 kernel, and leave them all pending.
11026 (count_events_callback, select_event_lwp_callback): Consider all
11028 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
11029 (select_event_lwp): Only give preference to the stepping LWP in
11030 all-stop mode. Adjust comments.
11031 (ignore_event): New function.
11032 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
11033 references to cancel_breakpoints. Adjust to renames. Also give
11034 equal priority to all LWPs that have had events in non-stop mode.
11035 If reporting a software breakpoint event, unadjust the LWP's PC.
11036 (linux_wait): If linux_wait_1 returned an ignored event, retry.
11037 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
11039 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
11040 (resume_status_pending_p): Use thread_still_has_status_pending_p.
11041 (linux_stopped_by_watchpoint): Adjust.
11042 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
11043 * linux-low.h (enum lwp_stop_reason): New.
11044 (struct lwp_info) <stop_pc>: Adjust comment.
11045 <stopped_by_watchpoint>: Delete field.
11046 <stop_reason>: New field.
11047 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11048 * mem-break.c (software_breakpoint_inserted_here)
11049 (hardware_breakpoint_inserted_here): New function.
11050 * mem-break.h (software_breakpoint_inserted_here)
11051 (hardware_breakpoint_inserted_here): Declare.
11052 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
11053 (cancel_breakpoints): Delete.
11054 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
11055 (upload_fast_traceframes): Remove references to
11056 cancel_breakpoints.
11058 2015-01-09 Pedro Alves <palves@redhat.com>
11060 * thread-db.c (find_new_threads_callback): Ignore thread if the
11061 kernel thread ID is -1.
11063 2015-01-09 Pedro Alves <palves@redhat.com>
11065 * linux-low.c (linux_attach_fail_reason_string): Move to
11066 nat/linux-ptrace.c, and rename.
11067 (linux_attach_lwp): Update comment.
11068 (attach_proc_task_lwp_callback): New function.
11069 (linux_attach): Adjust to rename and use
11070 linux_proc_attach_tgid_threads.
11071 (linux_attach_fail_reason_string): Delete declaration.
11073 2015-01-01 Joel Brobecker <brobecker@adacore.com>
11075 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
11076 * server.c (gdbserver_version): Likewise.
11078 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
11080 * remote-utils.c: Include ctype.h.
11081 (input_interrupt): Explicitly handle the case when the char
11082 received is the NUL byte. Improve the printing of non-ASCII
11085 2014-12-16 Joel Brobecker <brobecker@adacore.com>
11087 * linux-low.c (linux_low_filter_event): Update call to
11088 linux_enable_event_reporting following the addition of
11089 a new parameter to that function.
11091 2014-12-16 Catalin Udma <catalin.udma@freescale.com>
11094 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
11095 (AARCH64_FPCR_REGNO): Likewise.
11096 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
11097 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
11098 (aarch64_store_fpregset): Likewise.
11100 2014-12-15 Joel Brobecker <brobecker@adacore.com>
11102 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
11103 Remove FIXME comment about assumption about N.
11105 2014-12-13 Joel Brobecker <brobecker@adacore.com>
11107 * configure.ac: If large-file support is disabled in GDBserver,
11108 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
11109 * configure: Regenerate.
11111 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11113 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
11114 warning upon ENODATA from ptrace.
11115 * linux-s390-low.c (s390_store_tdb): New.
11116 (s390_regsets): Add regset for NT_S390_TDB.
11118 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11120 * linux-low.c (regsets_store_inferior_registers): Skip regsets
11121 without a fill_function.
11122 * linux-s390-low.c (s390_fill_last_break): Remove.
11123 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
11124 (s390_arch_setup): Use regset's size instead of fill_function for
11125 loop end condition.
11127 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11129 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
11130 the regset's store function when ptrace returned an error.
11131 * regcache.c (get_thread_regcache): Invalidate register cache
11132 before fetching inferior's registers.
11134 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11136 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
11137 while-loop as for-loop.
11138 (regsets_store_inferior_registers): Likewise.
11140 2014-11-28 Yao Qi <yao@codesourcery.com>
11142 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
11143 * config.in, configure: Re-generate.
11144 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
11147 2014-11-21 Yao Qi <yao@codesourcery.com>
11149 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
11150 (AC_CHECK_HEADERS): Remove malloc.h.
11151 * configure: Re-generated.
11152 * config.in: Re-generated.
11153 * server.h: Don't include alloca.h and malloc.h.
11154 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
11155 Don't include malloc.h.
11157 2014-11-17 Joel Brobecker <brobecker@adacore.com>
11159 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
11160 corresponding ERRNO check in same block.
11162 2014-11-12 Pedro Alves <palves@redhat.com>
11164 * server.c (cont_thread): Update comment.
11165 (start_inferior, attach_inferior): No longer clear cont_thread.
11166 (handle_v_cont): No longer set cont_thread.
11167 (captured_main): Clear cont_thread each time a GDB connects.
11169 2014-11-12 Pedro Alves <palves@redhat.com>
11171 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
11172 thread, and don't resume all threads if the Hc thread has exited.
11174 2014-11-12 Pedro Alves <palves@redhat.com>
11176 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
11177 the process group instead of to a specific LWP.
11179 2014-10-15 Pedro Alves <palves@redhat.com>
11182 * win32-arm-low.c (arm_set_thread_context): Remove current_event
11184 (arm_set_thread_context): Delete.
11185 (the_low_target): Adjust.
11186 * win32-i386-low.c (debug_registers_changed)
11187 (debug_registers_used): Delete.
11188 (update_debug_registers_callback): New function.
11189 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
11190 needing to update their debug registers.
11191 (win32_get_current_dr): New function.
11192 (x86_dr_low_get_addr, x86_dr_low_get_control)
11193 (x86_dr_low_get_status): Fetch the debug register from the thread
11195 (i386_initial_stuff): Adjust.
11196 (i386_get_thread_context): Remove current_event parameter. Don't
11197 clear debug_registers_changed nor copy DR values to
11199 (i386_set_thread_context): Delete.
11200 (i386_prepare_to_resume): New function.
11201 (i386_thread_added): Mark the thread as needing to update irs
11203 (the_low_target): Remove i386_set_thread_context and install
11204 i386_prepare_to_resume.
11205 * win32-low.c (win32_get_thread_context): Adjust.
11206 (win32_set_thread_context): Use SetThreadContext
11208 (win32_prepare_to_resume): New function.
11209 (win32_require_context): New function, factored out from ...
11210 (thread_rec): ... this.
11211 (continue_one_thread): Call win32_prepare_to_resume on each thread
11212 we're about to continue.
11213 (win32_resume): Call win32_prepare_to_resume on the event thread.
11214 * win32-low.h (struct win32_thread_info)
11215 <debug_registers_changed>: New field.
11216 (struct win32_target_ops): Change prototype of set_thread_context,
11217 delete set_thread_context and add prepare_to_resume.
11218 (win32_require_context): New declaration.
11220 2014-10-08 Gary Benson <gbenson@redhat.com>
11222 * server.h: Do not include common-exceptions.h.
11224 2014-10-08 Gary Benson <gbenson@redhat.com>
11226 * server.h: Do not include cleanups.h.
11228 2014-09-30 James Hogan <james.hogan@imgtec.com>
11230 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
11231 mips64-dsp-linux.c.
11233 2014-09-23 Yao Qi <yao@codesourcery.com>
11235 * linux-low.c (lp_status_maybe_breakpoint): New function.
11236 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
11237 (count_events_callback): Likewise.
11238 (select_event_lwp_callback): Likewise.
11239 (cancel_breakpoints_callback): Likewise.
11241 2014-09-19 Don Breazeal <donb@codesourcery.com>
11243 * linux-low.c (handle_extended_wait): Call
11244 linux_ptrace_get_extended_event.
11245 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
11246 linux_is_extended_waitstatus.
11248 2014-09-16 Joel Brobecker <brobecker@adacore.com>
11250 * Makefile.in (CPPFLAGS): Define.
11251 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
11252 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
11254 2014-09-16 Gary Benson <gbenson@redhat.com>
11256 * inferiors.h (current_inferior): Renamed as...
11257 (current_thread): New variable. All uses updated.
11258 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
11259 (maybe_move_out_of_jump_pad): Likewise.
11260 (cancel_breakpoint): Likewise.
11261 (linux_low_filter_event): Likewise.
11262 (wait_for_sigstop): Likewise.
11263 (linux_resume_one_lwp): Likewise.
11264 (need_step_over_p): Likewise.
11265 (start_step_over): Likewise.
11266 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
11267 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
11268 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
11269 and save_inferior as saved_thread.
11270 * regcache.c (get_thread_regcache): Renamed saved_inferior as
11272 (regcache_invalidate_thread): Likewise.
11273 * remote-utils.c (prepare_resume_reply): Likewise.
11274 * thread-db.c (thread_db_get_tls_address): Likewise.
11275 (disable_thread_event_reporting): Likewise.
11276 (remove_thread_event_breakpoints): Likewise.
11277 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
11279 * target.h (set_desired_inferior): Renamed as...
11280 (set_desired_thread): New declaration. All uses updated.
11281 * server.c (myresume): Updated comment to reference thread instead
11283 (handle_serial_event): Likewise.
11284 (handle_target_event): Likewise.
11286 2014-09-12 Tom Tromey <tromey@redhat.com>
11287 Gary Benson <gbenson@redhat.com>
11289 * regcache.h: Include common-regcache.h.
11290 (regcache_read_pc): Don't declare.
11291 * regcache.c (get_thread_regcache_for_ptid): New function.
11293 2014-09-11 Tom Tromey <tromey@redhat.com>
11294 Gary Benson <gbenson@redhat.com>
11296 * symbol.c: New file.
11297 * Makefile.in (SFILES): Add symbol.c.
11298 (OBS): Add symbol.o.
11300 2014-09-11 Gary Benson <gbenson@redhat.com>
11302 * target.c (target_stop_ptid, target_continue_ptid): New
11305 2014-09-11 Tom Tromey <tromey@redhat.com>
11306 Gary Benson <gbenson@redhat.com>
11308 * target.h: Include target/target.h.
11309 * target.c (target_read_memory, target_read_uint32)
11310 (target_write_memory): New functions.
11312 2014-09-11 Gary Benson <gbenson@redhat.com>
11314 * server.h (debug_hw_points): Don't declare.
11315 * server.c (debug_hw_points): Don't define. Replace all uses
11316 with show_debug_regs.
11317 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
11318 all uses with show_debug_regs.
11320 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
11322 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
11323 endianness into account.
11324 (ppc_supply_ptrace_register): Likewise.
11326 2014-09-03 James Hogan <james.hogan@imgtec.com>
11328 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
11329 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
11331 2014-09-03 Gary Benson <gbenson@redhat.com>
11333 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
11334 ALL_DEBUG_ADDRESS_REGISTERS.
11336 2014-09-02 Gary Benson <gbenson@redhat.com>
11338 * i386-low.h: Renamed as...
11339 * x86-low.h: New file. All type, function and variable name
11340 prefixes changed from "i386_" to "x86_". All references updated.
11341 * i386-low.c: Renamed as...
11342 * x86-low.c: New file. All type, function and variable name
11343 prefixes changed from "i386_" to "x86_". All references updated.
11345 2014-09-02 Gary Benson <gbenson@redhat.com>
11347 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
11348 (x86_linux_new_thread): Likewise.
11350 2014-08-29 Gary Benson <gbenson@redhat.com>
11352 * server.h (setjmp.h): Do not include.
11353 (toplevel): Do not declare.
11354 (common-exceptions.h): Include.
11355 (cleanups.h): Likewise.
11356 * server.c (toplevel): Do not define.
11357 (exit_code): New static global.
11358 (detach_or_kill_for_exit_cleanup): New function.
11359 (main): New function. Original main renamed to...
11360 (captured_main): New function.
11361 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
11363 2014-08-29 Gary Benson <gbenson@redhat.com>
11365 * Makefile.in (SFILES): Add common/common-exceptions.c.
11366 (OBS): Add common-exceptions.o.
11367 (common-exceptions.o): New rule.
11368 * utils.c (prepare_to_throw_exception): New function.
11370 2014-08-29 Gary Benson <gbenson@redhat.com>
11372 * config.in: Regenerate.
11373 * configure: Likewise.
11375 2014-08-29 Gary Benson <gbenson@redhat.com>
11377 * Makefile.in (SFILES): Add common/cleanups.c.
11379 (cleanups.o): New rule.
11381 2014-08-29 Gary Benson <gbenson@redhat.com>
11383 * utils.c (internal_vwarning): New function.
11385 2014-08-28 Gary Benson <gbenson@redhat.com>
11387 * utils.h (fatal): Remove declaration.
11388 * utils.c (fatal): Remove function.
11390 2014-08-28 Gary Benson <gbenson@redhat.com>
11392 * tracepoint.c (gdb_agent_init): Replace fatal with
11394 (initialize_tracepoint): Likewise.
11396 2014-08-28 Gary Benson <gbenson@redhat.com>
11398 * remote-utils.c (remote_prepare): Replace fatal with error.
11400 2014-08-28 Gary Benson <gbenson@redhat.com>
11402 * linux-low.c (linux_async): Replace fatal with warning.
11403 Tidy up and return.
11404 (linux_start_non_stop): Return -1 if linux_async failed.
11406 2014-08-28 Gary Benson <gbenson@redhat.com>
11408 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
11410 (i386_dr_low_get_addr): Remove vague comment.
11411 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
11414 2014-08-28 Gary Benson <gbenson@redhat.com>
11416 * inferiors.c (get_thread_process): Replace check with gdb_assert.
11417 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
11419 (linux_resume_one_lwp): Likewise.
11420 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
11422 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
11423 with internal_error.
11424 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
11425 (init_register_cache): Replace fatal with gdb_assert_not_reached.
11426 (find_register_by_name): Replace fatal with internal_error.
11427 (find_regno): Likewise.
11428 * tdesc.c (init_target_desc): Replace check with gdb_assert.
11429 * thread-db.c (thread_db_create_event): Likewise.
11430 (thread_db_load_search): Likewise.
11431 (try_thread_db_load_1): Likewise.
11432 * tracepoint.c (get_jump_space_head): Replace fatal with
11434 (claim_trampoline_space): Likewise.
11435 (have_fast_tracepoint_trampoline_buffer): Likewise.
11436 (cmd_qtstart): Likewise.
11437 (stop_tracing): Likewise.
11438 (fast_tracepoint_collecting): Likewise.
11439 (target_malloc): Likewise.
11440 (download_tracepoint): Likewise.
11441 (download_trace_state_variables): Replace check with gdb_assert.
11442 (upload_fast_traceframes): Replace fatal with internal_error.
11444 2014-08-19 Tom Tromey <tromey@redhat.com>
11445 Gary Benson <gbenson@redhat.com>
11447 * Makefile.in (SFILES): Add common/common-debug.c.
11448 (OBS): Add common-debug.o.
11449 (common-debug.o): New rule.
11450 * debug.h (debug_printf): Don't declare.
11451 * debug.c (debug_printf): Renamed and rewritten as...
11452 (debug_vprintf): New function.
11454 2014-08-19 Gary Benson <gbenson@redhat.com>
11456 * utils.h: Do not include print-utils.h.
11458 2014-08-19 Tom Tromey <tromey@redhat.com>
11459 Gary Benson <gbenson@redhat.com>
11461 * server.h: Add static assertion.
11462 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
11464 2014-08-19 Tom Tromey <tromey@redhat.com>
11465 Gary Benson <gbenson@redhat.com>
11467 * Makefile.in (SFILES): Add common/errors.c.
11468 (OBS): Add errors.o.
11469 (IPA_OBS): Add errors-ipa.o.
11470 (errors.o): New rule.
11471 (errors-ipa.o): Likewise.
11472 * utils.h (perror_with_name, error, warning): Don't declare.
11473 * utils.c (warning): Renamed and rewritten as...
11474 (vwarning): New function.
11475 (error): Renamed and rewritten as...
11476 (verror): New function.
11477 (internal_error): Renamed and rewritten as...
11478 (internal_verror): New function.
11480 2014-08-07 Gary Benson <gbenson@redhat.com>
11482 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
11483 * configure: Regenerate.
11484 * config.in: Likewise.
11485 * server.h: Do not include errno.h.
11486 * event-loop.c: Likewise.
11487 * hostio-errno.c: Likewise.
11488 * linux-low.c: Likewise.
11489 * remote-utils.c: Likewise.
11490 * spu-low.c: Likewise.
11491 * utils.c: Likewise.
11492 * gdbreplay.c: Unconditionally include errno.h.
11494 2014-08-07 Gary Benson <gbenson@redhat.com>
11496 * server.h: Do not include string.h.
11497 * event-loop.c: Likewise.
11498 * linux-low.c: Likewise.
11499 * regcache.c: Likewise.
11500 * remote-utils.c: Likewise.
11501 * spu-low.c: Likewise.
11502 * utils.c: Likewise.
11504 2014-08-07 Gary Benson <gbenson@redhat.com>
11506 * server.h: Do not include gdb_assert.h.
11508 2014-08-07 Gary Benson <gbenson@redhat.com>
11510 * server.h: Do not include common-utils.h.
11512 2014-08-07 Gary Benson <gbenson@redhat.com>
11514 * server.h: Do not include ptid.h.
11515 * notif.h: Likewise.
11517 2014-08-07 Gary Benson <gbenson@redhat.com>
11519 * server.h: Do not include gdb_locale.h.
11521 2014-08-07 Gary Benson <gbenson@redhat.com>
11523 * server.h: Do not include gdb/signals.h.
11524 * win32-low.c: Likewise.
11526 2014-08-07 Gary Benson <gbenson@redhat.com>
11528 * server.h: Do not include pathmax.h.
11530 2014-08-07 Gary Benson <gbenson@redhat.com>
11532 * server.h: Do not include libiberty.h.
11533 * linux-bfin-low.c: Likewise.
11535 2014-08-07 Gary Benson <gbenson@redhat.com>
11537 * server.h: Do not include ansidecl.h.
11539 2014-08-07 Gary Benson <gbenson@redhat.com>
11541 * linux-x86-low.c: Do not include stddef.h.
11542 * lynx-ppc-low.c: Likewise.
11543 * tracepoint.c: Likewise.
11545 2014-08-07 Gary Benson <gbenson@redhat.com>
11547 * server.h: Do not include stdarg.h.
11548 * nto-low.c: Likewise.
11550 2014-08-07 Gary Benson <gbenson@redhat.com>
11552 * server.h: Do not include stdlib.h.
11553 * inferiors.c: Likewise.
11554 * linux-low.c: Likewise.
11555 * regcache.c: Likewise.
11556 * spu-low.c: Likewise.
11557 * tracepoint.c: Likewise.
11558 * utils.c: Likewise.
11560 2014-08-07 Gary Benson <gbenson@redhat.com>
11562 * server.h: Do not include stdio.h.
11563 * linux-low.c: Likewise.
11564 * remote-utils.c: Likewise.
11565 * spu-low.c: Likewise.
11566 * utils.c: Likewise.
11567 * wincecompat.c: Likewise.
11569 2014-08-06 Gary Benson <gbenson@redhat.com>
11571 * regcache.c (init_register_cache): Move conditionals inside if.
11573 2014-08-06 Gary Benson <gbenson@redhat.com>
11575 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
11577 2014-07-31 Gary Benson <gbenson@redhat.com>
11579 * ax.h: Do not include server.h.
11580 * gdbthread.h: Likewise.
11581 * lynx-low.h: Likewise.
11582 * notif.h: Likewise.
11584 2014-07-30 Gary Benson <gbenson@redhat.com>
11586 * server.h: Include common-defs.h.
11587 Do not include config.h or build-gnulib-gdbserver/config.h.
11589 2014-07-30 Gary Benson <gbenson@redhat.com>
11591 * hostio-errno.c: Move server.h to top of includes list.
11592 * inferiors.c: Likewise.
11593 * linux-x86-low.c: Likewise.
11594 * notif.c: Include server.h.
11596 2014-07-24 Tom Tromey <tromey@redhat.com>
11597 Gary Benson <gbenson@redhat.com>
11599 * server.h (CORE_ADDR): Now unsigned.
11601 2014-07-16 Pedro Alves <palves@redhat.com>
11603 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
11605 2014-07-15 Pedro Alves <palves@redhat.com>
11607 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
11610 2014-07-11 Pedro Alves <palves@redhat.com>
11612 * linux-low.c (kill_wait_lwp): New function, based on
11613 kill_one_lwp_callback, but use my_waitpid directly.
11614 (kill_one_lwp_callback, linux_kill): Use it.
11616 2014-06-23 Pedro Alves <palves@redhat.com>
11618 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
11619 before setting DR0..DR3.
11621 2014-06-20 Gary Benson <gbenson@redhat.com>
11623 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
11624 * configure: Regenerated.
11625 * config.in: Likewise.
11627 2014-06-20 Gary Benson <gbenson@redhat.com>
11629 * Makefile.in (SFILES): Update locations for files moved
11630 from common to nat.
11631 (object file files): Reordered.
11633 2014-06-20 Gary Benson <gbenson@redhat.com>
11635 * i386-low.h (i386_dr_low_can_set_addr): Removed.
11636 (i386_dr_low_set_addr): Likewise.
11637 (i386_dr_low_get_addr): Likewise.
11638 (i386_dr_low_can_set_control): Likewise.
11639 (i386_dr_low_set_control): Likewise.
11640 (i386_dr_low_get_control): Likewise.
11641 (i386_dr_low_get_status): Likewise.
11642 (i386_get_debug_register_length): Likewise.
11643 * linux-x86-low.c (i386_dr_low_set_addr):
11644 Changed signature. Made static.
11645 (i386_dr_low_get_addr): Likewise.
11646 (i386_dr_low_set_control): Likewise.
11647 (i386_dr_low_get_control): Likewise.
11648 (i386_dr_low_get_status): Likewise.
11649 (i386_dr_low): New global variable.
11650 * win32-i386-low.c (i386_dr_low_set_addr):
11651 Changed signature. Made static.
11652 (i386_dr_low_get_addr): Likewise.
11653 (i386_dr_low_set_control): Likewise.
11654 (i386_dr_low_get_control): Likewise.
11655 (i386_dr_low_get_status): Likewise.
11656 (i386_dr_low): New global variable.
11658 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
11660 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
11661 * Makefile.in (AR, AR_FLAGS): Define.
11662 * configure: Regenerate.
11664 2014-06-19 Gary Benson <gbenson@redhat.com>
11666 * Makefile.in (i386-dregs.o): New rule.
11667 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
11668 * i386-low.c (target.h): Remove include.
11669 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
11670 (DR_CONTROL_SHIFT): Likewise.
11671 (DR_CONTROL_SIZE): Likewise.
11672 (DR_RW_EXECUTE): Likewise.
11673 (DR_RW_WRITE): Likewise.
11674 (DR_RW_READ): Likewise.
11675 (DR_RW_IORW): Likewise.
11676 (DR_LEN_1): Likewise.
11677 (DR_LEN_2): Likewise.
11678 (DR_LEN_4): Likewise.
11679 (DR_LEN_8): Likewise.
11680 (DR_LOCAL_ENABLE_SHIFT): Likewise.
11681 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
11682 (DR_ENABLE_SIZE): Likewise.
11683 (DR_LOCAL_SLOWDOWN): Likewise.
11684 (DR_GLOBAL_SLOWDOWN): Likewise.
11685 (DR_CONTROL_RESERVED): Likewise.
11686 (I386_DR_CONTROL_MASK): Likewise.
11687 (I386_DR_VACANT): Likewise.
11688 (I386_DR_LOCAL_ENABLE): Likewise.
11689 (I386_DR_GLOBAL_ENABLE): Likewise.
11690 (I386_DR_DISABLE): Likewise.
11691 (I386_DR_SET_RW_LEN): Likewise.
11692 (I386_DR_GET_RW_LEN): Likewise.
11693 (I386_DR_WATCH_HIT): Likewise.
11694 (i386_wp_op_t): Likewise.
11695 (i386_show_dr): Likewise.
11696 (i386_length_and_rw_bits): Likewise.
11697 (i386_insert_aligned_watchpoint): Likewise.
11698 (i386_remove_aligned_watchpoint): Likewise.
11699 (i386_handle_nonaligned_watchpoint): Likewise.
11700 i386_update_inferior_debug_regs(): Likewise.
11701 (i386_dr_insert_watchpoint): Likewise.
11702 (i386_dr_remove_watchpoint): Likewise.
11703 (i386_dr_region_ok_for_watchpoint): Likewise.
11704 (i386_dr_stopped_data_address): Likewise.
11705 (i386_dr_stopped_by_watchpoint): Likewise.
11707 2014-06-19 Gary Benson <gbenson@redhat.com>
11709 * i386-low.c (i386_dr_show): Renamed to
11710 i386_show_dr and made static. All uses updated.
11711 (i386_dr_length_and_rw_bits): Renamed to
11712 i386_length_and_rw_bits and made static.
11714 (i386_dr_insert_aligned_watchpoint): Renamed to
11715 i386_insert_aligned_watchpoint and made static.
11717 (i386_dr_remove_aligned_watchpoint): Renamed to
11718 i386_remove_aligned_watchpoint and made static.
11720 (i386_dr_update_inferior_debug_regs): Renamed to
11721 i386_update_inferior_debug_regs and made static.
11724 2014-06-18 Gary Benson <gbenson@redhat.com>
11726 * i386-low.h (i386_dr_low_can_set_addr): New macro.
11727 (i386_dr_low_can_set_control): Likewise.
11728 (i386_get_debug_register_length): Likewise.
11729 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
11730 (i386_dr_low_can_set_control): Likewise.
11731 (i386_get_debug_register_length): Likewise.
11733 2014-06-17 Gary Benson <gbenson@redhat.com>
11735 * i386-low.h (i386-dregs.h): New include.
11736 (DR_FIRSTADDR): Now in i386-dregs.h.
11737 (DR_LASTADDR): Likewise.
11738 (DR_NADDR): Likewise.
11739 (DR_STATUS): Likewise.
11740 (DR_CONTROL): Likewise.
11741 (i386_debug_reg_state): Likewise.
11742 (i386_dr_insert_watchpoint): Likewise.
11743 (i386_dr_remove_watchpoint): Likewise.
11744 (i386_dr_region_ok_for_watchpoint): Likewise.
11745 (i386_dr_stopped_data_address): Likewise.
11746 (i386_dr_stopped_by_watchpoint): Likewise.
11747 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
11749 2014-06-18 Gary Benson <gbenson@redhat.com>
11751 * i386-low.h (i386_low_insert_watchpoint): Renamed to
11752 i386_dr_insert_watchpoint.
11753 (i386_low_remove_watchpoint): Renamed to
11754 i386_dr_remove_watchpoint.
11755 (i386_low_region_ok_for_watchpoint): Renamed to
11756 i386_dr_region_ok_for_watchpoint.
11757 (i386_low_stopped_data_address): Renamed to
11758 i386_dr_stopped_data_address.
11759 (i386_low_stopped_by_watchpoint): Renamed to
11760 i386_dr_stopped_by_watchpoint.
11761 * i386-low.c (i386_show_dr): Renamed to
11762 i386_dr_show and made nonstatic. All uses updated.
11763 (i386_length_and_rw_bits): Renamed to
11764 i386_dr_length_and_rw_bits and made nonstatic.
11766 (i386_insert_aligned_watchpoint): Renamed to
11767 i386_dr_insert_aligned_watchpoint and made nonstatic.
11769 (i386_remove_aligned_watchpoint): Renamed to
11770 i386_dr_remove_aligned_watchpoint and made nonstatic.
11772 (i386_update_inferior_debug_regs): Renamed to
11773 i386_dr_update_inferior_debug_regs and made nonstatic.
11775 (i386_low_insert_watchpoint): Renamed to
11776 i386_dr_insert_watchpoint. All uses updated.
11777 (i386_low_remove_watchpoint): Renamed to
11778 i386_dr_remove_watchpoint. All uses updated.
11779 (i386_low_region_ok_for_watchpoint): Renamed to
11780 i386_dr_region_ok_for_watchpoint. All uses updated.
11781 (i386_low_stopped_data_address): Renamed to
11782 i386_dr_stopped_data_address. All uses updated.
11783 (i386_low_stopped_by_watchpoint): Renamed to
11784 i386_dr_stopped_by_watchpoint. All uses updated.
11786 2014-06-18 Gary Benson <gbenson@redhat.com>
11788 * i386-low.c (i386_dr_low_can_set_addr): New macro.
11789 (i386_dr_low_can_set_control): Likewise.
11790 (i386_insert_aligned_watchpoint): New check.
11792 2014-06-18 Gary Benson <gbenson@redhat.com>
11794 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
11797 2014-06-18 Gary Benson <gbenson@redhat.com>
11799 * i386-low.c (i386_length_and_rw_bits): Use internal_error
11800 instead of fatal and error.
11801 (i386_handle_nonaligned_watchpoint): Likewise.
11803 2014-06-18 Gary Benson <gbenson@redhat.com>
11805 * i386-low.c (i386_get_debug_register_length): New macro.
11806 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
11807 (i386_show_dr): Use debug_printf instead of fprintf. Use
11808 phex to format values.
11810 2014-06-18 Gary Benson <gbenson@redhat.com>
11812 * i386-low.h: Comment changes.
11813 * i386-low.c: Likewise.
11815 2014-06-18 Gary Benson <gbenson@redhat.com>
11817 * i386-low.c: Whitespace changes.
11819 2014-06-12 Tom Tromey <tromey@redhat.com>
11821 * utils.c (freeargv): Remove.
11823 2014-06-12 Tom Tromey <tromey@redhat.com>
11825 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
11826 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
11827 (parse_debug_format_options): Likewise.
11828 (gdbserver_usage): Likewise.
11829 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
11830 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
11831 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
11833 ($(LIBGNU)): Depend on libiberty.
11834 (all-lib): Recurse into all subdirs.
11835 (install-only): Invoke "install" target in subdirs.
11836 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
11838 * configure: Rebuild.
11839 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
11840 for vasprintf, vsnprintf, or gettimeofday.
11841 * configure.srv: Don't add safe-ctype.o or lbasename.o to
11844 2014-06-05 Joel Brobecker <brobecker@adacore.com>
11846 * development.sh: Delete.
11847 * Makefile.in (config.status): Adjust dependency on development.sh.
11848 * configure.ac: Adjust development.sh source call.
11849 * configure: Regenerate.
11851 2014-06-02 Pedro Alves <palves@redhat.com>
11853 * ax.c (gdb_free_agent_expr): New function.
11854 * ax.h (gdb_free_agent_expr): New declaration.
11855 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
11857 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
11859 (clear_breakpoint_conditions_and_commands): New function.
11860 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
11861 (clear_breakpoint_conditions_and_commands): New declaration.
11863 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11865 * linux-aarch64-low.c (asm/ptrace.h): Include.
11867 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11869 Fix TLS access for -static -pthread.
11870 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
11871 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
11872 (thread_db_load_search, try_thread_db_load_1): Initialize it.
11874 2014-05-20 Pedro Alves <palves@redhat.com>
11876 * linux-aarch64-low.c (aarch64_insert_point)
11877 (aarch64_remove_point): No longer check whether the type is
11878 supported here. Adjust to new interface.
11879 (the_low_target): Install aarch64_supports_z_point_type as
11880 supports_z_point_type method.
11881 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
11882 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
11883 instead of a Z packet char. Adjust.
11884 (arm_supports_z_point_type): New function.
11885 (arm_insert_point, arm_remove_point): Adjust to new interface.
11886 (the_low_target): Install arm_supports_z_point_type.
11887 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
11888 (cris_insert_point, cris_remove_point): Adjust to new interface.
11889 Don't check whether the type is supported here.
11890 (the_low_target): Install cris_supports_z_point_type.
11891 * linux-low.c (linux_supports_z_point_type): New function.
11892 (linux_insert_point, linux_remove_point): Adjust to new interface.
11893 * linux-low.h (struct linux_target_ops) <insert_point,
11894 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
11895 raw_breakpoint pointer parameter.
11896 <supports_z_point_type>: New method.
11897 * linux-mips-low.c (mips_supports_z_point_type): New function.
11898 (mips_insert_point, mips_remove_point): Adjust to new interface.
11899 Use mips_supports_z_point_type.
11900 (the_low_target): Install mips_supports_z_point_type.
11901 * linux-ppc-low.c (the_low_target): Install NULL as
11902 supports_z_point_type method.
11903 * linux-s390-low.c (the_low_target): Install NULL as
11904 supports_z_point_type method.
11905 * linux-sparc-low.c (the_low_target): Install NULL as
11906 supports_z_point_type method.
11907 * linux-x86-low.c (x86_supports_z_point_type): New function.
11908 (x86_insert_point): Adjust to new insert_point interface. Use
11909 insert_memory_breakpoint. Adjust to new
11910 i386_low_insert_watchpoint interface.
11911 (x86_remove_point): Adjust to remove_point interface. Use
11912 remove_memory_breakpoint. Adjust to new
11913 i386_low_remove_watchpoint interface.
11914 (the_low_target): Install x86_supports_z_point_type.
11915 * lynx-low.c (lynx_target_ops): Install NULL as
11916 supports_z_point_type callback.
11917 * nto-low.c (nto_supports_z_point_type): New.
11918 (nto_insert_point, nto_remove_point): Adjust to new interface.
11919 (nto_target_ops): Install nto_supports_z_point_type.
11920 * mem-break.c: Adjust intro comment.
11921 (struct raw_breakpoint) <raw_type, size>: New fields.
11922 <inserted>: Update comment.
11923 <shlib_disabled>: Delete field.
11924 (enum bkpt_type) <gdb_breakpoint>: Delete value.
11925 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
11926 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
11927 (raw_bkpt_type_to_target_hw_bp_type): New function.
11928 (find_enabled_raw_code_breakpoint_at): New function.
11929 (find_raw_breakpoint_at): New type and size parameters. Use them.
11930 (insert_memory_breakpoint): New function, based off
11931 set_raw_breakpoint_at.
11932 (remove_memory_breakpoint): New function.
11933 (set_raw_breakpoint_at): Reimplement.
11934 (set_breakpoint): New, based on set_breakpoint_at.
11935 (set_breakpoint_at): Reimplement.
11936 (delete_raw_breakpoint): Go through the_target->remove_point
11937 instead of assuming memory breakpoints.
11938 (find_gdb_breakpoint_at): Delete.
11939 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
11940 (find_gdb_breakpoint): New function.
11941 (set_gdb_breakpoint_at): Delete.
11942 (z_type_supported): New function.
11943 (set_gdb_breakpoint_1): New function, loosely based off
11944 set_gdb_breakpoint_at.
11945 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
11946 (delete_gdb_breakpoint_at): Delete.
11947 (delete_gdb_breakpoint_1): New function, loosely based off
11948 delete_gdb_breakpoint_at.
11949 (delete_gdb_breakpoint): New function.
11950 (clear_gdb_breakpoint_conditions): Rename to ...
11951 (clear_breakpoint_conditions): ... this. Don't handle a NULL
11953 (add_condition_to_breakpoint): Make static.
11954 (add_breakpoint_condition): Take a struct breakpoint pointer
11955 instead of an address. Adjust.
11956 (gdb_condition_true_at_breakpoint): Rename to ...
11957 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
11959 (gdb_condition_true_at_breakpoint): Reimplement.
11960 (add_breakpoint_commands): Take a struct breakpoint pointer
11961 instead of an address. Adjust.
11962 (gdb_no_commands_at_breakpoint): Rename to ...
11963 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
11964 parameter. Return true if no breakpoint was found. Change debug
11966 (gdb_no_commands_at_breakpoint): Reimplement.
11967 (run_breakpoint_commands): Rename to ...
11968 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
11969 and change return type to boolean.
11970 (run_breakpoint_commands): New function.
11971 (gdb_breakpoint_here): Also check for Z1 breakpoints.
11972 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
11973 breakpoint. Go through the_target->remove_point instead of
11974 assuming memory breakpoint.
11975 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
11976 software and hardware breakpoints.
11977 (reinsert_raw_breakpoint): Go through the_target->insert_point
11978 instead of assuming memory breakpoint.
11979 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
11980 software and hardware breakpoints.
11981 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
11982 Check both software and hardware breakpoints.
11983 (validate_inserted_breakpoint): Assert the breakpoint is a
11984 software breakpoint. Set the inserted flag to -1 instead of
11985 setting shlib_disabled.
11986 (delete_disabled_breakpoints): Adjust.
11987 (validate_breakpoints): Only validate software breakpoints.
11988 Adjust to inserted flag change.
11989 (check_mem_read, check_mem_write): Skip breakpoint types other
11990 than software breakpoints. Adjust to inserted flag change.
11991 * mem-break.h (enum raw_bkpt_type): New enum.
11992 (raw_breakpoint, struct process_info): Forward declare.
11993 (Z_packet_to_target_hw_bp_type): Delete declaration.
11994 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
11995 (set_gdb_breakpoint, delete_gdb_breakpoint)
11996 (clear_breakpoint_conditions): New declarations.
11997 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
11998 (breakpoint_inserted_here): Update comment.
11999 (add_breakpoint_condition, add_breakpoint_commands): Replace
12000 address parameter with a breakpoint pointer parameter.
12001 (gdb_breakpoint_here): Update comment.
12002 (delete_gdb_breakpoint_at): Delete.
12003 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
12004 * server.c (process_point_options): Take a struct breakpoint
12005 pointer instead of an address. Adjust.
12006 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
12007 delete_gdb_breakpoint.
12008 * spu-low.c (spu_target_ops): Install NULL as
12009 supports_z_point_type method.
12010 * target.h: Include mem-break.h.
12011 (struct target_ops) <prepare_to_access_memory>: Update comment.
12012 <supports_z_point_type>: New field.
12013 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12014 instead of a char. Also take a raw breakpoint pointer.
12015 * win32-arm-low.c (the_low_target): Install NULL as
12016 supports_z_point_type.
12017 * win32-i386-low.c (i386_supports_z_point_type): New function.
12018 (i386_insert_point, i386_remove_point): Adjust to new interface.
12019 (the_low_target): Install i386_supports_z_point_type.
12020 * win32-low.c (win32_supports_z_point_type): New function.
12021 (win32_insert_point, win32_remove_point): Adjust to new interface.
12022 (win32_target_ops): Install win32_supports_z_point_type.
12023 * win32-low.h (struct win32_target_ops):
12024 <supports_z_point_type>: New method.
12025 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12026 instead of a char. Also take a raw breakpoint pointer.
12028 2014-05-20 Pedro Alves <palves@redhat.com>
12030 * mem-break.h: Include break-common.h.
12031 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12032 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
12033 (Z_packet_to_target_hw_bp_type): New declaration.
12034 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
12035 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
12036 (Z_PACKET_ACCESS_WP): Delete macros.
12037 (Z_packet_to_hw_type): Delete function.
12038 * i386-low.h: Don't include break-common.h here.
12039 (Z_packet_to_hw_type): Delete declaration.
12040 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
12041 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12042 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
12043 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12044 * linux-aarch64-low.c: Don't include break-common.h here.
12045 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12046 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
12047 (Z_packet_to_target_hw_bp_type): Delete function.
12048 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
12050 (mips_insert_point, mips_remove_point): Use
12051 Z_packet_to_target_hw_bp_type.
12053 2014-05-20 Pedro Alves <palves@redhat.com>
12055 * linux-aarch64-low.c: Include break-common.h.
12056 (enum target_point_type): Delete.
12057 (Z_packet_to_point_type): Rename to ...
12058 (Z_packet_to_target_hw_bp_type): ... this, and return a
12059 target_hw_bp_type instead.
12060 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
12061 instead of an enum target_point_type.
12062 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
12064 (aarch64_dr_state_insert_one_point)
12065 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
12066 (aarch64_handle_aligned_watchpoint)
12067 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
12068 Take an enum target_hw_bp_type instead of an enum
12070 (aarch64_supports_z_point_type): New function.
12071 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
12072 use Z_packet_to_target_hw_bp_type.
12074 2014-05-20 Joel Brobecker <brobecker@adacore.com>
12076 * configure.ac: Only use -Werror by default when DEVELOPMENT
12078 * configure: Regenerate.
12080 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12082 Fix gdbserver qGetTLSAddr for x86_64 -m32.
12083 * linux-x86-low.c (X86_64_USER_REGS): New.
12084 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
12086 2014-04-28 Yao Qi <yao@codesourcery.com>
12088 * Makefile.in (i386-avx512.c): Fix the typo of generated file
12091 2014-04-25 Pedro Alves <palves@redhat.com>
12094 * linux-low.c (linux_attach_fail_reason_string): New function.
12095 (linux_attach_lwp): Delete.
12096 (linux_attach_lwp_1): Rename to ...
12097 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
12098 argument. Remove "initial" parameter. Return int instead of
12099 void. Don't error or warn here.
12100 (linux_attach): Adjust to call linux_attach_lwp. Call error on
12101 failure to attach to the tgid. Call warning when failing to
12103 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
12104 argument. Remove "initial" parameter. Return int instead of
12105 void. Don't error or warn here.
12106 (linux_attach_fail_reason_string): New declaration.
12107 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
12108 interface change. Use linux_attach_fail_reason_string.
12110 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
12111 Walfred Tedeschi <walfred.tedeschi@intel.com>
12113 * Makefile.in: Added rules to handle new files
12114 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
12115 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
12116 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
12117 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
12118 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
12119 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
12120 x32-avx512-linux.o.
12121 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
12122 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
12123 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
12124 i386/x32-avx512.xml.
12125 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
12126 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
12127 i386/x32-avx512-linux.xml.
12128 * i387-fp.c (num_avx512_k_registers): New constant for number
12130 (num_avx512_zmmh_low_registers): New constant for number of
12131 lower ZMM registers (0-15).
12132 (num_avx512_zmmh_high_registers): New constant for number of
12133 higher ZMM registers (16-31).
12134 (num_avx512_ymmh_registers): New contant for number of higher
12135 YMM registers (ymm16-31 added by avx521 on x86_64).
12136 (num_avx512_xmm_registers): New constant for number of higher
12137 XMM registers (xmm16-31 added by AVX512 on x86_64).
12138 (struct i387_xsave): Add space for AVX512 registers.
12139 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
12140 Add code to handle AVX512 registers.
12141 (i387_xsave_to_cache): Add code to handle AVX512 registers.
12142 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
12143 prototypei from generated file.
12144 (tdesc_amd64_avx512_linux): Likewise.
12145 (init_registers_x32_avx512_linux): Likewise.
12146 (tdesc_x32_avx512_linux): Likewise.
12147 (init_registers_i386_avx512_linux): Likewise.
12148 (tdesc_i386_avx512_linux): Likewise.
12149 (x86_64_regmap): Add AVX512 registers.
12150 (x86_linux_read_description): Add code to handle AVX512 XSTATE
12152 (initialize_low_arch): Add code to initialize AVX512 registers.
12154 2014-04-23 Pedro Alves <palves@redhat.com>
12156 * mem-break.c (find_gdb_breakpoint_at): Make static.
12157 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
12159 2014-04-23 Pedro Alves <palves@redhat.com>
12161 * i386-low.c: Don't include break-common.h here.
12162 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12163 prototype to take target_hw_bp_type as argument instead of a Z
12165 * i386-low.h: Include break-common.h here.
12166 (Z_packet_to_hw_type): Declare.
12167 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12169 * linux-x86-low.c (x86_insert_point): Convert the packet number to
12170 a target_hw_bp_type before calling i386_low_insert_watchpoint.
12171 (x86_remove_point): Convert the packet number to a
12172 target_hw_bp_type before calling i386_low_remove_watchpoint.
12173 * win32-i386-low.c (i386_insert_point): Convert the packet number
12174 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
12175 (i386_remove_point): Convert the packet number to a
12176 target_hw_bp_type before calling i386_low_remove_watchpoint.
12178 2014-04-23 Pedro Alves <palves@redhat.com>
12180 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
12182 2014-04-10 Pedro Alves <palves@redhat.com>
12184 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
12185 Check if the condition or command is NULL before checking if the
12186 breakpoint is known. On success, return true.
12187 * mem-break.h (add_breakpoint_condition): Document return.
12188 (add_breakpoint_commands): Add describing comment.
12189 * server.c (skip_to_semicolon): New function.
12190 (process_point_options): Use it.
12192 2014-04-09 Pedro Alves <palves@redhat.com>
12194 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
12197 2014-02-27 Pedro Alves <palves@redhat.com>
12200 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
12202 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
12204 (last_thread_of_process_p): Take a PID argument instead of a
12206 (linux_wait_for_lwp): Delete.
12207 (num_lwps, check_zombie_leaders, not_stopped_callback): New
12209 (linux_low_filter_event): New function, party factored out from
12210 linux_wait_for_event.
12211 (linux_wait_for_event): Rename to ...
12212 (linux_wait_for_event_filtered): ... this. Add new filter ptid
12213 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
12214 sigsuspend. Check for zombie leaders.
12215 (linux_wait_for_event): Reimplement as wrapper around
12216 linux_wait_for_event_filtered.
12217 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
12218 a normal or signal exit is seen, it's the whole process exiting.
12219 (wait_for_sigstop): No longer a for_each_inferior callback.
12220 Rewrite on top of linux_wait_for_event_filtered.
12221 (stop_all_lwps): Call wait_for_sigstop directly.
12222 * server.c (resume, handle_target_event): Handle
12223 TARGET_WAITKIND_NO_RESUMED.
12225 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12227 * win32-low.c (psapi_get_dll_name,
12228 * win32_CreateToolhelp32Snapshot): Delete.
12229 (win32_CreateToolhelp32Snapshot, win32_Module32First)
12230 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
12232 (handle_load_dll): Add function description.
12233 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
12235 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12237 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
12239 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
12240 base address when calling win32_add_one_solib.
12241 (handle_load_dll): Delete local variable load_addr.
12242 Remove 0x1000 offset applied to DLL base address when calling
12243 win32_add_one_solib.
12244 (handle_unload_dll): Add comment.
12246 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12248 * win32-low.c (win32_add_all_dlls): Renames
12249 win32_ensure_ntdll_loaded. Rewrite function documentation.
12250 Adjust implementation to always load all DLLs.
12251 Add 0x1000 offset to DLL base address when calling
12252 win32_add_one_solib.
12253 (child_initialization_done): New static global.
12254 (do_initial_child_stuff): Set child_initialization_done to
12255 zero during child initialization, and 1 after. Replace call
12256 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
12258 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
12259 (handle_unload_dll): Add function documentation.
12260 (get_child_debug_event): Ignore load and unload DLL events
12261 during child initialization.
12263 2014-02-20 Doug Evans <dje@google.com>
12265 Remove global all_lwps.
12266 * inferiors.h (ptid_of): Move here from linux-low.h.
12267 (pid_of, lwpid_of): Ditto.
12268 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
12269 parameter is a struct thread_info * now.
12270 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
12271 directly. Pass &all_threads to find_inferior instead of &all_lwps.
12272 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
12274 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
12275 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
12276 * linux-arm-low.c (update_registers_callback): Update, "entry"
12277 parameter is a struct thread_info * now.
12278 Fetch lwpid from current_inferior directly.
12279 (arm_insert_point): Pass &all_threads to find_inferior instead of
12281 (arm_remove_point): Ditto.
12282 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
12283 (arm_prepare_to_resume): Fetch pid from thread.
12284 (arm_read_description): Fetch lwpid from current_inferior directly.
12285 * linux-low.c (all_lwps): Delete.
12286 (delete_lwp): Delete call to remove_inferior.
12287 (handle_extended_wait): Fetch lwpid from thread.
12288 (add_lwp): Don't set lwp->entry.id. Remove call to
12289 add_inferior_to_list.
12290 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
12291 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
12292 (kill_one_lwp_callback): Ditto.
12293 (linux_kill): Don't dereference NULL pointer.
12294 Fetch ptid,lwpid from thread.
12295 (get_detach_signal): Fetch ptid from thread.
12296 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
12297 Simplify call to regcache_invalidate_thread.
12298 (delete_lwp_callback): Update, "entry" parameter is a
12299 struct thread_info * now. Fetch pid from thread.
12300 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
12301 (status_pending_p_callback): Update, "entry" parameter is a
12302 struct thread_info * now. Fetch ptid from thread.
12303 (find_lwp_pid): Update, "entry" parameter is a
12304 struct thread_info * now.
12305 (linux_wait_for_lwp): Fetch pid from thread.
12306 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
12307 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
12308 (enqueue_one_deferred_signal): Fetch lwpid from thread.
12309 (dequeue_one_deferred_signal): Ditto.
12310 (cancel_breakpoint): Fetch ptid from current_inferior.
12311 (linux_wait_for_event): Pass &all_threads to find_inferior,
12312 not &all_lwps. Fetch ptid, lwpid from thread.
12313 (count_events_callback): Update, "entry" parameter is a
12314 struct thread_info * now.
12315 (select_singlestep_lwp_callback): Ditto.
12316 (select_event_lwp_callback): Ditto.
12317 (cancel_breakpoints_callback): Ditto.
12318 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
12320 (select_event_lwp): Ditto. Fetch ptid from event_thread.
12321 (unsuspend_one_lwp): Update, "entry" parameter is a
12322 struct thread_info * now.
12323 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
12325 (linux_stabilize_threads): Ditto. And for for_each_inferior.
12326 Fetch lwpid from thread, not lwp.
12327 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
12328 Pass &all_threads to find_inferior, not &all_lwps.
12329 (send_sigstop): Fetch lwpid from thread, not lwp.
12330 (send_sigstop_callback): Update, "entry" parameter is a
12331 struct thread_info * now.
12332 (suspend_and_send_sigstop_callback): Ditto.
12333 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
12334 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
12335 struct thread_info * now.
12336 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
12338 (lwp_running): Update, "entry" parameter is a
12339 struct thread_info * now.
12340 (stop_all_lwps): Fetch ptid from thread.
12341 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
12342 (linux_resume_one_lwp): Fetch lwpid from thread.
12343 (linux_set_resume_request): Update, "entry" parameter is a
12344 struct thread_info * now. Fetch pid, lwpid from thread.
12345 (resume_status_pending_p): Update, "entry" parameter is a
12346 struct thread_info * now.
12347 (need_step_over_p): Ditto. Fetch lwpid from thread.
12348 (start_step_over): Fetch lwpid from thread.
12349 (linux_resume_one_thread): Update, "entry" parameter is a
12350 struct thread_info * now. Fetch lwpid from thread.
12351 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
12352 (proceed_one_lwp): Update, "entry" parameter is a
12353 struct thread_info * now. Fetch lwpid from thread.
12354 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
12355 struct thread_info * now.
12356 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
12357 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
12358 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
12360 (regsets_store_inferior_registers): Ditto.
12361 (fetch_register, store_register): Ditto.
12362 (linux_read_memory, linux_write_memory): Ditto.
12363 (linux_request_interrupt): Ditto.
12364 (linux_read_auxv): Ditto.
12365 (linux_xfer_siginfo): Ditto.
12366 (linux_qxfer_spu): Ditto.
12367 (linux_qxfer_libraries_svr4): Ditto.
12368 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
12369 moved to inferiors.h.
12371 (get_thread_lwp): Update.
12372 (struct lwp_info): Delete member "entry". Simplify comment for
12374 (all_lwps): Delete.
12375 * linux-mips-low.c (mips_read_description): Fetch lwpid from
12376 current_inferior directly.
12377 (update_watch_registers_callback): Update, "entry" parameter is a
12378 struct thread_info * now. Fetch pid from thread.
12379 (mips_linux_prepare_to_resume): Fetch ptid from thread.
12380 (mips_insert_point): Fetch lwpid from current_inferior.
12381 Pass &all_threads to find_inferior, not &all_lwps.
12382 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
12383 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
12385 (mips_stopped_data_address): Ditto.
12386 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
12388 * linux-tile-low.c (tile_arch_setup): Ditto.
12389 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
12390 (update_debug_registers_callback): Update, "entry" parameter is a
12391 struct thread_info * now. Fetch pid from thread.
12392 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
12393 Pass &all_threads to find_inferior, not &all_lwps.
12394 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
12395 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
12396 Pass &all_threads to find_inferior, not &all_lwps.
12397 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
12398 (i386_dr_low_get_status): Ditto.
12399 (x86_linux_prepare_to_resume): Fetch ptid from thread.
12400 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
12401 (x86_linux_read_description): Ditto.
12402 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
12404 2014-02-20 Doug Evans <dje@google.com>
12406 * inferiors.c (get_first_inferior): Fix buglet.
12408 2014-02-19 Doug Evans <dje@google.com>
12410 * gdbthread.h (add_thread): Change result type to struct thread_info *.
12411 * inferiors.c (add_thread): Change result type to struct thread_info *.
12412 All callers updated.
12413 (add_lwp): Call add_thread here instead of in callers.
12414 All callers updated.
12415 * linux-low.h (get_lwp_thread): Rewrite.
12416 (struct lwp_info): New member "thread".
12418 2014-02-19 Doug Evans <dje@google.com>
12420 * linux-low.c (add_lwp): Change result to struct lwp_info *.
12421 All callers updated.
12423 2014-02-19 Doug Evans <dje@google.com>
12425 * inferiors.c (add_thread): Fix whitespace.
12427 2014-02-19 Doug Evans <dje@google.com>
12429 * dll.c (clear_dlls): Replace accessing list implemention details
12431 * gdbthread.h (get_first_thread): Declare.
12432 * inferiors.c (for_each_inferior_with_data): New function.
12433 (get_first_thread): New function.
12434 (find_thread_ptid): Simplify.
12435 (get_first_inferior): New function.
12436 (clear_list): Delete.
12437 (one_inferior_p): New function.
12438 (clear_inferior_list): New function.
12439 (clear_inferiors): Update.
12440 * inferiors.h (for_each_inferior_with_data): Declare.
12441 (clear_inferior_list): Declare.
12442 (one_inferior_p): Declare.
12443 (get_first_inferior): Declare.
12444 * linux-low.c (linux_wait_for_event): Replace accessing list
12445 implemention details with API function.
12446 * server.c (target_running): Ditto.
12447 (accumulate_file_name_length): New function.
12448 (emit_dll_description): New function.
12449 (handle_qxfer_libraries): Replace accessing list implemention
12450 details with API function.
12451 (handle_qxfer_threads_worker): New function.
12452 (handle_qxfer_threads_proper): Replace accessing list implemention
12453 details with API function.
12454 (handle_query): Ditto.
12455 (visit_actioned_threads_callback_ftype): New typedef.
12456 (visit_actioned_threads_data): New struct.
12457 (visit_actioned_threads): Rewrite to be find_inferior callback.
12458 (resume): Call find_inferior.
12459 (handle_status): Replace accessing list implemention
12460 details with API function.
12461 (process_serial_event): Replace accessing list implemention details
12463 * target.c (set_desired_inferior): Replace accessing list implemention
12464 details with API function.
12465 * tracepoint.c (same_process_p): New function.
12466 (gdb_agent_about_to_close): Replace accessing list implemention
12467 details with API function.
12468 * win32-low.c (child_delete_thread): Replace accessing list
12469 implemention details with API function.
12470 (match_dll_by_basename): New function.
12471 (dll_is_loaded_by_basename): New function.
12472 (win32_ensure_ntdll_loaded): Replace accessing list implemention
12473 details call to dll_is_loaded_by_basename.
12475 2014-02-19 Doug Evans <dje@google.com>
12477 * dll.h (struct dll_info): Add comment.
12478 * gdbthread.h (struct thread_info): Add comment.
12479 (current_ptid): Simplify.
12480 * inferiors.c (add_process): Update.
12481 (remove_process): Update.
12482 * inferiors.h (struct process_info): Rename member "head" to "entry".
12483 * linux-low.c (delete_lwp): Update.
12485 (last_thread_of_process_p): Update.
12486 (kill_one_lwp_callback, linux_kill): Update.
12487 (status_pending_p_callback): Update.
12488 (wait_for_sigstop): Update. Simplify read of ptid.
12489 (start_step_over): Update.
12490 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
12491 (get_lwp_thread): Update.
12492 (struct lwp_info): Rename member "head" to "entry".
12493 * regcache.h (inferior_list_entry): Delete.
12494 * server.c (kill_inferior_callback): Update.
12495 (detach_or_kill_inferior_callback): Update.
12496 (print_started_pid): Update.
12497 (print_attached_pid): Update.
12498 (process_serial_event): Simplify read of ptid.
12499 * thread-db.c (thread_db_create_event): Update.
12500 (thread_db_get_tls_address): Update.
12501 * win32-low.c (current_inferior_ptid): Simplify.
12503 2014-02-19 Tom Tromey <tromey@redhat.com>
12505 * target.h (struct target_ops) <supports_btrace>: Add target_ops
12507 (target_supports_btrace): Update.
12509 2014-02-14 Yao Qi <yao@codesourcery.com>
12511 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
12512 (rsp-low-ipa.o): New target.
12514 2014-02-12 Tom Tromey <tromey@redhat.com>
12516 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
12517 convert_ascii_to_int.
12518 * regcache.c (registers_to_string): Likewise.
12519 * remote-utils.c (decode_M_packet): Likewise.
12520 * server.c (process_serial_event): Likewise.
12522 2014-02-12 Tom Tromey <tromey@redhat.com>
12524 * server.c (handle_query, handle_v_run): Use hex2bin, not
12526 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
12528 2014-02-12 Tom Tromey <tromey@redhat.com>
12530 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
12531 convert_int_to_ascii.
12532 * regcache.c (registers_to_string, collect_register_as_string):
12534 * remote-utils.c (look_up_one_symbol, relocate_instruction):
12536 * server.c (process_serial_event): Likewise.
12537 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
12538 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
12540 2014-02-12 Tom Tromey <tromey@redhat.com>
12542 * remote-utils.c (look_up_one_symbol, monitor_output): Use
12543 bin2hex, not hexify.
12544 * tracepoint.c (cmd_qtstatus): Likewise.
12546 2014-02-12 Tom Tromey <tromey@redhat.com>
12548 * remote-utils.c (monitor_output): Pass explicit length to
12551 2014-02-12 Tom Tromey <tromey@redhat.com>
12553 * tracepoint.c: Include rsp-low.h.
12554 * server.c: Include rsp-low.h.
12555 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
12556 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
12558 * remote-utils.c: Include rsp-low.h.
12559 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
12560 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
12561 (convert_int_to_ascii, convert_ascii_to_int): Move to
12563 * regcache.c: Include rsp-low.h.
12564 * ax.c: Include rsp-low.h.
12565 * Makefile.in (SFILES): Add common/rsp-low.c.
12566 (OBS): Add rsp-low.o.
12567 (rsp-low.o): New target.
12569 2014-02-12 Tom Tromey <tromey@redhat.com>
12571 * utils.h (pulongest, plongest, phex_nz): Don't declare.
12572 Include print-utils.h.
12573 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12574 (plongest, thirty_two, phex_nz): Remove.
12575 * Makefile.in (SFILES): Add common/print-utils.c.
12576 (OBS): Add print-utils.o.
12577 (print-utils-ipa.o): New target.
12578 (print-utils.o): New target.
12579 (IPA_OBJS): Add print-utils-ipa.o.
12581 2014-02-06 Tom Tromey <tromey@redhat.com>
12583 * Makefile.in (SFILES): Fix indentation.
12585 2014-02-05 Doug Evans <dje@google.com>
12587 * linux-low.c (linux_wait_for_event): Improve comment.
12588 (linux_wait_1): Keep current_inferior in sync with event_child.
12590 2014-01-22 Doug Evans <dje@google.com>
12592 * gdbthread.h (gdb_id_to_thread): Delete, unused.
12594 2014-01-22 Doug Evans <dje@google.com>
12596 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
12597 * configure: Regenerate.
12598 * config.in: Regenerate.
12599 * Makefile.in (SFILES): Add debug.c.
12600 (OBS): Add debug.o.
12601 * debug.c: New file.
12602 * debug.h: New file.
12603 * linux-aarch64-low.c (*): Update all debugging printfs to use
12604 debug_printf instead of fprintf.
12605 * linux-arm-low.c (*): Ditto.
12606 * linux-cris-low.c (*): Ditto.
12607 * linux-crisv32-low.c (*): Ditto.
12608 * linux-m32r-low.c (*): Ditto.
12609 * linux-sparc-low.c (*): Ditto.
12610 * linux-x86.c (*): Ditto.
12611 * linux-low.c (*): Ditto.
12612 (linux_wait_1): Add calls to debug_enter, debug_exit.
12613 (linux_wait): Remove redundant debugging printf.
12614 (stop_all_lwps): Add calls to debug_enter, debug_exit.
12615 (linux_resume, unstop_all_lwps): Ditto.
12616 * mem-break.c (*): Update all debugging printfs to use
12617 debug_printf instead of fprintf.
12618 * remote-utils.c (*): Ditto.
12619 * thread-db.c (*): Ditto.
12620 * server.c #include <ctype.h>, "gdb_vecs.h".
12621 (debug_threads): Moved to debug.c.
12622 (*): Update all debugging printfs to use debug_printf instead of
12624 (start_inferior): Replace call to fflush with call to debug_flush.
12625 (monitor_show_help): Mention set debug-format.
12626 (parse_debug_format_options): New function.
12627 (handle_monitor_command): Handle "monitor set debug-format".
12628 (gdbserver_usage): Mention --debug-format.
12629 (main): Parse --debug-format.
12630 * server.h (debug_threads): Declaration moved to debug.h.
12631 #include "debug.h".
12632 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
12633 trace_debug_1 that uses debug_printf.
12634 (tracepoint_look_up_symbols): Update all debugging printfs to use
12635 debug_printf instead of fprintf.
12637 2014-01-20 Baruch Siach <baruch@tkos.co.il>
12639 * linux-xtensa-low.c: Include asm/ptrace.h instead of
12642 2014-01-17 Pedro Alves <palves@redhat.com>
12645 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
12646 defined after including gdb_proc_service.h.
12648 2014-01-16 Doug Evans <dje@google.com>
12650 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
12651 (match_dll): Use it.
12653 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12655 * target.h (target_ops) <read_btrace>: Change parameters and
12656 return type to allow error reporting.
12657 * server.c (handle_qxfer_btrace): Support delta reads. Pass
12658 trace reading errors on.
12659 * linux-low.c (linux_low_read_btrace): Pass trace reading
12661 (linux_low_disable_btrace): New.
12663 2014-01-15 Doug Evans <dje@google.com>
12665 * inferiors.c (thread_id_to_gdb_id): Delete.
12666 * inferiors.h (thread_id_to_gdb_id): Delete.
12668 2014-01-13 Eli Zaretskii <eliz@gnu.org>
12670 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
12671 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
12674 2014-01-08 Pedro Alves <palves@redhat.com>
12676 * server.c (handle_status): Don't discard previous queued stop
12677 replies or thread's pending status here.
12678 (main) <disconnection>: Do it here instead.
12680 2014-01-08 Pedro Alves <palves@redhat.com>
12682 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
12683 * server.c (visit_actioned_threads, handle_pending_status): New
12685 (handle_v_cont): Factor out parts to ...
12686 (resume): ... this new function. If in all-stop, and a thread
12687 being resumed has a pending status, report it without actually
12689 (myresume): Adjust to use the new 'resume' function.
12690 (clear_pending_status_callback, set_pending_status_callback)
12691 (find_status_pending_thread_callback): New functions.
12692 (handle_status): Handle the case of multiple threads having
12693 interesting statuses to report. Report threads' real last signal
12694 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
12695 with an interesting thread to report the status for, instead of
12696 always reporting the status of the first thread.
12698 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12700 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
12701 * gdbreplay.c (gdbreplay_version): Likewise.
12703 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
12705 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
12706 iov.iov_len with the real length in use.
12708 2013-12-13 Joel Brobecker <brobecker@adacore.com>
12710 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
12711 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
12712 for all targets that use win32-low.c.
12713 * win32-low.c (win32_ensure_ntdll_loaded): New function.
12714 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
12716 2013-12-13 Pedro Alves <palves@redhat.com>
12718 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
12719 if equal to TARGET_WAITKIND_LOADED.
12720 * win32-low.c (cached_status): New static global.
12721 (win32_wait): Add declaration.
12722 (do_initial_child_stuff): Flush all initial pending debug events
12723 up to the initial breakpoint.
12724 (win32_wait): If CACHED_STATUS was set, return that instead
12725 of doing a real wait. Remove the code resuming the execution
12726 of the inferior after receiving a TARGET_WAITKIND_LOADED event
12727 during the initial phase. Also remove the code changing
12728 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
12729 TARGET_WAITKIND_STOPPED.
12731 2013-12-11 Yao Qi <yao@codesourcery.com>
12733 * notif.c (handle_notif_ack): Return 0 if no notification
12736 2013-11-20 Doug Evans <dje@google.com>
12738 * linux-low.c (linux_set_resume_request): Fix comment.
12740 2013-11-20 Doug Evans <dje@google.com>
12742 * linux-low.c (resume_status_pending_p): Tweak comment.
12744 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
12746 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
12747 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
12748 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
12749 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
12750 (srv_amd64_regobj): Add amd64-mpx.o.
12751 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
12752 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
12753 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
12754 * i387-fp.c (num_pl_bnd_register) Added constant.
12755 (num_pl_bnd_cfg_registers) Added constant.
12756 (struct i387_xsave) Added reserved area and MPX fields.
12757 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
12758 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
12760 (tdesc_i386_mpx_linux): Add MPX amd64 target.
12761 (init_registers_amd64_mpx_linux): Declare new function.
12762 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
12763 (x86_64_regmap): Add MPX registers.
12764 (x86_linux_read_description): Add MPX case.
12765 (initialize_low_arch): Initialize MPX targets.
12767 2013-11-18 Tom Tromey <tromey@redhat.com>
12769 * configure: Rebuild.
12770 * configure.ac: Don't check for stdlib.h.
12771 * gdbreplay.c: Unconditionally include stdlib.h.
12773 2013-11-18 Tom Tromey <tromey@redhat.com>
12775 * config.in: Rebuild.
12776 * configure: Rebuild.
12777 * configure.ac: Don't use AC_HEADER_DIRENT.
12779 2013-11-18 Tom Tromey <tromey@redhat.com>
12781 * server.h: Don't check HAVE_STRING_H.
12782 * gdbreplay.c: Don't check HAVE_STRING_H.
12783 * configure: Rebuild.
12785 2013-11-18 Tom Tromey <tromey@redhat.com>
12787 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
12790 2013-11-08 Tom Tromey <tromey@redhat.com>
12792 * configure, config.in: Rebuild.
12793 * configure.ac: Remove unused configury.
12795 2013-11-08 Tom Tromey <tromey@redhat.com>
12797 * acinclude.m4: Include common.m4, codeset.m4.
12798 * configure, config.in: Rebuild.
12799 * configure.ac: Use GDB_AC_COMMON.
12801 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
12803 * linux-s390-low.c (HWCAP_S390_TE): New define.
12804 (s390_arch_setup): Consider the TE field in the HWCAP for
12805 determining 'have_regset_tdb'.
12807 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
12810 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
12813 2013-10-02 Pedro Alves <palves@redhat.com>
12815 * server.c (process_serial_event): Don't output "GDBserver
12816 exiting" if GDB is connected through stdio.
12817 * target.c (mywait): Likewise, be silent if GDB is connected
12820 2013-10-01 Joel Brobecker <brobecker@adacore.com>
12822 * lynx-low.c (lynx_add_threads_after_attach): New function.
12823 (lynx_attach): Remove call to add_thread. Add call to
12824 lynx_add_threads_after_attach instead.
12826 2013-09-28 Mike Frysinger <vapier@gentoo.org>
12828 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
12829 * config.in, configure: Regenerated.
12831 2013-09-18 Yao Qi <yao@codesourcery.com>
12834 * server.c (start_inferior): Clear 'resume_info'.
12836 2013-09-16 Jiong Wang <jiwang@tilera.com>
12838 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
12841 2013-09-16 Jiong Wang <jiwang@tilera.com>
12843 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
12844 linux-tile-low.o to srv_tgtobj.
12846 2013-09-16 Will Newton <will.newton@linaro.org>
12848 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
12851 2013-09-06 Pedro Alves <palves@redhat.com>
12853 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
12854 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
12855 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
12856 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
12857 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
12858 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
12860 2013-09-06 Pedro Alves <palves@redhat.com>
12862 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
12863 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
12865 2013-09-06 Pedro Alves <palves@redhat.com>
12867 * linux-amd64-ipa.c: Include tracepoint.h.
12868 * linux-i386-ipa.c: Include tracepoint.h.
12870 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
12872 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
12873 (ps_get_thread_area): New function.
12875 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
12877 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
12878 (initialize_low_arch): Call init_registers_crisv32 rather than
12879 init_register_crisv32.
12881 2013-09-05 Pedro Alves <palves@redhat.com>
12883 * server.h (handle_vFile, hostio_last_error_from_errno): Move
12885 * hostio.h: ... this new file.
12886 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
12887 win32-low.c: Include hostio.h.
12889 2013-09-05 Pedro Alves <palves@redhat.com>
12891 * server.h (gdb_client_data, handler_func, callback_handler_func)
12892 (delete_file_handler, add_file_handler, append_callback_event)
12893 (delete_callback_event, start_event_loop, initialize_event_loop):
12894 Move to event-loop.h and include it.
12895 * event-loop.h: New file.
12897 2013-09-05 Pedro Alves <palves@redhat.com>
12899 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
12900 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
12901 (loaded_dll, unloaded_dll): Move to ...
12902 * dll.h: ... this new file.
12903 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
12905 2013-09-05 Pedro Alves <palves@redhat.com>
12907 * server.h (current_process, get_thread_process, all_processes)
12908 (add_inferior_to_list, for_each_inferior, current_inferior)
12909 (remove_inferior, add_process, remove_process, find_process_pid)
12910 (have_started_inferiors_p, have_attached_inferiors_p)
12911 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
12912 (clear_inferiors, find_inferior, find_inferior_id)
12913 (inferior_target_data, set_inferior_target_data)
12914 (inferior_regcache_data, set_inferior_regcache_data): Move to
12915 inferiors.h, and include it.
12916 * inferiors.h: New file.
12918 2013-09-05 Pedro Alves <palves@redhat.com>
12920 * server.h (struct emit_ops, current_insn_ptr, emit_error):
12924 2013-09-05 Pedro Alves <palves@redhat.com>
12926 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
12928 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
12929 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
12930 (handle_tracepoint_general_set, handle_tracepoint_query)
12931 (tracepoint_finished_step, tracepoint_was_hit)
12932 (release_while_stepping_state_list, current_traceframe)
12933 (in_readonly_region, traceframe_read_mem)
12934 (fetch_traceframe_registers, traceframe_read_sdata)
12935 (traceframe_read_info, struct fast_tpoint_collect_status)
12936 (fast_tracepoint_collecting, force_unlock_trace_buffer)
12937 (handle_tracepoit_bkpts, initialize_low_tracepoint)
12938 (supply_fast_tracepoint_registers)
12939 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
12940 (ipa_tdesc, claim_trampoline_space)
12941 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
12942 (agent_mem_read, agent_get_trace_state_variable_value)
12943 (agent_set_trace_state_variable_value, agent_tsv_read)
12944 (agent_mem_read_string, get_raw_reg_func_addr)
12945 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
12946 * tracepoint.h: ... this new file.
12948 2013-09-05 Pedro Alves <palves@redhat.com>
12950 * server.h (perror_with_name, error, fatal, warning, paddress)
12951 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
12953 * utils.h: New file.
12955 2013-09-05 Pedro Alves <palves@redhat.com>
12957 * server.h (remote_debug, noack_mode, transport_is_reliable)
12958 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
12959 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
12960 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
12961 (write_enn, initialize_async_io, enable_async_io)
12962 (disable_async_io, check_remote_input_interrupt_request)
12963 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
12964 (dead_thread_notify, prepare_resume_reply)
12965 (decode_address_to_semicolon, decode_address, decode_m_packet)
12966 (decode_M_packet, decode_X_packet, decode_xfer_write)
12967 (decode_search_memory_packet, unhexify, hexify)
12968 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
12969 (look_up_one_symbol, relocate_instruction)
12970 (monitor_output): Move to remote-utils.h, and include it.
12971 * remote-utils.h: New file.
12973 2013-09-05 Pedro Alves <palves@redhat.com>
12975 * server.h (_): Delete.
12977 2013-09-02 Pedro Alves <palves@redhat.com>
12979 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
12980 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
12982 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
12984 2013-09-02 Pierre Muller <muller@sourceware.org>
12986 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
12987 or WriteProcessMemory complete successfully and handle
12988 ERROR_PARTIAL_COPY error.
12990 2013-09-02 Pedro Alves <palves@redhat.com>
12992 * server.c (gdb_read_memory): Return -1 on traceframe memory read
12993 error instead of EIO.
12995 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
12998 * linux-low.c: Include filestuff.h.
12999 (linux_create_inferior) <pid == 0>: Call close_most_fds.
13000 * lynx-low.c: Include filestuff.h.
13001 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
13002 * server.c: Include filestuff.h.
13003 (main): Call notice_open_fds.
13004 * spu-low.c: Include filestuff.h.
13005 (spu_create_inferior) <pid == 0>: Call close_most_fds.
13007 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
13009 * Makefile.in: Explain why ../target and ../nat are not
13010 listed as include file search paths.
13011 (linux-waitpid.o): New object file rule.
13012 * configure.srv (srv_native_linux_obj): New variable.
13013 Replace all occurrences of linux native object files with
13014 $srv_native_linux_obj.
13015 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
13016 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
13017 (linux_enable_event_reporting): Remove declaration.
13018 (my_waitpid): Moved to common/linux-waitpid.c.
13019 (linux_wait_for_event): Pass ptid when calling
13020 linux_enable_event_reporting.
13021 (linux_supports_tracefork_flag): Remove.
13022 (linux_enable_event_reporting): Likewise.
13023 (linux_tracefork_grandchild): Remove.
13024 (STACK_SIZE): Moved to common/linux-ptrace.c.
13025 (linux_tracefork_child): Remove.
13026 (linux_test_for_tracefork): Remove.
13027 (linux_look_up_symbols): Call linux_supports_traceclone.
13028 (initialize_low): Remove call to linux_test_for_tracefork.
13029 * linux-low.h (PTRACE_TYPE_ARG3): Move to
13030 common/linux-ptrace.h.
13031 (PTRACE_TYPE_ARG4): Likewise.
13032 Include linux-ptrace.h.
13034 2013-08-21 Pedro Alves <palves@redhat.com>
13036 * config.in: Renegerate.
13038 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
13040 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
13041 (SFILES): Remove $(srcdir)/common/target-common.c and
13042 add $(srcdir)/target/waitstatus.c.
13043 (OBS): Remove target-common.o and add waitstatus.o.
13044 (server_h): Remove $(srcdir)/../common/target-common.h and
13045 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
13046 and $(srcdir)/../target/waitstatus.h.
13047 (target-common.o): Remove.
13048 (waitstatus.o): New target object file.
13049 * target.h: Do not include target-common.h and
13050 include target/resume.h, target/wait.h and
13051 target/waitstatus.h.
13053 2013-08-13 Luis Machado <lgustavo@codesourcery.com>
13055 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13056 to PTRACE_TYPE_ARG3.
13057 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13058 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
13060 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
13061 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
13063 2013-07-27 Jie Zhang <jie@codesourcery.com>
13064 Daniel Jacobowitz <dan@codesourcery.com>
13065 Yao Qi <yao@codesourcery.com>
13067 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
13068 (mips-linux-watch.o): New rule.
13069 (mips_linux_watch_h): New variable.
13070 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
13072 * linux-mips-low.c: Include mips-linux-watch.h.
13073 (struct arch_process_info, struct arch_lwp_info): New.
13074 (update_watch_registers_callback): New function.
13075 (mips_linux_new_process, mips_linux_new_thread) New functions.
13076 (mips_linux_prepare_to_resume, mips_insert_point): New
13078 (mips_remove_point, mips_stopped_by_watchpoint): New
13080 (rsp_bp_type_to_target_hw_bp_type): New function.
13081 (mips_stopped_data_address): New function.
13082 (the_low_target): Add watchpoint support functions.
13084 2013-07-27 Yao Qi <yao@codesourcery.com>
13086 * i386-low.c: Include break-common.h.
13087 (enum target_hw_bp_type): Remove.
13089 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
13091 * Makefile.in (SFILES): /common/target-common.c.
13092 (OBS): Add target-common.o.
13093 (server_h): Add $(srcdir)/../common/target-common.h.
13094 (target-common.o): New target.
13095 * server.c (queue_stop_reply_callback): Free
13096 status string after use.
13097 * target.c (target_waitstatus_to_string): Remove.
13098 * target.h: Include target-common.h.
13099 (resume_kind): Likewise.
13100 (target_waitkind): Likewise.
13101 (target_waitstatus): Likewise.
13102 (TARGET_WNOHANG): Likewise.
13104 2013-07-04 Yao Qi <yao@codesourcery.com>
13106 * Makefile.in (host_alias): Use @host_noncanonical@.
13107 (target_alias): Use @target_noncanonical@.
13108 * configure.ac: Use ACX_NONCANONICAL_TARGET and
13109 ACX_NONCANONICAL_HOST.
13110 * configure: Regenerated.
13113 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13115 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13116 * configure: Rebuild.
13117 * Makefile.in (version_host, version_target): Get from configure.
13118 (version.c): Use $(version_host) and $(version_target).
13120 2013-07-03 Pedro Alves <palves@redhat.com>
13122 * Makefile.in (config.status): Depend on development.sh.
13123 * acinclude.m4: Include libmcheck.m4.
13124 * configure: Regenerate.
13126 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13128 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
13129 attribute inside the parentheses.
13130 (winapi_DebugSetProcessKillOnExit): Ditto.
13131 (winapi_DebugBreakProcess): Ditto.
13132 (winapi_GenerateConsoleCtrlEvent): Ditto.
13134 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13136 * notif.h (notif_event): Add a dummy member to avoid compiler
13139 2013-07-01 Pedro Alves <palves@redhat.com>
13141 * hostio.c (HOSTIO_PATH_MAX): Define.
13142 (require_filename, handle_open, handle_unlink, handle_readlink):
13145 2013-07-01 Pedro Alves <palves@redhat.com>
13147 * server.h: Include "pathmax.h".
13148 * linux-low.c: Don't include sys/param.h.
13149 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
13151 * win32-low.c: Don't include sys/param.h.
13152 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
13154 2013-07-01 Pedro Alves <palves@redhat.com>
13156 * event-loop.c: Don't check HAVE_UNISTD_H before including
13158 * gdbreplay.c: Likewise.
13159 * remote-utils.c: Likewise.
13160 * server.c: Likewise.
13161 * configure.ac: Don't check for unistd.h.
13162 * configure: Regenerate.
13164 2013-06-28 Tom Tromey <tromey@redhat.com>
13166 * Makefile.in (version.c): Use version.in, not
13169 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13171 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13172 * configure: Rebuild.
13173 * Makefile.in (version_host, version_target): Get from configure.
13174 (version.c): Use $(version_host) and $(version_target).
13176 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13178 Fix trace-status to output user name without trailing colon.
13179 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
13181 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13183 Fix trace-status to output proper start-time and stop-time.
13184 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
13185 output start time and stop time in hex as gdb expects.
13187 2013-06-26 Pedro Alves <pedro@codesourcery.com>
13189 * tracepoint.c (build_traceframe_info_xml): Output trace state
13190 variables present in the trace buffer.
13192 2013-06-24 Tom Tromey <tromey@redhat.com>
13194 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
13196 (version.o): Remove.
13197 * gdbreplay.c: Include version.h.
13198 (version, host_name): Don't declare.
13199 * server.h: Include version.h.
13200 (version, host_name): Don't declare.
13202 2013-06-12 Pedro Alves <palves@redhat.com>
13204 * linux-x86-low.c (linux_is_elf64): Delete global.
13205 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
13206 with local linux_pid_exe_is_elf_64_file use.
13208 2013-06-11 Pedro Alves <palves@redhat.com>
13210 * linux-low.c (regset_disabled, disable_regset): New functions.
13211 (regsets_fetch_inferior_registers)
13212 (regsets_store_inferior_registers): Use them.
13213 (initialize_regsets_info); Don't allocate the disabled_regsets
13215 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
13218 2013-06-11 Pedro Alves <palves@redhat.com>
13220 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
13223 2013-06-11 Pedro Alves <palves@redhat.com>
13225 * linux-x86-low.c (initialize_low_arch): Call
13226 init_registers_x32_avx_linux.
13228 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13230 Fix compatibility with Android Bionic.
13231 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
13234 2013-06-07 Pedro Alves <palves@redhat.com>
13237 * Makefile.in (OBS): Add tdesc.o.
13238 (IPA_OBJS): Add tdesc-ipa.o.
13239 (tdesc-ipa.o): New rule.
13240 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
13242 * linux-low.c (new_inferior): Delete.
13243 (disabled_regsets, num_regsets): Delete.
13244 (linux_add_process): Adjust to set the new per-process
13246 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
13247 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
13248 was a stop. When calling arch_setup, switch the current inferior
13249 to the thread that got an event.
13250 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
13251 (regsets_fetch_inferior_registers)
13252 (regsets_store_inferior_registers): New regsets_info parameter.
13254 (linux_register_in_regsets): New regs_info parameter. Adjust to
13256 (register_addr, fetch_register, store_register): New usrregs_info
13257 parameter. Adjust to use it.
13258 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
13259 parameter regs_info. Adjust to use it.
13260 (linux_fetch_registers): Get the current inferior's regs_info, and
13262 (linux_store_registers): Ditto.
13263 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
13264 (initialize_low): Don't initialize the target_regsets here. Call
13265 initialize_low_arch.
13266 * linux-low.h (target_regsets): Delete declaration.
13267 (struct regsets_info): New.
13268 (struct usrregs_info): New.
13269 (struct regs_info): New.
13270 (struct process_info_private) <new_inferior>: New field.
13271 (struct linux_target_ops): Delete the num_regs, regmap, and
13272 regset_bitmap fields. New field regs_info.
13273 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
13274 * i387-fp.c (num_xmm_registers): Delete.
13275 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
13276 calls to new interface.
13277 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
13278 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
13279 Infer the number of xmm registers from the regcache's target
13281 * i387-fp.h (num_xmm_registers): Delete.
13282 * inferiors.c (add_thread): Don't install the thread's regcache
13284 * proc-service.c (gregset_info): Fetch the current inferior's
13285 regs_info. Adjust to use it.
13286 * regcache.c: Include tdesc.h.
13287 (register_bytes, reg_defs, num_registers)
13288 (gdbserver_expedite_regs): Delete.
13289 (get_thread_regcache): If the thread doesn't have a regcache yet,
13290 create one, instead of aborting gdbserver.
13291 (regcache_invalidate_one): Rename to ...
13292 (regcache_invalidate_thread): ... this.
13293 (regcache_invalidate_one): New.
13294 (regcache_invalidate): Only invalidate registers of the current
13296 (init_register_cache): Add target_desc parameter, and use it.
13297 (new_register_cache): Ditto. Assert the target description has a
13298 non zero registers_size.
13299 (regcache_cpy): Add assertions. Adjust.
13300 (realloc_register_cache, set_register_cache): Delete.
13301 (registers_to_string, registers_from_string): Adjust.
13302 (find_register_by_name, find_regno, find_register_by_number)
13303 (register_cache_size): Add target_desc parameter, and use it.
13304 (free_register_cache_thread, free_register_cache_thread_one)
13305 (regcache_release, register_cache_size): New.
13306 (register_size): Add target_desc parameter, and use it.
13307 (register_data, supply_register, supply_register_zeroed)
13308 (supply_regblock, supply_register_by_name, collect_register)
13309 (collect_register_as_string, collect_register_by_name): Adjust.
13310 * regcache.h (struct target_desc): Forward declare.
13311 (struct regcache) <tdesc>: New field.
13312 (init_register_cache, new_register_cache): Add target_desc
13314 (regcache_invalidate_thread): Declare.
13315 (regcache_invalidate_one): Delete declaration.
13316 (regcache_release): Declare.
13317 (find_register_by_number, register_cache_size, register_size)
13318 (find_regno): Add target_desc parameter.
13319 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
13321 * remote-utils.c: Include tdesc.h.
13322 (outreg, prepare_resume_reply): Adjust.
13323 * server.c: Include tdesc.h.
13324 (gdbserver_xmltarget): Delete declaration.
13325 (get_features_xml, process_serial_event): Adjust.
13326 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
13328 (struct process_info) <tdesc>: New field.
13329 (ipa_tdesc): Declare.
13330 * tdesc.c: New file.
13331 * tdesc.h: New file.
13332 * tracepoint.c: Include tdesc.h.
13333 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
13334 (get_context_regcache): Adjust to pass ipa_tdesc down.
13335 (do_action_at_tracepoint): Adjust to get the register cache size
13336 from the context regcache's description.
13337 (traceframe_walk_blocks): Adjust to get the register cache size
13338 from the current trace frame's description.
13339 (traceframe_get_pc): Adjust to get current trace frame's
13340 description and pass it down.
13341 (gdb_collect): Adjust to get the register cache size from the
13343 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
13344 (gdbserver_xmltarget): Delete.
13345 (initialize_low_tracepoint): Set the ipa's target description.
13346 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
13347 (initialize_low_tracepoint): Set the ipa's target description.
13348 * linux-x86-low.c: Include tdesc.h.
13349 [__x86_64__] (is_64bit_tdesc): New.
13350 (ps_get_thread_area, x86_get_thread_area): Use it.
13351 (i386_cannot_store_register): Rename to ...
13352 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
13353 (i386_cannot_fetch_register): Rename to ...
13354 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
13355 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
13357 (target_regsets): Rename to ...
13358 (x86_regsets): ... this.
13359 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
13361 (x86_siginfo_fixup): Use is_64bit_tdesc.
13362 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
13363 (tdesc_x32_avx_linux, tdesc_x32_linux)
13364 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
13366 (x86_linux_update_xmltarget): Delete.
13367 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
13368 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
13369 (AMD64_LINUX_USER64_CS): New.
13370 (x86_linux_read_description): New, based on
13371 x86_linux_update_xmltarget.
13372 (same_process_callback): New.
13373 (x86_arch_setup_process_callback): New.
13374 (x86_linux_update_xmltarget): New.
13375 (x86_regsets_info): New.
13376 (amd64_linux_regs_info): New.
13377 (i386_linux_usrregs_info): New.
13378 (i386_linux_regs_info): New.
13379 (x86_linux_regs_info): New.
13380 (x86_arch_setup): Reimplement.
13381 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
13382 (x86_emit_ops): Ditto.
13383 (the_low_target): Adjust. Install x86_linux_regs_info,
13384 x86_cannot_fetch_register, and x86_cannot_store_register.
13385 (initialize_low_arch): New.
13386 * linux-ia64-low.c (tdesc_ia64): Declare.
13387 (ia64_fetch_register): Adjust.
13388 (ia64_usrregs_info, regs_info): New globals.
13389 (ia64_regs_info): New function.
13390 (the_low_target): Adjust.
13391 (initialize_low_arch): New function.
13392 * linux-sparc-low.c (tdesc_sparc64): Declare.
13393 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
13395 (sparc_arch_setup): New function.
13396 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
13397 (the_low_target): Adjust.
13398 (initialize_low_arch): New function.
13399 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
13400 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
13401 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
13402 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
13403 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
13404 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
13405 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
13406 (tdesc_powerpc_isa205_vsx64l): Declare.
13407 (ppc_cannot_store_register, ppc_collect_ptrace_register)
13408 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
13409 (ppc_set_pc, ppc_get_hwcap): Adjust.
13410 (ppc_usrregs_info): Forward declare.
13411 (!__powerpc64__) ppc_regmap_adjusted: New global.
13412 (ppc_arch_setup): Adjust to the current process'es target
13414 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
13415 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
13416 (ppc_store_evrregset): Adjust.
13417 (target_regsets): Rename to ...
13418 (ppc_regsets): ... this, and make static.
13419 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
13420 (ppc_regs_info): New function.
13421 (the_low_target): Adjust.
13422 (initialize_low_arch): New function.
13423 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
13424 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
13425 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
13426 (tdesc_s390x_linux64v2): Declare.
13427 (s390_collect_ptrace_register, s390_supply_ptrace_register)
13428 (s390_fill_gregset, s390_store_last_break): Adjust.
13429 (target_regsets): Rename to ...
13430 (s390_regsets): ... this, and make static.
13431 (s390_get_pc, s390_set_pc): Adjust.
13432 (s390_get_hwcap): New target_desc parameter, and use it.
13433 [__s390x__] (have_hwcap_s390_high_gprs): New global.
13434 (s390_arch_setup): Adjust to set the current process'es target
13435 description. Don't adjust the regmap.
13436 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
13437 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
13438 (regs_info_3264): New globals.
13439 (s390_regs_info): New function.
13440 (the_low_target): Adjust.
13441 (initialize_low_arch): New function.
13442 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
13443 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
13444 [__mips64] (init_registers_mips_linux)
13445 (init_registers_mips_dsp_linux): Delete defines.
13446 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
13447 (have_dsp): New global.
13448 (mips_read_description): New, based on mips_arch_setup.
13449 (mips_arch_setup): Reimplement.
13450 (get_usrregs_info): New function.
13451 (mips_cannot_fetch_register, mips_cannot_store_register)
13452 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
13453 (mips_fill_fpregset, mips_store_fpregset): Adjust.
13454 (target_regsets): Rename to ...
13455 (mips_regsets): ... this, and make static.
13456 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
13457 (dsp_regs_info, regs_info): New globals.
13458 (mips_regs_info): New function.
13459 (the_low_target): Adjust.
13460 (initialize_low_arch): New function.
13461 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
13462 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
13464 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
13465 (arm_read_description): New, with bits factored from
13467 (arm_arch_setup): Reimplement.
13468 (target_regsets): Rename to ...
13469 (arm_regsets): ... this, and make static.
13470 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
13471 (arm_regs_info): New function.
13472 (the_low_target): Adjust.
13473 (initialize_low_arch): New function.
13474 * linux-m68k-low.c (tdesc_m68k): Declare.
13475 (target_regsets): Rename to ...
13476 (m68k_regsets): ... this, and make static.
13477 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
13478 (m68k_regs_info): New function.
13479 (m68k_arch_setup): New function.
13480 (the_low_target): Adjust.
13481 (initialize_low_arch): New function.
13482 * linux-sh-low.c (tdesc_sharch): Declare.
13483 (target_regsets): Rename to ...
13484 (sh_regsets): ... this, and make static.
13485 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
13486 (sh_regs_info, sh_arch_setup): New functions.
13487 (the_low_target): Adjust.
13488 (initialize_low_arch): New function.
13489 * linux-bfin-low.c (tdesc_bfin): Declare.
13490 (bfin_arch_setup): New function.
13491 (bfin_usrregs_info, regs_info): New globals.
13492 (bfin_regs_info): New function.
13493 (the_low_target): Adjust.
13494 (initialize_low_arch): New function.
13495 * linux-cris-low.c (tdesc_cris): Declare.
13496 (cris_arch_setup): New function.
13497 (cris_usrregs_info, regs_info): New globals.
13498 (cris_regs_info): New function.
13499 (the_low_target): Adjust.
13500 (initialize_low_arch): New function.
13501 * linux-cris-low.c (tdesc_crisv32): Declare.
13502 (cris_arch_setup): New function.
13503 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
13504 (cris_regs_info): New function.
13505 (the_low_target): Adjust.
13506 (initialize_low_arch): New function.
13507 * linux-m32r-low.c (tdesc_m32r): Declare.
13508 (m32r_arch_setup): New function.
13509 (m32r_usrregs_info, regs_info): New globals.
13510 (m32r_regs_info): Adjust.
13511 (initialize_low_arch): New function.
13512 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
13513 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
13514 (tic6x_usrregs_info): Forward declare.
13515 (tic6x_read_description): New function, based on ...
13516 (tic6x_arch_setup): ... this. Reimplement.
13517 (target_regsets): Rename to ...
13518 (tic6x_regsets): ... this, and make static.
13519 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
13520 (tic6x_regs_info): New function.
13521 (the_low_target): Adjust.
13522 (initialize_low_arch): New function.
13523 * linux-xtensa-low.c (tdesc_xtensa): Declare.
13524 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
13525 (target_regsets): Rename to ...
13526 (xtensa_regsets): ... this, and make static.
13527 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
13529 (xtensa_arch_setup, xtensa_regs_info): New functions.
13530 (the_low_target): Adjust.
13531 (initialize_low_arch): New function.
13532 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
13533 (nios2_arch_setup): Set the current process'es tdesc.
13534 (target_regsets): Rename to ...
13535 (nios2_regsets): ... this.
13536 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
13537 (nios2_regs_info): New function.
13538 (the_low_target): Adjust.
13539 (initialize_low_arch): New function.
13540 * linux-aarch64-low.c (tdesc_aarch64): Declare.
13541 (aarch64_arch_setup): Set the current process'es tdesc.
13542 (target_regsets): Rename to ...
13543 (aarch64_regsets): ... this.
13544 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
13545 (aarch64_regs_info): New function.
13546 (the_low_target): Adjust.
13547 (initialize_low_arch): New function.
13548 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
13550 (target_regsets): Rename to ...
13551 (tile_regsets): ... this.
13552 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
13553 (tile_regs_info): New function.
13554 (tile_arch_setup): Set the current process'es tdesc.
13555 (the_low_target): Adjust.
13556 (initialize_low_arch): New function.
13557 * spu-low.c (tdesc_spu): Declare.
13558 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
13559 * win32-arm-low.c (tdesc_arm): Declare.
13560 (arm_arch_setup): New function.
13561 (the_low_target): Install arm_arch_setup instead of
13562 init_registers_arm.
13563 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
13564 (init_windows_x86): Rename to ...
13565 (i386_arch_setup): ... this. Set `win32_tdesc'.
13566 (the_low_target): Adjust.
13567 * win32-low.c (win32_tdesc): New global.
13568 (child_add_thread): Don't create the thread cache here.
13569 (do_initial_child_stuff): Set the new process'es tdesc.
13570 * win32-low.h (struct target_desc): Forward declare.
13571 (win32_tdesc): Declare.
13572 * lynx-i386-low.c (tdesc_i386): Declare global.
13573 (lynx_i386_arch_setup): Set `lynx_tdesc'.
13574 * lynx-low.c (lynx_tdesc): New global.
13575 (lynx_add_process): Set the new process'es tdesc.
13576 * lynx-low.h (struct target_desc): Forward declare.
13577 (lynx_tdesc): Declare global.
13578 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
13579 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
13580 * nto-low.c (nto_tdesc): New global.
13581 (do_attach): Set the new process'es tdesc.
13582 * nto-low.h (struct target_desc): Forward declare.
13583 (nto_tdesc): Declare.
13584 * nto-x86-low.c (tdesc_i386): Declare.
13585 (nto_x86_arch_setup): Set `nto_tdesc'.
13587 2013-06-04 Gary Benson <gbenson@redhat.com>
13589 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
13590 to qSupported response when appropriate.
13591 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
13592 with nonzero-length annex.
13593 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
13594 arguments supplied in annex.
13596 2013-05-31 Doug Evans <dje@google.com>
13599 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
13600 64 bits in 64-cross-32 environment.
13602 2013-05-28 Pedro Alves <palves@redhat.com>
13604 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
13605 (aarch64-without-fpu.c): Delete rule.
13606 * configure.srv (aarch64*-*-linux*): Remove references to
13607 aarch64-without-fpu.o and aarch64-without-fpu.xml.
13608 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
13611 2013-05-24 Pedro Alves <palves@redhat.com>
13613 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
13614 instead of strchr/decode_address. Error if the range isn't split
13615 with a ','. Don't assume there's be a ':' in the action.
13617 2013-05-23 Yao Qi <yao@codesourcery.com>
13618 Pedro Alves <palves@redhat.com>
13620 * linux-low.c (lwp_in_step_range): New function.
13621 (linux_wait_1): If the thread was range stepping and stopped
13622 outside the stepping range, report the stop to GDB. Otherwise,
13623 continue stepping. Add range stepping debug output.
13624 (linux_set_resume_request): Copy the step range from the resume
13625 request to the lwp.
13626 (linux_supports_range_stepping): New.
13627 (linux_target_ops) <supports_range_stepping>: Set to
13628 linux_supports_range_stepping.
13629 * linux-low.h (struct linux_target_ops)
13630 <supports_range_stepping>: New field.
13631 (struct lwp_info) <step_range_start, step_range_end>: New fields.
13632 * linux-x86-low.c (x86_supports_range_stepping): New.
13633 (the_low_target) <supports_range_stepping>: Set to
13634 x86_supports_range_stepping.
13635 * server.c (handle_v_cont): Handle 'r' action.
13636 (handle_v_requests): Append ";r" if the target supports range
13638 * target.h (struct thread_resume) <step_range_start,
13639 step_range_end>: New fields.
13640 (struct target_ops) <supports_range_stepping>:
13642 (target_supports_range_stepping): New macro.
13644 2013-05-17 Joel Brobecker <brobecker@adacore.com>
13646 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
13647 confusion in comment.
13649 2013-05-17 Joel Brobecker <brobecker@adacore.com>
13651 * lynx-low.c (struct process_info_private): New type.
13652 (lynx_add_process): New function.
13653 (lynx_create_inferior, lynx_attach): Replace calls to
13654 add_process by calls to lynx_add_process.
13655 (lynx_resume): If PTID is null, then try using
13656 current_process()->private->last_wait_event_ptid.
13658 (lynx_clear_inferiors): Delete. The contents of that function
13659 has been inlined in lynx_mourn;
13660 (lynx_wait_1): Save the ptid in the process's private data.
13661 (lynx_mourn): Free the process' private data. Replace call
13662 to lynx_clear_inferiors by call to clear_inferiors.
13664 2013-05-17 Yao Qi <yao@codesourcery.com>
13666 * i386-low.c (i386_length_and_rw_bits): Move the comment to
13669 2013-05-16 Luis Machado <lgustavo@codesourcery.com>
13671 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
13672 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
13673 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
13674 PT_TEXT_END_ADDR guards. Update comments.
13675 (linux_target_op) <read_offsets>: Conditionally define to
13676 linux_read_offsets if the target is UCLIBC and if it defines
13677 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
13679 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
13680 Andrew Jenner <andrew@codesourcery.com>
13682 * Makefile.in (SFILES): Add linux-nios2-low.c.
13683 (clean): Add action to delete nios2-linux.c.
13684 (nios2-linux.c): New rule.
13685 * configure.srv: Add nios2*-*-linux*.
13686 * linux-nios2-low.c: New.
13688 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
13690 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
13692 2013-04-25 Hui Zhu <hui@codesourcery.com>
13695 * ax.c (ax_printf): Add fflush.
13697 2013-04-22 Tom Tromey <tromey@redhat.com>
13699 * Makefile.in (SFILES): Add filestuff.c.
13700 (OBS): Add filestuff.o.
13701 (filestuff.o): New target.
13702 * config.in, configure: Rebuild.
13703 * configure.ac: Check for fdwalk, pipe2.
13705 2013-04-17 Pedro Alves <palves@redhat.com>
13707 * configure.ac (USE_THREAD_DB): Delete variable.
13708 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
13709 Don't AC_SUBST USE_THREAD_DB.
13710 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
13711 * config.in, configure: Regenerate.
13713 2013-04-16 Pedro Alves <palves@redhat.com>
13715 * linux-low.h (struct lwp_info) <thread_known>: Move under
13716 the USE_THREAD_DB #ifdef.
13718 2013-04-16 Pedro Alves <palves@redhat.com>
13720 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
13721 (linux-low.o): Delete rule.
13722 * linux-low.h: Always include "gdb_thread_db.h" instead of
13723 conditionally including thread_db.h.
13724 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
13727 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
13729 * Makefile.in (install-only): Fix make install regression.
13731 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
13733 Convert man pages to texinfo, new gdbinit.5 texinfo page.
13734 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
13736 * gdbserver.1: Remove.
13738 2013-03-22 Pedro Alves <palves@redhat.com>
13740 * linux-low.c (handle_extended_wait): Don't call
13741 linux_enable_event_reporting.
13743 2013-03-15 Tony Theodore <tonyt@logyst.com>
13746 * Makefile.in (SHELL): Use @SHELL@.
13748 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
13750 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
13753 2013-03-13 Joel Brobecker <brobecker@adacore.com>
13755 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
13756 Remove extraneous NULL element.
13758 2013-03-13 Yao Qi <yao@codesourcery.com>
13760 * tracepoint.c (traceframe_read_tsv): Look for the last matched
13761 'V' block in trace frame.
13763 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
13765 * target.h (struct target_ops): Add btrace ops.
13766 (target_supports_btrace): New macro.
13767 (target_enable_btrace): New macro.
13768 (target_disable_btrace): New macro.
13769 (target_read_btrace): New macro.
13770 * gdbthread.h (struct thread_info): Add btrace field.
13771 * server.c: Include btrace-common.h.
13772 (handle_btrace_general_set): New function.
13773 (handle_btrace_enable): New function.
13774 (handle_btrace_disable): New function.
13775 (handle_general_set): Call handle_btrace_general_set.
13776 (handle_qxfer_btrace): New function.
13777 (struct qxfer qxfer_packets[]): Add btrace entry.
13778 * inferiors.c (remove_thread): Disable btrace.
13779 * linux-low: Include linux-btrace.h.
13780 (linux_low_enable_btrace): New function.
13781 (linux_low_read_btrace): New function.
13782 (linux_target_ops): Add btrace ops.
13783 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
13784 Add srv_linux_btrace=yes.
13785 (x86_64-*-linux*): Add linux-btrace.o.
13786 Add srv_linux_btrace=yes.
13787 * configure.ac: Define HAVE_LINUX_BTRACE.
13788 * config.in: Regenerated.
13789 * configure: Regenerated.
13791 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
13793 * server.c (handle_qxfer): Preserve error message if -3 is
13795 (qxfer): Document the -3 return value.
13797 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
13799 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
13800 (linux_btrace_h): New variable.
13801 (linux-btrace.o): New rule.
13803 2013-03-08 Stan Shebs <stan@codesourcery.com>
13804 Hafiz Abid Qadeer <abidh@codesourcery.com>
13806 * tracepoint.c (trace_buffer_size): New global.
13807 (DEFAULT_TRACE_BUFFER_SIZE): New define.
13808 (init_trace_buffer): Change to one-argument function. Allocate
13809 trace buffer memory.
13810 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
13811 handle QTBuffer:size packet.
13812 (cmd_bigqtbuffer_size): New function.
13813 (initialize_tracepoint): Call init_trace_buffer with
13814 DEFAULT_TRACE_BUFFER_SIZE.
13815 * server.c (handle_query): Add QTBuffer:size in the
13818 2013-03-07 Yao Qi <yao@codesourcery.com>
13820 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
13821 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
13823 (cmd_qtsp): Adjust condition. Do post increment.
13824 Set cur_action and cur_step_action back to 0.
13826 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
13829 * linux-low.c (linux_write_memory): Return early success if LEN is
13832 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
13834 * configure.srv: Add x86_64-*-cygwin* as target.
13836 2013-02-28 Tom Tromey <tromey@redhat.com>
13838 * configure.ac: Invoke AC_SYS_LARGEFILE.
13839 * configure, config.in: Rebuild.
13841 2013-02-28 Corinna Vinschen <vinschen@redhat.com>
13843 * win32-low.c: Throughout, fix format strings and casts of
13844 printf-like functions to avoid type related warnings on all
13846 (get_child_debug_event): Print dwDebugEventCode as hex since
13847 that's how it's usually documented.
13849 2013-02-28 Yao Qi <yao@codesourcery.com>
13851 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
13854 2013-02-27 Jiong Wang <jiwang@tilera.com>
13856 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
13857 (reg-tilegx32.c): New rule.
13858 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
13859 * linux-tile-low.c (tile_arch_setup): New function. Invoke
13860 different register info initializer according to elf class.
13861 (init_registers_tilgx32): New function. The tilegx32 register info
13863 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
13864 (tile_store_gregset): Likewise.
13866 2013-02-27 Yao Qi <yao@codesourcery.com>
13868 * server.c (process_point_options): Print debug message when
13869 debug_threads is true.
13871 2013-02-26 Yao Qi <yao@codesourcery.com>
13873 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
13875 2013-02-19 Pedro Alves <palves@redhat.com>
13876 Kai Tietz <ktietz@redhat.com>
13880 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
13881 instead of strtoul to extract address from packet.
13882 (process_serial_event) <'z'>: Likewise.
13884 2013-02-18 Yao Qi <yao@codesourcery.com>
13886 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
13888 2013-02-14 Pedro Alves <palves@redhat.com>
13892 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
13893 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
13895 2013-02-14 Pedro Alves <palves@redhat.com>
13897 * tracepoint.c (cmd_qtdpsrc): Use savestring.
13899 2013-02-14 Pedro Alves <palves@redhat.com>
13901 * tracepoint.c (save_string): Delete.
13902 (add_tracepoint_action): Use savestring instead of save_string.
13904 2013-02-12 Pedro Alves <palves@redhat.com>
13906 * linux-xtensa-low.c: Ditto.
13907 * xtensa-xtregs.c: Ditto.
13909 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13911 * thread-db.c (thread_db_get_tls_address): NULL pointer check
13914 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
13916 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
13917 aarch64_num_wp_regs and aarch64_num_bp_regs to
13918 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
13920 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
13922 * linux-aarch64-low.c (ps_get_thread_area): Replace
13923 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
13925 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
13926 Marcus Shawcroft <marcus.shawcroft@arm.com>
13927 Nigel Stephens <nigel.stephens@arm.com>
13928 Yufeng Zhang <yufeng.zhang@arm.com>
13930 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
13931 (aarch64.c, aarch64-without-fpu.c): New targets.
13932 * configure.srv (aarch64*-*-linux*): New.
13933 * linux-aarch64-low.c: New file.
13935 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
13937 * linux-low.c (handle_extended_wait, linux_create_inferior)
13938 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
13939 (dequeue_one_deferred_signal, linux_resume_one_thread)
13940 (fetch_register, linux_write_memory, linux_enable_event_reporting)
13941 (linux_tracefork_grandchild, linux_test_for_tracefork)
13942 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
13943 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
13944 where the argument is 0.
13946 2013-01-25 Yao Qi <yao@codesourcery.com>
13948 * event-loop.c: Include "queue.h".
13949 (gdb_event_p): New typedef.
13950 (struct gdb_event) <next_event>: Remove.
13951 (event_queue): Change to QUEUE(gdb_event_p).
13952 (async_queue_event): Remove.
13953 (gdb_event_xfree): New.
13954 (initialize_event_loop): New.
13955 (process_event): Use API from QUEUE.
13956 (wait_for_event): Likewise.
13957 * server.c (main): Call initialize_event_loop.
13958 * server.h (initialize_event_loop): Declare.
13960 2013-01-18 Yao Qi <yao@codesourcery.com>
13962 * ax.h (struct eval_agent_expr_context): New.
13963 (gdb_eval_agent_expr): Update declaration.
13964 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
13965 TFRAME. Add new argument CTX.
13966 * server.h (struct eval_agent_expr_context): Declare.
13967 (agent_mem_read, agent_tsv_read): Update declaration.
13968 (agent_mem_read_string): Likewise.
13969 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
13970 (add_traceframe_block): Add new argument TPOINT.
13971 Increase TPOINT->traceframe_usage.
13972 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
13973 eval_tracepoint_agent_expr.
13974 (condition_true_at_tracepoint): Likewise.
13975 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
13976 (agent_mem_read_string, agent_tsv_read): Likewise.
13978 2013-01-16 Yao Qi <yao@codesourcery.com>
13980 * linux-low.c (linux_resume_one_lwp): Don't check
13981 'lwp->bp_reinsert != 0'.
13983 2013-01-07 Joel Brobecker <brobecker@adacore.com>
13984 Pedro Alves <palves@redhat.com>
13986 * lynx-low.c (ptrace_request_to_str): Define a temporary
13987 macro and use it to simplify this function's implementation.
13989 2013-01-07 Joel Brobecker <brobecker@adacore.com>
13991 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
13994 2013-01-07 Joel Brobecker <brobecker@adacore.com>
13996 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
13998 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14000 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
14002 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14004 * lynx-low.c (lynx_resume): Use the resume_info parameter
14005 to determine the ptid for the lynx_ptrace call, unless
14006 it is equal to minus_one_ptid, in which case we use the
14007 ptid of the current_inferior.
14008 (lynx_wait_1): After having received a thread create/exit
14009 event, resume the inferior's execution using the signaling
14010 thread's ptid, rather than the old ptid.
14012 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14014 * lynx-low.c (lynx_resume): Delete variable ret.
14016 2013-01-01 Joel Brobecker <brobecker@adacore.com>
14018 * gdbreplay.c (gdbreplay_version): Update copyright year.
14019 * server.c (gdbserver_version): Likewise.
14021 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14023 * lynx-low.c (lynx_wait_1): Add debug trace before adding
14026 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14028 * lynx-low.c (ptrace_request_to_str): Add handling for
14029 PTRACE_GETTRACESIG.
14031 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14033 * lynx-low.c (lynx_attach): Delete variable new_process.
14035 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14037 * lynx-low.c (lynx_create_inferior): Delete variable
14040 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14042 * lynx-low.c (ptrace_request_to_str): Do not handle
14043 PTRACE_GETTHREADLIST if this macro does not exist.
14045 2012-12-15 Yao Qi <yao@codesourcery.com>
14047 * Makefile.in (OBS): Add notif.o.
14048 * notif.c, notif.h: New.
14049 * server.c: Include "notif.h".
14050 (struct vstop_notif) <next>: Remove.
14052 (queue_stop_reply): Update.
14053 (push_event, send_next_stop_reply): Remove.
14054 (discard_queued_stop_replies): Update.
14055 (notif_stop): New variable.
14056 (handle_v_stopped): Remove.
14057 (handle_v_requests): Don't call handle_v_stopped. Call
14058 handle_ack_notif instead.
14059 (queue_stop_reply_callback): Call notif_event_enque instead
14060 of queue_stop_reply.
14061 (handle_status): Don't call send_next_stop_reply, call
14062 notif_write_event instead.
14063 (kill_inferior_callback): Likewise.
14064 (detach_or_kill_inferior_callback): Likewise.
14065 (main): Call initialize_notif.
14066 (process_serial_event): Call QUEUE_is_empty.
14067 (handle_target_event): Call notif_push instead of push event.
14068 * server.h (push_event): Remove declaration.
14070 2012-12-10 Tom Tromey <tromey@redhat.com>
14072 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
14073 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
14076 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
14077 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
14078 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
14079 (amd64-linux-ipa.o, ax.o): Rewrite.
14080 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
14081 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
14082 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
14083 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
14084 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
14085 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
14086 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
14087 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
14088 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
14089 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
14090 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
14091 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
14092 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
14093 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
14094 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
14095 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
14096 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
14097 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
14098 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
14099 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
14100 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
14101 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
14102 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
14103 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
14104 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
14105 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
14106 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
14107 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
14108 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
14109 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
14110 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
14111 (reg-tilegx.o): Remove.
14112 (all_object_files): New macro.
14113 Include .deps files.
14114 * aclocal.m4, configure: Rebuild.
14115 * acinclude.m4: Include depstand.m4, lead-dot.m4.
14116 * configure.ac: Invoke ZW_CREATE_DEPDIR,
14117 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
14119 2012-12-05 Tom Tromey <tromey@redhat.com>
14122 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
14124 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
14126 * configure.ac: Check for linux/perf_event.h.
14127 * config.in: Regenerated.
14128 * configure: Regenerated.
14130 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
14132 * hostio.c (handle_readlink): Decrease buffer size
14133 parameter passed to readlink by one byte.
14135 2012-11-26 Yao Qi <yao@codesourcery.com>
14137 * configure.ac (build_warnings): Append '-Wempty-body'.
14138 * configure: Regenerated.
14139 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
14142 2012-11-15 Pierre Muller <muller@sourceware.org>
14144 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
14145 * config.in: Regenerate.
14146 * configure: Regenerate.
14147 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
14148 Use "gdb_wait.h" header instead of <sys/wait.h> header.
14149 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14150 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
14152 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
14153 instead of <sys/wait.h> header.
14154 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14156 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
14158 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
14159 (various make rules): Remove -DGDBSERVER
14161 2012-11-09 Yao Qi <yao@codesourcery.com>
14163 * spu-low.c (current_ptid): Move it to ..
14164 * gdbthread.h: ... here. New.
14165 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
14166 * server.c (myresume, process_serial_event): Likewise.
14167 * thread-db.c (thread_db_find_new_threads): Likewise.
14168 * tracepoint.c (run_inferior_command): Likewise.
14170 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
14172 * server.c (handle_search_memory_1): Include access length in
14175 2012-09-05 Michael Brandt <michael.brandt@axis.com>
14177 * linux-crisv32-low.c: Fix compile errors.
14179 2012-09-04 Yao Qi <yao@codesourcery.com>
14181 * tracepoint.c (cmd_qtsv): Adjust debug message.
14182 Don't check CUR_TPOINT.
14184 2012-08-28 Yao Qi <yao@codesourcery.com>
14186 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
14187 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
14188 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
14189 Remove declarations of xmalloc, xreallloc, xstrdup and
14191 * Makefile.in (libiberty_h): New.
14192 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
14193 (linux-bfin-low.o): Append dependency 'libiberty.h'.
14195 2012-08-23 Yao Qi <yao@codesourcery.com>
14197 * server.h: Remove declaration of 'xsnprintf'.
14199 2012-08-22 Keith Seitz <keiths@redhat.com>
14201 * server.h: Include build-gnulib-gbserver/config.h.
14202 * gdbreplay.c: Likewise.
14204 2012-08-08 Doug Evans <dje@google.com>
14206 * Makefile.in (SFILES): Add gdb_vecs.c.
14207 (OBS): Add gdb_vecs.o.
14208 (gdb_vecs_h, host_defs_h): New variables.
14209 (thread-db.o): Add $(gdb_vecs_h) dependency.
14210 (gdb_vecs.o): New rule.
14211 * thread-db.c: #include "gdb_vecs.h".
14212 (thread_db_load_search): Use a vector to iterate over path elements.
14213 Handle text appearing after "$pdir".
14215 * configure.ac: Add check for strstr.
14216 * config.in: Regenerate.
14217 * configure: Regenerate.
14219 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
14221 * hostio.c (handle_pread): If pread fails, fall back to attempting
14223 (handle_pwrite): Likewise for pwrite.
14225 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
14227 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
14228 between unsupported TYPE and unimplementable ADDR/LEN combination.
14229 (arm_insert_point): Act on new return value.
14231 2012-07-31 Pedro Alves <palves@redhat.com>
14233 * server.c (process_point_options): Only skip tokens if we find
14234 one that is unrecognized. Don't treat 'X' specially while
14235 skipping unrecognized tokens.
14237 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
14239 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
14240 to 4-byte-align HW breakpoint addresses for Thumb.
14242 2012-07-27 Yao Qi <yao@codesourcery.com>
14246 * server.h: Declare gdb_agent_about_to_close.
14247 * target.c (kill_inferior): Include "agent.h".
14248 New. Send command 'kill'.
14249 * target.h (kill_inferior): Removed macro.
14250 * tracepoint.c (gdb_agent_about_to_close): New.
14251 (gdb_agent_helper_thread): Handle command 'close'.
14252 Wait endlessly until the inferior stops.
14253 Install gdb_agent_remove_socket to atexit hook.
14254 (agent_socket_name): New static variable.
14255 (gdb_agent_socket_init): Replace local variable 'name' with
14256 'agent_socket_name'.
14257 (gdb_agent_remove_socket): New.
14259 2012-07-27 Yao Qi <yao@codesourcery.com>
14261 * server.c (process_point_options): Stop at 'X' when parsing.
14263 2012-07-19 Michael Eager <eager@eagercon.com>
14265 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
14267 * linux-x86-low.c (x86_insert_point, x86_remove_point):
14268 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
14269 hardware breakpoint.
14271 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14273 * gdbserver/linux-low.c (initialize_low): Call
14274 linux_ptrace_init_warnings.
14276 2012-07-02 Doug Evans <dje@google.com>
14278 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
14281 2012-07-02 Stan Shebs <stan@codesourcery.com>
14283 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
14284 (ax.o): Add it to build rule.
14286 (OBS): Add format.o.
14287 (IPA_OBS): Add format.o.
14288 * server.c (handle_query): Claim support for breakpoint commands.
14289 (process_point_options): Add command case.
14290 (process_serial_event): Leave running if there are printfs in
14292 * mem-break.h (any_persistent_commands): Declare.
14293 (add_breakpoint_commands): Declare.
14294 (gdb_no_commands_at_breakpoint): Declare.
14295 (run_breakpoint_commands): Declare.
14296 * mem-break.c (struct point_command_list): New struct.
14297 (struct breakpoint): New field command_list.
14298 (any_persistent_commands): New function.
14299 (add_commands_to_breakpoint): New function.
14300 (add_breakpoint_commands): New function.
14301 (gdb_no_commands_at_breakpoint): New function.
14302 (run_breakpoint_commands): New function.
14303 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
14305 * ax.c: Include format.h.
14306 (ax_printf): New function.
14307 (gdb_eval_agent_expr): Add printf opcode.
14309 2012-06-13 Yao Qi <yao@codesourcery.com>
14311 * server.c (start_inferior): Remove duplicated writes to fields
14312 'last_resume_kind' and 'last_status' of 'current_inferior'.
14314 2012-06-12 Yao Qi <yao@codesourcery.com>
14315 Pedro Alves <palves@redhat.com>
14317 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
14319 * server.c (handle_v_cont): Extend comment.
14321 2012-06-11 Yao Qi <yao@codesourcery.com>
14323 * linux-low.c (linux_attach): Add 'static'.
14325 2012-06-06 Yao Qi <yao@codesourcery.com>
14327 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
14329 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
14331 Fix gcc -flto compilation warning.
14332 * server.c (main): Make variable multi_mode and attach volatile.
14334 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14336 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
14337 if the platform doesn't know about it.
14339 2012-05-30 Jeff Kenton <jkenton@tilera.com>
14341 * Makefile.in (SFILES): Add linux-tile-low.c.
14342 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
14343 * configure.srv: Handle tilegx-*-linux*.
14344 * linux-tile-low.c: New file.
14346 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14348 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
14350 2012-05-24 Pedro Alves <palves@redhat.com>
14354 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
14356 2012-05-24 Pedro Alves <palves@redhat.com>
14360 Replace target_signal with gdb_signal throughout.
14362 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
14364 * linux-low.c (linux_store_registers): Avoid the copying sequence
14365 when no data has been retrieved by ptrace.
14367 2012-05-22 Will Deacon <will.deacon@arm.com>
14369 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
14370 Include asm/ptrace.h.
14371 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
14374 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
14376 * linux-low.c (linux_store_registers): Don't re-retrieve data
14377 with ptrace that has already been obtained from /proc. Always
14378 copy any data retrieved with ptrace to the buffer supplied.
14380 2012-05-11 Yao Qi <yao@codesourcery.com>
14381 Pedro Alves <palves@redhat.com>
14383 * linux-low.c (enum stopping_threads_kind): New.
14384 (stopping_threads): Change type to `enum stopping_threads_kind'.
14385 (handle_extended_wait): If stopping and suspending threads, leave
14386 the new_lwp suspended too.
14387 (linux_wait_for_event): Adjust.
14388 (stop_all_lwps): Set `stopping_threads' to
14389 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
14390 whether we're suspending threads or just stopping them. Assert no
14393 2012-04-29 Yao Qi <yao@codesourcery.com>
14395 * server.h: Move some code to ...
14396 * gdbthread.h: ... here. New.
14397 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
14398 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
14399 (nto-low.o, win32-low.o): Likewise.
14400 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
14401 * regcache.c, remote-utils.c, server.c: Likewise.
14402 * target.c, tracepoint.c, win32-low.c: Likewise.
14404 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14406 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
14407 (PTRACE_ARG4_TYPE): Likewise.
14408 (PTRACE_XFER_TYPE): Likewise.
14409 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
14410 ptrace to PTRACE_ARG3_TYPE.
14411 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
14412 (PTRACE_ARG4_TYPE): Likewise.
14413 (PTRACE_XFER_TYPE): Likewise.
14414 (linux_detach_one_lwp): Cast fourth argument of
14415 ptrace to long then PTRACE_ARG4_TYPE.
14416 (regsets_fetch_inferior_registers): Cast third argument of
14417 ptrace to long then PTRACE_ARG3_TYPE.
14418 (regsets_store_inferior_registers): Likewise.
14420 2012-04-20 Pedro Alves <palves@redhat.com>
14422 * configure: Regenerate.
14424 2012-04-19 Pedro Alves <palves@redhat.com>
14426 * Makefile.in (GNULIB_BUILDDIR): New.
14427 (LIBGNU, INCGNU, GNULIB_H): Adjust.
14428 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
14429 (all, install-only, uninstall, clean-info, all-lib, clean): No
14430 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
14431 (maintainer-clean realclean distclean): Use subdir_do.
14433 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
14434 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
14435 * acinclude.m4: Include acx_configure_dir.m4.
14436 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
14437 calls. Call AC_PROG_RANLIB. Configure gnulib using
14440 (GNULIB_STDINT_H): Adjust.
14441 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
14442 * gdbreplay.c: Include build-gnulib/config.h.
14443 * server.h: Likewise.
14444 * aclocal.m4: Regenerate.
14445 * config.in: Regenerate.
14446 * configure: Regenerate.
14448 2012-04-19 Pedro Alves <palves@redhat.com>
14450 * Makefile.in (LIBGNU, INCGNU): Adjust.
14451 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
14452 (all, install-only, uninstall, clean-info, all-lib, clean)
14453 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
14454 * configure.ac: Adjust AC_OUTPUT output.
14455 * aclocal.m4: Regenerate.
14456 * configure: Regenerate.
14458 2012-04-19 Pedro Alves <palves@redhat.com>
14460 * Makefile.in (generated_files): New.
14461 (server_h): Remove the explicit dependency on config.h, and depend
14462 on $generated_files.
14464 2012-04-19 Pedro Alves <palves@redhat.com>
14466 * Makefile.in (INCGNU): Add -Ignulib.
14468 2012-04-19 Pedro Alves <palves@redhat.com>
14470 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
14471 (INCGNU): ... this, and spell out -I here.
14472 (GNULIB_LIB): Rename to ...
14473 (LIBGNU): ... this.
14474 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
14476 2012-04-19 Pedro Alves <palves@redhat.com>
14478 * config.in: Regenerate.
14480 2012-04-19 Pedro Alves <palves@redhat.com>
14482 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
14483 * server.h (memmem): Remove declaration.
14484 * config.in: Regenerate.
14485 * configure: Regenerate.
14487 2012-04-19 Yao Qi <yao@codesourcery.com>
14489 * Makefile.in (SFILES): Add common/vec.c.
14493 2012-04-19 Yao Qi <yao@codesourcery.com>
14495 * remote-utils.c (prepare_resume_reply): Replace with macro
14496 target_core_of_thread.
14497 * server.c (handle_qxfer_threads_proper): Likewise.
14498 * target.h (traget_core_of_thread): New macro.
14500 2012-04-18 Pedro Alves <palves@redhat.com>
14502 * aclocal.m4: Regenerate.
14503 * configure: Regenerate.
14505 2012-04-16 Yao Qi <yao@codesourcery.com>
14507 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
14508 duplicated on address.
14510 2012-04-16 Yao Qi <yao@codesourcery.com>
14512 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
14513 (struct tracepoint_action_ops) <send>: New field.
14514 (m_tracepoint_action_send, r_tracepoint_action_send): New.
14515 (agent_expr_send, x_tracepoint_action_send): New.
14516 (l_tracepoint_action_send): New.
14517 (cmd_qtdp): Download and install tracepoint
14518 according to `use_agent'.
14519 (run_inferior_command): Add one more parameter `len'.
14521 (tracepoint_send_agent): New.
14522 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
14524 2012-04-16 Yao Qi <yao@codesourcery.com>
14526 * tracepoint.c (download_tracepoints): Moved to ...
14527 (cmd_qtstart): ... here.
14529 2012-04-14 Yao Qi <yao@codesourcery.com>
14531 * tracepoint.c: Include inttypes.h.
14532 (struct collect_memory_action): Use sized types.
14533 (struct tracepoint): Likewise.
14534 (cmd_qtdp, stop_tracing): Update print specifiers.
14535 (cmd_qtp, response_tracepoint): Likewise.
14536 (collect_data_at_tracepoint): Likewise.
14537 (collect_data_at_step): Likewise.
14539 2012-04-14 Yao Qi <yao@codesourcery.com>
14541 Import gnulib module inttypes.
14542 * aclocal.m4, config.in, configure: Regenerated.
14544 2012-04-14 Yao Qi <yao@codesourcery.com>
14546 * Makefile.in (maintainer-clean, realclean, distclean): Remove
14547 Makefile and config.status at last.
14549 2012-04-13 Yao Qi <yao@codesourcery.com>
14551 * tracepoint.c: Include stdint.h unconditionally.
14553 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14555 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
14556 on BFD_HAVE_SYS_PROCFS_TYPE.
14557 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
14558 * configure: Regenerate.
14559 * config.in: Likewise.
14561 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
14563 * Makefile.in (clean): Also remove x32.c x32-linux.c
14564 x32-avx.c x32-avx-linux.c.
14565 (x32.o): New target.
14567 (x32-linux.o): Likewise.
14568 (x32-linux.c): Likewise.
14569 (x32-avx.o): Likewise.
14570 (x32-avx.c): Likewise.
14571 (x32-avx-linux.o): Likewise.
14572 (x32-avx-linux.c): Likewise.
14574 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
14575 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
14576 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
14577 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
14578 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
14579 i386/x32-avx-linux.xml.
14581 * linux-x86-low.c (init_registers_x32_linux): New prototype.
14582 (init_registers_x32_avx_linux): Likwise.
14583 (x86_linux_update_xmltarget): Call init_registers_x32_linux
14584 or init_registers_x32_avx_linux if linux_is_elf64 is false.
14586 2012-04-13 Pedro Alves <palves@redhat.com>
14588 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
14589 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
14590 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
14591 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
14594 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
14596 * linux-x86-low.c (compat_x32_clock_t): New.
14597 (compat_x32_siginfo_t): Likewise.
14598 (compat_x32_siginfo_from_siginfo): Likewise.
14599 (siginfo_from_compat_x32_siginfo): Likewise.
14600 (linux_is_elf64): Likewise.
14601 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
14602 and siginfo_from_compat_x32_siginfo for x32.
14603 (x86_arch_setup): Set linux_is_elf64.
14605 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
14608 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
14610 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
14611 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
14612 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
14613 compatible with process.
14615 2012-04-12 Yao Qi <yao@codesourcery.com>
14617 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
14618 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
14619 (install-only, install-info, clean): Handle sub dir gnulib.
14620 (all-lib, am--refresh): New targets.
14621 (memmem.o): Remove target.
14622 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
14623 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
14624 (AC_REPLACE_FUNCS): Remove memmem.
14625 Invoke gl_INIT and AM_INIT_AUTOMAKE.
14626 (AC_OUTPUT): Generate Makefile in gnulib/.
14627 * aclocal.m4, config.in, configure: Regenerated.
14629 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
14631 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
14633 2012-04-05 Pedro Alves <palves@redhat.com>
14635 -Werror=strict-aliasing
14637 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
14640 2012-04-04 Pedro Alves <palves@redhat.com>
14642 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
14643 (sparc_store_gregset_from_stack, sparc_store_gregset)
14644 (sparc_breakpoint_at): Fix formatting.
14646 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14648 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
14650 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
14651 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
14652 * config.in: Regenerate.
14653 * configure: Likewise.
14655 2012-03-29 Pedro Alves <palves@redhat.com>
14657 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
14658 Correct ptrace arguments.
14660 2012-03-28 Pedro Alves <palves@redhat.com>
14662 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
14663 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
14664 (IA64_FR1_REGNUM): New defines.
14665 (ia64_fetch_register): New.
14666 (the_low_target): Install it.
14667 * linux-low.h (struct linux_target_ops) <fetch_register>: New
14669 * linux-low.c (linux_fetch_registers): Try the
14670 the_low_target.fetch_register hook first.
14672 * linux-arm-low.c (the_low_target): Adjust.
14673 * linux-bfin-low.c (the_low_target): Adjust.
14674 * linux-cris-low.c (the_low_target): Adjust.
14675 * linux-crisv32-low.c (the_low_target): Adjust.
14676 * linux-m32r-low.c (the_low_target): Adjust.
14677 * linux-m68k-low.c (the_low_target): Adjust.
14678 * linux-mips-low.c (the_low_target): Adjust.
14679 * linux-ppc-low.c (the_low_target): Adjust.
14680 * linux-s390-low.c (the_low_target): Adjust.
14681 * linux-sh-low.c (the_low_target): Adjust.
14682 * linux-sparc-low.c (the_low_target): Adjust.
14683 * linux-tic6x-low.c (the_low_target): Adjust.
14684 * linux-x86-low.c (the_low_target): Adjust.
14685 * linux-xtensa-low.c (the_low_target): Adjust.
14687 2012-03-26 Pedro Alves <palves@redhat.com>
14689 * server.c (handle_qxfer_libraries): Don't bail early if
14690 the_target->qxfer_libraries_svr4 is not NULL.
14692 2012-03-26 Pedro Alves <palves@redhat.com>
14694 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
14696 2012-03-23 Pedro Alves <palves@redhat.com>
14698 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
14699 "library-list-svr4" element's start tag when the the DSO list is
14702 2012-03-23 Pedro Alves <palves@redhat.com>
14704 * linux-low.c (read_one_ptr): Read the inferior's pointer through
14705 a variable whose type size is the same as the inferior's pointer
14708 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
14710 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
14712 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
14713 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
14714 * linux-low.h: Include <signal.h>.
14715 (struct siginfo): Remove forward declaration.
14716 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
14719 2012-03-21 Mike Frysinger <vapier@gentoo.org>
14721 * .gitignore: Ignore more files.
14723 2012-03-19 Pedro Alves <palves@redhat.com>
14724 Jan Kratochvil <jan.kratochvil@redhat.com>
14726 * server.c (cont_thread, general_thread): Add describing comments.
14727 (start_inferior): Clear `cont_thread'.
14728 (handle_v_cont): Don't set `cont_thread' if resuming all threads
14731 2012-03-15 Yao Qi <yao@codesourcery.com>
14733 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
14735 (cmd_qtdp): ... here.
14737 2012-03-15 Yao Qi <yao@codesourcery.com>
14739 * tracepoint.c (struct tracepoint_action_ops): New.
14740 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
14741 (m_tracepoint_action_download): New.
14742 (r_tracepoint_action_download): New.
14743 (x_tracepoint_action_download): New.
14744 (l_tracepoint_action_download): New.
14745 (add_tracepoint_action): Install `action->ops' according type.
14746 (download_tracepoint_1): Move code `download' function pointer
14747 of various tracepoint_action_ops.
14749 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14751 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
14752 linux_ptrace_attach_warnings.
14754 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14756 * Makefile.in (linux-ptrace.o): New.
14757 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
14758 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
14759 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
14760 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
14761 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
14763 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
14765 2012-03-08 Yao Qi <yao@codesourcery.com>
14766 Pedro Alves <palves@redhat.com>
14768 Fix PR server/13392.
14769 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
14770 offset of JMP insn.
14771 * tracepoint.c (remove_tracepoint): New.
14772 (cmd_qtdp): Call remove_tracepoint when failed to install.
14774 2012-03-07 Pedro Alves <palves@redhat.com>
14776 * linux-low.c (get_detach_signal): New.
14777 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
14778 Pass on pending signals to PTRACE_DETACH. Check the result of the
14780 * server.c (program_signals, program_signals_p): New.
14781 (handle_general_set): Handle QProgramSignals.
14782 * server.h (program_signals, program_signals_p): Declare.
14784 2012-03-05 Pedro Alves <palves@redhat.com>
14785 Jan Kratochvil <jan.kratochvil@redhat.com>
14787 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
14790 2012-03-03 Yao Qi <yao@codesourcery.com>
14792 * tracepoint.c (tracepoint_look_up_symbols): Update call to
14793 agent_look_up_symbols.
14795 2012-03-03 Yao Qi <yao@codesourcery.com>
14797 * Makefile.in (linux-low.o): Keep dependence on agent.h.
14798 (linux-x86-low.o): Likewise.
14799 * server.h: Remove in_process_agent_loaded.
14800 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
14804 2012-03-03 Yao Qi <yao@codesourcery.com>
14806 * tracepoint.c (gdb_agent_capability): New global.
14807 (in_process_agent_loaded_ust): Renamed to
14808 `in_process_agent_supports_ust'.
14810 (in_process_agent_supports_ust): Call agent_capability_check.
14811 (clear_installed_tracepoints): Assert that agent supports
14814 2012-03-03 Yao Qi <yao@codesourcery.com>
14816 * linux-low.c (linux_supports_agent): New.
14817 (linux_target_ops): Initialize field `supports_agent' with
14818 linux_supports_agent.
14819 * target.h (struct target_ops) <supports_agent>: New.
14820 (target_supports_agent): New macro.
14821 * server.c (handle_general_set): Handle packet 'QAgent'.
14822 (handle_query): Send `QAgent+'.
14823 * Makefile.in (server.o): Depends on agent.h.
14825 2012-03-03 Yao Qi <yao@codesourcery.com>
14827 * Makefile.in (OBS): Add agent.o.
14828 Add new rule for agent.o.
14829 Track dependence of tracepoint.c on agent.h.
14830 * tracepoint.c (run_inferior_command_1):
14831 (run_inferior_command): Call agent_run_command.
14832 (gdb_ust_connect_sync_socket): Deleted. Move it to
14834 (resume_thread, stop_thread): Likewise.
14835 (gdb_ust_socket_init): Renamed to ...
14836 (gdb_agent_socket_init): ... New.
14837 (gdb_ust_thread): Renamed to ...
14838 (gdb_agent_helper_thread): ... New.
14839 (gdb_ust_init): Move some code to ...
14840 (gdb_agent_init): ... here. New.
14841 [HAVE_UST]: Call gdb_ust_init.
14842 (initialize_tracepoint_ftlib): Call gdb_agent_init.
14843 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
14844 * config.in, configure: Regenerated.
14846 2012-03-02 Pedro Alves <palves@redhat.com>
14848 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
14849 * linux-low.c (struct simple_pid_list): New.
14850 (stopped_pids): New a struct simple_pid_list pointer.
14851 (add_to_pid_list, pull_pid_from_list): New.
14852 (handle_extended_wait): Don't assume the first signal new children
14853 report is SIGSTOP. Adjust call to pull_pid_from_list.
14854 (linux_wait_for_lwp): Adjust.
14856 2012-03-02 Yao Qi <yao@codesourcery.com>
14858 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
14861 2012-03-02 Yao Qi <yao@codesourcery.com>
14863 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
14864 `stop_pc' and `tpoint'. Update caller.
14866 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
14868 * linux-low.h (linux_target_ops): Add regset_bitmap member.
14869 * linux-low.c (use_linux_regsets): New macro.
14870 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
14871 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
14872 (linux_register_in_regsets): New function.
14873 (usr_fetch_inferior_registers): Skip registers covered by
14875 (usr_store_inferior_registers): Likewise.
14876 (usr_fetch_inferior_registers): New macro.
14877 (usr_store_inferior_registers): Likewise.
14878 (linux_fetch_registers): Handle mixed regset/non-regset targets.
14879 (linux_store_registers): Likewise.
14880 * linux-mips-low.c (init_registers_mips_dsp_linux): New
14882 (init_registers_mips64_dsp_linux): Likewise.
14883 (init_registers_mips_linux): New macro.
14884 (init_registers_mips_dsp_linux): Likewise.
14885 (mips_dsp_num_regs): Likewise.
14886 (DSP_BASE, DSP_CONTROL): New fallback macros.
14887 (mips_base_regs): New macro.
14888 (mips_regmap): Use it. Fix the size.
14889 (mips_dsp_regmap): New variable.
14890 (mips_dsp_regset_bitmap): Likewise.
14891 (mips_arch_setup): New function.
14892 (mips_cannot_fetch_register): Use the_low_target.regmap rather
14894 (mips_cannot_store_register): Likewise.
14895 (the_low_target): Update .arch_setup, .num_regs and .regmap
14896 initializers. Add .regset_bitmap initializer.
14897 * linux-arm-low.c (the_low_target): Add .regset_bitmap
14899 * linux-bfin-low.c (the_low_target): Likewise.
14900 * linux-cris-low.c (the_low_target): Likewise.
14901 * linux-crisv32-low.c (the_low_target): Likewise.
14902 * linux-ia64-low.c (the_low_target): Likewise.
14903 * linux-m32r-low.c (the_low_target): Likewise.
14904 * linux-m68k-low.c (the_low_target): Likewise.
14905 * linux-ppc-low.c (the_low_target): Likewise.
14906 * linux-s390-low.c (the_low_target): Likewise.
14907 * linux-sh-low.c (the_low_target): Likewise.
14908 * linux-sparc-low.c (the_low_target): Likewise.
14909 * linux-tic6x-low.c (the_low_target): Likewise.
14910 * linux-x86-low.c (the_low_target): Likewise.
14911 * linux-xtensa-low.c (the_low_target): Likewise.
14912 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
14913 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
14914 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
14916 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
14917 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
14919 2012-02-29 Yao Qi <yao@codesourcery.com>
14920 Pedro Alves <palves@redhat.com>
14922 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
14923 `step_over_finished' is true.
14925 2012-02-27 Pedro Alves <palves@redhat.com>
14927 * linux-low.c (pid_is_stopped): Delete, moved to common/.
14928 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
14930 2012-02-27 Pedro Alves <palves@redhat.com>
14933 * linux-low.c (pid_is_stopped): New.
14934 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
14936 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
14938 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
14941 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
14943 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
14945 2012-02-24 Luis Machado <lgustavo@codesourcery>
14947 * server.c (handle_query): Advertise support for target-side
14948 breakpoint condition evaluation.
14949 (process_point_options): New function.
14950 (process_serial_event): When inserting a breakpoint, check for
14951 a target-side condition that should be evaluated.
14953 * mem-break.c: Include regcache.h and ax.h.
14954 (point_cond_list_t): New data structure.
14955 (breakpoint) <cond_list>: New field.
14956 (find_gdb_breakpoint_at): Make non-static.
14957 (delete_gdb_breakpoint_at): Clear any target-side
14959 (clear_gdb_breakpoint_conditions): New function.
14960 (add_condition_to_breakpoint): Likewise.
14961 (add_breakpoint_condition): Likewise.
14962 (gdb_condition_true_at_breakpoint): Likewise.
14963 (gdb_breakpoint_here): Return result directly instead
14964 of going through a local variable.
14966 * mem-break.h (find_gdb_breakpoint_at): New prototype.
14967 (clear_gdb_breakpoint_conditions): Likewise.
14968 (add_breakpoint_condition): Likewise.
14969 (gdb_condition_true_at_breakpoint): Likewise.
14971 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
14972 (need_step_over_p): Take target-side breakpoint condition into
14975 2012-02-24 Luis Machado <lgustavo@codesourcery>
14977 * server.h: Include tracepoint.h.
14978 (agent_mem_read, agent_get_trace_state_variable_value,
14979 agent_set_trace_state_variable_value,
14980 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
14981 get_set_tsv_func_addr): New prototypes.
14983 * ax.h: New include file.
14984 * ax.c: New source file.
14986 * tracepoint.c: Include ax.h.
14987 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
14988 agent_expr, eval_result_type): Move to ax.h.
14989 (parse_agent_expr): Rename to ...
14990 (gdb_parse_agent_expr): ... this, make it non-static and move
14992 (unparse_agent_expr) Rename to ...
14993 (gdb_unparse_agent_expr): ... this, make it non-static and move
14995 (eval_agent_expr): Rename to ...
14996 (eval_tracepoint_agent_expr): ... this.
14997 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
14998 forward declarations.
14999 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
15000 (agent_get_trace_state_variable_value): New function.
15001 (agent_set_trace_state_variable_value): New function.
15002 (cmd_qtdp): Call gdb_parse_agent_expr (...).
15003 (response_tracepoint): Call gdb_unparse_agent_expr (...).
15004 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
15005 (condition_true_at_tracepoint): Likewise.
15006 (parse_agent_expr): Rename to ...
15007 (gdb_parse_agent_expr): ... this and move to ax.c.
15008 (unparse_agent_expr): Rename to ...
15009 (gdb_unparse_agent_expr): ... this and move to ax.c.
15010 (gdb_agent_op_name): Move to ax.c.
15011 (eval_agent_expr): Rename to ...
15012 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
15014 (eval_tracepoint_agent_expr): New function.
15015 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
15017 (current_insn_ptr, emit_error, struct bytecode_address): Move to
15019 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
15020 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
15021 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
15022 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
15023 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
15024 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
15025 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
15026 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
15027 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
15028 (compile_bytecodes): Remove forward declaration.
15029 (is_goto_target): Move to ax.c.
15030 (compile_bytecodes): Move to ax.c and call
15031 agent_get_trace_state_variable_value (...) and
15032 agent_set_trace_state_variable_value (...).
15034 * Makefile.in: Update ax.c and IPA dependencies.
15036 2012-02-24 Pedro Alves <palves@redhat.com>
15038 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
15039 (cmd_bigqtbuffer_circular): ... this. Only handle
15040 'QTBuffer:circular:'.
15041 (handle_tracepoint_general_set): Adjust.
15043 2012-02-16 Yao Qi <yao@codesourcery.com>
15045 * inferiors.c: Move code to ...
15046 * dll.c: .... here. New.
15047 * server.h: Declare clear_dlls.
15048 * Makefile.in (SFILES): Add dll.c.
15052 2012-02-11 Yao Qi <yao@codesourcery.com>
15054 * server.c: (handle_monitor_command): Add a new parameter
15056 (handle_query): Update caller.
15058 2012-02-09 Joel Brobecker <brobecker@adacore.com>
15060 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
15061 * configure, config.in: Regenerate.
15062 * hostio.c: Provide an alternate implementation if HAVE_READLINK
15065 2012-02-02 Pedro Alves <palves@redhat.com>
15067 Try SIGKILL first, then PTRACE_KILL.
15068 * linux-low.c (linux_kill_one_lwp): New.
15069 (linux_kill_one_lwp): Rename to ...
15070 (kill_one_lwp_callback): ... this. Use the new
15071 linux_kill_one_lwp.
15073 2012-02-02 Pedro Alves <palves@redhat.com>
15075 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
15078 2012-01-27 Pedro Alves <palves@redhat.com>
15080 * linux-low.c (linux_child_pid_to_exec_file): Delete.
15081 (elf_64_file_p): Make static.
15082 (linux_pid_exe_is_elf_64_file): New.
15083 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
15084 Delete declarations.
15085 (linux_pid_exe_is_elf_64_file): Declare.
15086 * linux-x86-low.c (x86_arch_setup): Use
15087 linux_pid_exe_is_elf_64_file.
15089 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
15091 * linux-low.c (linux_wait_for_event_1): Rename to ...
15092 (linux_wait_for_event): ... here and merge it with former
15093 linux_wait_for_event - new variable wait_ptid, use it.
15094 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
15096 2012-01-23 Pedro Alves <palves@redhat.com>
15098 * server.c (main): Avoid yet another case of infinite loop while
15099 detaching/killing after a longjmp.
15101 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15104 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
15106 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
15108 * hostio.c (handle_readlink): New function.
15109 (handle_vFile): Call it to handle "vFile:readlink" packets.
15111 2012-01-20 Pedro Alves <palves@redhat.com>
15112 Ulrich Weigand <ulrich.weigand@linaro.org>
15114 * server.c (handle_v_requests): Only support vAttach and vRun to
15115 start multiple processes when in extended protocol mode.
15117 2012-01-17 Pedro Alves <palves@redhat.com>
15119 * tracepoint.c (initialize_tracepoint): Use mmap instead of
15120 memalign plus mprotect to allocate the scratch buffer.
15122 2012-01-13 Pedro Alves <palves@redhat.com>
15124 * server.c (attach_inferior): Clear `cont_thread'.
15126 2012-01-13 Pedro Alves <palves@redhat.com>
15128 * server.c (main): Avoid infinite loop while detaching/killing
15131 2012-01-09 Doug Evans <dje@google.com>
15133 * server.c (start_inferior): Set last_ptid in --wrapper case.
15135 2012-01-06 Yao Qi <yao@codesourcery.com>
15137 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
15139 [IN_PROCESS_AGENT] (debug_agent): New global variable.
15141 2012-01-04 Yao Qi <yao@codesourcery.com>
15143 * tracepoint.c (cmd_qtdp): Print debug message
15144 for static tracepoint.
15146 2012-01-04 Yao Qi <yao@codesourcery.com>
15148 * tracepoint.c (trace_vdebug): Differentiate debug message
15149 between gdbserver and IPA.
15151 2012-01-03 Yao Qi <yao@codesourcery.com>
15153 * tracepoint.c (tracepoint_was_hit): Don't collect for
15156 2012-01-02 Joel Brobecker <brobecker@adacore.com>
15158 * terminal.h: Reformat copyright header.
15160 2012-01-02 Joel Brobecker <brobecker@adacore.com>
15162 * server.c (gdbserver_version): Update copyright year.
15163 * gdbreplay.c (gdbreplay_version): Likewise.
15165 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
15167 * linux-low.c (linux_create_inferior): Put empty if clause for write.
15170 2011-12-18 Hui Zhu <teawater@gmail.com>
15171 * linux-low.c (linux_create_inferior): Save return value to ret.
15173 2011-12-18 Hui Zhu <teawater@gmail.com>
15175 * linux-low.c (linux_create_inferior): Save return value to ret.
15177 2011-12-16 Doug Evans <dje@google.com>
15179 * linux-low.c (linux_create_inferior): If stdio connection,
15180 redirect stdin from /dev/null, stdout to stderr.
15181 * remote-utils.c (remote_is_stdio): New static global.
15182 (remote_connection_is_stdio): New function.
15183 (remote_prepare): Handle stdio connection.
15184 (remote_open): Ditto.
15185 (remote_close): Don't close stdin for stdio connections.
15186 (read_prim,write_prim): New functions. Replace all calls to
15187 read/write to these.
15188 * server.c (main): Watch for "-" argument. Move call to
15189 remote_prepare before start_inferior.
15190 * server.h (STDIO_CONNECTION_NAME): New macro.
15191 (remote_connection_is_stdio): Declare.
15193 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
15194 in debugging output.
15196 2011-12-15 Yao Qi <yao@codesourcery.com>
15198 * tracepoint.c: Include sys/syscall.h.
15199 (gdb_ust_thread): Remove preprocessor conditional.
15201 2011-12-14 Pedro Alves <pedro@codesourcery.com>
15203 * linux-low.c (linux_detach_one_lwp): Call
15204 the_low_target.prepare_to_resume before detaching.
15206 2011-12-14 Yao Qi <yao@codesourcery.com>
15208 * tracepoint.c (gdb_ust_thread): Don't ignore return value
15211 2011-12-14 Yao Qi <yao@codesourcery.com>
15213 * i386-low.c (i386_low_stopped_data_address): Initialize local
15214 variable `control'.
15216 2011-12-13 Pedro Alves <pedro@codesourcery.com>
15220 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
15221 DR_CONTROL unless necessary. Extend comments.
15222 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
15223 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
15225 2011-12-13 Yao Qi <yao@codesourcery.com>
15227 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
15229 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
15231 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
15233 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
15234 Print new debug message for such case.
15236 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
15238 Fix overlapping memcpy.
15239 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
15240 the read_inferior_memory transfer.
15241 (delete_fast_tracepoint_jump): New variable buf. Use it for the
15242 write_inferior_memory transfer.
15243 (set_fast_tracepoint_jump): New variable buf. Use it for the
15244 read_inferior_memory and write_inferior_memory transfers.
15245 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
15246 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
15247 Use it for the write_inferior_memory transfer.
15248 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
15251 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15253 * linux-low.c (fetch_register, store_register): Make code
15254 consistent, fix formatting.
15256 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15258 * linux-low.c (usr_store_inferior_registers): Factor out code
15259 to handle individual registers into...
15260 (store_register): ... this new function.
15262 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
15264 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
15265 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
15266 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
15267 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
15268 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
15269 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
15270 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
15271 (srv_xmlfiles): Add new XML files.
15273 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
15275 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
15276 (init_registers_s390_linux32v1): Add prototype.
15277 (init_registers_s390_linux32v2): Likewise.
15278 (init_registers_s390_linux64v1): Likewise.
15279 (init_registers_s390_linux64v2): Likewise.
15280 (init_registers_s390x_linux64v1): Likewise.
15281 (init_registers_s390x_linux64v2): Likewise.
15282 (s390_num_regs): Increment to 52.
15283 (s390_regmap): Add orig_r2 register.
15284 (s390_num_regs_3264): Increment to 68.
15285 (s390_regmap_3264): Add orig_r2 register.
15286 (s390_collect_ptrace_register): Handle orig_r2 register.
15287 (s390_supply_ptrace_register): Likewise.
15288 (s390_fill_last_break): New function.
15289 (s390_store_last_break): Likewise.
15290 (s390_fill_system_call): New function.
15291 (s390_store_system_call): Likewise.
15292 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
15294 (s390_check_regset): New function.
15295 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
15296 NT_S390_SYSTEM_CALL regsets and use appropriate description.
15297 Update target_regsets for available register sets.
15299 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
15300 Jan Kratochvil <jan.kratochvil@redhat.com>
15302 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
15303 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
15305 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
15306 * linux-low.h (struct process_info_private): New member r_debug.
15307 * server.c (handle_qxfer_libraries): Call
15308 the_target->qxfer_libraries_svr4.
15309 (handle_qxfer_libraries_svr4): New function.
15310 (qxfer_packets): New entry "libraries-svr4".
15311 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
15312 * target.h (struct target_ops): New member qxfer_libraries_svr4.
15313 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
15314 PACKET_qXfer_libraries_svr4.
15316 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
15318 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
15319 PSW address/mask between 8-byte and 16-byte formats.
15320 (s390_supply_ptrace_register): Likewise.
15321 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
15322 basic addressing mode bit.
15324 2011-11-24 Stan Shebs <stan@codesourcery.com>
15326 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
15328 2011-11-17 Stan Shebs <stan@codesourcery.com>
15330 * tracepoint.c (struct tracepoint): New field traceframe_usage.
15331 (tracing_start_time): New global.
15332 (tracing_stop_time): New global.
15333 (tracing_user_name): New global.
15334 (tracing_notes): New global.
15335 (tracing_stop_note): New global.
15336 (cmd_qtstart): Set traceframe_usage, start_time.
15337 (stop_tracing): Set stop_time.
15338 (cmd_qtstatus): Report additional status.
15339 (cmd_qtp): New function.
15340 (handle_tracepoint_query): Call it.
15341 (cmd_qtnotes): New function.
15342 (handle_tracepoint_general_set): Call it.
15343 (get_timestamp): Rename from tsv_get_timestamp.
15345 2011-11-14 Stan Shebs <stan@codesourcery.com>
15346 Kwok Cheung Yeung <kcy@codesourcery.com>
15348 * linux-x86-low.c (small_jump_insn): New.
15349 (i386_install_fast_tracepoint_jump_pad): Add arguments for
15350 trampoline and error message, build a trampoline and issue a small
15351 jump instruction to it.
15352 (x86_install_fast_tracepoint_jump_pad): Add arguments for
15353 trampoline and error message.
15354 (x86_get_min_fast_tracepoint_insn_len): New.
15355 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
15356 * linux-low.h (struct linux_target_ops): Add arguments to
15357 install_fast_tracepoint_jump_pad operation, add new operation.
15358 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
15360 (linux_get_min_fast_tracepoint_insn_len): New function.
15361 (linux_target_op): Add new operation.
15362 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
15363 (gdb_trampoline_buffer_end): Ditto.
15364 (gdb_trampoline_buffer_error): Ditto.
15365 (struct ipa_sym_addresses): Add fields for new IPA variables.
15366 (symbol_list): Add entries for new IPA variables.
15367 (struct tracepoint): Add fields to hold the address range of the
15368 trampoline used by the tracepoint.
15369 (trampoline_buffer_head): New static variable.
15370 (trampoline_buffer_tail): Ditto.
15371 (claim_trampoline_space): New function.
15372 (have_fast_tracepoint_trampoline_buffer): New function.
15373 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
15375 (install_fast_tracepoint): Ditto, also add error buffer argument.
15376 (cmd_qtminftpilen): New function.
15377 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
15378 (fast_tracepoint_from_trampoline_address): New function.
15379 (fast_tracepoint_collecting): Handle trampoline as part of jump
15381 (set_trampoline_buffer_space): New function.
15382 (initialize_tracepoint): Initialize new IPA variables.
15383 * target.h (struct target_ops): Add arguments to
15384 install_fast_tracepoint_jump_pad operation, add new
15385 get_min_fast_tracepoint_insn_len operation.
15386 (target_get_min_fast_tracepoint_insn_len): New.
15387 (install_fast_tracepoint_jump_pad): Add arguments.
15388 * server.h (IPA_BUFSIZ): Define.
15389 * linux-i386-ipa.c: Include extra header files.
15390 (initialize_fast_tracepoint_trampoline_buffer): New function.
15391 (initialize_low_tracepoint): Call it.
15392 * server.h (set_trampoline_buffer_space): Declare.
15393 (claim_trampoline_space): Ditto.
15394 (have_fast_tracepoint_trampoline_buffer): Ditto.
15396 2011-11-14 Yao Qi <yao@codesourcery.com>
15398 * server.c (handle_query): Handle InstallInTrace for qSupported.
15399 * tracepoint.c (add_tracepoint): Sort list.
15400 (install_tracepoint, download_tracepoint): New.
15401 (cmd_qtdp): Call them to install and download tracepoints.
15402 (sort_tracepoints): Removed.
15403 (cmd_qtstart): Update.
15405 2011-11-14 Yao Qi <yao@codesourcery.com>
15407 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
15408 * mem-break.h: Declare.
15409 * tracepoint.c (cmd_qtstart): Move some code to ...
15410 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
15412 (download_tracepoints): Move some code to ...
15413 (download_tracepoint_1): ... here. New.
15415 2011-11-08 Yao Qi <yao@codesourcery.com>
15417 * remote-utils.c (relocate_instruction): A comment fix.
15419 2011-11-07 Joel Brobecker <brobecker@adacore.com>
15421 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
15422 (i386_dr_low_get_control, i386_dr_low_get_status): Use
15423 dr_status_mirror and dr_control_mirror from debug_reg_state.
15424 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
15425 (i386_initial_stuff): Remove use of deleted globals.
15426 (i386_get_thread_context, i386_set_thread_context,
15427 i386_thread_added): Use dr_status_mirror and dr_control_mirror
15428 from debug_reg_state.
15430 2011-11-05 Yao Qi <yao@codesourcery.com>
15432 * tracepoint.c (gdb_collect): Loop over tracepoints of same
15433 address as TPOINT's.
15435 2011-11-02 Stan Shebs <stan@codesourcery.com>
15437 * tracepoint.c (agent_mem_read_string): New function.
15438 (eval_agent_expr): Call it for tracenz.
15439 * server.c (handle_query): Report support for tracenz.
15441 2011-11-02 Yao Qi <yao@codesourcery.com>
15443 * tracepoint.c (cmd_qtstart): Remove unused local variables.
15445 2011-11-02 Yao Qi <yao@codesourcery.com>
15447 * target.h: Fix a typo in comment.
15449 2011-10-31 Pedro Alves <pedro@codesourcery.com>
15451 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
15452 clobber the breakpoints' shadows with fast tracepoint jumps.
15453 * mem-break.h (check_mem_write): Add `myaddr' parameter.
15454 * target.c (write_inferior_memory): Also pass MYADDR down to
15457 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
15459 * configure.ac: Check support for personality routine.
15460 * configure: Regenerate.
15461 * config.in: Likewise.
15462 * linux-low.c: Include <sys/personality.h>.
15463 Define ADDR_NO_RANDOMIZE if necessary.
15464 (linux_create_inferior): Disable address space randomization when
15465 forking inferior, if requested.
15466 (linux_supports_disable_randomization): New function.
15467 (linux_target_ops): Install it.
15468 * server.h (disable_randomization): Declare.
15469 * server.c (disable_randomization): New global variable.
15470 (handle_general_set): Handle QDisableRandomization.
15471 (handle_query): Likewise for qSupported.
15472 (main): Support --disable-randomization and --no-disable-randomization
15473 command line arguments.
15474 * target.h (struct target_ops): Add supports_disable_randomization.
15475 (target_supports_disable_randomization): New macro.
15477 2011-09-29 Mike Frysinger <vapier@gentoo.org>
15479 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
15481 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
15482 [!PT_GETDSBT] (target_loadmap): New definition.
15483 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
15484 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
15485 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
15486 and PT_GETDSBT to LINUX_LOADMAP.
15487 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
15488 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
15490 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
15492 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
15493 (arm_linux_hwbp_cap): New static variable.
15494 (arm_linux_get_hwbp_cap): Replace by ...
15495 (arm_linux_init_hwbp_cap): ... this new function.
15496 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
15497 (arm_linux_get_hw_watchpoint_count): Likewise.
15498 (arm_linux_get_hw_watchpoint_max_length): Likewise.
15499 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
15500 (arm_prepare_to_resume): Use perror_with_name instead of error.
15502 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
15504 * linux-arm-low.c: Include <signal.h>.
15505 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
15506 (struct arm_linux_hwbp_cap): New data type.
15507 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
15508 (struct arm_linux_hw_breakpoint): New data type.
15509 (MAX_BPTS, MAX_WPTS): Define.
15510 (struct arch_process_info, struct arch_lwp_info): New data types.
15511 (arm_linux_get_hwbp_cap): New function.
15512 (arm_linux_get_hw_breakpoint_count): Likewise.
15513 (arm_linux_get_hw_watchpoint_count): Likewise.
15514 (arm_linux_get_hw_watchpoint_max_length): Likewise.
15515 (arm_hwbp_control_initialize): Likewise.
15516 (arm_hwbp_control_is_enabled): Likewise.
15517 (arm_hwbp_control_is_initialized): Likewise.
15518 (arm_hwbp_control_disable): Likewise.
15519 (arm_linux_hw_breakpoint_equal): Likewise.
15520 (arm_linux_hw_point_initialize): Likewise.
15521 (struct update_registers_data): New data structure.
15522 (update_registers_callback: New function.
15523 (arm_insert_point): Likewise.
15524 (arm_remove_point): Likewise.
15525 (arm_stopped_by_watchpoint): Likewise.
15526 (arm_stopped_data_address): Likewise.
15527 (arm_new_process): Likewise.
15528 (arm_new_thread): Likewise.
15529 (arm_prepare_to_resume): Likewise.
15530 (the_low_target): Register arm_insert_point, arm_remove_point,
15531 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
15532 arm_new_thread, and arm_prepare_to_resume.
15534 2011-09-15 Stan Shebs <stan@codesourcery.com>
15536 * server.h (struct emit_ops): Add compare-goto fields.
15537 * tracepoint.c (gdb_agent_op_sizes): New table.
15538 (emit_eq_goto): New function.
15539 (emit_ne_goto): New function.
15540 (emit_lt_goto): New function.
15541 (emit_le_goto): New function.
15542 (emit_gt_goto): New function.
15543 (emit_ge_goto): New function.
15544 (is_goto_target): New function.
15545 (compile_bytecodes): Recognize special cases of compare-goto
15546 combinations and call specialized emitters for them.
15547 * linux-x86-low.c (amd64_emit_eq_goto): New function.
15548 (amd64_emit_ne_goto): New function.
15549 (amd64_emit_lt_goto): New function.
15550 (amd64_emit_le_goto): New function.
15551 (amd64_emit_gt_goto): New function.
15552 (amd64_emit_ge_goto): New function.
15553 (amd64_emit_ops): Add the new functions.
15554 (i386_emit_eq_goto): New function.
15555 (i386_emit_ne_goto): New function.
15556 (i386_emit_lt_goto): New function.
15557 (i386_emit_le_goto): New function.
15558 (i386_emit_gt_goto): New function.
15559 (i386_emit_ge_goto): New function.
15560 (i386_emit_ops): Add the new functions.
15562 2011-09-08 Stan Shebs <stan@codesourcery.com>
15564 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
15565 (i386_emit_epilogue): Restore %ebx.
15567 2011-08-31 Jie Zhang <jzhang918@gmail.com>
15569 * server.c (step_thread): Remove definition.
15570 (process_serial_event): Don't handle Hs.
15571 * server.h (step_thread): Remove declaration.
15572 * target.c (set_desired_inferior): Remove use of step_thread.
15574 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
15576 * linux-low.c: Include linux-procfs.h.
15577 (linux_attach_lwp_1): Update comments.
15578 (linux_attach): Scan for existing threads when attaching to a
15579 process that is the tgid.
15580 * Makefile.in: Update dependencies.
15582 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
15584 * configure.srv: Add linux-procfs.o dependencies.
15586 2011-08-14 Yao Qi <yao@codesourcery.com>
15588 * target.h (struct target_ops): Fix indent.
15589 * win32-low.c (win32_target_ops): Fix comment.
15591 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
15592 Yao Qi <yao@codesourcery.com>
15594 * Makefile.in (clean): Remove tic6x-*.c files.
15595 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
15596 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
15597 (tic6x-c64xp-linux.c): Likewise.
15598 * configure.srv: Add support for tic6x-*-uclinux.
15599 * linux-tic6x-low.c: New.
15600 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
15602 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
15603 Yao Qi <yao@codesourcery.com>
15605 * target.h (struct target_ops): Add read_loadmap.
15606 * linux-low.c (struct target_loadseg): New type.
15607 (struct target_loadmap): New type.
15608 (linux_read_loadmap): New function.
15609 (linux_target_ops): Add linux_read_loadmap.
15610 * server.c (handle_query): Support qXfer:fdpic:read packet.
15611 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
15614 2011-08-05 Eli Zaretskii <eliz@gnu.org>
15616 * win32-low.c: Include <stdint.h>.
15618 2011-07-22 Pedro Alves <pedro@codesourcery.com>
15620 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
15621 to the inferior here.
15622 (i386_remove_aligned_watchpoint): Ditto.
15623 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
15624 fit part of the watchpoint in the debug registers.
15625 (i386_update_inferior_debug_regs): New.
15626 (i386_low_insert_watchpoint): Work on a local mirror of the debug
15627 registers, and only update the inferior on success.
15628 (i386_low_remove_watchpoint): Ditto.
15630 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
15632 * linux-low.c (compare_ints, unique, list_threads, show_process,
15633 linux_core_of_thread): Delete.
15634 (linux_target_ops): Change linux_core_of_thread to
15635 linux_common_core_of_thread.
15636 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
15637 * utils.c (malloc_failure): Change type of argument.
15638 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
15639 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
15640 common/linux-osdata.c, common/ptid.c and common/buffer.c.
15641 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
15642 (IPA_OBJS): Add common-utils-ipa.o.
15643 (ptid_h, linux_osdata_h): New macros.
15644 (server_h): Add common/common-utils.h, common/xml-utils.h,
15645 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
15647 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
15648 ptid.o, buffer.o): New rules.
15649 (linux-low.o): Add common/linux-osdata.h as a dependency.
15650 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
15651 * configure.ac: Add AC_HEADER_DIRENT check.
15652 * config.in: Regenerate.
15653 * configure: Regenerate.
15654 * remote-utils.c (xml_escape_text): Delete.
15655 (buffer_grow, buffer_free, buffer_init, buffer_finish,
15656 buffer_xml_printf): Move to common/buffer.c.
15657 * server.c (main): Remove call to initialize_inferiors.
15658 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
15659 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
15660 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
15661 internal_error, gdb_assert, gdb_assert_fail): Delete.
15662 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
15663 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
15665 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
15666 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
15667 initialize_inferiors): Delete.
15669 2011-07-20 Pedro Alves <pedro@codesourcery.com>
15671 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
15674 2011-05-31 Pedro Alves <pedro@codesourcery.com>
15676 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
15678 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
15680 2011-05-26 Yao Qi <yao@codesourcery.com>
15682 * Makefile.in (thread-db.o): Track dependence to
15683 common/gdb_thread_db.h.
15684 * thread-db.c: include gdb_thread_db.h from right place.
15686 2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
15688 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
15689 __FILE__ and __LINE__ to internal_error.
15691 2011-05-13 Doug Evans <dje@google.com>
15693 * thread-db.c (try_thread_db_load_from_sdir): New function.
15694 (try_thread_db_load_from_dir): New function.
15695 (thread_db_load_search): Handle $sdir, ignore $pdir.
15696 Remove trying of system directories if search of
15697 libthread-db-search-path fails, that is now done via $sdir.
15699 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
15701 * server.c (handle_query): Add EnableDisableTracepoints to the list
15702 of supported features.
15703 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
15705 (cmd_qtenable_disable): New.
15706 (cmd_qtstart): Install tracepoints even if disabled.
15707 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
15708 receiving a QTEnable or QTDisable packet.
15709 (gdb_collect): Skip data collection if fast tracepoint is disabled.
15710 (ust_marker_to_static_tracepoint): Do not ignore disabled static
15712 (gdb_probe): Skip data collection if static tracepoint is disabled.
15714 2011-05-10 Doug Evans <dje@google.com>
15716 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
15718 2011-05-04 Doug Evans <dje@google.com>
15720 * linux-low.c (linux_join): Skip process lookup.
15721 * spu-low.c (spu_join): Ditto.
15722 * server.c (join_inferiors_callback): Delete.
15723 (process_serial_event): For 'D' packet (detach) call join_inferior
15726 2011-05-04 Joseph Myers <joseph@codesourcery.com>
15728 * README: Don't mention xscale*-*-linux*.
15729 * configure.srv (xscale*-*-linux*): Don't handle target.
15731 2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
15733 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
15735 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
15736 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
15737 (i386_emit_void_call_2): Likewise.
15739 2011-04-26 Yao Qi <yao@codesourcery.com>
15741 * linux-low.c: Move common macros to linux-ptrace.h.
15742 Include linux-ptrace.h.
15743 * Makefile.in (linux_ptrace_h): New.
15744 (linux-low.o): Depends on linux-ptrace.h.
15746 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
15748 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
15749 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
15750 (remote_prepare): New function with most of the TCP code from ...
15751 (remote_open): ... here. Detect PORT here unconditionally. Move also
15752 setting transport_is_reliable.
15753 * server.c (run_once): New variable.
15754 (gdbserver_usage): Document it.
15755 (main): Set run_once for `--once'. Call remote_prepare. Exit after
15756 the first run if RUN_ONCE.
15757 * server.h (run_once, remote_prepare): New declarations.
15759 2011-04-19 Tom Tromey <tromey@redhat.com>
15761 * win32-low.c (handle_load_dll): Remove duplicate "the".
15763 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
15765 Remove support for old Cygwin 1.5 versions.
15766 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
15767 function to avoid warning.
15768 (win32_add_one_solib): Use cygwin_conv_path function to avoid
15771 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
15773 * gdbserver/server.h (Macro _): Define it if not available.
15775 2011-03-14 Michael Snyder <msnyder@vmware.com>
15777 * hostio.c (handle_close): Remove unnecessary null test.
15779 2011-03-10 Joel Brobecker <brobecker@adacore.com>
15781 * Makefile.in (maintainer-clean realclean distclean): Remove
15782 "make ... subdir_do" command.
15784 2011-03-10 Michael Snyder <msnyder@vmware.com>
15786 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
15788 * server.c (handle_v_run): Free alloced buffer on early return.
15790 2011-03-09 Yao Qi <yao@codesourcery.com>
15793 2011-03-04 Yao Qi <yao@codesourcery.com>
15795 * Makefile.in: Remove GNU make feature --directory.
15797 2011-03-05 Yao Qi <yao@codesourcery.com>
15799 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
15800 (subdir_do): New make target. Copied from gdb/Makefile.
15801 (maintainer-clean, realclean, distclean, clean): Call corresponding
15802 make targets in common/Makefile.
15804 2011-02-11 Yao Qi <yao@codesourcery.com>
15806 * configure.ac: Call AC_PROG_RANLIB.
15807 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
15808 * configure: Regenerate.
15810 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
15812 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
15814 2011-03-06 Yao Qi <yao@codesourcery.com>
15816 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
15818 2011-03-05 Yao Qi <yao@codesourcery.com>
15820 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
15821 (subdir_do): New make target. Copied from gdb/Makefile.
15822 (maintainer-clean, realclean, distclean, clean): Call corresponding
15823 make targets in common/Makefile.
15825 2011-03-04 Yao Qi <yao@codesourcery.com>
15827 * Makefile.in: Remove GNU make feature --directory.
15829 2011-03-04 Michael Snyder <msnyder@vmware.com>
15831 * server.c (queue_stop_reply): Call xmalloc not malloc.
15833 2011-03-02 Michael Snyder <msnyder@vmware.com>
15835 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
15837 2011-02-28 Michael Snyder <msnyder@vmware.com>
15839 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
15840 (cmd_qtframe): Ditto.
15841 (cmd_qtbuffer): Ditto.
15842 (cmd_bigqtbuffer): Ditto.
15844 * utils.c (decimal2str): Initialize 'width' to nine, then
15845 don't mess with it.
15847 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
15849 * hostio.c (require_data): Free *data, not data.
15851 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15853 * hostio.c (require_data): Use free, not xfree.
15855 2011-02-27 Michael Snyder <msnyder@vmware.com>
15857 * server.c (handle_query): Discard unused value.
15859 * hostio.c (require_data): Free malloc memory before returning
15862 2011-02-26 Michael Snyder <msnyder@vmware.com>
15864 * linux-low.c (list_threads): Call closedir for dirent.
15866 2011-02-27 Michael Snyder <msnyder@vmware.com>
15868 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
15869 a case statement falls through.
15871 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
15873 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
15876 2011-02-26 Michael Snyder <msnyder@vmware.com>
15878 * utils.c (decimal2str): Eliminate dead code and dead param.
15879 (pulongest): Drop dead param from call to decimal2str.
15882 2011-02-24 Joel Brobecker <brobecker@adacore.com>
15884 Revert the following patch (not approved yet):
15885 2011-02-21 Hui Zhu <teawater@gmail.com>
15886 * tracepoint.c (tp_printf): New function.
15887 (eval_agent_expr): Handle gdb_agent_op_printf.
15889 2011-02-21 Hui Zhu <teawater@gmail.com>
15891 * tracepoint.c (tp_printf): New function.
15892 (eval_agent_expr): Handle gdb_agent_op_printf.
15894 2011-02-18 Tom Tromey <tromey@redhat.com>
15896 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
15897 (tracepoint.o): Likewise.
15898 * tracepoint.c (enum gdb_agent_op): Use ax.def.
15899 (gdb_agent_op_names): Likewise.
15901 2011-02-18 Tom Tromey <tromey@redhat.com>
15903 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
15904 gdb_agent_op_rot>: New constants.
15905 (gdb_agent_op_names): Add pick and roll.
15906 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
15909 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
15911 * aclocal.m4: Regenerated with aclocal-1.11.1.
15913 2011-02-14 Pedro Alves <pedro@codesourcery.com>
15915 * server.c (handle_qxfer_traceframe_info): New.
15916 (qxfer_packets): Register "traceframe-info".
15917 (handle_query): Report support for qXfer:traceframe-info:read+.
15918 * tracepoint.c (match_blocktype): New.
15919 (traceframe_find_block_type): Rename to ...
15920 (traceframe_walk_blocks): ... this. Add callback filter argument,
15922 (traceframe_find_block_type): New, reimplemented on top of
15923 traceframe_walk_blocks.
15924 (build_traceframe_info_xml): New.
15925 (traceframe_read_info): New.
15926 * server.h (traceframe_read_info): Declare.
15928 2011-02-11 Yao Qi <yao@codesourcery.com>
15930 * configure.ac: Call AC_PROG_RANLIB.
15931 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
15932 * configure: Regenerate.
15934 2011-02-07 Pedro Alves <pedro@codesourcery.com>
15936 * server.c (gdb_read_memory): Change return semantics to allow
15938 (handle_search_memory_1): Adjust.
15939 (process_serial_event) <'m' packet>: Handle partial transfers.
15940 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
15942 2011-01-28 Pedro Alves <pedro@codesourcery.com>
15944 * regcache.c (init_register_cache): Initialize
15945 regcache->register_status.
15946 (free_register_cache): Release regcache->register_status.
15947 (regcache_cpy): Copy register_status.
15948 (registers_to_string): Print 'x's for unavailable registers.
15949 (supply_register): Mark the register's status valid or
15950 unavailable, depending on whether a buffer was passed in or not.
15951 (supply_register_zeroed): New.
15952 (supply_regblock): Mark the registers' status valid or
15953 unavailable, depending on whether a buffer was passed in or not.
15954 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
15955 (struct regcache): New `register_status' field.
15956 (supply_register_zeroed): Declare.
15957 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
15958 supply_register_zeroed, rather than passing a NULL buffer to
15960 * tracepoint.c (fetch_traceframe_registers): Update comment.
15962 2011-01-28 Pedro Alves <pedro@codesourcery.com>
15964 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
15967 2011-01-25 Pedro Alves <pedro@codesourcery.com>
15969 * server.h (decode_xfer_write): Change prototype.
15970 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
15971 and don't extract the annex here.
15972 * server.c (decode_xfer_read): Remove `annex' parameter,
15973 and don't extract the annex here.
15974 (decode_xfer): New.
15975 (struct qxfer): New.
15976 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
15977 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
15978 (handle_qxfer_statictrace): New functions, abstracted out from
15979 handle_query, and made to use the struct qxfer interface.
15980 (handle_threads_qxfer_proper): Rename to ...
15981 (handle_qxfer_threads_proper): ... this.
15982 (handle_threads_qxfer): Rename to ...
15983 (handle_qxfer_threads): ... this. Adjust.
15984 (qxfer_packets): New array.
15985 (handle_qxfer): New function.
15986 (handle_query): Use handle_qxfer.
15988 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
15990 * gdbreplay.c: Shorten lines of >= 80 columns.
15991 * linux-low.c: Ditto.
15992 * linux-ppc-low.c: Ditto.
15993 * linux-s390-low.c: Ditto.
15994 * linux-sparc-low.c: Ditto.
15995 * linux-x86-low.c: Ditto.
15996 * linux-xtensa-low.c: Ditto.
15997 * mem-break.c: Ditto.
15998 * nto-low.c: Ditto.
15999 * regcache.h: Ditto.
16000 * remote-utils.c: Ditto.
16003 * thread-db.c: Ditto.
16004 * tracepoint.c: Ditto.
16006 * win32-low.h: Ditto.
16008 2011-01-05 Joel Brobecker <brobecker@adacore.com>
16010 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
16013 2011-01-01 Joel Brobecker <brobecker@adacore.com>
16015 * server.c (gdbserver_version): Update copyright year in version
16017 * gdbreplay.c (gdbreplay_version): Ditto.
16019 2010-12-29 Jie Zhang <jie.zhang@analog.com>
16021 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
16022 * linux-bfin-low.c: New file.
16023 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
16024 PT_DATA_ADDR for BFIN targets.
16025 * Makefile.in (SFILES): Add linux-bfin-low.c.
16026 (clean): Remove reg-bfin.c.
16027 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
16028 * README: Mention supported Blackfin targets.
16030 2010-12-23 Mike Frysinger <vapier@gentoo.org>
16032 * .gitignore: New file.
16034 2010-11-16 Mike Frysinger <vapier@gentoo.org>
16036 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
16038 2010-10-22 Jie Zhang <jie@codesourcery.com>
16040 * Makefile.in: Add FLAGS_TO_PASS variable.
16041 (install): Remove dependency of install-only and recursively
16042 invoke make for install-only.
16044 2010-10-04 Doug Evans <dje@google.com>
16046 * Makefile.in (uninstall): Use $(DESTDIR).
16048 2010-09-24 Pedro Alves <pedro@codesourcery.com>
16052 * linux-x86-low.c (compat_siginfo_from_siginfo)
16053 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
16054 si_code is < 0. Check for si_code == SI_TIMER before checking for
16057 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16059 * lynx-i386-low.c: New file.
16060 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
16062 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16064 * lynx-low.c (ptrace_request_to_str): Remove handling for
16065 request values that have been removed in LynxOS 5.x.
16067 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16069 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
16072 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
16074 * configure.ac: Add --enable-inprocess-agent option.
16075 * configure: Rebuilt.
16077 2010-09-06 Yao Qi <yao@codesourcery.com>
16079 * linux-low.c (linux_kill): Remove unused variable.
16080 (linux_stabilize_threads): Likewise.
16081 * server.c (start_inferior): Likewise.
16082 (queue_stop_reply_callback): Likewise.
16083 * tracepoint.c (do_action_at_tracepoint): Likewise.
16085 2010-09-06 Yao Qi <yao@codesourcery.com>
16087 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
16090 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16092 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
16094 2010-09-06 Pedro Alves <pedro@codesourcery.com>
16096 * Makefile.in (install-only): Replace $IPA_DEPFILES with
16099 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16101 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
16102 gdbserver/lynx-ppc-low.c: New files.
16103 * Makefile.in (lynx_low_h): New variable.
16104 (lynx-low.o, lynx-ppc-low.o): New rules.
16105 * configure.ac: On LynxOS, link with -lnetinet.
16106 * configure.srv: Add handling of powerpc-*-lynxos* targets.
16107 * configure: regenerate.
16109 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16111 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
16112 * configure.ac: Add check for vasprintf and vsnprintf.
16113 * configure, config.in: Regenerate.
16114 * server.h (vasprintf, vsnprintf): Add conditional declarations.
16116 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16118 * gdbreplay.c: Move include of alloca.h up, next to include of
16120 * server.h: Add include of malloc.h.
16121 * mem-break.c: Remove include of malloc.h.
16122 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
16124 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16126 * Makefile.in (memmem.o): Build with -Wno-error.
16128 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16130 * utils.c (xsnprintf): Make non-static.
16131 * server.h: Add xsnprintf declaration.
16132 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
16133 replace calls to snprintf by calls to xsnprintf throughout.
16135 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16137 * configure.ac: Add configure check for alloca.
16138 * configure, config.in: Regenerate.
16139 * server.h: Include alloca.h if it exists.
16140 * gdbreplay.c: Include alloca.h if it exists.
16142 2010-08-28 Pedro Alves <pedro@codesourcery.com>
16144 * linux-low.c (__SIGRTMIN): Define if not already defined.
16145 (linux_create_inferior): Check for __ANDROID__ rather than
16147 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
16148 are already deferred.
16149 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
16150 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
16151 stopped and already has a pending signal to report.
16152 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
16153 a pending signal to report or is moving out of a jump pad.
16154 (linux_init_signals): Check for __ANDROID__ rather than
16157 2010-08-28 Pedro Alves <pedro@codesourcery.com>
16159 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
16160 debug_threads check. Avoid a linear search when not doing debug
16163 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16165 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
16166 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
16167 (struct file_handler) <fd>: Change type to gdb_fildes_t.
16168 (process_event): Change local fd's type to gdb_fildes_t.
16169 (create_file_handler): Adjust prototype.
16170 (delete_file_handler): Adjust prototype.
16171 (handle_file_event): Adjust prototype. Use pfildes.
16172 (create_file_event): Adjsut prototype.
16173 * remote-utils.c (remote_desc, listen_desc): Change type to
16175 * server.h: New gdb_fildes_t typedef.
16176 [USE_WIN32API]: Include winsock2.h.
16177 (delete_file_handler, add_file_handler): Adjust prototypes.
16178 (pfildes): Declare.
16179 * utils.c (pfildes): New.
16181 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16183 * configure.ac (build_warnings): Add -Wno-char-subscripts.
16184 * configure: Regenerate.
16186 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16188 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
16189 (linux_done_accessing_memory): ... this.
16190 (linux_target_ops): Adjust.
16191 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
16192 * nto-low.c (nto_target_ops): Adjust comment.
16193 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
16194 * spu-low.c (spu_target_ops): Adjust comment.
16195 * target.h (target_ops): Rename unprepare_to_access_memory field
16196 to done_accessing_memory.
16197 (unprepare_to_access_memory): Rename to ...
16198 (done_accessing_memory): ... this.
16200 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16202 * linux-low.c (linux_prepare_to_access_memory): New.
16203 (linux_unprepare_to_access_memory): New.
16204 (linux_target_ops): Install them.
16205 * server.c (read_memory): Rename to ...
16206 (gdb_read_memory): ... this. Use
16207 prepare_to_access_memory/prepare_to_access_memory.
16208 (write_memory): Rename to ...
16209 (gdb_write_memory): ... this. Use
16210 prepare_to_access_memory/prepare_to_access_memory.
16211 (handle_search_memory_1): Adjust.
16212 (process_serial_event): Adjust.
16213 * target.h (struct target_ops): New fields
16214 prepare_to_access_memory and unprepare_to_access_memory.
16215 (prepare_to_access_memory, unprepare_to_access_memory): New.
16216 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
16217 prepare_to_access_memory/prepare_to_access_memory.
16218 * nto-low.c (nto_target_ops): Adjust.
16219 * spu-low.c (spu_target_ops): Adjust.
16220 * win32-low.c (win32_target_ops): Adjust.
16222 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16224 * Makefile.in (WARN_CFLAGS): Get it from configure.
16225 (WERROR_CFLAGS): New.
16226 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
16227 * configure.ac: Introduce --enable-werror, which adds -Werror to
16228 the compiler command line. Enabled by default. Disable with
16229 --disable-werror. Add -Wdeclaration-after-statement
16230 Wpointer-arith and -Wformat-nonliteral to warning flags.
16231 * configure: Regenerate.
16233 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16235 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
16237 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16239 * gdbreplay.c (remote_error): New.
16241 (expect): Use gdbchar. Check for error reading from GDB.
16242 Clarify sync error output.
16243 (play): Check for errors writing to GDB.
16244 * linux-low.c (sigchld_handler): Really ignore `write' errors.
16245 * remote-utils.c (getpkt): Check for errors writing to the remote
16248 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16250 * linux-low.c (linux_wait_1): Move non-debugging code out of
16251 `debug_threads' control.
16253 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16255 * linux-low.c (linux_wait_1): Don't set last_status here.
16256 * server.c (push_event, queue_stop_reply_callback): Assert we're
16257 not pushing a TARGET_WAITKIND_IGNORE event.
16258 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
16259 (myresume, handle_target_event): Set the thread's last_resume_kind
16260 and last_status from the target returned status.
16262 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16266 * linux-x86-low.c (update_debug_registers_callback): New.
16267 (i386_dr_low_set_addr): Use it.
16268 (i386_dr_low_get_addr): New.
16269 (i386_dr_low_set_control): Use update_debug_registers_callback.
16270 (i386_dr_low_get_control): New.
16271 (i386_dr_low_get_status): Adjust.
16272 * linux-low.c (linux_stop_lwp): New.
16273 * linux-low.h (linux_stop_lwp): Declare.
16275 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
16276 argument instead of a i386_debug_reg_state.
16277 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
16278 a i386_debug_reg_state.
16279 (i386_insert_aligned_watchpoint): Adjust.
16280 (i386_remove_aligned_watchpoint): Adjust.
16281 (i386_low_stopped_data_address): Read the debug registers from the
16282 inferior instead of from the mirrors.
16283 * i386-low.h (struct i386_debug_reg_state): Extend comment.
16284 (i386_dr_low_get_addr): Declare.
16285 (i386_dr_low_get_control): Declare.
16286 (i386_dr_low_get_status): Change prototype.
16288 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
16289 (i386_dr_low_get_addr): New.
16290 (i386_dr_low_get_control): New.
16291 (i386_dr_low_get_status): Adjust prototype. Return
16293 (i386_initial_stuff): Clear dr_status_mirror and
16295 (i386_get_thread_context): Adjust.
16296 (i386_set_thread_context): Adjust.
16297 (i386_thread_added): Adjust.
16299 2010-08-24 Pedro Alves <pedro@codesourcery.com>
16301 * linux-low.h (linux_thread_area): Delete declaration.
16303 2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
16305 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
16306 after its termination.
16308 2010-08-09 Pedro Alves <pedro@codesourcery.com>
16310 * linux-low.c (gdb_wants_lwp_stopped): Delete.
16311 (gdb_wants_all_stopped): Delete.
16312 (linux_wait_1): Don't call them.
16313 * server.c (handle_v_cont): Tag all threads as want-stopped.
16314 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
16315 stopped as "client-wants-stopped".
16317 2010-07-31 Pedro Alves <pedro@codesourcery.com>
16319 * Makefile.in (signals_h): New.
16320 (server_h): Depend on it.
16321 (server.o): Don't depend on $(signals_def).
16322 (signals.o): Depend on $(signals_def).
16324 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
16326 * Makefile.in (signals_def): New.
16327 (server_h): Append include/gdb/signals.h and signals_def.
16328 (server.o): Append signals_def.
16330 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
16332 * server.c (handle_target_event): Use target_signal_to_host for
16333 resume_info.sig initialization.
16334 * target.h (struct thread_resume) <sig>: New comment.
16336 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
16338 * server.c (handle_query): strcpy() the returned string from paddress()
16339 instead of sprintf().
16340 * utils.c (paddress): Return phex_nz().
16342 2010-07-07 Joel Brobecker <brobecker@adacore.com>
16344 * server.c (handle_v_cont): Call mourn_inferior if process
16346 (myresume): Likewise.
16348 2010-07-01 Pedro Alves <pedro@codesourcery.com>
16350 Static tracepoints, and integration with UST.
16352 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
16353 * mem-break.c (uninsert_all_breakpoints)
16354 (reinsert_all_breakpoints): New.
16355 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
16356 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
16357 (gdb_agent_ust_loaded, helper_thread_id)
16358 (gdb_agent_helper_thread_id): New macros.
16359 (struct ipa_sym_addresses): Add addr_ust_loaded,
16360 addr_helper_thread_id, addr_cmd_buf.
16361 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
16362 (in_process_agent_loaded_ust): New.
16363 (write_e_ust_not_loaded): New.
16364 (maybe_write_ipa_ust_not_loaded): New.
16365 (struct collect_static_trace_data_action): New.
16366 (enum tracepoint_type) <static_tracepoint>: New.
16367 (struct tracepoint) <handle>: Mention static tracepoints.
16368 (struct static_tracepoint_ctx): New.
16369 (CMD_BUF_SIZE): New.
16370 (add_tracepoint_action): Handle static tracepoint actions.
16371 (unprobe_marker_at): New.
16372 (clear_installed_tracepoints): Handle static tracepoints.
16373 (cmd_qtdp): Handle static tracepoints.
16374 (probe_marker_at): New.
16375 (cmd_qtstart): Handle static tracepoints.
16376 (response_tracepoint): Handle static tracepoints.
16377 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
16378 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
16379 (get_context_regcache): Handle static tracepoints.
16380 (do_action_at_tracepoint): Handle static tracepoint actions.
16381 (traceframe_find_block_type): Handle static trace data blocks.
16382 (traceframe_read_sdata): New.
16383 (download_tracepoints): Download static tracepoint actions.
16384 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
16385 (GDB_PROBE_NAME): New.
16387 (GET_UST_SYM): New.
16390 (ust_marker_to_static_tracepoint): New.
16392 (collect_ust_data_at_tracepoint): New.
16393 (gdb_ust_probe): New.
16394 (UNIX_PATH_MAX, SOCK_DIR): New.
16395 (gdb_ust_connect_sync_socket): New.
16396 (resume_thread, stop_thread): New.
16397 (run_inferior_command): New.
16398 (init_named_socket): New.
16399 (gdb_ust_socket_init): New.
16400 (cstr_to_hexstr): New.
16402 (first_marker, next_marker): New.
16403 (response_ust_marker): New.
16404 (cmd_qtfstm, cmd_qtsstm): New.
16405 (unprobe_marker_at, probe_marker_at): New.
16406 (cmd_qtstmat, gdb_ust_thread): New.
16407 (gdb_ust_init): New.
16408 (initialize_tracepoint_ftlib): Call gdb_ust_init.
16409 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
16410 (ST_REGENTRY): New.
16411 (x86_64_st_collect_regmap): New.
16412 (X86_64_NUM_ST_COLLECT_GREGS): New.
16413 (AMD64_RIP_REGNUM): New.
16414 (supply_static_tracepoint_registers): New.
16415 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
16416 (ST_REGENTRY): New.
16417 (i386_st_collect_regmap): New.
16418 (i386_NUM_ST_COLLECT_GREGS): New.
16419 (supply_static_tracepoint_registers): New.
16420 * server.c (handle_query): Handle qXfer:statictrace:read.
16421 <qSupported>: Report support for StaticTracepoints, and
16422 qXfer:statictrace:read features.
16423 * server.h (traceframe_read_sdata)
16424 (supply_static_tracepoint_registers): Declare.
16425 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
16426 (unpack_varlen_hex): Include in IPA build.
16427 * Makefile.in (ustlibs, ustinc): New.
16428 (IPA_OBJS): Add remote-utils-ipa.o.
16429 ($(IPA_LIB)): Link -ldl and -lpthread.
16431 (IPAGENT_CFLAGS): Add UST_CFLAGS.
16432 * config.in, configure: Regenerate.
16434 2010-06-20 Ian Lance Taylor <iant@google.com>
16435 Pedro Alves <pedro@codesourcery.com>
16437 * linux-x86-low.c (always_true): Delete.
16438 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
16439 trying to fool the compiler with always_true.
16441 2010-06-20 Pedro Alves <pedro@codesourcery.com>
16443 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
16444 conditions in gdbserver.
16446 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
16448 * spu-low.c (spu_read_memory): Wrap around local store limit.
16449 (spu_write_memory): Likewise.
16451 2010-06-15 Pedro Alves <pedro@codesourcery.com>
16453 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
16454 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
16456 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
16458 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
16459 uses with LONGEST uses.
16461 2010-06-14 Stan Shebs <stan@codesourcery.com>
16462 Pedro Alves <pedro@codesourcery.com>
16466 * linux-x86-low.c: Include limits.h.
16468 (always_true): New.
16471 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
16472 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
16473 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
16474 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
16475 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
16476 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
16477 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
16478 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
16479 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
16480 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
16481 (amd64_emit_void_call_2): New.
16482 (amd64_emit_ops): New.
16483 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
16484 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
16485 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
16486 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
16487 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
16488 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
16489 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
16490 (i386_emit_call, i386_emit_reg, i386_emit_pop)
16491 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
16492 (i386_emit_stack_adjust, i386_emit_int_call_1)
16493 (i386_emit_void_call_2): New.
16494 (i386_emit_ops): New.
16495 (x86_emit_ops): New.
16496 (the_low_target): Install x86_emit_ops.
16497 * server.h (struct emit_ops): New.
16498 (get_raw_reg_func_addr): Declare.
16499 (current_insn_ptr, emit_error): Declare.
16500 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
16501 (set_trace_state_variable_value): New defines.
16502 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
16503 addr_get_trace_state_variable_value and
16504 addr_set_trace_state_variable_value.
16505 (symbol_list): New fields for get_raw_reg,
16506 get_trace_state_variable_value and set_trace_state_variable_value.
16507 (condfn): New typedef.
16508 (struct tracepoint): New field `compiled_cond'.
16509 (do_action_at_tracepoint): Clear compiled_cond.
16510 (get_trace_state_variable_value, set_trace_state_variable_value):
16512 (condition_true_at_tracepoint): If there's a compiled condition,
16514 (current_insn_ptr, emit_error): New globals.
16515 (struct bytecode_address): New.
16516 (get_raw_reg_func_addr): New.
16517 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
16518 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
16519 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
16520 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
16521 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
16522 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
16523 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
16524 (compile_tracepoint_condition, compile_bytecodes): New.
16525 * target.h (emit_ops): Forward declare.
16526 (struct target_ops): New field emit_ops.
16527 (target_emit_ops): New.
16528 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
16529 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
16530 * linux-low.c (linux_emit_ops): New.
16531 (linux_target_ops): Install it.
16532 * linux-low.h (struct linux_target_ops): New field emit_ops.
16534 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
16536 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
16537 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
16539 2010-06-01 Pedro Alves <pedro@codesourcery.com>
16540 Stan Shebs <stan@codesourcery.com>
16542 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
16543 (all): Depend on $(extra_libraries).
16544 (install-only): Install the IPA.
16545 (IPA_OBJS, IPA_LIB): New.
16546 (clean): Remove the IPA lib.
16547 (IPAGENT_CFLAGS): New.
16548 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
16549 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
16550 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
16551 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
16552 * configure.ac: Check for atomic builtins support in the compiler.
16553 (IPA_DEPFILES, extra_libraries): Define.
16554 * configure.srv (ipa_obj): Add description.
16555 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
16556 (i[34567]86-*-linux*): Set ipa_obj.
16557 (x86_64-*-linux*): Set ipa_obj.
16558 * linux-low.c (stabilizing_threads): New.
16559 (supports_fast_tracepoints): New.
16560 (linux_detach): Stabilize threads before detaching.
16561 (handle_tracepoints): Handle internal tracing breakpoints. Assert
16562 the lwp is either not stabilizing, or is moving out of a jump pad.
16563 (linux_fast_tracepoint_collecting): New.
16564 (maybe_move_out_of_jump_pad): New.
16565 (enqueue_one_deferred_signal): New.
16566 (dequeue_one_deferred_signal): New.
16567 (linux_wait_for_event_1): If moving out of a jump pad, defer
16568 pending signals to later.
16569 (linux_stabilize_threads): New.
16570 (linux_wait_1): Check if threads need moving out of jump pads, and
16572 (stuck_in_jump_pad_callback): New.
16573 (move_out_of_jump_pad_callback): New.
16574 (lwp_running): New.
16575 (linux_resume_one_lwp): Handle moving out of jump pads.
16576 (linux_set_resume_request): Dequeue deferred signals.
16577 (need_step_over_p): Also step over fast tracepoint jumps.
16578 (start_step_over): Also uninsert fast tracepoint jumps.
16579 (finish_step_over): Also reinsert fast tracepoint jumps.
16580 (linux_install_fast_tracepoint_jump): New.
16581 (linux_target_ops): Install linux_stabilize_threads and
16582 linux_install_fast_tracepoint_jump_pad.
16583 * linux-low.h (linux_target_ops) <get_thread_area,
16584 install_fast_tracepoint_jump_pad>: New fields.
16585 (struct lwp_info) <collecting_fast_tracepoint,
16586 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
16587 (linux_get_thread_area): Declare.
16588 * linux-x86-low.c (jump_insn): New.
16589 (x86_get_thread_area): New.
16590 (append_insns): New.
16591 (push_opcode): New.
16592 (amd64_install_fast_tracepoint_jump_pad): New.
16593 (i386_install_fast_tracepoint_jump_pad): New.
16594 (x86_install_fast_tracepoint_jump_pad): New.
16595 (the_low_target): Install x86_get_thread_area and
16596 x86_install_fast_tracepoint_jump_pad.
16597 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
16598 (struct fast_tracepoint_jump): New.
16599 (fast_tracepoint_jump_insn): New.
16600 (fast_tracepoint_jump_shadow): New.
16601 (find_fast_tracepoint_jump_at): New.
16602 (fast_tracepoint_jump_here): New.
16603 (delete_fast_tracepoint_jump): New.
16604 (set_fast_tracepoint_jump): New.
16605 (uninsert_fast_tracepoint_jumps_at): New.
16606 (reinsert_fast_tracepoint_jumps_at): New.
16607 (set_breakpoint_at): Use write_inferior_memory.
16608 (uninsert_raw_breakpoint): Use write_inferior_memory.
16609 (check_mem_read): Mask out fast tracepoint jumps.
16610 (check_mem_write): Mask out fast tracepoint jumps.
16611 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
16612 (set_fast_tracepoint_jump): Declare.
16613 (delete_fast_tracepoint_jump)
16614 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
16615 (reinsert_fast_tracepoint_jumps_at): Declare.
16616 * regcache.c: Don't compile many functions when building the
16617 in-process agent library.
16618 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
16619 the register buffer in the heap.
16620 (free_register_cache): If the register buffer isn't owned by the
16621 regcache, don't free it.
16622 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
16623 pre-existing register caches.
16624 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
16626 (convert_ascii_to_int): : Constify `from' parameter type.
16627 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
16628 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
16629 the needed buffer in-place.
16630 (relocate_instruction): New.
16631 * server.c (handle_query) <qSymbols>: If the target supports
16632 tracepoints, give it a chance of looking up symbols. Report
16633 support for fast tracepoints.
16634 (handle_status): Stabilize threads.
16635 (process_serial_event): Adjust.
16636 * server.h (struct fast_tracepoint_jump): Forward declare.
16637 (struct process_info) <fast_tracepoint_jumps>: New field.
16638 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
16639 (decode_X_packet, decode_M_packet): Adjust.
16640 (relocate_instruction): Declare.
16641 (in_process_agent_loaded): Declare.
16642 (tracepoint_look_up_symbols): Declare.
16643 (struct fast_tpoint_collect_status): Declare.
16644 (fast_tracepoint_collecting): Declare.
16645 (force_unlock_trace_buffer): Declare.
16646 (handle_tracepoint_bkpts): Declare.
16647 (initialize_low_tracepoint)
16648 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
16649 * target.h (struct target_ops) <stabilize_threads,
16650 install_fast_tracepoint_jump_pad>: New fields.
16651 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
16652 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
16653 [HAVE_STDINT_H]: Include stdint.h.
16654 (trace_debug_1): Rename to ...
16655 (trace_vdebug): ... this.
16656 (trace_debug): Rename to ...
16657 (trace_debug_1): ... this. Add `level' parameter.
16658 (trace_debug): New.
16659 (ATTR_USED, ATTR_NOINLINE): New.
16660 (IP_AGENT_EXPORT): New.
16661 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
16662 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
16663 (about_to_request_buffer_space, trace_buffer_is_full)
16664 (stopping_tracepoint, expr_eval_result, error_tracepoint)
16665 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
16666 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
16667 (traceframe_write_count, traceframes_created)
16668 (trace_state_variables)
16669 New renaming defines.
16670 (struct ipa_sym_addresses): New.
16671 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
16672 (symbol_list): New.
16673 (ipa_sym_addrs): New.
16674 (all_tracepoint_symbols_looked_up): New.
16675 (in_process_agent_loaded): New.
16676 (write_e_ipa_not_loaded): New.
16677 (maybe_write_ipa_not_loaded): New.
16678 (tracepoint_look_up_symbols): New.
16679 (debug_threads) [IN_PROCESS_AGENT]: New.
16680 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
16681 (UNKNOWN_SIDE_EFFECTS): New.
16682 (stop_tracing): New.
16683 (flush_trace_buffer): New.
16684 (stop_tracing_bkpt): New.
16685 (flush_trace_buffer_bkpt): New.
16686 (read_inferior_integer): New.
16687 (read_inferior_uinteger): New.
16688 (read_inferior_data_pointer): New.
16689 (write_inferior_data_pointer): New.
16690 (write_inferior_integer): New.
16691 (write_inferior_uinteger): New.
16692 (struct collect_static_trace_data_action): Delete.
16693 (enum tracepoint_type): New.
16694 (struct tracepoint) <type>: New field `type'.
16695 <actions_str, step_actions, step_actions_str>: Only include in
16697 <orig_size, obj_addr_on_target, adjusted_insn_addr>
16698 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
16699 (tracepoints): Use IP_AGENT_EXPORT.
16700 (last_tracepoint): Don't include in the IPA.
16701 (stopping_tracepoint): Use IP_AGENT_EXPORT.
16702 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
16703 (alloced_trace_state_variables): New.
16704 (trace_state_variables): Use IP_AGENT_EXPORT.
16705 (traceframe_t): Delete unused variable.
16706 (circular_trace_buffer): Don't include in the IPA.
16707 (trace_buffer_start): Delete.
16708 (struct trace_buffer_control): New.
16709 (trace_buffer_free): Delete.
16710 (struct ipa_trace_buffer_control): New.
16711 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
16712 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
16714 (trace_buffer_ctrl): New.
16715 (TRACE_BUFFER_CTRL_CURR): New.
16716 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
16717 Reimplement as macros.
16718 (trace_buffer_wrap): Delete.
16719 (traceframe_write_count, traceframe_read_count)
16720 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
16721 (struct tracepoint_hit_ctx) <type>: New field.
16722 (struct fast_tracepoint_ctx): New.
16723 (memory_barrier): New.
16725 (record_tracepoint_error): Update atomically in the IPA.
16726 (clear_inferior_trace_buffer): New.
16727 (about_to_request_buffer_space): New.
16728 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
16729 updating the same buffer.
16730 (add_tracepoint): Default the tracepoint's type to trap
16731 tracepoint, and orig_size to -1.
16732 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
16733 internal variables.
16734 (create_trace_state_variable): New parameter `gdb'. Handle it.
16735 (clear_installed_tracepoints): Clear fast tracepoint jumps.
16736 (cmd_qtdp): Handle fast tracepoints.
16737 (cmd_qtdv): Adjust.
16738 (max_jump_pad_size): New.
16739 (gdb_jump_pad_head): New.
16740 (get_jump_space_head): New.
16741 (claim_jump_space): New.
16742 (sort_tracepoints): New.
16743 (MAX_JUMP_SIZE): New.
16744 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
16746 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
16747 support. Upload fast traceframes, and delete internal IPA
16749 (stop_tracing_handler): New.
16750 (flush_trace_buffer_handler): New.
16751 (cmd_qtstop): Upload fast tracepoints.
16752 (response_tracepoint): Handle fast tracepoints.
16753 (tracepoint_finished_step): Upload fast traceframes. Set the
16754 tracepoint hit context's tracepoint type.
16755 (handle_tracepoint_bkpts): New.
16756 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
16757 type. Add comment about fast tracepoints.
16758 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
16759 non-existing action_str field.
16760 (get_context_regcache): Handle fast tracepoints.
16761 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
16763 (fast_tracepoint_from_jump_pad_address): New.
16764 (fast_tracepoint_from_ipa_tpoint_address): New.
16765 (collecting_t): New.
16766 (force_unlock_trace_buffer): New.
16767 (fast_tracepoint_collecting): New.
16769 (gdb_collect): New.
16770 (write_inferior_data_ptr): New.
16771 (target_tp_heap): New.
16772 (target_malloc): New.
16773 (download_agent_expr): New.
16775 (download_tracepoints): New.
16776 (download_trace_state_variables): New.
16777 (upload_fast_traceframes): New.
16778 (IPA_FIRST_TRACEFRAME): New.
16779 (IPA_NEXT_TRACEFRAME_1): New.
16780 (IPA_NEXT_TRACEFRAME): New.
16781 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
16782 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
16783 (gdb_jump_pad_buffer_end): New.
16784 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
16785 (initialize_tracepoint): Adjust.
16786 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
16787 buffer. Initialize the low module.
16788 * utils.c (PREFIX, TOOLNAME): New.
16789 (malloc_failure): Use PREFIX.
16790 (error): In the IPA, an error causes an exit.
16791 (fatal, warning): Use PREFIX.
16792 (internal_error): Use TOOLNAME.
16793 (NUMCELLS): Increase to 10.
16794 * configure, config.in: Regenerate.
16796 2010-06-01 Pedro Alves <pedro@codesourcery.com>
16798 * server.c (handle_query) <qSupported>: Do two passes over the
16799 qSupported string to avoid nesting strtok.
16801 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16803 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
16805 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
16806 -Wl,--dynamic-list.
16807 * configure: Regenerate.
16808 * proc-service.list: New.
16810 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16812 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
16815 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
16817 * gdbreplay.c (remote_open): Check error return from socket() call by
16818 its equality to -1 not by it being negative.
16819 * remote-utils.c (remote_open): Likewise.
16821 2010-05-23 Pedro Alves <pedro@codesourcery.com>
16823 * config.h: Regenerate.
16825 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
16827 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
16828 doesn't provide PTRACE_GET_THREAD_AREA.
16830 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
16832 * linux-m68k-low.c: Include <asm/ptrace.h>
16833 (ps_get_thread_area): Implement.
16835 2010-05-03 Doug Evans <dje@google.com>
16837 * event-loop.c (struct callback_event): New struct.
16838 (callback_list): New global.
16839 (append_callback_event, delete_callback_event): New functions.
16840 (process_callback): New function.
16841 (start_event_loop): Call it.
16842 * remote-utils.c (NOT_SCHEDULED): Define.
16843 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
16844 moved out of readchar.
16845 (readchar): Rewrite. Call reschedule before returning.
16846 (reset_readchar): New function.
16847 (remote_close): Call it.
16848 (process_remaining, reschedule): New functions.
16849 * server.h (callback_handler_func): New typedef.
16850 (append_callback_event, delete_callback_event): Declare.
16852 2010-05-03 Pedro Alves <pedro@codesourcery.com>
16854 * proc-service.c (ps_pglobal_lookup): Use
16855 thread_db_look_up_one_symbol.
16856 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
16857 parameter. Use it instead of all_symbols_looked_up.
16858 * server.h (struct process_info) <all_symbols_looked_up>: Delete
16860 (all_symbols_looked_up): Don't declare.
16861 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
16862 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
16864 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
16865 Set all_symbols_looked_up here.
16866 (thread_db_look_up_one_symbol): New.
16867 (thread_db_get_tls_address): Adjust.
16868 (thread_db_load_search, try_thread_db_load_1): Always allocate the
16869 thread_db object on the heap, and tentatively set it in the
16871 (thread_db_init): Don't set all_symbols_looked_up here.
16872 * linux-low.h (thread_db_look_up_one_symbol): Declare.
16874 2010-05-03 Pedro Alves <pedro@codesourcery.com>
16876 * linux-low.c (linux_kill, linux_detach): Adjust.
16877 (status_pending_p_callback): Remove redundant statement. Check
16878 for !TARGET_WAITIKIND_IGNORE, instead of
16879 TARGET_WAITKIND_STOPPED.
16880 (handle_tracepoints): Make sure LWP is locked. Adjust.
16881 (linux_wait_for_event_1): Adjust.
16882 (linux_cancel_breakpoints): New.
16883 (unsuspend_one_lwp): New.
16884 (unsuspend_all_lwps): New.
16885 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
16886 (send_sigstop_callback): Change return type to int, add new
16887 `except' parameter and handle it.
16888 (suspend_and_send_sigstop_callback): New.
16889 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
16890 pass them down. If SUSPEND, also increment the lwp's suspend
16892 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
16893 (need_step_over_p): Don't consider suspended LWPs.
16894 (start_step_over): Adjust.
16895 (proceed_one_lwp): Change return type to int, add new `except'
16896 parameter and handle it.
16897 (unsuspend_and_proceed_one_lwp): New.
16898 (proceed_all_lwps): Use find_inferior instead of
16900 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
16901 also decrement the suspend count of LWPs. Pass `except' down,
16902 instead of hacking its suspend count.
16903 (linux_pause_all): Add `freeze' parameter. Adjust.
16904 (linux_unpause_all): New.
16905 (linux_target_ops): Install linux_unpause_all.
16906 * server.c (handle_status): Adjust.
16907 * target.h (struct target_ops): New fields `unpause_all' and
16908 `cancel_breakpoints'. Add new parameter to `pause_all'.
16909 (pause_all): Add new `freeze' parameter.
16910 (unpause_all): New.
16911 (cancel_breakpoints): New.
16912 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
16913 cancel breakpoints.
16914 (cmd_qtstart): Pause threads.
16915 (stop_tracing): Pause threads, and cancel breakpoints.
16916 * win32-low.c (win32_target_ops): Adjust.
16918 2010-05-03 Pedro Alves <pedro@codesourcery.com>
16920 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
16921 the inferior right away from here...
16922 (linux_wait_1): ... to here, and adjust to check the thread's
16923 last_resume_kind instead of the lwp's step or stop_expected flags.
16925 2010-05-02 Pedro Alves <pedro@codesourcery.com>
16927 * README: Use consistent `GDB' and `GDBserver' spellings.
16929 2010-05-02 Pedro Alves <pedro@codesourcery.com>
16931 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
16932 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
16933 (linux_detach_one_lwp): Assume the lwp is stopped.
16934 (any_thread_of): Delete.
16935 (linux_detach): Stop all lwps here. Don't blindly delete all
16937 (delete_lwp_callback): New.
16938 (linux_mourn): Delete all lwps of the process that is gone.
16939 (linux_wait_1): Don't delete the last lwp of the process here.
16940 * mem-break.h (mark_breakpoints_out): Declare.
16941 * mem-break.c (mark_breakpoints_out): New.
16942 (free_all_breakpoints): Use it.
16943 * server.c (handle_target_event): If the process is gone, mark
16945 * thread-db.c (struct thread_db) <create_bp>: New field.
16946 (thread_db_enable_reporting): Fix prototype. Store a thread event
16947 breakpoint reference in the thread_db struct.
16948 (thread_db_load_search): Clear the thread_db object.
16949 (try_thread_db_load_1): Ditto.
16950 (switch_to_process): New.
16951 (disable_thread_event_reporting): Use it.
16952 (remove_thread_event_breakpoints): New.
16953 (thread_db_detach, thread_db_mourn): Use it.
16955 2010-05-01 Pedro Alves <pedro@codesourcery.com>
16957 * linux-low.c (linux_enable_event_reporting): New.
16958 (linux_wait_for_event_1, handle_extended_wait): Use it.
16960 2010-04-30 Pedro Alves <pedro@codesourcery.com>
16962 * linux-low.c (linux_kill_one_lwp, linux_kill)
16963 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
16964 (send_sigstop): Take an lwp_info as parameter instead. Queue a
16965 SIGSTOP even if the LWP is stopped.
16966 (send_sigstop_callback): New.
16967 (stop_all_lwps): Use send_sigstop_callback instead.
16968 (linux_resume_one_thread): Adjust.
16969 (proceed_one_lwp): Still proceed an LWP that the client has
16970 requested to stop, if we haven't reported it as stopped yet. Make
16971 sure that LWPs the client want stopped, have a pending SIGSTOP.
16973 2010-04-26 Doug Evans <dje@google.com>
16975 * server.c (handle_general_set): Make static.
16977 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
16978 Print received char after testing for error/eof instead of before.
16979 (input_interrupt): Tweak comment.
16981 2010-04-23 Doug Evans <dje@google.com>
16983 * server.c (start_inferior): Print inferior argv if --debug.
16985 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
16987 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
16988 * nto-x86-low.c: Include server.h
16990 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
16992 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
16993 be consistent with other sources of this directory.
16994 (init_registers_amd64): Correct name of source file of this function
16997 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
16999 * configure.srv (x86_64-*-mingw*): New configuration for Windows
17000 64-bit executables.
17002 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17004 * win32-i386-low.c: Add 64-bit support.
17005 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
17006 (init_registers_amd64): Declare.
17007 (mappings): Add 64-bit version of array.
17008 (init_windows_x86): New function.
17009 (the_low_target): Change init_arch field to init_windows_x86.
17011 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17013 * win32-low.c: Adapt to support also 64-bit architecture.
17014 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
17015 (get_image_name): Use SIZE_T type for local variable `done'.
17016 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
17017 (toolhelp_get_dll_name): Idem.
17018 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
17019 Use uintptr_t typecast to avoid warning.
17020 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
17021 (handle_exception): Use phex_nz to avoid warning.
17022 (win32_wait): Remove unused local variable `process'.
17024 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17026 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
17029 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
17031 * configure.ac: Use `ws2_32' library for srv_mingw.
17032 * configure: Regenerate.
17033 * gdbreplay.c: Include winsock2.h instead of winsock.h.
17034 * remote-utils.c: Likewise.
17036 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
17038 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
17039 if __x86_64__ is defined.
17041 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17043 * configure: Regenerate.
17045 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17047 * server.c (handle_query): Handle 'qGetTIBAddr' query.
17048 * target.h (target_ops): New get_tib_address field.
17049 * win32-low.h (win32_thread_info): Add thread_local_base field.
17050 * win32-low.c (child_add_thread): Add tlb argument.
17051 Set thread_local_base field to TLB.
17052 (get_child_debug_event): Adapt to child_add_thread change.
17053 (win32_get_tib_address): New function.
17054 (win32_target_ops): Set get_tib_address field to
17055 win32_get_tib_address.
17056 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
17058 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17060 * linux-low.c (linux_mourn): Also remove the process.
17061 * server.c (handle_target_event): Don't remove the process here.
17062 * nto-low.c (nto_mourn): New.
17063 (nto_target_ops): Install it.
17064 * spu-low.c (spu_mourn): New.
17065 (spu_target_ops): Install it.
17066 * win32-low.c (win32_mourn): New.
17067 (win32_target_ops): Install it.
17069 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17071 * server.h (buffer_xml_printf): Remove redundant `;'.
17073 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17075 * regcache.c (set_register_cache): Invalidate regcaches before
17076 changing the register cache layout.
17077 (regcache_invalidate_one): Allow a NULL regcache.
17078 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
17079 regcaches before changing the register cache layout or the target
17082 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
17084 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
17085 variable warning on Linux/x86-64.
17087 2010-04-11 Pedro Alves <pedro@codesourcery.com>
17089 GDBserver disconnected tracing support.
17091 * linux-low.c (linux_remove_process): Delete.
17092 (add_lwp): Don't set last_resume_kind here.
17093 (linux_kill): Use `mourn'.
17094 (linux_detach): Use `thread_db_detach', and `mourn'.
17095 (linux_mourn): New.
17096 (linux_attach_lwp_1): Adjust comment.
17097 (linux_attach): last_resume_kind moved the thread_info; adjust.
17098 (status_pending_p_callback): Adjust.
17099 (linux_wait_for_event_1): Adjust.
17100 (count_events_callback, select_singlestep_lwp_callback)
17101 (select_event_lwp_callback, cancel_breakpoints_callback)
17102 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
17103 (proceed_one_lwp): Adjust.
17104 (linux_async): Add debug output.
17105 (linux_thread_stopped): New.
17106 (linux_pause_all): New.
17107 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
17109 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
17110 (thread_db_free): Delete declaration.
17111 (thread_db_detach, thread_db_mourn): Declare.
17112 * thread-db.c (thread_db_init): Use thread_db_mourn.
17113 (thread_db_free): Delete, split in two.
17114 (disable_thread_event_reporting): New.
17115 (thread_db_detach): New.
17116 (thread_db_mourn): New.
17118 * server.h (struct thread_info) <last_resume_kind>: New field.
17119 <attached>: Add comment.
17120 <gdb_detached>: New field.
17121 (handler_func): Change return type to int.
17122 (handle_serial_event, handle_target_event): Ditto.
17123 (gdb_connected): Declare.
17125 (disconnected_tracing): Declare.
17126 (stop_tracing): Declare.
17128 * server.c (handle_query) <qSupported>: Report support for
17129 disconnected tracing.
17130 (queue_stop_reply_callback): Account for running threads.
17131 (gdb_wants_thread_stopped): New.
17132 (gdb_wants_all_threads_stopped): New.
17133 (gdb_reattached_process): New.
17134 (handle_status): Clear the `gdb_detached' flag of all processes.
17135 In all-stop, stop all threads.
17136 (main): Be sure to leave tfind mode. Handle disconnected tracing.
17137 (process_serial_event): If the remote connection breaks, or if an
17138 exit was forced with "monitor exit", force an event loop exit.
17139 Handle disconnected tracing on detach.
17140 (handle_serial_event): Adjust.
17141 (handle_target_event): If GDB isn't connected, forward events back
17142 to the inferior, unless the last process exited, in which case,
17143 exit gdbserver. Adjust interface.
17145 * remote-utils.c (remote_open): Don't block in accept. Instead
17146 register an event loop source on the listen socket file
17147 descriptor. Refactor bits into ...
17148 (listen_desc): ... this new global.
17149 (gdb_connected): ... this new function.
17150 (enable_async_notification): ... this new function.
17151 (handle_accept_event): ... this new function.
17152 (remote_close): Clear remote_desc.
17154 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
17156 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
17158 (mourn_inferior): Define.
17159 (target_process_qsupported): Avoid the dangling else problem.
17160 (thread_stopped): Define.
17161 (pause_all): Define.
17162 (target_waitstatus_to_string): Declare.
17163 * target.c (target_waitstatus_to_string): New.
17165 * tracepoint.c (tracing): Make extern.
17166 (disconnected_tracing): New.
17167 (stop_tracing): Make extern. Handle tracing stops due to GDB
17169 (cmd_qtdisconnected): New.
17170 (cmd_qtstatus): Report disconnected tracing status in trace reply.
17171 (handle_tracepoint_general_set): Handle QTDisconnected.
17173 * event-loop.c (event_handler_func): Change return type to int.
17174 (process_event): Bail out if the event handler wants the event
17176 (handle_file_event): Ditto.
17177 (start_event_loop): Bail out if the event handler wants the event
17180 * nto-low.c (nto_target_ops): Adjust.
17181 * spu-low.c (spu_wait): Don't remove the process here.
17182 (spu_target_ops): Adjust.
17183 * win32-low.c (win32_wait): Don't remove the process here.
17184 (win32_target_ops): Adjust.
17186 2010-04-11 Pedro Alves <pedro@codesourcery.com>
17188 * regcache.c (realloc_register_cache): Invalidate inferior's
17189 regcache before recreating it.
17191 2010-04-09 Pedro Alves <pedro@codesourcery.com>
17193 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
17195 2010-04-09 Stan Shebs <stan@codesourcery.com>
17196 Pedro Alves <pedro@codesourcery.com>
17198 * server.h (LONGEST): New.
17199 (struct thread_info) <while_stepping>: New field.
17200 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
17202 (initialize_tracepoint, handle_tracepoint_general_set)
17203 (handle_tracepoint_query, tracepoint_finished_step)
17204 (tracepoint_was_hit, release_while_stepping_state_list):
17205 (current_traceframe): Declare.
17206 * server.c (handle_general_set): Handle tracepoint packets.
17207 (read_memory): New.
17208 (write_memory): New.
17209 (handle_search_memory_1): Use read_memory.
17210 (handle_query): Report support for conditional tracepoints, trace
17211 state variables, and tracepoint sources. Handle tracepoint
17213 (main): Initialize the tracepoints module.
17214 (process_serial_event): Handle traceframe reads/writes.
17216 * linux-low.c (handle_tracepoints): New.
17217 (linux_wait_1): Call it.
17218 (linux_resume_one_lwp): Handle while-stepping.
17219 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
17220 (linux_target_ops): Install them.
17221 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
17223 * linux-x86-low.c (x86_supports_tracepoints): New.
17224 (the_low_target). Install it.
17226 * mem-break.h (delete_breakpoint): Declare.
17227 * mem-break.c (delete_breakpoint): Make external.
17229 * target.h (struct target_ops): Add `supports_tracepoints',
17230 `read_pc', and `write_pc' fields.
17231 (target_supports_tracepoints): Define.
17232 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
17235 * regcache.h (struct regcache) <registers_owned>: New field.
17236 (init_register_cache, regcache_cpy): Declare.
17237 (regcache_read_pc, regcache_write_pc): Declare.
17238 (register_cache_size): Declare.
17239 (supply_regblock): Declare.
17240 * regcache.c (init_register_cache): New.
17241 (new_register_cache): Use it.
17242 (regcache_cpy): New.
17243 (register_cache_size): New.
17244 (supply_regblock): New.
17245 (regcache_read_pc, regcache_write_pc): New.
17247 * tracepoint.c: New.
17249 * Makefile.in (OBS): Add tracepoint.o.
17250 (tracepoint.o): New rule.
17252 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
17254 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
17256 (i386-mmx.c): Likewise.
17257 (i386-mmx-linux.o): Likewise.
17258 (i386-mmx-linux.c): Likewise.
17260 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
17261 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
17262 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
17263 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
17265 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
17266 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
17267 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
17269 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
17271 * Makefile.in (clean): Updated.
17273 (i386-avx.c): Likewise.
17274 (i386-avx-linux.o): Likewise.
17275 (i386-avx-linux.c): Likewise.
17276 (amd64-avx.o): Likewise.
17277 (amd64-avx.c): Likewise.
17278 (amd64-avx-linux.o): Likewise.
17279 (amd64-avx-linux.c): Likewise.
17281 * configure.srv (srv_i386_regobj): Add i386-avx.o.
17282 (srv_i386_linux_regobj): Add i386-avx-linux.o.
17283 (srv_amd64_regobj): Add amd64-avx.o.
17284 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
17285 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
17286 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
17287 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
17288 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
17289 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
17290 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
17292 * i387-fp.c: Include "i386-xstate.h".
17294 (i387_cache_to_xsave): Likewise.
17295 (i387_xsave_to_cache): Likewise.
17296 (x86_xcr0): Likewise.
17298 * i387-fp.h (i387_cache_to_xsave): Likewise.
17299 (i387_xsave_to_cache): Likewise.
17300 (x86_xcr0): Likewise.
17302 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
17303 * linux-crisv32-low.c (target_regsets): Likewise.
17304 * linux-m68k-low.c (target_regsets): Likewise.
17305 * linux-mips-low.c (target_regsets): Likewise.
17306 * linux-ppc-low.c (target_regsets): Likewise.
17307 * linux-s390-low.c (target_regsets): Likewise.
17308 * linux-sh-low.c (target_regsets): Likewise.
17309 * linux-sparc-low.c (target_regsets): Likewise.
17310 * linux-xtensa-low.c (target_regsets): Likewise.
17312 * linux-low.c: Include <sys/uio.h>.
17313 (regsets_fetch_inferior_registers): Support nt_type.
17314 (regsets_store_inferior_registers): Likewise.
17315 (linux_process_qsupported): New.
17316 (linux_target_ops): Add linux_process_qsupported.
17318 * linux-low.h (regset_info): Add nt_type.
17319 (linux_target_ops): Add process_qsupported.
17321 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
17323 (init_registers_i386_avx_linux): New.
17324 (init_registers_amd64_avx_linux): Likewise.
17325 (xmltarget_i386_linux_no_xml): Likewise.
17326 (xmltarget_amd64_linux_no_xml): Likewise.
17327 (PTRACE_GETREGSET): Likewise.
17328 (PTRACE_SETREGSET): Likewise.
17329 (x86_fill_xstateregset): Likewise.
17330 (x86_store_xstateregset): Likewise.
17331 (use_xml): Likewise.
17332 (x86_linux_update_xmltarget): Likewise.
17333 (x86_linux_process_qsupported): Likewise.
17334 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
17335 (x86_arch_setup): Don't call init_registers_amd64_linux nor
17336 init_registers_i386_linux here. Call
17337 x86_linux_update_xmltarget.
17338 (the_low_target): Add x86_linux_process_qsupported.
17340 * server.c (handle_query): Call target_process_qsupported.
17342 * target.h (target_ops): Add process_qsupported.
17343 (target_process_qsupported): New.
17345 2010-04-03 Pedro Alves <pedro@codesourcery.com>
17347 * inferiors.c (add_thread): Set last_status kind to
17348 TARGET_WAITKIND_IGNORE.
17349 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
17350 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
17351 (linux_wait_1): Move `thread' local definition to block that uses
17352 it. Don't NULL initialize `event_child'.
17353 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
17354 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
17355 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
17357 2010-04-01 Pedro Alves <pedro@codesourcery.com>
17359 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
17360 an extended waitstatus, or by a watchpoint.
17361 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
17362 thread was stepping or has been stopped by a watchpoint.
17364 2010-04-01 Pedro Alves <pedro@codesourcery.com>
17366 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
17367 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
17368 of another, then delete the previous, and validate all
17370 (validate_inserted_breakpoint): New.
17371 (delete_disabled_breakpoints): New.
17372 (validate_breakpoints): New.
17373 (check_mem_read): Validate breakpoints before trusting their
17374 shadow. Delete disabled breakpoints.
17375 (check_mem_write): Validate breakpoints before trusting they
17376 should be inserted. Delete disabled breakpoints.
17377 * mem-break.h (validate_breakpoints):
17378 * server.c (handle_query): Validate breakpoints when we see a
17381 2010-04-01 Pedro Alves <pedro@codesourcery.com>
17383 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
17384 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
17385 if we could tell there's a GDB breakpoint at stop_pc.
17386 (need_step_over_p): Don't do a step over if we find a GDB
17387 breakpoint at the resume PC.
17389 * mem-break.c (struct raw_breakpoint): New.
17390 (enum bkpt_type): New type `gdb_breakpoint'.
17391 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
17392 fields. New field `raw'.
17393 (find_raw_breakpoint_at): New.
17394 (set_raw_breakpoint_at): Handle refcounting. Create a raw
17395 breakpoint instead.
17396 (set_breakpoint_at): Adjust.
17397 (delete_raw_breakpoint): New.
17398 (release_breakpoint): New.
17399 (delete_breakpoint): Rename to...
17400 (delete_breakpoint_1): ... this. Add proc parameter. Use
17401 release_breakpoint. Return ENOENT.
17402 (delete_breakpoint): Reimplement.
17403 (find_breakpoint_at): Delete.
17404 (find_gdb_breakpoint_at): New.
17405 (delete_breakpoint_at): Delete.
17406 (set_gdb_breakpoint_at): New.
17407 (delete_gdb_breakpoint_at): New.
17408 (gdb_breakpoint_here): New.
17409 (set_reinsert_breakpoint): Use release_breakpoint.
17410 (uninsert_breakpoint): Rename to ...
17411 (uninsert_raw_breakpoint): ... this.
17412 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
17413 (reinsert_raw_breakpoint): Change parameter type to
17415 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
17417 (check_breakpoints): Adjust. Use release_breakpoint.
17418 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
17419 (breakpoint_inserted_here): Ditto.
17420 (check_mem_read): Adjust to iterate over raw breakpoints instead.
17421 Don't trust the breakpoint's shadow if it is not inserted.
17422 (check_mem_write): Adjust to iterate over raw breakpoints instead.
17423 (delete_all_breakpoints): Adjust.
17424 (free_all_breakpoints): Mark all breakpoints as uninserted, and
17425 use delete_breakpoint_1.
17427 * mem-break.h (breakpoints_supported): Delete declaration.
17428 (set_gdb_breakpoint_at): Declare.
17429 (gdb_breakpoint_here): Declare.
17430 (delete_breakpoint_at): Delete.
17431 (delete_gdb_breakpoint_at): Declare.
17433 * server.h (struct raw_breakpoint): Forward declare.
17434 (struct process_info): New field `raw_breakpoints'.
17436 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
17439 2010-03-24 Pedro Alves <pedro@codesourcery.com>
17441 * linux-low.c (status_pending_p_callback): Fix comment.
17442 (linux_wait_for_event_1): Move most of the internal breakpoint
17443 handling from here...
17444 (linux_wait_1): ... to here.
17445 (count_events_callback): New.
17446 (select_singlestep_lwp_callback): New.
17447 (select_event_lwp_callback): New.
17448 (cancel_breakpoints_callback): New.
17449 (select_event_lwp): New.
17450 (linux_wait_1): Simplify internal breakpoint handling. Give equal
17451 priority to all LWPs that have had events that should be reported
17452 to the client. Cancel breakpoints when about to reporting the
17453 event to the client, not while stopping lwps. No longer cancel
17454 finished single-steps here.
17455 (cancel_finished_single_step): Delete.
17456 (cancel_finished_single_steps): Delete.
17458 2010-03-24 Pedro Alves <pedro@codesourcery.com>
17460 * mem-break.c (enum bkpt_type): New.
17461 (struct breakpoint): New field `type'.
17462 (set_breakpoint_at): Change return type to struct breakpoint
17463 pointer. Set type to `other_breakpoint' by default.
17464 (delete_breakpoint): Rewrite, supporting more than one breakpoint
17465 in the breakpoint list.
17466 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
17467 (reinsert_breakpoint): Rename to ...
17468 (reinsert_raw_breakpoint): ... this.
17469 (reinsert_breakpoints_at): Adjust.
17470 * mem-break.h (struct breakpoint): Declare.
17471 (set_breakpoint_at): Change return type to struct breakpoint
17474 2010-03-24 Pedro Alves <pedro@codesourcery.com>
17476 * server.c (handle_query): Assign, not compare.
17478 2010-03-24 Pedro Alves <pedro@codesourcery.com>
17480 Teach linux gdbserver to step-over-breakpoints.
17482 * linux-low.c (can_hardware_single_step): New.
17483 (supports_breakpoints): New.
17484 (handle_extended_wait): If stopping threads, read the stop pc of
17485 the new cloned LWP.
17487 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
17488 low target doesn't support retrieving the PC.
17489 (add_lwp): Set last_resume_kind to resume_continue.
17490 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
17491 (linux_attach): Don't clear stop_expected. Set the lwp's
17492 last_resume_kind to resume_stop.
17493 (linux_detach_one_lwp): Don't check for removed breakpoints.
17494 (check_removed_breakpoint): Delete.
17495 (status_pending_p): Rename to ...
17496 (status_pending_p_callback): ... this. Don't check for removed
17497 breakpoints. Don't consider threads that are stopped from GDB's
17499 (linux_wait_for_lwp): Always read the stop_pc here.
17500 (cancel_breakpoint): New.
17501 (step_over_bkpt): New global.
17502 (linux_wait_for_event_1): Implement stepping over breakpoints.
17503 (gdb_wants_lwp_stopped): New.
17504 (gdb_wants_all_stopped): New.
17505 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
17506 single-step traps here. Store the thread's last reported target
17508 (send_sigstop): Don't clear stop_expected. Always set it,
17510 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
17511 (cancel_finished_single_step): New.
17512 (cancel_finished_single_steps): New.
17513 (wait_for_sigstop): Don't cancel finished single-step traps here.
17514 (linux_resume_one_lwp): Don't check for removed breakpoints.
17515 Don't set `step' on non-hardware step archs.
17516 (linux_set_resume_request): Ignore resume_stop requests if already
17517 stopping or stopped. Set the lwp's last_resume_kind.
17518 (resume_status_pending_p): Don't check for removed breakpoints.
17519 (need_step_over_p): New.
17520 (start_step_over): New.
17521 (finish_step_over): New.
17522 (linux_resume_one_thread): Always queue a sigstop for resume_stop
17523 requests. Clear the thread's last reported target waitstatus.
17524 Don't use the `suspended' flag. Don't consider pending breakpoints.
17525 (linux_resume): Start a step-over if necessary.
17526 (proceed_one_lwp): New.
17527 (proceed_all_lwps): New.
17528 (unstop_all_lwps): New.
17529 * linux-low.h (struct lwp_info): Rewrite comment for the
17530 `suspended' flag. Add the `stop_pc' field. Delete the
17531 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
17532 Add `'last_resume_kind' and `need_step_over' fields.
17533 * inferiors.c (struct thread_info): Delete, moved elsewhere.
17534 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
17535 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
17536 (set_raw_breakpoint_at): New.
17537 (set_breakpoint_at): Rewrite to use it.
17538 (reinsert_breakpoint_handler): Delete.
17539 (set_reinsert_breakpoint): New.
17540 (reinsert_breakpoint_by_bp): Delete.
17541 (delete_reinsert_breakpoints): New.
17542 (uninsert_breakpoint): Rewrite.
17543 (uninsert_breakpoints_at): New.
17544 (reinsert_breakpoint): Rewrite.
17545 (reinsert_breakpoints_at): New.
17546 (check_breakpoints): Rewrite.
17547 (breakpoint_here): New.
17548 (breakpoint_inserted_here): New.
17549 (check_mem_read): Adjust.
17550 * mem-break.h (breakpoints_supported, breakpoint_here)
17551 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
17552 (reinsert_breakpoint_by_bp): Delete declaration.
17553 (delete_reinsert_breakpoints): Declare.
17554 (reinsert_breakpoint): Delete declaration.
17555 (reinsert_breakpoints_at): Declare.
17556 (uninsert_breakpoint): Delete declaration.
17557 (uninsert_breakpoints_at): Declare.
17558 (check_breakpoints): Adjust prototype.
17559 * server.h: Adjust include order.
17560 (struct thread_info): Declare here. Add a `last_status' field.
17562 2010-03-23 Michael Snyder <msnyder@vmware.com>
17564 * server.c (crc32): New function.
17565 (handle_query): Add handling for 'qCRC:' request.
17567 2010-03-23 Pedro Alves <pedro@codesourcery.com>
17569 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
17570 lwp had been stopped by a watchpoint.
17572 2010-03-16 Pedro Alves <pedro@codesourcery.com>
17574 * server.h (internal_error): Declare.
17575 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
17576 * utils.c (internal_error): New function.
17578 2010-03-15 Andreas Schwab <schwab@redhat.com>
17580 * configure.srv: Fix typo setting srv_regobj.
17582 2010-03-15 Pedro Alves <pedro@codesourcery.com>
17584 * linux-low.c (fetch_register): Avoid passing a non string literal
17586 (usr_store_inferior_registers): Ditto.
17588 2010-03-14 Pedro Alves <pedro@codesourcery.com>
17590 * linux-low.c (linux_write_memory): Bail out early if peeking
17593 2010-03-14 Pedro Alves <pedro@codesourcery.com>
17595 * linux-low.h (struct lwp_info): New fields
17596 `stopped_by_watchpoint' and `stopped_data_address'.
17597 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
17598 here, and cache them in the lwp object.
17599 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
17601 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
17603 (linux_stopped_by_watchpoint): Rewrite.
17604 (linux_stopped_data_address): Rewrite.
17606 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
17608 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
17609 switching the current inferior, not before.
17611 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
17613 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
17614 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
17615 i386-linux.c and amd64-linux.c.
17616 (reg-i386.o): Removed.
17617 (reg-i386.c): Likewise.
17618 (reg-i386-linux.o): Likewise.
17619 (reg-i386-linux.c): Likewise.
17620 (reg-x86-64.o): Likewise.
17621 (reg-x86-64.c): Likewise.
17622 (reg-x86-64-linux.o): Likewise.
17623 (reg-x86-64-linux.c): Likewise.
17625 (i386.c): Likewise.
17626 (i386-linux.o): Likewise.
17627 (i386-linux.c): Likewise.
17628 (amd64.o): Likewise.
17629 (amd64.c): Likewise.
17630 (amd64-linux.o): Likewise.
17631 (amd64-linux.c): Likewise.
17633 * configure.srv (srv_i386_regobj): New.
17634 (srv_i386_linux_regobj): Likewise.
17635 (srv_amd64_regobj): Likewise.
17636 (srv_amd64_linux_regobj): Likewise.
17637 (srv_i386_32bit_xmlfiles): Likewise.
17638 (srv_i386_64bit_xmlfiles): Likewise.
17639 (srv_i386_xmlfiles): Likewise.
17640 (srv_amd64_xmlfiles): Likewise.
17641 (srv_i386_linux_xmlfiles): Likewise.
17642 (srv_amd64_linux_xmlfiles): Likewise.
17643 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
17644 srv_xmlfiles to $srv_i386_xmlfiles.
17645 (i[34567]86-*-mingw32ce*): Likewise.
17646 (i[34567]86-*-mingw*): Likewise.
17647 (i[34567]86-*-nto*): Likewise.
17648 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
17649 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
17650 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
17651 (x86_64-*-linux*): Likewise.
17653 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
17654 (init_registers_amd64_linux): New.
17655 (x86_arch_setup): Replace init_registers_x86_64_linux with
17656 init_registers_amd64_linux.
17658 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
17660 * configure.ac: Check for libdl. If it is not available link against
17661 static libthread_db.
17662 * configure: Regenerate.
17664 2010-02-22 Pedro Alves <pedro@codesourcery.com>
17668 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
17669 handing a read watchpoint.
17670 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
17672 2010-02-12 Doug Evans <dje@google.com>
17674 * linux-low.c (linux_supports_tracefork_flag): Document.
17675 (linux_look_up_symbols): Add comment.
17677 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
17679 * regcache.c (supply_register): Clear regcache if buf is NULL.
17681 2010-02-02 Nicolas Roche <roche@sourceware.org>
17682 Joel Brobecker <brobecker@adacore.com>
17684 * inferiors.c (find_inferior): Add function documentation.
17685 (unloaded_dll): Handle the case where the unloaded dll has not
17686 been previously registered in the dll list.
17688 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
17690 * linux-arm-low.c (thumb_breakpoint_len): Delete.
17691 (thumb2_breakpoint): New.
17692 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
17694 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
17696 * linux-low.c (get_stop_pc): Check for SIGTRAP.
17697 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
17700 2010-01-21 Pedro Alves <pedro@codesourcery.com>
17702 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
17704 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
17706 * linux-s390-low.c (s390_collect_ptrace_register)
17707 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
17709 2010-01-21 Doug Evans <dje@google.com>
17711 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
17712 (PTRACE_ARG4_TYPE): New macro.
17713 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
17714 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
17715 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
17716 (usr_store_inferior_registers): Ditto.
17717 (linux_read_memory, linux_write_memory): Ditto.
17718 (linux_test_for_tracefork): Ditto.
17720 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
17721 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
17723 2010-01-21 Pedro Alves <pedro@codesourcery.com>
17725 * proc-service.c (ps_lgetregs): Don't refetch registers from the
17728 2010-01-21 Pedro Alves <pedro@codesourcery.com>
17730 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
17731 prototype to take a regcache. Adjust.
17733 2010-01-20 Pedro Alves <pedro@codesourcery.com>
17735 * regcache.h (struct thread_info): Forward declare.
17736 (struct regcache): New.
17737 (new_register_cache): Adjust prototype.
17738 (get_thread_regcache): Declare.
17739 (free_register_cache): Adjust prototype.
17740 (registers_to_string, registers_from_string): Ditto.
17741 (supply_register, supply_register_by_name, collect_register)
17742 (collect_register_as_string, collect_register_by_name): Ditto.
17743 * regcache.c (struct inferior_regcache_data): Delete.
17744 (get_regcache): Rename to ...
17745 (get_thread_regcache): ... this. Adjust. Switch inferior before
17746 fetching registers.
17747 (regcache_invalidate_one): Adjust.
17748 (regcache_invalidate): Fix prototype.
17749 (new_register_cache): Return the new register cache.
17750 (free_register_cache): Change prototype.
17751 (realloc_register_cache): Adjust.
17752 (registers_to_string): Change prototype to take a regcache. Adjust.
17753 (registers_from_string): Ditto.
17754 (register_data): Ditto.
17755 (supply_register): Ditto.
17756 (supply_register_by_name): Ditto.
17757 (collect_register): Ditto.
17758 (collect_register_as_string): Ditto.
17759 (collect_register_by_name): Ditto.
17760 * server.c (process_serial_event): Adjust.
17761 * linux-low.h (regset_fill_func, regset_store_func): Change
17763 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
17765 * linux-low.c (get_stop_pc): Adjust.
17766 (check_removed_breakpoint): Adjust.
17767 (linux_wait_for_event): Adjust.
17768 (linux_resume_one_lwp): Adjust.
17769 (fetch_register): Add regcache parameter. Adjust.
17770 (usr_store_inferior_registers): Ditto.
17771 (regsets_fetch_inferior_registers): Ditto.
17772 (regsets_store_inferior_registers): Ditto.
17773 (linux_fetch_registers, linux_store_registers): Ditto.
17774 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
17776 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
17778 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
17779 prototype to take a regcache.
17780 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
17781 * remote-utils.c (convert_ascii_to_int, outreg)
17782 (prepare_resume_reply): Change prototype to take a regcache.
17784 * target.h (struct target_ops) <fetch_registers, store_registers>:
17785 Change prototype to take a regcache.
17786 (fetch_inferior_registers, store_inferior_registers): Change
17787 prototype to take a regcache. Adjust.
17788 * proc-service.c (ps_lgetregs): Adjust.
17789 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
17790 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
17791 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
17792 take a regcache. Adjust.
17793 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
17794 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
17795 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
17796 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
17797 * linux-cris-low.c (cris_get_pc, cris_set_pc)
17798 (cris_cannot_fetch_register):
17799 (cris_breakpoint_at): Change prototype to take a regcache.
17801 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
17802 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
17803 to take a regcache. Adjust.
17804 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
17806 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
17807 take a regcache. Adjust.
17808 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
17809 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
17810 (m68k_set_pc): Change prototype to take a regcache. Adjust.
17811 * linux-mips-low.c (mips_get_pc):
17812 (mips_set_pc): Change prototype to take a regcache. Adjust.
17813 (mips_reinsert_addr): Adjust.
17814 (mips_collect_register): Change prototype to take a regcache.
17816 (mips_supply_register):
17817 (mips_collect_register_32bit, mips_supply_register_32bit)
17818 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
17819 (mips_store_fpregset): Ditto.
17820 * linux-ppc-low.c (ppc_supply_ptrace_register)
17821 (ppc_supply_ptrace_register): Ditto.
17822 (parse_spufs_run): Adjust.
17823 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
17824 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
17825 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
17826 take a regcache. Adjust.
17827 * linux-s390-low.c (s390_collect_ptrace_register)
17828 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
17829 (s390_set_pc): Change prototype to take a regcache. Adjust.
17830 (s390_arch_setup): Adjust.
17831 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
17832 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
17833 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
17834 (sparc_fill_gregset, sparc_store_gregset_from_stack)
17835 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
17837 (sparc_breakpoint_at): Adjust.
17838 * linux-xtensa-low.c (xtensa_fill_gregset):
17839 (xtensa_store_gregset):
17840 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
17841 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
17842 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
17843 prototype to take a regcache. Adjust.
17844 * win32-arm-low.c (arm_fetch_inferior_register)
17845 (arm_store_inferior_register): Change prototype to take a
17847 * win32-i386-low.c (i386_fetch_inferior_register)
17848 (i386_store_inferior_register): Change prototype to take a
17850 * win32-low.c (child_fetch_inferior_registers)
17851 (child_store_inferior_registers): Change prototype to take a
17853 (win32_wait): Adjust.
17854 (win32_fetch_inferior_registers): Change prototype to take a
17856 (win32_store_inferior_registers): Adjust.
17857 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
17858 store_inferior_register>: Change prototype to take a regcache.
17860 2010-01-20 Doug Evans <dje@google.com>
17862 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
17864 (linux_wait_for_event1, linux_init_signals): Ditto.
17865 (W_STOPCODE): Provide definition if missing.
17867 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
17869 * linux-low.c (linux_core_of_thread): New.
17870 (compare_ints, show_process, list_threads): New.
17871 (linux_qxfer_osdata): Report threads and cores.
17872 (linux_target_op): Register linux_core_of_thread.
17873 * remote-utils.c (prepare_resume_reply): Report the core.
17874 (buffer_xml_printf): Support %d specifier.
17875 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
17877 (handle_query): Handle qXfer:threads. Announce availability
17879 * target.h (struct target_ops): New field core_of_thread.
17881 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
17883 * Makefile.in (clean): Remove new generated files.
17884 (reg-s390.o, reg-s390.c): Remove rules.
17885 (reg-s390x.o, reg-s390x.c): Likewise.
17886 (s390-linux32.o, s390-linux32.c): Add rules.
17887 (s390-linux64.o, s390-linux64.c): Likewise.
17888 (s390x-linux64.o, s390x-linux64.c): Likewise.
17889 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
17890 * linux-s390-low.c: Include <elf.h>.
17891 (HWCAP_S390_HIGH_GPRS): Define if undefined.
17892 (init_registers_s390): Remove prototype.
17893 (init_registers_s390x): Likewise.
17894 (init_registers_s390_linux32): Add prototype.
17895 (init_registers_s390_linux64): Likewise.
17896 (init_registers_s390x_linux64): Likewise.
17897 (s390_num_regs_3264): New define.
17898 (s390_regmap_3264): New global variable.
17899 (s390_cannot_fetch_register): Remove obsolete check.
17900 (s390_cannot_store_register): Likewise.
17901 (s390_collect_ptrace_register): Handle upper/lower register halves.
17902 (s390_supply_ptrace_register): Likewise.
17903 (s390_fill_gregset): Update to register number changes.
17904 (s390_get_hwcap): New routine.
17905 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
17906 Install appropriate regmap and register set.
17908 2010-01-01 Joel Brobecker <brobecker@adacore.com>
17910 * server.c (gdbserver_version): Update copyright year to 2010.
17911 * gdbreplay.c (gdbreplay_version): Likewise.
17913 2009-12-28 Doug Evans <dje@google.com>
17915 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
17916 elf/external.h. Include <elf.h> instead but only if necessary.
17918 2009-12-28 Pedro Alves <pedro@codesourcery.com>
17920 * linux-low.c (linux_remove_process): Remove `detaching'
17921 parameter. Don't release/detach from thread_db here.
17922 (linux_kill): Release/detach from thread_db here, ...
17923 (linux_detach): ... and here, before actually detaching.
17924 (linux_wait_1): ... and here, when a process exits.
17925 * thread-db.c (any_thread_of): New.
17926 (thread_db_free): Switch the current inferior to a thread of the
17929 2009-12-21 Doug Evans <dje@google.com>
17931 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
17933 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
17934 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
17935 warning ifndef __NR_tkill. Move setting of errno there too.
17936 Delete unnecessary resetting of errno after syscall.
17937 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
17939 * configure.ac: Check for dladdr.
17940 * config.in: Regenerate.
17941 * configure: Regenerate.
17942 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
17943 (try_thread_db_load): Update.
17945 * linux-low.c (my_waitpid): Delete unnecessary prototype.
17947 2009-12-18 Doug Evans <dje@google.com>
17949 * event-loop.c: Include unistd.h if it exists.
17951 * linux-low.c (my_waitpid): Move definition away from being in
17952 between linux_tracefork_child/linux_test_for_tracefork.
17954 * gdb_proc_service.h (psaddr_t): Fix type.
17955 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
17956 signature to match glibc.
17958 2009-12-16 Doug Evans <dje@google.com>
17960 * linux-low.c (linux_read_memory): Fix argument to read.
17962 2009-11-26 Pedro Alves <pedro@codesourcery.com>
17964 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
17965 events, don't leave current_inferior pointing at null.
17967 2009-11-26 Pedro Alves <pedro@codesourcery.com>
17969 * win32-low.c (LOG): Delete.
17970 (OUTMSG): Output to stderr.
17971 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
17972 on compile time LOG macro.
17973 (win32_wait): Fix debug output.
17975 2009-11-26 Pedro Alves <pedro@codesourcery.com>
17977 * win32-low.c (win32_add_one_solib): If the dll name is
17978 "ntdll.dll", prepend the system directory to the dll path.
17980 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
17982 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
17984 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
17985 Vladimir Prus <vladimir@codesourcery.com>
17987 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
17988 * configure.ac: Check for __mcoldfire__ and set
17989 gdb_cv_m68k_is_coldfire.
17990 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
17991 reg-cf.o and reg-m68k.o.
17992 * configure: Regenerated.
17994 2009-11-16 Pedro Alves <pedro@codesourcery.com>
17996 * linux-low.c (linux_remove_process): Add `detaching' parameter.
17997 Pass it to thread_db_free.
17998 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
17999 proper `detaching' argument to linux_remove_process.
18000 * linux-low.h (thread_db_free): Add `detaching' parameter.
18001 * thread-db.c (thread_db_init): Pass false as `detaching' argument
18003 (thread_db_free): Add `detaching' parameter. Only
18004 call td_ta_clear_event if detaching from process.
18006 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
18008 * thread-db.c (thread_db_free): Fix typo.
18010 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
18013 * thread-db.c (thread_db_free): Call td_ta_clear_event.
18015 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
18017 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
18018 with an i686 compiler.
18019 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
18021 * configure: Rebuilt.
18023 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
18027 * server.c (handle_search_memory_1): Correct read_addr initialization
18028 in loop for searching subsequent chunks.
18030 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
18032 * configure.ac: New --with-libthread-db option.
18033 * thread-db.c: Allow direct dependence on libthread_db.
18034 (thread_db_free): Adjust.
18035 * config.in: Regenerate.
18036 * configure: Likewise.
18038 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
18041 * thread-db.c (attach_thread): New function.
18042 (maybe_attach_thread): Return success/failure.
18043 (find_new_threads_callback): Adjust.
18044 (thread_db_find_new_threads): Loop until no new threads.
18046 2009-10-13 Pedro Alves <pedro@codesourcery.com>
18048 * proc-service.c (ps_lgetregs): Formatting.
18050 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
18052 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
18053 * configure.ac: Adjust.
18054 * linux-low.h (struct process_info_private): Move members to struct
18056 (thread_db_free, thread_db_handle_monitor_command): New prototype.
18057 * linux-low.c (linux_remove_process): Adjust.
18058 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
18059 * server.c (handle_query): Move code ...
18060 (handle_monitor_command): ... here. New function.
18061 * target.h (struct target_ops): New member.
18062 * thread-db.c (struct thread_db): New.
18063 (libthread_db_search_path): New variable.
18064 (thread_db_create_event, thread_db_enable_reporting)
18065 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
18066 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
18067 (try_thread_db_load_1, dladdr_to_soname): New functions.
18068 (try_thread_db_load, thread_db_load_search): New functions.
18069 (thread_db_init): Search for libthread_db.
18070 (thread_db_free): New function.
18071 (thread_db_handle_monitor_command): Likewise.
18072 * config.in: Regenerate.
18073 * configure: Regenerate.
18075 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
18077 * spu-low.c (spu_kill): Wait for inferior to terminate.
18078 Call clear_inferiors.
18079 (spu_detach): Call clear_inferiors.
18081 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18083 * aclocal.m4: Regenerate.
18084 * config.in: Likewise.
18085 * configure: Likewise.
18087 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18089 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
18090 (parse_spufs_run): New function.
18091 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
18092 (ppc_breakpoint_at): Handle SPU breakpoints.
18094 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18096 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
18097 (SPUFS_MAGIC): Define.
18098 (spu_enumerate_spu_ids): New function.
18099 (linux_qxfer_spu): New function.
18100 (linux_target_ops): Install linux_qxfer_spu.
18102 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18104 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
18105 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
18106 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
18107 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
18108 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
18109 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
18110 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
18111 (init_registers_powerpc_cell32l): Add prototype.
18112 (init_registers_powerpc_cell64l): Likewise.
18113 (ppc_arch_setup): Detect Cell/B.E. architecture.
18115 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18117 * Makefile.in (datarootdir): New variable.
18119 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18121 * linux-low.c (linux_write_memory): Update debugging output.
18122 * Makefile.in (clean): Add new descriptions.
18123 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
18124 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
18125 * configure.srv: Add new files for arm*-*-linux*.
18126 * linux-arm-low.c: Add new declarations.
18127 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
18128 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
18129 (HWCAP_VFPv3D16): New.
18130 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
18131 instead of __IWMMXT__.
18132 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
18133 (arm_arch_setup): New.
18134 (target_regsets): Remove #ifdef. Add VFP regset.
18135 (the_low_target): Use arm_arch_setup.
18137 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18139 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
18140 the main thread again.
18142 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
18144 Adding Neutrino gdbserver.
18145 * configure: Regenerated.
18146 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
18147 * configure.srv (i[34567]86-*-nto*): New target.
18148 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
18149 * remote-utils.c [__QNX__]: Include sys/iomgr.h
18150 (nto_comctrl) [__QNX__]: New function.
18151 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
18153 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
18155 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
18158 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
18159 Pedro Alves <pedro@codesourcery.com>
18161 * win32-i386-low.c (i386_get_thread_context): Handle systems that
18162 don't support CONTEXT_EXTENDED_REGISTERS.
18163 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
18164 (the_low_target): Install them.
18165 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
18166 failing with ERROR_PIPE_NOT_CONNECTED.
18168 2009-06-30 Doug Evans <dje@google.com>
18169 Pierre Muller <muller@ics.u-strasbg.fr>
18171 Add h/w watchpoint support to x86-linux, win32-i386.
18172 * Makefile.in (SFILES): Add i386-low.c
18173 (i386_low_h): Define.
18174 (i386-low.o): Add dependencies.
18175 (linux-x86-low.o): Add i386-low.h dependency.
18176 (win32-i386-low.o): Ditto.
18177 * i386-low.c: New file.
18178 * i386-low.h: New file.
18179 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
18180 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
18181 * linux-low.c (linux_add_process): Initialize arch_private.
18182 (linux_remove_process): Free arch_private.
18183 (add_lwp): Initialize arch_private.
18184 (delete_lwp): Free arch_private.
18185 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
18187 * linux-low.h (process_info_private): New member arch_private.
18188 (lwp_info): New member arch_private.
18189 (linux_target_ops): New members new_process, new_thread,
18191 (ptid_of): New macro.
18192 * linux-x86-low.c: Include stddef.h, i386-low.h.
18193 (arch_process_info): New struct.
18194 (arch_lwp_info): New struct.
18195 (x86_linux_dr_get, x86_linux_dr_set): New functions.
18196 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18197 (i386_dr_low_get_status): New function.
18198 (x86_insert_point, x86_remove_point): New functions.
18199 (x86_stopped_by_watchpoint): New function.
18200 (x86_stopped_data_address): New function.
18201 (x86_linux_new_process, x86_linux_new_thread): New functions.
18202 (x86_linux_prepare_to_resume): New function.
18203 (the_low_target): Add entries for insert_point, remove_point,
18204 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
18206 * server.c (debug_hw_points): New global.
18207 (monitor_show_help): Document set debug-hw-points.
18208 (handle_query): Process "set debug-hw-points".
18209 * server.h (debug_hw_points): Declare.
18210 (paddress): Declare.
18211 * utils.c (NUMCELLS, CELLSIZE): New macros.
18212 (get_sell, xsnprintf, paddress): New functions.
18213 * win32-arm-low.c (the_low_target): Add entries for insert_point,
18214 remove_point, stopped_by_watchpoint, stopped_data_address.
18215 * win32-i386-low.c: Include i386-low.h.
18216 (debug_reg_state): Replaces dr.
18217 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18218 (i386_dr_low_get_status): New function.
18219 (i386_insert_point, i386_remove_point): New functions.
18220 (i386_stopped_by_watchpoint): New function.
18221 (i386_stopped_data_address): New function.
18222 (i386_initial_stuff): Update.
18223 (get_thread_context,set_thread_context,i386_thread_added): Update.
18224 (the_low_target): Add entries for insert_point,
18225 remove_point, stopped_by_watchpoint, stopped_data_address.
18226 * win32-low.c (win32_insert_watchpoint): New function.
18227 (win32_remove_watchpoint): New function.
18228 (win32_stopped_by_watchpoint): New function.
18229 (win32_stopped_data_address): New function.
18230 (win32_target_ops): Add entries for insert_watchpoint,
18231 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
18232 * win32-low.h (win32_target_ops): New members insert_point,
18233 remove_point, stopped_by_watchpoint, stopped_data_address.
18235 2009-06-25 Pedro Alves <pedro@codesourcery.com>
18237 * server.c (process_serial_event): Re-return unsupported, not
18238 error, if the type isn't recognized. Re-allow supporting only
18239 insert or remove packets. Also call require_running for
18240 breakpoints. Add missing break statement to default case. Tidy.
18241 * target.h (struct target_ops): Rename insert_watchpoint to
18242 insert_point, and remove_watchpoint to remove_point.
18244 * linux-low.h (struct linux_target_ops): Likewise.
18245 * linux-low.c (linux_insert_watchpoint): Rename to ...
18246 (linux_insert_point): ... this. Adjust.
18247 (linux_remove_watchpoint): Rename to ...
18248 (linux_remove_point): ... this. Adjust.
18249 (linux_target_ops): Adjust.
18250 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
18251 (cris_insert_point): ... this.
18252 (cris_remove_watchpoint): Rename to ...
18253 (cris_remove_point): ... this.
18254 (the_low_target): Adjust.
18256 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
18258 * server.c (handle_v_kill): Pass signal_pid to
18259 kill_inferior if multi_process is zero.
18261 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
18263 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
18264 * target.h (target_ops): Comment for *_watchpoint to make it clear
18265 the functions can get types '0' and '1'.
18267 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
18269 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
18270 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
18271 * regcache.c (get_regcache): Likewise.
18272 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
18273 * win32-low.c (child_fetch_inferior_registers): Remove check for
18276 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
18277 Pedro Alves <pedro@codesourcery.com>
18279 * target.h (struct target_ops) <supports_multi_process>: New
18281 (target_supports_multi_process): New.
18282 * server.c (handle_query): Even if GDB reports support, only
18283 enable multi-process if the target also supports it. Report
18284 multi-process support only if the target backend supports it.
18285 * linux-low.c (linux_supports_multi_process): New function.
18286 (linux_target_ops): Install it as target_supports_multi_process
18289 2009-05-24 Doug Evans <dje@google.com>
18291 Global renaming of find_thread_pid to find_thread_ptid.
18292 * server.h (find_thread_ptid): Renamed from find_thread_pid.
18293 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
18294 All callers updated.
18296 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
18297 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
18300 * linux-low.c (get_stop_pc): Print pc if debug_threads.
18301 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
18302 (linux_resume_one_lwp): Ditto.
18304 2009-05-23 Doug Evans <dje@google.com>
18306 * linux-low.c (linux_resume_one_lwp): Change type of first arg
18307 from struct inferior_list_entry * to struct lwp_info *.
18308 All callers updated.
18310 2009-05-13 Doug Evans <dje@google.com>
18312 * linux-x86-low.c: Don't include assert.h.
18313 (x86_siginfo_fixup): Use fatal, not assert.
18314 (x86_arch_setup): Fix comment.
18316 2009-05-12 Doug Evans <dje@google.com>
18318 Biarch support for i386/amd64 gdbserver.
18319 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
18320 Add linux-x86-low.c.
18321 (linux-i386-low.o, linux-x86-64-low.o): Delete.
18322 (linux-x86-low.o): Add.
18323 * linux-x86-64-low.c: Delete.
18324 * linux-i386-low.c: Delete.
18325 * linux-x86-low.c: New file.
18326 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
18328 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
18330 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
18331 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
18332 (linux_child_pid_to_exec_file): New function.
18333 (elf_64_header_p, elf_64_file_p): New functions.
18334 (siginfo_fixup): New function.
18335 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
18336 give target a chance to convert layout.
18337 * linux-low.h (linux_target_ops): New member siginfo_fixup.
18338 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
18340 2009-05-07 Doug Evans <dje@google.com>
18342 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
18343 (regsets_store_inferior_registers): Ditto.
18345 2009-05-06 Pedro Alves <pedro@codesourcery.com>
18349 * linux-low.c (must_set_ptrace_flags): Delete.
18350 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
18352 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
18353 `lwp->must_set_ptrace_flags' instead.
18354 (linux_wait_for_event_1): Set ptrace options here.
18355 (linux_wait_1): ... not here.
18357 2009-04-30 Doug Evans <dje@google.com>
18359 * inferiors.c (started_inferior_callback): New function.
18360 (attached_inferior_callback): New function.
18361 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
18362 * server.c (print_started_pid, print_attached_pid): New functions.
18363 (detach_or_kill_for_exit): New function.
18364 (main): Call it instead of for_each_inferior (kill_inferior_callback).
18365 * server.h (have_started_inferiors_p): Declare.
18366 (have_attached_inferiors_p): Declare.
18368 * inferiors.c (remove_process): Fix memory leak, free process.
18369 * linux-low.c (linux_remove_process): New function.
18370 (linux_kill): Call it instead of remove_process.
18371 (linux_detach, linux_wait_1): Ditto.
18373 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
18375 * configure.srv: Add x86 Windows CE target.
18377 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
18379 * inferiors.c (get_thread_process): Make global.
18380 * server.h (get_thread_process): Add prototype.
18381 * thread-db.c (find_one_thread): Use get_thread_process
18382 instead of current_process.
18383 (thread_db_get_tls_address): Do not crash if called when
18384 thread layer is not yet initialized.
18386 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
18388 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
18389 * spu-low.c (current_tid): Rename to ...
18390 (current_ptid): ... this.
18391 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
18392 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
18393 ptid_get_lwp (current_ptid) instead of current_tid.
18394 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
18395 instead of current_tid. Use find_process_pid to verify pid
18396 argument is valid. Pass proper argument to remove_process.
18397 (spu_thread_alive): Compare current_ptid instead of current_tid.
18398 (spu_resume): Likewise.
18400 2009-04-02 Pedro Alves <pedro@codesourcery.com>
18402 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
18405 2009-04-01 Pedro Alves <pedro@codesourcery.com>
18407 Implement the multiprocess extensions, and add linux multiprocess
18410 * server.h (ULONGEST): Declare.
18411 (struct ptid, ptid_t): New.
18412 (minus_one_ptid, null_ptid): Declare.
18413 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
18414 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
18415 (struct inferior_list_entry): Change `id' type from unsigned from
18417 (struct sym_cache, struct breakpoint, struct
18418 process_info_private): Forward declare.
18419 (struct process_info): Declare.
18420 (current_process): Declare.
18421 (all_processes): Declare.
18422 (initialize_inferiors): Declare.
18423 (add_thread): Adjust to use ptid_t.
18424 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
18425 (add_process, remove_process, find_thread_pid): Declare.
18426 (find_inferior_id): Adjust to use ptid_t.
18427 (cont_thread, general_thread, step_thread): Change type to ptid_t.
18428 (multi_process): Declare.
18429 (push_event): Adjust to use ptid_t.
18430 (read_ptid, write_ptid): Declare.
18431 (prepare_resume_reply): Adjust to use ptid_t.
18432 (clear_symbol_cache): Declare.
18433 * inferiors.c (all_processes): New.
18434 (null_ptid, minus_one_ptid): New.
18435 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
18436 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
18437 (add_thread): Change unsigned long to ptid. Remove gdb_id
18439 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
18440 (gdb_id_to_thread): Rename to ...
18441 (find_thread_pid): ... this. Change unsigned long to ptid.
18442 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
18443 (loaded_dll, pull_pid_from_list): Adjust.
18444 (add_process, remove_process, find_process_pid)
18445 (get_thread_process, current_process, initialize_inferiors): New.
18446 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
18447 (struct target_waitstatus) <related_pid>: Ditto.
18448 (struct target_ops) <kill, detach>: Add `pid' argument. Change
18449 return type to int.
18450 (struct target_ops) <join>: Add `pid' argument.
18451 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
18452 (struct target_ops) <wait>: Add `ptid' field. Change return type
18454 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
18455 (mywait): Add `ptid' argument. Change return type to ptid_t.
18456 (target_pid_to_str): Declare.
18457 * target.c (set_desired_inferior): Adjust to use ptids.
18458 (mywait): Add new `ptid' argument. Adjust.
18459 (target_pid_to_str): New.
18460 * mem-break.h (free_all_breakpoints): Declare.
18461 * mem-break.c (breakpoints): Delelete.
18462 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
18463 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
18464 to use per-process breakpoint list.
18465 (free_all_breakpoints): New.
18466 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
18467 (symbol_cache, all_symbols_looked_up): Delete.
18469 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
18471 (prepare_resume_reply): Change ptid argument's type from unsigned
18472 long to ptid_t. Adjust. Implement W;process and X;process.
18473 (free_sym_cache, clear_symbol_cache): New.
18474 (look_up_one_symbol): Adjust to per-process symbol cache. *
18475 * server.c (cont_thread, general_thread, step_thread): Change type
18477 (attached): Delete.
18478 (multi_process): New.
18479 (last_ptid): Change type to ptid_t.
18480 (struct vstop_notif) <ptid>: Change type to ptid_t.
18481 (queue_stop_reply, push_event): Change `ptid' argument's type to
18483 (discard_queued_stop_replies): Add `pid' argument.
18484 (start_inferior): Adjust to use ptids. Adjust to mywait interface
18485 changes. Don't reference the `attached' global.
18486 (attach_inferior): Adjust to mywait interface changes.
18487 (handle_query): Adjust to use ptids. Parse GDB's qSupported
18488 features. Handle and report "multiprocess+". Handle
18490 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
18492 (handle_v_kill): New.
18493 (handle_v_stopped): Adjust to use target_pid_to_str.
18494 (handle_v_requests): Allow multiple attaches and runs when
18495 multiprocess extensions are in effect. Handle "vKill".
18496 (myresume): Adjust to use ptids.
18497 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
18498 (handle_status): Adjust to discard_queued_stop_replies interface
18500 (first_thread_of, kill_inferior_callback)
18501 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
18502 (main): Call initialize_inferiors. Adjust to use ptids, killing
18503 and detaching from all inferiors. Handle multiprocess packet
18505 * linux-low.h: Include gdb_proc_service.h.
18506 (struct process_info_private): New.
18507 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
18508 <lwpid_of>: Use ptid_get_lwp.
18509 (get_lwp_thread): Adjust.
18510 (struct lwp_info): Add `dead' member.
18511 (find_lwp_pid): Declare.
18512 * linux-low.c (thread_db_active): Delete.
18513 (new_inferior): Adjust comment.
18514 (inferior_pid): Delete.
18515 (linux_add_process): New.
18516 (handle_extended_wait): Adjust.
18517 (add_lwp): Change unsigned long to ptid.
18518 (linux_create_inferior): Add process to processes table. Adjust
18519 to use ptids. Don't set new_inferior here.
18520 (linux_attach_lwp): Rename to ...
18521 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
18522 it. Adjust to use ptids.
18523 (linux_attach_lwp): New.
18524 (linux_attach): Add process to processes table. Don't set
18526 (struct counter): New.
18527 (second_thread_of_pid_p, last_thread_of_process_p): New.
18528 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
18529 multiple processes.
18530 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
18531 processes. Remove process from process table.
18532 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
18533 to multiple processes.
18534 (any_thread_of): New.
18535 (linux_detach): Add `pid' argument, and handle it. Remove process
18536 from processes table.
18537 (linux_join): Add `pid' argument. Handle it.
18538 (linux_thread_alive): Change unsighed long argument to ptid_t.
18539 Consider dead lwps as not being alive.
18540 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
18541 threads we're not interested in.
18542 (same_lwp, find_lwp_pid): New.
18543 (linux_wait_for_lwp): Change `pid' argument's type from int to
18545 (linux_wait_for_event): Rename to ...
18546 (linux_wait_for_event_1): ... this. Change `pid' argument's type
18547 from int to ptid_t. Adjust.
18548 (linux_wait_for_event): New.
18549 (linux_wait_1): Add `ptid' argument. Change return type to
18550 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
18551 that exit from the process table.
18552 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
18554 (mark_lwp_dead): New.
18555 (wait_for_sigstop): Adjust to use ptids. If a process exits while
18556 stopping all threads, mark its main lwp as dead.
18557 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
18559 (fetch_register, usr_store_inferior_registers)
18560 (regsets_fetch_inferior_registers)
18561 (regsets_store_inferior_registers, linux_read_memory)
18562 (linux_write_memory): Inline `inferior_pid'.
18563 (linux_look_up_symbols): Adjust to use per-process
18564 `thread_db_active'.
18565 (linux_request_interrupt): Adjust to use ptids.
18566 (linux_read_auxv): Inline `inferior_pid'.
18567 (initialize_low): Don't reference thread_db_active.
18568 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
18569 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
18570 (ps_getpid): Return the pid of the current inferior.
18571 * thread-db.c (proc_handle, thread_agent): Delete.
18572 (thread_db_create_event, thread_db_enable_reporting): Adjust to
18574 (find_one_thread): Change argument type to ptid_t. Adjust to
18576 (maybe_attach_thread): Adjust to per-process data and ptids.
18577 (thread_db_find_new_threads): Ditto.
18578 (thread_db_init): Ditto.
18579 * spu-low.c (spu_create_inferior, spu_attach): Add process to
18580 processes table. Adjust to use ptids.
18581 (spu_kill, spu_detach): Adjust interface. Remove process from
18583 (spu_join, spu_thread_alive): Adjust interface.
18584 (spu_wait): Adjust interface. Remove process from processes
18585 table. Adjust to use ptids.
18586 * win32-low.c (current_inferior_tid): Delete.
18587 (current_inferior_ptid): New.
18588 (debug_event_ptid): New.
18589 (thread_rec): Take a ptid. Adjust.
18590 (child_add_thread): Add `pid' argument. Adjust to use ptids.
18591 (child_delete_thread): Ditto.
18592 (do_initial_child_stuff): Add `attached' argument. Add process to
18594 (child_fetch_inferior_registers, child_store_inferior_registers):
18596 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
18597 (win32_attach): Pass 1 to do_initial_child_stuff.
18598 (win32_kill): Adjust interface. Remove process from processes
18600 (win32_detach): Ditto.
18601 (win32_join): Adjust interface.
18602 (win32_thread_alive): Take a ptid.
18603 (win32_resume): Adjust to use ptids.
18604 (get_child_debug_event): Ditto.
18605 (win32_wait): Adjust interface. Remove exiting process from
18608 2009-04-01 Pedro Alves <pedro@codesourcery.com>
18610 Non-stop mode support.
18612 * server.h (non_stop): Declare.
18613 (gdb_client_data, handler_func): Declare.
18614 (delete_file_handler, add_file_handler, start_event_loop):
18616 (handle_serial_event, handle_target_event, push_event)
18617 (putpkt_notif): Declare.
18618 * target.h (enum resume_kind): New.
18619 (struct thread_resume): Replace `step' field by `kind' field.
18620 (TARGET_WNOHANG): Define.
18621 (struct target_ops) <wait>: Add `options' argument.
18622 <supports_non_stop, async, start_non_stop>: New fields.
18623 (target_supports_non_stop, target_async): New.
18624 (start_non_stop): Declare.
18625 (mywait): Add `options' argument.
18626 * target.c (mywait): Add `options' argument. Print child exit
18627 notifications here.
18628 (start_non_stop): New.
18629 * server.c (non_stop, own_buf, mem_buf): New globals.
18630 (struct vstop_notif): New.
18631 (notif_queue): New global.
18632 (queue_stop_reply, push_event, discard_queued_stop_replies)
18633 (send_next_stop_reply): New.
18634 (start_inferior): Adjust to use resume_kind. Adjust to mywait
18636 (attach_inferior): In non-stop mode, don't wait for the target
18638 (handle_general_set): Handle QNonStop.
18639 (handle_query): When handling qC, return the current general
18640 thread, instead of the first thread of the list.
18641 (handle_query): If the backend supports non-stop mode, include
18642 QNonStop+ in the qSupported query response.
18643 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
18645 (handle_v_attach, handle_v_run): Handle non-stop mode.
18646 (handle_v_stopped): New.
18647 (handle_v_requests): Report support for vCont;t. Handle vStopped.
18648 (myresume): Adjust to use resume_kind. Handle non-stop.
18649 (queue_stop_reply_callback): New.
18650 (handle_status): Handle non-stop mode.
18651 (main): Clear non_stop flag on reconnection. Use the event-loop.
18652 Refactor serial protocol handling from here ...
18653 (process_serial_event): ... to this new function. When GDB
18654 selects any thread, select one here. In non-stop mode, wait until
18655 GDB acks all pending events before exiting.
18656 (handle_serial_event, handle_target_event): New.
18657 * remote-utils.c (remote_open): Install remote_desc in the event
18659 (remote_close): Remove remote_desc from the event loop.
18660 (putpkt_binary): Rename to...
18661 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
18662 (putpkt_binary): New as wrapper around putpkt_binary_1.
18663 (putpkt_notif): New.
18664 (prepare_resume_reply): In non-stop mode, don't change the
18666 * event-loop.c: New.
18667 * Makefile.in (OBJ): Add event-loop.o.
18668 (event-loop.o): New rule.
18670 * linux-low.h (pid_of): Moved here.
18672 (get_lwp_thread): Use lwpid_of.
18673 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
18674 * linux-low.c (pid_of): Delete.
18675 (inferior_pid): Use lwpid_of.
18676 (linux_event_pipe): New.
18677 (target_is_async_p): New.
18679 (handle_extended_wait): Use lwpid_of.
18680 (add_lwp): Don't set lwpid field.
18681 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
18682 (linux_kill_one_lwp): If killing a running lwp, stop it first.
18683 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
18684 (linux_detach_one_lwp): If detaching from a running lwp, stop it
18685 first. Adjust to linux_wait_for_event interface changes. Use
18687 (linux_detach): Don't delete the main lwp here.
18688 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
18689 (status_pending_p): Don't consider explicitly suspended lwps.
18690 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
18691 pointer. Add OPTIONS argument. Change return type to int. Use
18692 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
18693 (linux_wait_for_event): Take an integer pid instead of a lwp_info
18694 pointer. Add status pointer argument. Return a pid instead of a
18695 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
18696 changes. In non-stop mode, don't switch to a random thread.
18697 (linux_wait): Rename to...
18698 (linux_wait_1): ... this. Add target_options argument, and handle
18699 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
18700 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
18701 clean exit and signal exit code. Don't stop all threads in
18702 non-stop mode. In all-stop mode, only stop all threads when
18703 reporting a stop to GDB. Handle explicit thread stop requests.
18704 (async_file_flush, async_file_mark): New.
18706 (send_sigstop): Use lwpid_of.
18707 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
18708 interface changes. In non-stop mode, don't switch to a random
18710 (linux_resume_one_lwp): Use lwpid_of.
18711 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
18712 (linux_resume_one_thread): ... this. Handle resume_stop. In
18713 non-stop mode, don't look for pending flag in all threads.
18714 (resume_status_pending_p): Don't consider explicitly suspended
18716 (my_waitpid): Reimplement. Emulate __WALL.
18717 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
18719 (sigchld_handler, linux_supports_non_stop, linux_async)
18720 (linux_start_non_stop): New.
18721 (linux_target_ops): Register linux_supports_non_stop, linux_async
18722 and linux_start_non_stop.
18723 (initialize_low): Install SIGCHLD handler.
18724 * thread-db.c (thread_db_create_event, find_one_thread)
18725 (thread_db_get_tls_address): Use lwpid_of.
18726 * win32-low.c (win32_detach): Adjust to use resume_kind.
18727 (win32_wait): Add `options' argument.
18728 * spu-low.c (spu_resume): Adjust to use resume_kind.
18729 (spu_wait): Add `options' argument.
18731 2009-04-01 Pedro Alves <pedro@codesourcery.com>
18733 Decouple target code from remote protocol.
18735 * target.h (enum target_waitkind): New.
18736 (struct target_waitstatus): New.
18737 (struct target_ops) <wait>: Return an unsigned long. Take a
18738 target_waitstatus pointer instead of a char pointer.
18739 (mywait): Likewise.
18740 * target.c (mywait): Change prototype to return an unsigned long.
18741 Take a target_waitstatus pointer instead of a char pointer. Adjust.
18742 * server.h (thread_from_wait, old_thread_from_wait): Delete
18744 (prepare_resume_reply): Change prototype to take a
18746 * server.c (thread_from_wait, old_thread_from_wait): Delete.
18747 (last_status, last_ptid): New.
18748 (start_inferior): Remove "statusptr" argument. Adjust. Return a
18749 pid instead of a signal.
18750 (attach_inferior): Remove "status" and "signal" parameters.
18752 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
18754 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
18755 (handle_v_requests, myresume): Remove "status" and "signal"
18756 parameters. Adjust.
18757 (handle_status): New.
18758 (main): Delete local `status'. Adjust.
18759 * remote-utils.c: Include target.h.
18760 (prepare_resume_reply): Change prototype to take a
18761 target_waitstatus. Adjust.
18763 * linux-low.c (linux_wait): Adjust to new target_ops->wait
18765 * spu-low.c (spu_wait): Adjust.
18766 * win32-low.c (enum target_waitkind, struct target_waitstatus):
18768 (win32_wait): Adjust.
18770 2009-04-01 Pedro Alves <pedro@codesourcery.com>
18772 * target.h (struct thread_resume): Delete leave_stopped member.
18773 (struct target_ops): Add a `n' argument to the `resume' callback.
18774 * server.c (start_inferior): Adjust.
18775 (handle_v_cont, myresume): Adjust.
18776 * linux-low.c (check_removed_breakpoint): Adjust to resume
18777 interface change, and to removed leave_stopped field.
18778 (resume_ptr): Delete.
18779 (struct thread_resume_array): New.
18780 (linux_set_resume_request): Add new `arg' parameter. Adjust to
18781 resume interface change.
18782 (linux_continue_one_thread, linux_queue_one_thread)
18783 (resume_status_pending_p): Check if the resume field is NULL
18784 instead of checking the leave_stopped member.
18785 (linux_resume): Adjust to the target resume interface change.
18786 * spu-low.c (spu_resume): Adjust to the target resume interface
18788 * win32-low.c (win32_detach, win32_resume): Ditto.
18790 2009-04-01 Pedro Alves <pedro@codesourcery.com>
18792 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
18794 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
18796 (linux_continue_one_thread): Only preserve the stepping flag if
18797 there's a pending breakpoint.
18799 2009-03-31 Pedro Alves <pedro@codesourcery.com>
18801 * server.c (main): After the inferior having exited, call
18802 remote_close before exiting gdbserver.
18804 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
18806 Fix size of FPSCR in Power 7 processors.
18807 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
18808 (PPC_FEATURE_HAS_DFP): New #define.
18809 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
18812 2009-03-23 Pedro Alves <pedro@codesourcery.com>
18814 * server.c (handle_query) Whitespace and formatting.
18816 2009-03-22 Pedro Alves <pedro@codesourcery.com>
18818 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
18819 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
18820 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
18821 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
18822 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
18823 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
18824 Makefile.in, configure.ac: Fix whitespace throughout.
18825 * configure: Regenerate.
18827 2009-03-22 Pedro Alves <pedro@codesourcery.com>
18829 * inferiors.c (find_inferior): Make it safe for the callback
18830 function to delete the currently iterated inferior.
18832 2009-03-22 Pedro Alves <pedro@codesourcery.com>
18834 * Makefile.in (linuw_low_h): Move higher.
18835 (thread-db.o): Depend on $(linux_low_h).
18837 2009-03-17 Pedro Alves <pedro@codesourcery.com>
18839 Rename "process" to "lwp" throughout.
18841 * linux-low.c (all_processes): Rename to...
18842 (all_lwps): ... this.
18843 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
18844 (add_process): Rename to ...
18845 (add_lwp): ... this. Adjust.
18846 (linux_create_inferior): Adjust.
18847 (linux_attach_lwp): Adjust.
18848 (linux_attach): Adjust.
18849 (linux_kill_one_process): Rename to ...
18850 (linux_kill_one_lwp): ... this. Adjust.
18851 (linux_kill): Adjust.
18852 (linux_detach_one_process): Rename to ...
18853 (linux_detach_one_lwp): ... this. Adjust.
18854 (linux_detach): Adjust.
18855 (check_removed_breakpoint): Adjust.
18856 (status_pending_p): Adjust.
18857 (linux_wait_for_process): Rename to ...
18858 (linux_wait_for_lwp): ... this. Adjust.
18859 (linux_wait_for_event): Adjust.
18860 (send_sigstop): Adjust.
18861 (wait_for_sigstop): Adjust.
18862 (stop_all_processes): Rename to ...
18863 (stop_all_lwps): ... this.
18864 (linux_resume_one_process): Rename to ...
18865 (linux_resume_one_lwp): ... this. Adjust.
18866 (linux_set_resume_request, linux_continue_one_thread)
18867 (linux_queue_one_thread, resume_status_pending_p)
18868 (usr_store_inferior_registers, regsets_store_inferior_registers)
18869 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
18871 * linux-low.h (get_process): Rename to ...
18872 (get_lwp): ... this. Adjust.
18873 (get_thread_process): Rename to ...
18874 (get_thread_lwp): ... this. Adjust.
18875 (get_process_thread): Rename to ...
18876 (get_lwp_thread): ... this. Adjust.
18877 (struct process_info): Rename to ...
18878 (struct lwp_info): ... this.
18879 (all_processes): Rename to ...
18880 (all_lwps): ... this.
18881 * proc-service.c (ps_lgetregs): Adjust.
18882 * thread-db.c (thread_db_create_event, find_one_thread)
18883 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
18885 2009-03-14 Pedro Alves <pedro@codesourcery.com>
18887 * server.c (handle_query): Handle "qAttached".
18889 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
18891 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
18892 GPLv3, update license URL.
18894 2009-03-01 Doug Evans <dje@google.com>
18896 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
18897 (server_h): Add gdb_signals.h.
18898 (signals.o): Update.
18899 * server.h (target_signal_from_host,target_signal_to_host_p)
18900 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
18902 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
18904 * remote-utils.c (getpkt): Also generate remote-debug
18905 information if noack_mode is set.
18907 2009-02-06 Pedro Alves <pedro@codesourcery.com>
18909 * server.c (handle_query): Report qXfer:siginfo:read and
18910 qXfer:siginfo:write as supported and handle them.
18911 * target.h (struct target_ops) <qxfer_siginfo>: New field.
18912 * linux-low.c (linux_xfer_siginfo): New.
18913 (linux_target_ops): Set it.
18915 2009-01-26 Pedro Alves <pedro@codesourcery.com>
18917 * server.c (gdbserver_usage): Mention --remote-debug.
18918 (main): Accept '--remote-debug' switch.
18920 2009-01-18 Doug Evans <dje@google.com>
18922 * regcache.c (new_register_cache): No need to check result of xcalloc.
18923 * server.c (handle_search_memory): Back out calls to xmalloc,
18924 result is checked and error is returned to user upon failure.
18925 (handle_query): Ditto. Add more checks for result of malloc.
18926 (handle_v_cont): Check result of malloc, report error back to
18928 (handle_v_run): Ditto. Call freeargv.
18929 * server.h (freeargv): Declare.
18930 * utils.c (freeargv): New fn.
18932 2009-01-15 Doug Evans <dje@google.com>
18934 * gdbreplay.c (perror_with_name): Make arg const char *.
18935 * server.h (target_signal_to_name): Make return type const char *.
18936 * thread-db.c (thread_db_err_str): Make return type const char *.
18937 * utils.c (perror_with_name): Make arg const char *.
18939 2009-01-14 Pedro Alves <pedro@codesourcery.com>
18941 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
18942 when handling a EXIT_PROCESS_DEBUG_EVENT.
18944 2009-01-06 Joel Brobecker <brobecker@adacore.com>
18946 * gdbreplay.c (gdbreplay_version): Update copyright year.
18947 * server.c (gdbserver_version): Likewise.
18949 2009-01-05 Doug Evans <dje@google.com>
18951 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
18952 (handle_extended_wait): Improve comment.
18954 2008-12-13 Doug Evans <dje@google.com>
18956 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
18957 * server.h (ATTR_MALLOC): New macro.
18958 (xmalloc,xcalloc,xstrdup): Declare.
18959 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
18960 * inferiors.c: Ditto.
18961 * linux-low.c: Ditto.
18962 * mem-break.c: Ditto.
18963 * regcache.c: Ditto.
18964 * remote-utils.c: Ditto.
18967 * win32-low.c: Ditto.
18969 2008-12-12 Doug Evans <dje@google.com>
18971 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
18972 in debugging printf.
18974 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
18976 2008-12-09 Doug Evans <dje@google.com>
18978 * linux-low.h (struct process_info): Delete member tid, unused.
18979 * thread-db.c (find_one_thread): Update.
18980 (maybe_attach_thread): Update.
18982 2008-12-02 Pedro Alves <pedro@codesourcery.com>
18984 * target.h (struct target_ops): Add qxfer_osdata member.
18985 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
18987 (linux_qxfer_osdata): New functions.
18988 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
18990 * server.c (handle_query): Handle "qXfer:osdata:read:".
18991 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
18992 (buffer_xml_printf): New functions.
18993 * server.h (struct buffer): New.
18994 (buffer_grow_str, buffer_grow_str0): New macros.
18995 (buffer_grow, buffer_free, buffer_init, buffer_finish)
18996 (buffer_xml_printf): Declare.
18998 2008-11-24 Doug Evans <dje@google.com>
19000 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
19002 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
19004 * server.c (handle_v_run): Always use the supplied argument list.
19006 2008-11-19 Bob Wilson <bob.wilson@acm.org>
19008 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
19009 (xtensa_regmap_table): Add entry for scompare1.
19011 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
19013 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
19014 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
19015 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
19016 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
19017 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
19018 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
19019 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
19020 XML target descriptions.
19021 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
19022 when inferior is running on an ISA 2.05 or later processor. Add
19023 special case to return offset for full 64-bit slot of FPSCR when
19026 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
19028 * Makefile.in (SFILES, clean): Added sparc64 files.
19029 (reg-sparc64.o, reg-sparc64.c): New.
19030 * configure.srv (sparc*-*-linux*): New configuration.
19031 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
19032 syscall arguments for SPARC.
19033 (regsets_store_inferior_registers): Likewise.
19034 * linux-sparc-low.c: New file.
19036 2008-10-21 Doug Evans <dje@google.com>
19038 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
19039 (READLINE_DIR,READLINE_DEP): Delete.
19040 (INTERNAL_CFLAGS): Update.
19041 (LINTFLAGS): Update.
19043 2008-10-10 Pedro Alves <pedro@codesourcery.com>
19045 * server.c (handle_v_run): If GDB didn't specify an argv, use the
19046 whole argv from the last run, not just argv[0].
19048 2008-09-08 Pedro Alves <pedro@codesourcery.com>
19050 * regcache.c (new_register_cache): Return NULL if the register
19051 cache size isn't known yet.
19052 (free_register_cache): Avoid dereferencing a NULL regcache.
19054 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
19056 * configure.srv: Merge MIPS and MIPS64.
19058 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
19060 * Makefile.in (uninstall): Apply $(EXEEXT) too.
19062 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
19064 * Makefile.in: Add required vsx dependencies.
19066 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
19067 Declare init_registers_powerpc_vsx32l.
19068 Declare init_registers_powerpc_vsx64l.
19069 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
19070 (ppc_arch_setup): Check for VSX in hwcap.
19071 (ppc_fill_vsxregset): New function.
19072 (ppc_store_vsxregset): New function.
19073 Add new VSX entry in regset_info target_regsets.
19075 * configure.srv: Add new VSX dependencies.
19077 2008-08-12 Pedro Alves <pedro@codesourcery.com>
19079 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
19080 (remote_open): Set or clear transport_is_reliable.
19081 (putpkt_binary): Don't expect acks in noack mode.
19082 (getpkt): Don't send ack/nac in noack mode.
19083 * server.c (handle_general_set): Handle QStartNoAckMode.
19084 (handle_query): If connected by tcp pass QStartNoAckMode+ in
19086 (main): Reset noack_mode on every connection.
19087 * server.h (noack_mode): Declare.
19089 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19091 * Makefile.in (GDBREPLAY_OBS): New variable.
19092 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
19094 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
19095 Daniel Jacobowitz <dan@codesourcery.com>
19097 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
19098 (usr_store_inferior_registers): Likewise.
19099 (regsets_store_inferior_registers): Likewise.
19101 2008-07-31 Rolf Jansen <rj@surtec.com>
19102 Pedro Alves <pedro@codesourcery.com>
19104 * configure.ac: Check for memmem declaration.
19105 * server.c [HAVE_MALLOC_H]: Include malloc.h.
19106 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
19107 (disable_packet_qfThreadInfo): Unconditionally compile.
19108 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
19109 * configure, config.in: Regenerate.
19111 2008-07-28 Doug Kwan <dougkwan@google.com>
19113 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
19114 (linux_write_memory): Remove declaration of errno.
19116 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
19118 * linux-low.c (handle_extended_wait): Do not use "status"
19119 variable uninitialized.
19121 2008-07-07 Pedro Alves <pedro@codesourcery.com>
19123 * server.c (handle_v_attach): Inhibit reporting dll changes.
19125 2008-06-27 Pedro Alves <pedro@codesourcery.com>
19127 * remote-utils.c (prepare_resume_reply): If requested, don't
19128 output "thread:TID" in the T stop reply.
19130 * server.c (disable_packet_vCont, disable_packet_Tthread)
19131 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
19132 (handle_query): If requested, disable support for qC, qfThreadInfo
19134 (handle_v_requests): If requested, disable support for vCont.
19135 (gdbserver_show_disableable): New.
19136 (main): Handle --disable-packet and --disable-packet=LIST.
19138 * server.h (disable_packet_vCont, disable_packet_Tthread)
19139 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
19141 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
19143 * server.c (gdbserver_usage): Mention --version.
19145 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
19147 * Makefile.in (gdbreplay.o): New rule.
19149 2008-06-06 Joseph Myers <joseph@codesourcery.com>
19151 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
19152 message, not gdbserver.
19154 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
19155 Nathan Sidwell <nathan@codesourcery.com>
19156 Joseph Myers <joseph@codesourcery.com>
19158 * acinclude.m4: Include ../../config/acx.m4.
19159 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
19160 * configure, config.in: Regenerate.
19161 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
19162 * server.c (gdbserver_version): Print PKGVERSION.
19163 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
19164 (main): Adjust gdbserver_usage calls.
19165 * gdbreplay.c (version, host_name): Add declarations.
19166 (gdbreplay_version, gdbreplay_usage): New.
19167 (main): Accept --version and --help options.
19169 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
19171 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
19172 (arm_breakpoint_at): Handle Thumb.
19173 (the_low_target): Add comment.
19175 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
19177 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
19179 2008-05-09 Doug Evans <dje@google.com>
19181 * server.h (decode_search_memory_packet): Declare.
19182 * remote-utils.c (decode_search_memory_packet): New fn.
19183 * server.c (handle_search_memory_1): New fn.
19184 (handle_search_memory): New fn.
19185 (handle_query): Process qSearch:memory packets.
19187 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
19189 * regcache.c (registers_length): Remove.
19190 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
19191 full register packet.
19192 * regcache.h (registers_length): Remove prototype.
19193 * server.h (PBUFSIZ): Define to 16384.
19195 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
19197 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
19198 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
19199 powerpc-64l.o, and powerpc-altivec64l.o.
19200 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
19201 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
19202 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
19203 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
19204 rs6000/power-linux.xml, and rs6000/power64-linux.xml
19207 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
19208 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
19209 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
19210 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
19211 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
19212 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
19213 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
19214 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
19215 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
19216 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
19219 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
19220 (init_registers_powerpc_32l): ... this new prototype.
19221 (init_registers_powerpc_32): Remove, replace by ...
19222 (init_registers_powerpc_altivec32l): ... this new prototype.
19223 (init_registers_powerpc_e500): Remove, replace by ...
19224 (init_registers_powerpc_e500l): ... this new prototype.
19225 (init_registers_ppc64): Remove, replace by ...
19226 (init_registers_powerpc_64l): ... this new prototype.
19227 (init_registers_powerpc_64): Remove, replace by ...
19228 (init_registers_powerpc_altivec64l): ... this new prototype.
19229 (ppc_num_regs): Set to 73.
19230 (PT_ORIG_R3, PT_TRAP): Define if necessary.
19231 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
19232 (ppc_cannot_store_register): Handle orig_r3 and trap.
19233 (ppc_arch_setup): Update init_registers_... calls.
19234 (ppc_fill_gregset): Handle orig_r3 and trap.
19236 * inferiors.c (clear_inferiors): Reset current_inferior.
19238 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
19240 * acinclude.m4: Add override.m4.
19241 * configure: Regenerate.
19243 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19245 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
19246 initial call to init_register_ppc64.
19248 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19250 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
19251 single powerpc*-*-linux* case.
19252 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
19254 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
19256 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
19257 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
19259 * linux-ppc-low.c: Include <elf.h>.
19260 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
19261 (ppc_hwcap): New global variable.
19262 (ppc_regmap): Remove __SPE__ #ifdef sections.
19263 (ppc_regmap_e500): New global variable.
19264 (ppc_cannot_store_register): Update __SPE__ special case.
19265 (ppc_get_hwcap): New function.
19266 (ppc_arch_setup): Use it to determine whether inferior supports
19267 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
19268 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
19269 Do not access registers if target does not support AltiVec.
19270 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
19271 Do not access registers if target does not support SPE.
19272 (target_regsets): Unconditionally include AltiVec and SPE regsets.
19274 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
19276 * linux-low.c (disabled_regsets, num_regsets): New.
19277 (use_regsets_p): Delete.
19278 (linux_wait_for_process): Clear disabled_regsets.
19279 (regsets_fetch_inferior_registers): Check and set it.
19280 (regsets_store_inferior_registers): Likewise.
19281 (linux_fetch_registers, linux_store_registers): Do not use
19283 (initialize_low): Allocate disabled_regsets.
19285 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
19287 * Makefile.in (LIBOBJS): New.
19288 (OBS): Use LIBOBJS.
19289 (memmem.o): New rule.
19290 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
19291 * configure: Regenerated.
19293 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
19295 * server.c (handle_query): Never return "unsupported" for
19296 qXfer:features:read queries.
19298 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
19300 * server.c (get_features_xml): Fix inverted condition.
19301 (handle_query): Always support qXfer:feature:read.
19303 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
19305 * server.c (wrapper_argv): New.
19306 (start_inferior): Handle wrapper_argv. If set, expect an extra
19308 (gdbserver_usage): Document --wrapper.
19309 (main): Parse --wrapper.
19311 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19313 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
19314 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
19315 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
19316 (ppc_set_pc): Likewise.
19317 (ppc_arch_setup): New function.
19318 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
19319 of collect_register.
19320 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
19322 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19324 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
19325 instead of linux-ppc64-low.o.
19326 * linux-ppc64-low.c: Remove file.
19327 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
19328 (linux-ppc64-low.o): Remove rule.
19330 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
19331 (init_registers_powerpc_64): Likewise.
19332 (ppc_regmap): Conditionally define depending on __powerpc64__.
19333 (ppc_cannot_store_register): Do not special-case "fpscr" when
19334 compiled on __powerpc64__.
19335 (ppc_collect_ptrace_register): New function.
19336 (ppc_supply_ptrace_register): New function.
19337 (ppc_breakpoint): Change type to "unsigned int".
19338 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
19339 (the_low_target): Conditionally provide initializers for the
19340 arch_setup member depending on __powerpc64__. Install
19341 collect_ptrace_register and supply_ptrace_register members.
19343 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19345 * regcache.h (gdbserver_xmltarget): Add extern declaration.
19346 * server.c (gdbserver_xmltarget): Define.
19347 (get_features_xml): Use it to replace "target.xml" and arch_string.
19349 * configure.srv: Remove srv_xmltarget. Add XML files that were
19350 mentioned there to srv_xmlfiles instead. Remove conditional tests
19351 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
19352 srv_xmlfiles and srv_regobj to include all possible choices.
19353 * configure.ac (srv_xmltarget): Remove.
19354 (srv_xmlfiles): Do not add "target.xml".
19355 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
19356 checks for supplementary target information.
19357 * configure: Regenerate.
19358 * Makefile.in (XML_TARGET): Remove.
19359 (target.xml): Remove rule.
19360 (clean): Do not clean up target.xml.
19361 (.PRECIOUS): Do not mention target.xml.
19363 * target.h (struct target_ops): Remove arch_string member.
19364 * linux-low.c (linux_arch_string): Remove.
19365 (linux_target_ops): Remove arch_string initializer.
19366 * linux-low.h (struct linux_target_ops): Remove arch_string member.
19367 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
19368 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
19369 * spu-low.c (spu_arch_string): Remove.
19370 (spu_target_ops): Remove arch_string initializer.
19371 * win32-low.c (win32_arch_string): Remove.
19372 (win32_target_ops): Remove arch_string initializer.
19373 * win32-low.h (struct win32_target_ops): Remove arch_string member.
19374 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
19375 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
19377 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19379 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
19380 by collect_ptrace_register and supply_ptrace_register hooks.
19381 * linux-low.c (fetch_register): Use supply_ptrace_register callback
19382 instead of checking for the_low_target.left_pad_xfer.
19383 (usr_store_inferior_registers): Use collect_ptrace_register callback
19384 instead of checking for the_low_target.left_pad_xfer.
19386 * linux-s390-low.c (s390_collect_ptrace_register): New function.
19387 (s390_supply_ptrace_register): Likewise.
19388 (s390_fill_gregset): Call s390_collect_ptrace_register.
19389 (the_low_target): Update.
19391 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
19392 (ppc_supply_ptrace_register): Likewise.
19393 (the_low_target): Update.
19395 * linux-i386-low.c (the_low_target): Update.
19396 * linux-x86-64-low.c (the_low_target): Update.
19398 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19400 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
19401 reg-s390.o and reg-s390x.o.
19403 * linux-low.c (new_inferior): New global variable.
19404 (linux_create_inferior, linux_attach): Set it.
19405 (linux_wait_for_process): Call the_low_target.arch_setup after the
19406 target has stopped for the first time.
19407 (initialize_low): Do not call the_low_target.arch_setup.
19409 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
19410 (s390_set_pc): Likewise.
19411 (s390_arch_setup): New function.
19412 (the_low_target): Use s390_arch_setup as arch_setup routine.
19414 * regcache.c (realloc_register_cache): New function.
19415 (set_register_cache): Call it for each existing regcache.
19417 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19419 * server.h (init_registers): Remove prototype.
19421 * linux-low.h (struct linux_target_ops): Add arch_setup field.
19422 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
19423 instead of init_registers ().
19424 * linux-arm-low.c (init_registers_arm): Add prototype.
19425 (init_registers_arm_with_iwmmxt): Likewise.
19426 (the_low_target): Add initializer for arch_setup field.
19427 * linux-cris-low.c (init_registers_cris): Add prototype.
19428 (the_low_target): Add initializer for arch_setup field.
19429 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
19430 (the_low_target): Add initializer for arch_setup field.
19431 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
19432 (the_low_target): Add initializer for arch_setup field.
19433 * linux-ia64-low.c (init_registers_ia64): Add prototype.
19434 (the_low_target): Add initializer for arch_setup field.
19435 * linux-m32r-low.c (init_registers_m32r): Add prototype.
19436 (the_low_target): Add initializer for arch_setup field.
19437 * linux-m68k-low.c (init_registers_m68k): Add prototype.
19438 (the_low_target): Add initializer for arch_setup field.
19439 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
19440 (init_registers_mips64_linux): Likewise.
19441 (the_low_target): Add initializer for arch_setup field.
19442 * linux-ppc-low.c (init_registers_ppc): Add prototype.
19443 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
19444 (the_low_target): Add initializer for arch_setup field.
19445 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
19446 (init_registers_powerpc_64): Likewise.
19447 (the_low_target): Add initializer for arch_setup field.
19448 * linux-s390-low.c (init_registers_s390): Add prototype.
19449 (init_registers_s390x): Likewise.
19450 (the_low_target): Add initializer for arch_setup field.
19451 * linux-sh-low.c (init_registers_sh): Add prototype.
19452 (the_low_target): Add initializer for arch_setup field.
19453 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
19454 (the_low_target): Add initializer for arch_setup field.
19455 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
19456 (the_low_target): Add initializer for arch_setup field.
19458 * win32-low.h (struct win32_target_ops): Add arch_setup field.
19459 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
19460 instead of init_registers ().
19461 * win32-arm-low.c (init_registers_arm): Add prototype.
19462 (the_low_target): Add initializer for arch_setup field.
19463 * win32-i386-low.c (init_registers_i386): Add prototype.
19464 (the_low_target): Add initializer for arch_setup field.
19466 * spu-low.c (init_registers_spu): Add prototype.
19467 (initialize_low): Call initialie_registers_spu () instead of
19468 initialize_registers ().
19470 2008-02-19 Pedro Alves <pedro@codesourcery.com>
19472 * server.c (handle_v_requests): When handling the vRun and vAttach
19473 packets, if already debugging a process, don't kill it. Return an
19476 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
19478 * server.c (handle_query): Correct length check.
19480 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
19482 * win32-low.c (do_initial_child_stuff): Add process handle
19483 parameter. Set current_process_handle and current_process_id from the
19484 parameters. Clear globals.
19485 (win32_create_inferior): Don't set current_process_handle and
19486 current_process_id here. Instead pass them on the call to
19487 do_initial_child_stuff.
19488 (win32_attach): Likewise.
19489 (win32_clear_inferiors): New.
19490 (win32_kill): Don't close the current process handle or the
19491 current thread handle here. Instead call win32_clear_inferiors.
19492 (win32_detach): Don't open a new handle to the process. Call
19493 win32_clear_inferiors.
19494 (win32_join): Don't rely on current_process_handle; open a new
19495 handle using the process id.
19496 (win32_wait): Call win32_clear_inferiors when the inferior process
19499 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
19501 * server.c (monitor_show_help): Add "exit".
19503 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
19505 * Makefile.in (SFILES): Add linux-xtensa-low.c.
19506 (clean): Add reg-xtensa.c.
19507 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
19508 * configure.srv (xtensa*-*-linux*) New target.
19509 * linux-xtensa-low.c: New.
19510 * xtensa-xtregs.c: New.
19512 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
19514 * hostio.c: Don't include errno.h.
19515 (errno_to_fileio_errno): Move to hostio-errno.
19516 * hostio.c: (hostio_error): Remove the error parameter. Defer the
19517 error number outputting to the target->hostio_last_error callback.
19518 (hostio_packet_error): Use FILEIO_EINVAL directly.
19519 (handle_open, handle_pread, hostio_error, handle_unlink): Update
19520 calls to hostio_error.
19521 * hostio-errno.c: New.
19522 * server.h (hostio_last_error_from_errno): Declare.
19523 * target.h (target_ops): Add hostio_last_error member.
19524 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
19525 as hostio_last_error handler.
19526 * spu-low.c (spu_target_ops): Likewise.
19527 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
19528 (wince_hostio_last_error): New functions.
19529 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
19530 as hostio_last_error handler.
19531 (win32_target_ops) [!_WIN32_WCE]: Register
19532 hostio_last_error_from_errno as hostio_last_error handler.
19533 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
19534 (hostio-errno.o): New rule.
19535 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
19536 * configure.srv (srv_hostio_err_objs): New variable. Default to
19538 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
19539 * configure: Regenerate.
19541 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
19543 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
19544 (linux_kill, linux_detach): Clean up the process list.
19545 * remote-utils.c (remote_open): Improve port number parsing.
19546 (putpkt_binary, input_interrupt): Only send interrupts if the target
19548 * server.c (extended_protocol): Make static.
19549 (attached): Define earlier.
19550 (exit_requested, response_needed, program_argv): New variables.
19551 (target_running): New.
19552 (start_inferior): Clear attached here.
19553 (attach_inferior): Set attached here.
19554 (require_running): Define.
19555 (handle_query): Use require_running and target_running. Implement
19557 (handle_v_attach, handle_v_run): New.
19558 (handle_v_requests): Use require_running. Handle vAttach and vRun.
19559 (gdbserver_usage): Update.
19560 (main): Redo argument parsing. Handle --debug and --multi. Handle
19561 --attach along with other options or after the port. Save
19562 program_argv. Support no initial program. Resynchronize
19563 communication with GDB after an error. Handle "monitor exit".
19564 Use require_running and target_running. Always allow the extended
19565 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
19566 restart in extended mode.
19567 * README: Refer to the GDB manual. Update --attach usage.
19569 2007-12-20 Andreas Schwab <schwab@suse.de>
19571 * linux-low.c (STACK_SIZE): Define.
19572 (linux_tracefork_child): Use it. Use __clone2 on ia64.
19573 (linux_test_for_tracefork): Likewise.
19575 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
19577 * linux-low.c (linux_wait_for_event): Update messages. Do not
19578 reinsert auto-delete breakpoints.
19579 * mem-break.c (struct breakpoint): Change return type of handler to
19581 (set_breakpoint_at): Update handler type.
19582 (reinsert_breakpoint_handler): Return 1 instead of calling
19584 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
19586 (check_breakpoints): Delete auto-delete breakpoints and return 2.
19587 * mem-break.h (set_breakpoint_at): Update handler type.
19588 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
19589 * win32-low.c (auto_delete_breakpoint): New.
19590 (get_child_debug_event): Use it.
19592 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
19594 * configure.ac: Check for pread and pwrite.
19595 * hostio.c (handle_pread): Fall back to lseek and read.
19596 (handle_pwrite): Fall back to lseek and write.
19597 * config.in, configure: Regenerated.
19599 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
19601 * server.c (myresume): Add own_buf argument.
19602 (main): Update calls.
19604 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
19606 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
19607 * remote-utils.c (remote_open): Do not call disable_async_io.
19608 (block_async_io): Delete.
19609 (unblock_async_io): Make static.
19610 (initialize_async_io): New.
19611 * server.c (handle_v_cont): Handle async I/O here.
19612 (myresume): Likewise. Move other common resume tasks here...
19613 (main): ... from here. Call initialize_async_io. Disable async
19614 I/O before the main loop.
19615 * server.h (initialize_async_io): Declare.
19616 (block_async_io, unblock_async_io): Delete prototypes.
19617 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
19619 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
19621 * remote-utils.c (readchar): Allow binary data in received messages.
19623 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
19625 * win32-low.c (attaching): New global.
19626 (win32_create_inferior): Clear the `attaching' global.
19627 (win32_attach): Set the `attaching' global.
19628 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
19629 attaching. Only set a breakpoint at the entry point if not
19632 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
19634 * server.c (main): Don't report dll events on the initial
19635 connection on attaches.
19637 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
19639 * server.c (main): Relax numerical bases supported for the pid of
19640 the --attach command line argument.
19642 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
19644 * win32-low.c (win32_attach): Call OpenProcess before
19645 DebugActiveProcess, not after. Add last error output to error
19648 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
19650 * win32-low.c (win32_get_thread_context)
19651 (win32_set_thread_context): New functions.
19652 (thread_rec): Use win32_get_thread_context.
19653 (continue_one_thread, win32_resume): Use win32_set_thread_context.
19654 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
19657 2007-12-03 Leo Zayas
19658 Pedro Alves <pedro_alves@portugalmail.pt>
19660 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
19662 (child_add_thread): Minor cleanup.
19663 (child_continue): Resume artificially suspended threads before
19664 calling ContinueDebugEvent.
19665 (suspend_one_thread): New.
19666 (fake_breakpoint_event): New.
19667 (get_child_debug_event): Change return type to int. Check here if
19668 gdb sent an interrupt request. If a soft interrupt was requested,
19669 fake a breakpoint event. Return 0 if there is no event to handle,
19671 (win32_wait): Don't check here if gdb sent an interrupt request.
19672 Ensure there is a valid event to handle.
19673 (win32_request_interrupt): Add soft interruption method as last
19676 2007-12-03 Leo Zayas
19677 Pedro Alves <pedro_alves@portugalmail.pt>
19679 * win32-low.h (win32_thread_info): Add descriptions to the
19680 structure members. Replace `suspend_count' counter by a
19682 * win32-low.c (thread_rec): Update condition of when to get the
19683 context from the inferior. Rely on ContextFlags being set if it
19684 has already been retrieved. Only suspend the inferior thread if
19685 we haven't already. Warn if that fails.
19686 (continue_one_thread): s/suspend_count/suspended/. Only call
19687 ResumeThread once. Warn if that fails.
19689 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
19691 * win32-low.c (win32_wait): Don't read from the inferior when it
19692 has already exited.
19694 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
19696 * Makefile.in (win32_low_h): New variable.
19697 (win32-low.o): Add dependency on $(win32_low_h).
19698 (win32-arm-low.o, win32-i386-low.o): New rules.
19700 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
19702 * hostio.c: Correct copyright year.
19704 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
19706 * Makefile.in (OBS): Add hostio.o.
19707 (hostio.o): New rule.
19708 * server.h (handle_vFile): Declare.
19709 * hostio.c: New file.
19710 * server.c (handle_v_requests): Take packet_len and new_packet_len
19711 for binary packets. Call handle_vFile.
19712 (main): Update call to handle_v_requests.
19714 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
19716 * linux-low.c: Include <sched.h>.
19718 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
19720 * linux-low.c (linux_tracefork_grandchild): New.
19721 (linux_tracefork_child): Use clone.
19722 (linux_test_for_tracefork): Use clone; allocate and free a stack.
19724 2007-10-31 Joel Brobecker <brobecker@adacore.com>
19726 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
19728 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
19730 * linux-low.c (handle_extended_wait): Handle unexpected signals.
19732 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
19734 * inferiors.c (change_inferior_id): Delete.
19735 (add_pid_to_list, pull_pid_from_list): New.
19736 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
19737 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
19738 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
19739 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
19740 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
19741 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
19742 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
19743 (using_threads): Always set to 1.
19744 (handle_extended_wait): New.
19745 (add_process): Do not set TID.
19746 (linux_create_inferior): Set must_set_ptrace_flags.
19747 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
19748 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
19749 (linux_thread_alive): Rename TID argument to LWPID.
19750 (linux_wait_for_process): Handle unknown processes. Do not use TID.
19751 (linux_wait_for_event): Do not use TID or check using_threads. Update
19752 call to dead_thread_notify. Call handle_extended_wait.
19753 (linux_create_inferior): Use PTRACE_SETOPTIONS.
19754 (send_sigstop): Delete sigstop_sent.
19755 (wait_for_sigstop): Avoid TID.
19756 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
19757 (linux_test_for_tracefork): New.
19758 (linux_lookup_signals): Use thread_db_active and
19759 linux_supports_tracefork_flag.
19760 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
19761 * linux-low.h (get_process_thread): Avoid TID.
19762 (struct process_ifo): Move thread_known and tid to the end. Remove
19764 (linux_attach_lwp, thread_db_init): Update prototypes.
19765 * server.h (change_inferior_id): Delete prototype.
19766 (add_pid_to_list, pull_pid_from_list): New prototypes.
19767 * thread-db.c (thread_db_use_events): New.
19768 (find_first_thread): Rename to...
19769 (find_one_thread): ...this. Update callers and messages. Do not
19770 call fatal. Check thread_db_use_events. Do not call
19771 change_inferior_id or new_thread_notify.
19772 (maybe_attach_thread): Update. Do not call new_thread_notify.
19773 (thread_db_init): Set thread_db_use_events. Check use_events.
19774 * utils.c (fatal, warning): Correct message prefix.
19776 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
19778 * Makefile.in (clean): Remove new files.
19779 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
19780 (powerpc-64.o, powerpc-64.c): New rules.
19781 * configure.srv: Use alternate register sets for powerpc64-*-linux*
19782 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
19784 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
19786 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
19787 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
19788 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
19789 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
19790 (target_regsets): Add AltiVec and SPE register sets.
19791 * configure.ac: Check for AltiVec and SPE.
19792 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
19793 (ppc_fill_vrregset, ppc_store_vrregset): New.
19794 (target_regsets): Add AltiVec register set.
19795 * configure: Regenerated.
19797 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
19799 * linux-low.c (O_LARGEFILE): Define.
19800 (linux_read_memory): Use /proc/PID/mem.
19801 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
19802 * configure, config.in: Regenerated.
19804 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
19806 * linux-low.c (linux_wait_for_event): Do not pass signals while
19809 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
19811 * win32-low.c (create_process): New.
19812 (win32_create_inferior): Use create_process instead of
19813 CreateProcess. If create_process failed retry appending an ".exe"
19814 suffix. Store the GetLastError result immediatelly after
19815 create_process calls and use it on the call to error.
19817 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
19819 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
19821 2007-08-23 Joel Brobecker <brobecker@adacore.com>
19823 * configure.ac: Switch license to GPLv3.
19825 2007-08-01 Michael Snyder <msnyder@access-company.com>
19827 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
19829 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
19831 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
19833 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
19834 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
19835 CloseToolhelp32Snapshot.
19836 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
19837 CloseToolhelp32Snapshot.
19839 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
19841 * server.c (main): Check for inferior exit before main loop.
19843 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
19845 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
19846 instead of on tmp_desc.
19848 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
19849 Daniel Jacobowitz <dan@codesourcery.com>
19851 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
19852 (add_thread): Minor cleanups.
19853 (clear_inferiors): Move lower in the file. Clear the DLL
19855 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
19856 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
19857 (xml_escape_text): New.
19858 * server.c (handle_query): Handle qXfer:libraries:read. Report it
19860 (handle_v_cont): Report errors.
19861 (gdbserver_version): Update.
19862 (main): Correct size of own_buf. Do not report initial DLL events.
19863 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
19864 (unloaded_dll, xml_escape_text): New.
19865 * win32-low.c (enum target_waitkind): Update comments.
19866 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
19867 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
19868 (win32_EnumProcessModules, win32_GetModuleInformation)
19869 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
19870 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
19871 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
19872 (win32_Module32First, win32_Module32Next, load_toolhelp)
19873 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
19874 (get_child_debug_event): Handle DLL events.
19875 (win32_wait): Likewise.
19877 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
19879 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
19880 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
19882 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
19884 * win32-low.c (handle_output_debug_string): Ignore event if not
19887 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
19889 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
19891 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
19893 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
19895 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
19897 * inferiors.c (change_inferior_id): Add comment.
19898 * linux-low.c (check_removed_breakpoint): Add an early
19899 prototype. Improve debug output.
19900 (linux_attach): Doc update.
19901 (linux_detach_one_process, linux_detach): Clean up before releasing
19903 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
19904 * linux-low.h (struct process_info): Doc improvement.
19905 * mem-break.c (delete_all_breakpoints): New.
19906 * mem-break.h (delete_all_breakpoints): New prototype.
19907 * thread-db.c (find_first_thread): New.
19908 (thread_db_create_event): Call it instead of
19909 thread_db_find_new_threads. Clean up unused variables.
19910 (maybe_attach_thread): Remove first thread handling.
19911 (thread_db_find_new_threads): Use find_first_thread.
19912 (thread_db_get_tls_address): Likewise.
19914 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
19916 * thread-db.c (thread_db_find_new_threads): Add prototype.
19917 (thread_db_create_event): Check for the main thread before adding
19919 (maybe_attach_thread): Only enable event reporting if TID == 0.
19920 (thread_db_get_tls_address): Check for new threads.
19922 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
19924 * linux-low.c (linux_create_inferior): Try execv before execvp.
19925 * spu-low.c (spu_create_inferior): Likewise.
19927 2007-06-13 Mike Frysinger <vapier@gentoo.org>
19929 * linux-low.c (linux_create_inferior): Change execv to execvp.
19930 * spu-low.c (spu_create_inferior): Likewies.
19932 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
19934 * Makefile.in (clean): Clean new files instead of deleted ones.
19935 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
19936 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
19938 * configure.srv: Specify XML files and new regformats for MIPS and
19940 * linux-mips-low.c (mips_num_regs): Set to only used registers.
19941 (mips_regmap): Do not fetch $0. Remove unused registers. Add
19942 an entry for the restart register.
19943 (mips_cannot_fetch_register, mips_cannot_store_register)
19944 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
19945 register names to match the XML descriptions.
19946 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
19947 restart register instead of $0.
19949 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
19950 Markus Deuling <deuling@de.ibm.com>
19952 * remote-utils.c (decode_xfer_write): New function.
19953 * server.h (decode_xfer_write): Add prototype.
19954 * server.c (handle_query): Add PACKET_LEN argument. Support
19955 qXfer:spu:read and qXfer:spu:write packets.
19956 (main): Pass packet_len to handle_query.
19957 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
19958 * target.h (target_ops): Add qxfer_spu.
19960 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
19962 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
19963 accessing non-seekable spufs files.
19965 2007-05-16 Markus Deuling <deuling@de.ibm.com>
19967 * server.c (handle_query): Add reply for qC packet.
19969 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
19970 Leo Zayas <lerele@champenstudios@com>
19972 * server.h (check_remote_input_interrupt_request): New function.
19973 * remote_utils.c (INVALID_DESCRIPTOR): New define.
19974 (remote_desc): Initialize with INVALID_DESCRIPTOR.
19975 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
19976 (check_remote_input_interrupt_request): New function.
19977 * server.h (check_remote_input_interrupt_request): Declare.
19978 * win32-low.c (winapi_DebugBreakProcess,
19979 winapi_GenerateConsoleCtrlEvent): New typedefs.
19980 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
19982 (win32_wait): Check for remote interrupt request
19983 with check_remote_input_interrupt_request.
19984 (win32_request_interrupt): New function.
19985 (win32_target_op): Set request_interrupt to win32_request_interrupt.
19987 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
19989 * win32-low.c (debug_registers_changed,
19990 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
19991 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
19992 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
19993 (thread_rec): Get context using the low target.
19994 (child_add_thread): Call thread_added on the low target,
19995 which does the same thing.
19997 (do_initial_child_stuff): Remove debug registers references.
19998 Set context using the low target. Resume threads after
19999 setting the contexts.
20000 (child_continue): Remove dead variable. Remove debug
20001 registers references.
20002 (child_fetch_inferior_registers): Go through the low target.
20003 (do_child_store_inferior_registers): Remove.
20004 (child_store_inferior_registers): Go through the low target.
20005 (win32_resume): Remove debug registers references.
20006 Set context using the low target.
20007 (handle_exception): Change return type to void. Don't record
20008 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
20009 first chance exception.
20010 (get_child_debug_event): Change return type to void. Remove
20011 goto loop. Always return after waiting for debug event.
20012 (win32_wait): Convert to switch statement. Handle spurious
20015 * win32-i386-low.c (debug_registers_changed,
20016 debug_registers_used): New.
20017 (initial_stuff): Rename to ...
20018 (i386_initial_stuff): ... this. Clear debug registers
20020 (store_debug_registers): Delete.
20021 (i386_get_thread_context): New.
20022 (load_debug_registers): Delete.
20023 (i386_set_thread_context): New.
20024 (i386_thread_added): New.
20025 (single_step): Rename to ...
20026 (i386_single_step): ... this.
20027 (do_fetch_inferior_registers): Rename to ...
20028 (i386_fetch_inferior_register): ... this.
20029 (i386_store_inferior_register): New.
20030 (the_low_target): Adapt to new interface.
20032 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
20033 (arm_get_thread_context): New.
20034 (arm_set_thread_context): New.
20036 (do_fetch_inferior_registers): Rename to ...
20037 (arm_fetch_inferior_register): ... this.
20038 (arm_store_inferior_register): New.
20039 (arm_wince_breakpoint): Reimplement as unsigned long.
20040 (arm_wince_breakpoint_len): Define.
20041 (the_low_target): Adapt to new interface.
20043 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
20044 load_debug_registers. Add get_thread_context, set_thread_context,
20045 thread_added and store_inferior_register. Rename
20046 fetch_inferior_registers to fetch_inferior_register.
20047 (regptr): Remove declaration.
20049 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20051 * linux-low.c (linux_detach): Change return type to int. Return 0.
20052 * spu-low.c (spu_detach): Likewise.
20054 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20056 * target.h (target_ops): Change return type of detach to int.
20058 (join_inferior): New.
20059 * server.c (main): Don't skip detach support on mingw32.
20060 If the inferior doesn't support detaching return error.
20061 Call join_inferior instead of using waitpid.
20062 * linux-low.c (linux_join): New.
20063 (linux_target_op): Add linux_join.
20064 * spu-low.c (spu_join): New.
20065 (spu_target_ops): Add spu_join.
20066 * win32-low.c (win32_detach): Adapt to new interface.
20067 Reopen current_process_handle before detaching. Issue a child
20068 resume before detaching.
20070 (win32_target_op): Add win32_join.
20072 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20074 * win32-low.c (win32-attach): Fix return value.
20075 * target.h (target_ops): Describe ATTACH return values.
20077 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20079 * win32-low.c (GETPROCADDRESS): Define.
20080 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
20081 (winapi_DebugSetProcessKillOnExit): Likewise.
20082 (win32_create_inferior): Force usage of ansi CreateProcessA.
20083 (win32_attach): Use GETPROCADDRESS.
20084 (win32_detach): Likewise.
20086 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20088 * win32-low.c (win32_wait): Don't use WSTOPSIG.
20090 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
20092 * win32-low.c: Commit leftover changes from 2007-03-29.
20094 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20096 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
20097 fields short instead of int. Add explicit padding.
20098 (i387_cache_to_fsave): Remove unnecessary casts.
20099 (i387_fsave_to_cache): Doc fix.
20100 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
20102 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20104 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
20105 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
20107 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20109 * configure.srv (arm*-*-mingw32ce*): Move near the other
20112 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20114 * configure.ac: Add errno checking.
20115 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
20116 sys/file.h and malloc.h.
20117 (AC_CHECK_DECLS): Add perror.
20118 (srv_mingwce): Handle.
20119 * configure.srv (i[34567]86-*-cygwin*): Add
20120 win32-i386-low.o to srv_tgtobj.
20121 (i[34567]86-*-mingw*): Likewise.
20122 (arm*-*-mingw32ce*): Add case.
20123 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20124 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
20125 [__MINGW32CE__] (strerror): New function.
20126 [__MINGW32CE__] (errno): Define to GetLastError.
20127 [__MINGW32CE__] (COUNTOF): New macro.
20128 (remote_open): Remove extra close call.
20129 * mem-break.c (delete_breakpoint_at): New function.
20130 * mem-break.h (delete_breakpoint_at): Declare.
20131 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20132 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
20133 [USE_WIN32API] (read, write): Add char* casts.
20134 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
20135 * server.h: Include wincecompat.h on Windows CE.
20136 [HAVE_ERRNO_H]: Check.
20137 (perror): Declare if not declared.
20138 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
20139 (perror_with_name): Remove errno declaration.
20140 * wincecompat.h: New.
20141 * wincecompat.c: New.
20142 * win32-low.h: New.
20143 * win32-arm-low.c: New.
20144 * win32-i386-low.c: New.
20145 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
20146 (OUTMSG2): Make it safe.
20148 (COUNTOF): New macro.
20149 (NUM_REGS): Get it from the low target.
20150 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
20151 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
20152 (thread_rec): Let low target handle debug registers.
20153 (child_add_thread): Likewise.
20154 (child_init_thread_list): Likewise.
20155 (continue_one_thread): Likewise.
20157 (do_child_fetch_inferior_registers): Move to ...
20158 * win32-i386-low.c: ... here, and rename to ...
20159 (do_fetch_inferior_registers): ... this.
20160 * win32-low.c (child_fetch_inferior_registers):
20161 Go through the low target.
20162 (do_child_store_inferior_registers): Use regptr.
20163 (strwinerror): New function.
20164 (win32_create_inferior): Handle Windows CE.
20165 Use strwinerror instead of strerror on Windows error
20166 codes. Add program to the error output.
20167 Don't close the main thread handle on Windows CE.
20168 (win32_attach): Use coredll.dll on Windows CE.
20169 (win32_kill): Close current process and current
20171 (win32_detach): Use coredll.dll on Windows CE.
20172 (win32_resume): Let low target handle debug registers, and
20174 (handle_exception): Add/Remove initial breakpoint. Avoid
20175 non-existant WSTOPSIG on Windows CE.
20176 (win32_read_inferior_memory): Cast to remove warning.
20177 (win32_arch_string): Go through the low target.
20178 (initialize_low): Call set_breakpoint_data with the low
20179 target's breakpoint.
20180 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
20181 FOP_REGNUM, mappings): Move to ...
20182 * win32-i386-low.c: ... here.
20183 * win32-low.c (win32_thread_info): Move to ...
20184 * win32-low.h: ... here.
20185 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
20186 win32-arm-low.c and wincecompat.c.
20187 (all:): Add $EXEEXT.
20188 (install-only:): Likewise.
20189 (gdbserver:): Likewise.
20190 (gdbreplay:): Likewise.
20191 * config.in: Regenerate.
20192 * configure: Regenerate.
20194 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20196 * win32-low.c: Rename typedef thread_info to
20197 win32_thread_info throughout.
20199 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20201 * win32-i386-low.c: Rename to ...
20202 * win32-low.c: ... this.
20203 * configure.srv: Replace win32-i386-low.o with win32-low.o.
20204 * Makefile.in: Likewise.
20206 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
20208 * remote-utils.c (monitor_output): Constify msg parameter.
20209 * server.h (monitor_output): Likewise.
20210 * win32-i386-low.c (handle_output_debug_string): New.
20211 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
20212 handle_output_debug_string.
20213 (get_child_debug_event): Likewise.
20215 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
20217 * server.c (main): Correct strtoul check.
20219 2007-03-27 Jon Ringle <jon@ringle.org>
20221 * linux-low.c: Check __ARCH_HAS_MMU__ also.
20223 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
20225 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
20227 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
20229 * terminal.h: Check HAVE_SGTTY_H.
20231 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
20233 * remote-utils.c (remote_open): Print out the assigned port number.
20235 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
20237 * remote-utils.c (monitor_output): New function.
20238 * server.c (debug_threads): Define here.
20239 (monitor_show_help): New function.
20240 (handle_query): Handle qRcmd.
20241 (main): Do not handle 'd' packet.
20242 * server.h (debug_threads, remote_debug, monitor_output): Declare.
20243 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
20246 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20248 * Makefile.in (EXEEXT): New.
20249 (clean): Use $(EXEEXT).
20251 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20253 * target.h (target_ops): Rename send_signal to request_interrupt,
20254 and remove enum target_signal parameter.
20255 * linux-low.c (linux_request_interrupt): Rename from
20256 linux_send_signal, and always send SIGINT.
20257 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
20258 and always send SIGINT.
20259 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
20261 (input_interrupt): Likewise.
20263 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20265 * server.c (get_features_xml): Check if target implemented
20267 * win32-i386-low.c (win32_arch_string): New.
20268 (win32_target_ops): Add win32_arch_string as arch_string member.
20270 2007-02-22 Markus Deuling <deuling@de.ibm.com>
20272 * spu-low.c (spu_arch_string): New.
20273 (spu_target_ops): Add spu_arch_string.
20275 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
20277 * remote-utils.c: Remove HAVE_TERMINAL_H check.
20278 * configure.ac: Do not check for terminal.h.
20279 * configure, config.in: Regenerated.
20281 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
20283 * Makefile.in (OBS): Add $(XML_BUILTIN).
20284 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
20286 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
20287 (arm-with-iwmmxt.c): New.
20288 * config.in, configure: Regenerate.
20289 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
20290 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
20291 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
20292 (arm*-*-linux*): Add iWMMXt and regset support.
20293 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
20294 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
20295 (arm_store_wmmxregset, target_regsets): New.
20296 * server.c (get_features_xml): Take annex argument. Check builtin
20298 (handle_query): Handle multiple annexes.
20300 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20302 * remote-utils.c [USE_WIN32API] (read, write): Define.
20303 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
20306 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
20308 * linux-i386-low.c (the_low_target): Set arch_string.
20309 * linux-x86-64-low.c (the_low_target): Likewise.
20310 * linux-low.c (linux_arch_string): New.
20311 (linux_target_ops): Add it.
20312 * linux-low.h (struct linux_target_ops): Add arch_string.
20313 * server.c (write_qxfer_response): Use const void * for DATA.
20314 (get_features_xml): New.
20315 (handle_query): Handle qXfer:features:read. Report it for qSupported.
20316 * target.h (struct target_ops): Add arch_string method.
20318 2007-01-03 Denis Pilat <denis.pilat@st.com>
20319 Daniel Jacobowitz <dan@codesourcery.com>
20321 * linux-low.c (linux_kill): Handle being called with no threads.
20322 * win32-i386-low.c (win32_kill): Likewise.
20323 (get_child_debug_event): Clear current_process_handle.
20325 2006-12-30 Denis PILAT <denis.pilat@st.com>
20326 Daniel Jacobowitz <dan@codesourcery.com>
20328 * remote-utils.c (remote_open): Check the type of specified
20329 serial port devices before opening them.
20330 * server.c (main): Kill the inferior if an error occurs during
20331 the first remote_open.
20333 2006-12-05 Markus Deuling <deuling@de.ibm.com>
20335 * README: Update supported targets.
20337 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
20339 * Makefile.in (clean): Remove reg-mips64.c.
20340 (reg-mips64.c, reg-mips64.o): New rules.
20341 * configure.srv: Handle mips64. Include regset support for mips.
20342 * linux-mips-low.c (union mips_register): New.
20343 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
20344 (mips_breakpoint, mips_breakpoint_at): Use int.
20345 (mips_collect_register, mips_supply_register)
20346 (mips_collect_register_32bit, mips_supply_register_32bit)
20347 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
20348 (mips_store_fpregset, target_regsets): New.
20349 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
20351 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
20353 * configure.srv: Add target "spu*-*-*".
20354 * Makefile.in (clean): Remove reg-spu.c.
20355 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
20356 * spu-low.c: New file.
20358 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
20360 * configure.ac: Correct td_thr_tls_get_addr test.
20361 * configure: Regenerated.
20363 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
20365 * linux-low.c (linux_wait_for_event): Reformat. Use the
20366 pass_signals array.
20367 * remote-utils.c (decode_address_to_semicolon): New.
20368 * server.c (pass_signals, handle_general_set): New.
20369 (handle_query): Mention QPassSignals for qSupported.
20370 (main): Call handle_general_set.
20371 * server.h (pass_signals, decode_address_to_semicolon): New.
20373 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
20375 * server.c (handle_query): Correct error handling for read_auxv.
20377 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
20379 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
20380 and srv_linux_thread_db to yes.
20381 * linux-s390-low.c (s390_fill_gregset): New function.
20382 (target_regsets): Define data structure.
20384 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
20386 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
20387 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
20388 * config.in, configure: Regenerated.
20389 * inferiors.c (gdb_id_to_thread): New function.
20390 (gdb_id_to_thread_id): Use it.
20391 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
20392 * linux-low.h (struct process_info): Add th member.
20393 (thread_db_get_tls_address): New prototype.
20394 * remote-utils.c (decode_address): Make non-static.
20395 * server.c (handle_query): Handle qGetTLSAddr.
20396 * server.h (gdb_id_to_thread, decode_address): New prototypes.
20397 * target.h (struct target_ops): Add get_tls_address.
20398 * thread-db.c (maybe_attach_thread): Save the thread handle.
20399 (thread_db_get_tls_address): New.
20401 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
20403 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
20404 (linux_resume_one_process): Take a siginfo_t *. Update all
20405 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
20406 (struct pending_signals): Add a siginfo_t.
20407 (linux_wait_for_process): Always set last_status.
20408 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
20409 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
20410 * linux-low.h (struct process_info): Add last_status.
20412 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
20414 * remote-utils.c (try_rle): New function.
20415 (putpkt_binary): Use it.
20417 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
20419 * Makefile.in (clean): Clean reg-x86-64-linux.c.
20420 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
20421 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
20422 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
20423 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
20426 2006-08-08 Richard Sandiford <richard@codesourcery.com>
20428 * server.c (terminal_fd): New variable.
20429 (old_foreground_pgrp): Likewise.
20430 (restore_old_foreground_pgrp): New function.
20431 (start_inferior): Record the terminal file descriptor in terminal_fd
20432 and its original foreground group in old_foreground_pgrp. Register
20433 restore_old_foreground_pgrp with atexit().
20435 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
20437 * server.c (handle_query): Correct qPart to qXfer.
20439 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
20441 * configure.ac: Check for more headers which are missing on
20442 Windows. Automatically supply -lwsock32 and USE_WIN32API.
20443 * configure.srv: Add Cygwin and mingw32.
20444 * remote-utils.c: Don't include headers unconditionally which
20445 are missing on mingw32. Include <winsock.h> for mingw32.
20446 (remote_open): Adjust for mingw32 support. Flush
20447 standard error after writing to it.
20448 (remote_close, putpkt_binary, input_interrupt, block_async_io)
20449 (unblock_async_io, enable_async_io, disable_async_io)
20450 (readchar, getpkt): Update for Winsock support.
20451 (prepare_resume_reply): Expect a protocol signal number.
20452 * server.c: Disable <sys/wait.h> on mingw32.
20453 (start_inferior): Adjust for mingw32 support. Flush
20454 standard error after writing to it.
20455 (attach_inferior): Likewise. Use protocol signal
20457 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
20459 * win32-i386-low.c: New file.
20460 * Makefile.in (XM_CLIBS): Set.
20461 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
20462 (win32-i386-low.o): New dependency rule.
20463 * linux-low.c (linux_wait): Use target signal numbers.
20464 * target.h (struct target_ops): Doc fix.
20465 * server.h (target_signal_to_name): New prototype.
20466 * gdbreplay.c: Don't include headers unconditionally which
20467 are missing on mingw32. Include <winsock.h> for mingw32.
20468 (remote_close, remote_open): Adjust for Winsock support.
20469 * configure, config.in: Regenerated.
20471 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20473 * server.c (decode_xfer_read, write_qxfer_response): New.
20474 (handle_query): Take a packet length argument. Handle
20475 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
20476 the qSupported response.
20477 (main): Update call to handle_query.
20479 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
20481 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
20482 (putpkt_binary): Renamed from putpkt and adjusted for binary
20484 (putpkt): New wrapper for putpkt_binary.
20485 (readchar): Don't mask off the high bit.
20486 (decode_X_packet): New function.
20487 * server.c (main): Call putpkt_binary if a handler sets the packet
20488 length. Save the length of the incoming packet. Handle 'X'.
20489 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
20491 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
20493 * server.c (handle_query): Handle qSupported.
20495 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
20497 * remote-utils.c (all_symbols_looked_up): New variable.
20498 (look_up_one_symbol): Check it.
20499 * server.h (look_up_one_symbol): New declaration.
20500 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
20502 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
20504 * Makefile.in (linux-arm-low.o): Update dependencies.
20505 * linux-arm-low.c: Include "gdb_proc_service.h".
20506 (PTRACE_GET_THREAD_AREA): Define.
20507 (ps_get_thread_area): New function.
20509 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
20511 * configure.srv (m68k*-*-uclinux*): New target.
20512 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
20513 (linux_resume_one_process): Remove extraneous cast.
20514 (linux_read_offsets): New.
20515 (linux_target_op): Add linux_read_offsets on mmuless systems.
20516 * server.c (handle_query): Add qOffsets logic.
20517 * target.h (struct target_ops): Add read_offsets.
20519 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
20521 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
20522 (PTRACE_GET_THREAD_AREA): Define.
20523 (ps_get_thread_area): New function.
20524 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
20525 (linux-x86-64-low.o): Update.
20527 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
20529 * configure.ac: Remove checks for prfpregset_t.
20530 * gdb_proc_service.h: New file.
20531 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
20532 new "gdb_proc_service.h".
20533 * proc-service.c: Likewise.
20534 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
20535 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
20536 * Makefile.in (gdb_proc_service_h): Updated.
20537 * configure, config.in: Regenerated.
20539 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
20541 * remote-utils.c (prepare_resume_reply): Move declaration
20542 of gdb_id_from_wait to the top of the block.
20544 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
20546 * linux-low.c (regsets_store_inferior_registers): Read the regset
20547 from the target before filling it.
20549 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
20551 * server.c (attach_inferior): Return SIGTRAP for a successful
20554 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
20556 * Makefile.in (OBS): Add version.o.
20557 (STAGESTUFF): Delete.
20558 (version.o): Add dependencies.
20559 (version.c): Replace rule.
20560 (clean): Remove version.c.
20561 * server.c (gdbserver_version): New.
20562 (gdbserver_usage): Use printf.
20563 (main): Handle --version and --help.
20564 * server.h (version, host_name): Add declarations.
20566 2005-12-23 Eli Zaretskii <eliz@gnu.org>
20578 * linux-x86-64-low.c:
20580 * linux-s390-low.c:
20581 * linux-ppc64-low.c:
20583 * linux-mips-low.c:
20584 * linux-m68k-low.c:
20585 * linux-m32r-low.c:
20588 * linux-ia64-low.c:
20589 * linux-i386-low.c:
20590 * linux-crisv32-low.c:
20602 * gdbserver.1: Add (C) after Copyright. Update the FSF
20605 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
20607 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
20608 (arm_breakpoint_at): Recognize both breakpoints.
20609 (the_low_target): Use the correct breakpoint instruction.
20611 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
20613 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
20614 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
20615 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
20616 (the_low_target): Update.
20618 2005-10-25 Andreas Schwab <schwab@suse.de>
20620 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
20622 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
20623 (ia64_num_regs): Reduce to 462.
20625 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
20627 * acinclude.m4: Correct quoting.
20628 * aclocal.m4: Regenerated.
20630 Suggested by SZOKOVACS Robert <szo@ies.hu>:
20631 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
20632 (thread_db_init): Call thread_db_err_str.
20633 * configure.ac: Check for TD_VERSION.
20634 * config.in, configure: Regenerated.
20636 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20638 * server.h (error, fatal, warning): Add ATTR_FORMAT.
20640 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
20642 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
20643 is not available. Define HAVE_PTRACE_GETREGS if it is.
20644 * config.in, configure: Regenerated.
20645 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
20646 * linux-i386-low.c, linux-m68k-low.c: Update to use
20647 HAVE_PTRACE_GETREGS.
20648 * linux-low.c (regsets_fetch_inferior_registers)
20649 (regsets_store_inferior_registers): Only return 0 if we processed
20651 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
20652 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
20654 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
20656 * inferiors.c (struct thread_info): Add gdb_id.
20657 (add_thread): Add gdb_id argument.
20658 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
20659 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
20660 calls to add_thread.
20661 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
20662 * server.c (handle_query): Use thread_to_gdb_id.
20663 (handle_v_cont, main): Use gdb_id_to_thread_id.
20664 * server.h (add_thread): Update prototype.
20665 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
20668 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
20670 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
20671 left-padded registers.
20672 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
20673 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
20675 2005-07-01 Steve Ellcey <sje@cup.hp.com>
20677 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
20678 * configure: Regenerate.
20679 * config.in: Regenerate.
20680 * server.h (NEED_DECLARATION_STRERROR):
20681 Replace with !HAVE_DECL_STRERROR.
20683 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
20685 * linux-low.c (linux_wait, linux_send_signal): Don't test
20686 an unsigned long variable for > 0 if it could be MAX_ULONG.
20687 * server.c (myresume): Likewise.
20688 * target.c (set_desired_inferior): Likewise.
20690 2005-06-13 Mark Kettenis <kettenis@gnu.org>
20692 * configure.ac: Simplify and improve check for socklen_t.
20693 * configure, config.in: Regenerate.
20695 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
20697 * acconfig.h: Remove.
20698 * configure.ac: Add a test for socklen_t. Use three-argument
20699 AC_DEFINE throughout.
20700 * config.in: Regenerated using autoheader 2.59.
20701 * configure: Regenerated.
20703 * gdbreplay.c (socklen_t): Provide a default.
20704 (remote_open): Use socklen_t.
20705 * remote-utils.c (socklen_t): Provide a default.
20706 (remote_open): Use socklen_t.
20707 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
20710 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
20712 * linux-low.c (linux_read_memory, linux_write_memory)
20713 (linux_read_auxv): Likewise.
20714 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
20715 (check_mem_write): Likewise.
20716 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
20718 * regcache.c (struct inferior_rgcache_data, registers_to_string)
20719 (registers_from_string, register_data): Likewise.
20720 * server.c (handle_query, main): Likewise.
20721 * server.h (convert_ascii_to_int, convert_int_to_ascii)
20722 (decode_M_packet): Likewise.
20723 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
20724 * target.h (struct target_ops): Update read_memory, write_memory,
20726 (read_inferior_memory, write_inferior_memory): Update.
20727 * linux-low.h (struct linux_target_ops): Change type of breakpoint
20728 to unsigned char *.
20729 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
20730 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
20731 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
20732 linux-s390-low.c, linux-sh-low.c: Update for changes in
20733 read_inferior_memory and the_low_target->breakpoint.
20735 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
20737 * Makefile.in (SFILES): Add linux-ppc64-low.c.
20738 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
20739 * configure.srv: Add powerpc64-*-linux*.
20740 * linux-ppc64-low.c: New file.
20742 2005-05-23 Orjan Friberg <orjanf@axis.com>
20744 * linux-cris-low.c: New file with support for CRIS.
20745 * linux-crisv32-low.c: Ditto for CRISv32.
20746 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
20747 (clean): Add reg-cris.c and reg-crisv32.c.
20748 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
20749 reg-crisv32.o, and reg-crisv32.c to make rules.
20750 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
20751 recognized targets.
20753 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
20755 * linux-low.c (fetch_register): Ensure buffer size is a multiple
20756 of sizeof (PTRACE_XFER_TYPE).
20757 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
20759 2005-05-12 Orjan Friberg <orjanf@axis.com>
20761 * target.h (struct target_ops): Add insert_watchpoint,
20762 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
20763 pointers for hardware watchpoint support.
20764 * linux-low.h (struct linux_target_ops): Ditto.
20765 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
20766 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
20767 to linux_target_ops.
20768 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
20770 * server.c (main): Recognize 'Z' and 'z' packets.
20772 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
20774 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
20775 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
20776 (the_low_target): Add new members.
20778 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
20780 * proc-service.c (ps_lgetregs): Search all_processes instead of
20783 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
20785 * server.c (start_inferior): Change return type to int.
20786 (attach_inferior): Change sigptr to int *.
20787 (handle_v_cont, handle_v_requests): Change signal to int *.
20788 (main): Change signal to int.
20790 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
20792 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
20793 * configure.srv: Add m32r*-*-linux*.
20794 * linux-m32r-low.c: New file.
20796 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
20798 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
20800 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
20802 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
20803 Take unsigned long arguments for PIDs.
20804 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
20805 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
20806 (wait_for_sigstop, linux_resume_one_process)
20807 (regsets_fetch_inferior_registers, linux_send_signal)
20808 (linux_read_auxv): Likewise. Update the types of variables holding
20809 PIDs. Update format string specifiers.
20810 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
20811 * remote-utils.c (prepare_resume_reply): Likewise.
20812 * server.c (cont_thread, general_thread, step_thread)
20813 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
20815 (handle_query): Update format specifiers.
20816 (handle_v_cont, main): Use strtoul for thread IDs.
20817 * server.h (struct inferior_list_entry): Use unsigned long for ID.
20818 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
20819 (general_thread, step_thread, thread_from_wait)
20820 (old_thread_from_wait): Update.
20821 * target.h (struct thread_resume): Use unsigned long for THREAD.
20822 (struct target_ops): Use unsigned long for arguments to attach and
20825 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
20827 * acinclude.m4: Include bfd/bfd.m4 directly.
20828 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
20829 <agriffis@toolchain.org>.
20830 * aclocal.m4, configure: Regenerated.
20832 2005-01-07 Andrew Cagney <cagney@gnu.org>
20834 * configure.ac: Rename configure.in, require autoconf 2.59.
20835 * configure: Re-generate.
20837 2004-12-08 Daniel Jacobowitz <dan@debian.org>
20839 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
20840 LIBS when finished.
20841 * aclocal.m4: Regenerated.
20842 * configure: Regenerated.
20844 2004-11-21 Andreas Schwab <schwab@suse.de>
20846 * linux-m68k-low.c (m68k_num_gregs): Define.
20847 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
20848 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
20849 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
20850 (m68k_breakpoint_at): New. Add to the_low_target.
20852 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
20853 srv_linux_thread_db to yes.
20855 2004-10-20 Joel Brobecker <brobecker@gnat.com>
20857 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
20858 (ARCH_SET_FS): Likewise.
20859 (ARCH_GET_FS): Likewise.
20860 (ARCH_GET_GS): Likewise.
20862 2004-10-16 Daniel Jacobowitz <dan@debian.org>
20864 * linux-i386-low.c (ps_get_thread_area): New.
20865 * linux-x86-64-low.c (ps_get_thread_area): New.
20866 * linux-low.c: Include <sys/syscall.h>.
20867 (linux_kill_one_process): Don't kill the first thread here.
20868 (linux_kill): Kill the first thread here.
20869 (kill_lwp): New function.
20870 (send_sigstop, linux_send_signal): Use it.
20871 * proc-service.c: Clean up #ifdefs.
20872 (fpregset_info): Delete.
20873 (ps_lgetregs): Update and enable implementation.
20874 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
20876 * remote-utils.c (struct sym_cache, symbol_cache): New.
20877 (input_interrupt): Print a clearer message.
20878 (async_io_enabled): New variable.
20879 (enable_async_io, disable_async_io): Use it. Update comments.
20880 (look_up_one_symbol): Use the symbol cache.
20881 * thread-db.c (thread_db_look_up_symbols): New function.
20882 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
20884 2004-10-16 Daniel Jacobowitz <dan@debian.org>
20886 * configure.in: Test for -rdynamic.
20887 * configure: Regenerated.
20888 * Makefile (INTERNAL_LDFLAGS): New.
20889 (gdbserver, gdbreplay): Use it.
20891 2004-09-02 Andrew Cagney <cagney@gnu.org>
20893 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
20895 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
20897 * linux-low.c (linux_wait): Clear all_processes list also.
20899 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
20901 * linux-low.c: Include <errno.h>. Remove extern declaration of
20904 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
20906 * gdbreplay.c, server.h, utils.c: Update copyright years.
20908 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
20910 * server.c (main): Print child status or termination signal from
20911 variable 'signal', not 'sig'.
20913 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
20915 * linux-low.c (linux_read_memory): Change return type to
20916 int. Check for and return error from ptrace().
20917 * target.c (read_inferior_memory): Change return type to int. Pass
20918 back return status from the_target->read_memory().
20919 * target.h (struct target_ops): Adapt *read_memory() prototype.
20921 (read_inferior_memory): Adapt prototype.
20922 * server.c (main): Return an error packet if
20923 read_inferior_memory() returns an error.
20925 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
20927 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
20928 Unify with other clean targets.
20930 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
20932 * server.c (handle_v_cont): Call set_desired_inferior.
20934 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
20936 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
20938 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
20940 * linux-low.c (linux_wait): Unblock async I/O.
20941 (linux_resume): Block and enable async I/O.
20942 * remote-utils.c (block_async_io, unblock_async_io): New functions.
20943 * server.h (block_async_io, unblock_async_io): Add prototypes.
20945 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
20947 * remote-utils.c (remote_open): Print a status notice after
20948 opening a TCP port.
20949 * server.c (attach_inferior): Print a status notice after
20952 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
20954 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
20956 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
20958 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
20960 * server.c, target.h: Update copyright years.
20962 2004-02-25 Roland McGrath <roland@redhat.com>
20964 * target.h (struct target_ops): New member `read_auxv'.
20965 * server.c (handle_query): Handle qPart:auxv:read: query using that.
20966 * linux-low.c (linux_read_auxv): New function.
20967 (linux_target_ops): Initialize `read_auxv' member to that.
20969 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20971 Committed by Jim Blandy <jimb@redhat.com>.
20973 * linux-s390-low.c (s390_num_regs): Update.
20974 (s390_regmap): Remove control registers. Use __s390x__ predefine
20975 instead of GPR_SIZE to distiguish s390 and s390x targets.
20977 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
20979 * linux-low.c: Update copyright year.
20980 (check_removed_breakpoint): Clear pending_is_breakpoint.
20981 (linux_set_resume_request, linux_queue_one_thread)
20982 (resume_status_pending_p): New functions.
20983 (linux_continue_one_thread): Use process->resume.
20984 (linux_resume): Only resume threads if there are no pending events.
20985 * linux-low.h (struct process_info): Add resume request
20988 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
20990 * regcache.c (new_register_cache): Clear the allocated register
20991 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
20993 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
20995 * linux-low.c (linux_resume): Take a struct thread_resume *
20997 (linux_wait): Update call.
20998 (resume_ptr): New static variable.
20999 (linux_continue_one_thread): Renamed from
21000 linux_continue_one_process. Use resume_ptr.
21001 (linux_resume): Use linux_continue_one_thread.
21002 * server.c (handle_v_cont, handle_v_requests): New functions.
21003 (myresume): New function.
21004 (main): Handle 'v' case.
21005 * target.h (struct thread_resume): New type.
21006 (struct target_ops): Change argument of "resume" to struct
21008 (myresume): Delete macro.
21010 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
21012 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
21013 (uninstall): Support DESTDIR.
21015 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
21017 * configure.srv: Add xscale*linux copy of arm*linux entry.
21019 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
21021 * linux-arm-low.c (arm_reinsert_addr): New function.
21022 (the_low_target): Add arm_reinsert_addr.
21024 2003-07-08 Mark Kettenis <kettenis@gnu.org>
21026 * mem-break.c: Remove whitespace at end of file.
21028 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
21030 * configure.in: Check whether we need to prototype strerror.
21031 * server.h: Optionally prototype strerror.
21032 * gdbreplay.c (perror_with_name): Use strerror.
21033 * linux-low.c (linux_attach_lwp): Use strerror.
21034 * utils.c (perror_with_name): Use strerror.
21035 * config.in, configure: Regenerated.
21037 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
21039 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
21040 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
21042 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
21044 * Makefile.in (SFILES): Update.
21045 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
21046 low-sun3.c: Remove files.
21048 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
21050 * linux-low.c: Move comment to linux_thread_alive where it belonged.
21051 (linux_detach_one_process, linux_detach): New functions.
21052 (linux_target_ops): Add linux_detach.
21053 * server.c (main): Handle 'D' packet.
21054 * target.h (struct target_ops): Add "detach" member.
21055 (detach_inferior): Define.
21057 2003-06-13 Mark Kettenis <kettenis@gnu.org>
21059 From Kelley Cook <kelleycook@wideopenwest.com>:
21060 * configure.srv: Accept i[34567]86 variants.
21062 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
21064 * linux-low.c (linux_wait_for_event): Correct comment typos.
21065 (linux_resume_one_process): Call check_removed_breakpoint.
21066 (linux_send_signal): New function.
21067 (linux_target_ops): Add linux_send_signal.
21068 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
21070 * target.h (struct target_ops): Add send_signal.
21072 2003-05-29 Jim Blandy <jimb@redhat.com>
21074 * linux-low.c (usr_store_inferior_registers): Transfer buf in
21075 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
21076 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
21077 away part of the register's value.
21079 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
21081 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
21082 (linux_wait_for_event, linux_init_signals): Likewise.
21084 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
21086 * configure.in: Check for stdlib.h.
21087 * configure: Regenerated.
21088 * config.in: Regenerated.
21090 2003-01-04 Andreas Schwab <schwab@suse.de>
21092 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
21094 2003-01-02 Andrew Cagney <ac131313@redhat.com>
21096 * Makefile.in: Remove obsolete code.
21098 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
21100 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
21101 defined(PT_FPR0_HI).
21103 2002-11-17 Stuart Hughes <seh@zee2.com>
21105 * linux-arm-low.c (arm_num_regs): Increase.
21106 (arm_regmap): Include status register.
21108 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
21110 * linux-low.c (register_addr): Remove incorrect -1 check.
21112 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
21114 * linux-low.c (linux_create_inferior): Call setpgid. Return
21116 (unstopped_p, linux_signal_pid): Remove.
21117 (linux_target_ops): Remove linux_signal_pid.
21118 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
21119 global instead of target method.
21120 * target.h (struct target_ops): Remove signal_pid. Update comment
21121 for create_inferior.
21122 * server.c (signal_pid): New variable.
21123 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
21124 gdbserver. Set the child to be the foreground process group.
21125 (attach_inferior): Set signal_pid.
21127 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
21129 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
21131 2002-08-20 Jim Blandy <jimb@redhat.com>
21133 * Makefile.in (LDFLAGS): Allow the configure script to establish a
21136 2002-08-01 Andrew Cagney <cagney@redhat.com>
21138 * Makefile.in: Make chill references obsolete.
21140 2002-07-24 Kevin Buettner <kevinb@redhat.com>
21142 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
21143 * configure: Regenerate.
21144 * config.in: Regenerate.
21146 2002-07-09 David O'Brien <obrien@FreeBSD.org>
21148 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
21149 (perror_with_name, remote_close, remote_open, expect, play): Static.
21151 2002-07-04 Michal Ludvig <mludvig@suse.cz>
21153 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
21154 byte offsets instead of an array of indexes.
21155 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
21157 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
21159 * regcache.c: Add comment.
21161 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
21163 * thread-db.c: New file.
21164 * proc-service.c: New file.
21165 * acinclude.m4: New file.
21166 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
21167 proc-service.o, and thread-db.o.
21168 (linux-low.o): Add USE_THREAD_DB.
21169 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
21170 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
21171 * aclocal.m4: Regenerated.
21172 * config.in: Regenerated.
21173 * configure: Regenerated.
21174 * configure.in: Check for proc_service.h, sys/procfs.h,
21175 thread_db.h, and linux/elf.h headrs.
21176 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
21177 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
21178 Check for -lthread_db and thread support.
21179 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
21180 PowerPC, and SuperH.
21181 * i387-fp.c: Constify arguments.
21182 * i387-fp.h: Likewise.
21183 * inferiors.c: (struct thread_info): Renamed from
21184 `struct inferior_info'. Remove PID member. Use generic inferior
21185 list header. All uses updated.
21186 (inferiors, signal_pid): Removed.
21187 (all_threads): New variable.
21188 (get_thread): Define.
21189 (add_inferior_to_list): New function.
21190 (for_each_inferior): New function.
21191 (change_inferior_id): New function.
21192 (add_inferior): Removed.
21193 (remove_inferior): New function.
21194 (add_thread): New function.
21195 (free_one_thread): New function.
21196 (remove_thread): New function.
21197 (clear_inferiors): Use for_each_inferior and free_one_thread.
21198 (find_inferior): New function.
21199 (find_inferior_id): New function.
21200 (inferior_target_data): Update argument type.
21201 (set_inferior_target_data): Likewise.
21202 (inferior_regcache_data): Likewise.
21203 (set_inferior_regcache_data): Likewise.
21204 * linux-low.c (linux_bp_reinsert): Remove.
21205 (all_processes, stopping_threads, using_thrads)
21206 (struct pending_signals, debug_threads, pid_of): New.
21207 (inferior_pid): Replace with macro.
21208 (struct inferior_linux_data): Remove.
21209 (get_stop_pc, add_process): New functions.
21210 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
21211 Use add_process and add_thread.
21212 (linux_attach_lwp): New function, based on old linux_attach. Use
21213 add_process and add_thread. Set stop_expected for new threads.
21214 (linux_attach): New function.
21215 (linux_kill_one_process): New function.
21216 (linux_kill): Kill all LWPs.
21217 (linux_thread_alive): Use find_inferior_id.
21218 (check_removed_breakpoints, status_pending_p): New functions.
21219 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
21220 Update. Use WNOHANG. Wait for cloned processes also. Update process
21221 struct for the found process.
21222 (linux_wait_for_event): New function.
21223 (linux_wait): Use it. Support LWPs.
21224 (send_sigstop, wait_for_sigstop, stop_all_processes)
21225 (linux_resume_one_process, linux_continue_one_process): New functions.
21226 (linux_resume): Support LWPs.
21227 (REGISTER_RAW_SIZE): Remove.
21228 (fetch_register): Use register_size instead. Call supply_register.
21229 (usr_store_inferior_registers): Likewise. Call collect_register.
21230 Fix recursive case.
21231 (regsets_fetch_inferior_registers): Improve error message.
21232 (regsets_store_inferior_registers): Add debugging.
21233 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
21234 (unstopped_p, linux_signal_pid): New functions.
21235 (linux_target_ops): Add linux_signal_pid.
21236 (linux_init_signals): New function.
21237 (initialize_low): Call it. Initialize using_threads.
21238 * regcache.c (inferior_regcache_data): Add valid
21240 (get_regcache): Fetch registers lazily. Add fetch argument
21241 and update all callers.
21242 (regcache_invalidate_one, regcache_invalidate): New
21244 (new_register_cache): Renamed from create_register_cache.
21245 Return the new regcache.
21246 (free_register_cache): Change argument to a void *.
21247 (registers_to_string, registers_from_string): Call get_regcache
21248 with fetch flag set.
21249 (register_data): Make static. Pass fetch flag to get_regcache.
21250 (supply_register): Call get_regcache with fetch flag clear.
21251 (collect_register): Call get_regcache with fetch flag set.
21252 (collect_register_as_string): New function.
21253 * regcache.h: Update.
21254 * remote-utils.c (putpkt): Flush after debug output and use
21256 Handle input interrupts while waiting for an ACK.
21257 (input_interrupt): Use signal_pid method.
21258 (getpkt): Flush after debug output and use stderr.
21259 (outreg): Use collect_register_as_string.
21260 (new_thread_notify, dead_thread_notify): New functions.
21261 (prepare_resume_reply): Check using_threads. Set thread_from_wait
21262 and general_thread.
21263 (look_up_one_symbol): Flush after debug output.
21264 * server.c (step_thread, server_waiting): New variables.
21265 (start_inferior): Don't use signal_pid. Update call to mywait.
21266 (attach_inferior): Update call to mywait.
21267 (handle_query): Handle qfThreadInfo and qsThreadInfo.
21268 (main): Don't fetch/store registers explicitly. Use
21269 set_desired_inferior. Support proposed ``Hs'' packet. Update
21271 * server.h: Update.
21272 (struct inferior_list, struct_inferior_list_entry): New.
21273 * target.c (set_desired_inferior): New.
21274 (write_inferior_memory): Constify.
21275 (mywait): New function.
21276 * target.h: Update.
21277 (struct target_ops): New signal_pid method.
21278 (mywait): Removed macro, added prototype.
21280 * linux-low.h (regset_func): Removed.
21281 (regset_fill_func, regset_store_func): New.
21282 (enum regset_type): New.
21283 (struct regset_info): Add type field. Use new operation types.
21284 (struct linux_target_ops): stop_pc renamed to get_pc.
21285 Add decr_pc_after_break and breakpoint_at.
21286 (get_process, get_thread_proess, get_process_thread)
21287 (strut process_info, all_processes, linux_attach_lwp)
21288 (thread_db_init): New.
21290 * linux-arm-low.c (arm_get_pc, arm_set_pc,
21291 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
21292 (the_low_target): Add new members.
21293 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
21294 (i386_store_fpxregset): Constify.
21295 (target_regsets): Add new kind identifier.
21296 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
21297 (i386_set_pc): Add debugging.
21298 (i386_breakpoint_at): New function.
21299 (the_low_target): Add new members.
21300 * linux-mips-low.c (mips_get_pc, mips_set_pc)
21301 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
21302 (mips_breakpoint_at): New.
21303 (the_low_target): Add new members.
21304 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
21305 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
21306 (the_low_target): Add new members.
21307 * linux-sh-low.c (sh_get_pc, sh_set_pc)
21308 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
21309 (the_low_target): Add new members.
21310 * linux-x86-64-low.c (target_regsets): Add new kind
21313 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
21315 From Martin Pool <mbp@samba.org>:
21316 * server.c (gdbserver_usage): New function.
21319 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
21321 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
21322 stop_at -> stop_pc.
21324 2002-05-04 Andrew Cagney <ac131313@redhat.com>
21326 * Makefile.in: Remove obsolete code.
21328 2002-04-24 Michal Ludvig <mludvig@suse.cz>
21330 * linux-low.c (regsets_fetch_inferior_registers),
21331 (regsets_store_inferior_registers): Removed cast to int from
21333 * regcache.h: Added declaration of struct inferior_info.
21335 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
21337 * inferiors.c (struct inferior_info): Add regcache_data.
21338 (add_inferior): Call create_register_cache.
21339 (clear_inferiors): Call free_register_cache.
21340 (inferior_regcache_data, set_inferior_regcache_data): New functions.
21341 * regcache.c (struct inferior_regcache_data): New.
21342 (registers): Remove.
21343 (get_regcache): New function.
21344 (create_register_cache, free_register_cache): New functions.
21345 (set_register_cache): Don't initialize the register cache here.
21346 (registers_to_string, registers_from_string, register_data): Call
21348 * regcache.h: Add prototypes.
21349 * server.h: Likewise.
21351 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
21353 * mem-break.c: New file.
21354 * mem-break.h: New file.
21355 * Makefile.in: Add mem-break.o rule; update server.h
21357 * inferiors.c (struct inferior_info): Add target_data
21359 (clear_inferiors): Free target_data member if set.
21360 (inferior_target_data, set_inferior_target_data): New functions.
21361 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
21362 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
21363 * linux-low.c (linux_bp_reinsert): New variable.
21364 (struct inferior_linux_data): New.
21365 (linux_create_inferior): Use set_inferior_target_data.
21366 (linux_attach): Likewise. Call add_inferior.
21367 (linux_wait_for_one_inferior): New function.
21368 (linux_wait): Call it.
21369 (linux_write_memory): Add const.
21370 (initialize_low): Call set_breakpoint_data.
21371 * linux-low.h (struct linux_target_ops): Add breakpoint
21373 * server.c (attach_inferior): Remove extra add_inferior
21375 * server.h: Include mem-break.h. Update inferior.c
21377 * target.c (read_inferior_memory)
21378 (write_inferior_memory): New functions.
21379 * target.h (read_inferior_memory)
21380 (write_inferior_memory): Change macros to prototypes.
21381 (struct target_ops): Update comments. Add const to write_memory
21384 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
21386 * linux-low.c (usr_store_inferior_registers): Support
21387 registers which are allowed to fail to store.
21388 * linux-low.h (linux_target_ops): Likewise.
21389 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
21390 (ppc_cannot_store_register): FPSCR may not be storable.
21392 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21394 * server.h: Include <string.h> if HAVE_STRING_H.
21395 * ChangeLog: Correct paths in last ChangeLog entry.
21397 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21399 * linux-low.h: Remove obsolete prototypes.
21400 (struct linux_target_ops): New.
21401 (extern the_low_target): New.
21402 * linux-low.c (num_regs, regmap): Remove declarations.
21403 (register_addr): Use the_low_target explicitly.
21404 (fetch_register): Likewise.
21405 (usr_fetch_inferior_registers): Likewise.
21406 (usr_store_inferior_registers): Likewise.
21407 * linux-arm-low.c (num_regs): Remove.
21408 (arm_num_regs): Define.
21409 (arm_regmap): Renamed from regmap, made static.
21410 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
21412 (arm_cannot_store_register): Renamed from cannot_store_register,
21414 (the_low_target): New.
21415 * linux-i386-low.c (num_regs): Remove.
21416 (i386_num_regs): Define.
21417 (i386_regmap): Renamed from regmap, made static.
21418 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
21420 (i386_cannot_store_register): Renamed from cannot_store_register,
21422 (the_low_target): New.
21423 * linux-ia64-low.c (num_regs): Remove.
21424 (ia64_num_regs): Define.
21425 (ia64_regmap): Renamed from regmap, made static.
21426 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
21428 (ia64_cannot_store_register): Renamed from cannot_store_register,
21430 (the_low_target): New.
21431 * linux-m68k-low.c (num_regs): Remove.
21432 (m68k_num_regs): Define.
21433 (m68k_regmap): Renamed from regmap, made static.
21434 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
21436 (m68k_cannot_store_register): Renamed from cannot_store_register,
21438 (the_low_target): New.
21439 * linux-mips-low.c (num_regs): Remove.
21440 (mips_num_regs): Define.
21441 (mips_regmap): Renamed from regmap, made static.
21442 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
21444 (mips_cannot_store_register): Renamed from cannot_store_register,
21446 (the_low_target): New.
21447 * linux-ppc-low.c (num_regs): Remove.
21448 (ppc_num_regs): Define.
21449 (ppc_regmap): Renamed from regmap, made static.
21450 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
21452 (ppc_cannot_store_register): Renamed from cannot_store_register,
21454 (the_low_target): New.
21455 * linux-s390-low.c (num_regs): Remove.
21456 (s390_num_regs): Define.
21457 (s390_regmap): Renamed from regmap, made static.
21458 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
21460 (s390_cannot_store_register): Renamed from cannot_store_register,
21462 (the_low_target): New.
21463 * linux-sh-low.c (num_regs): Remove.
21464 (sh_num_regs): Define.
21465 (sh_regmap): Renamed from regmap, made static.
21466 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
21468 (sh_cannot_store_register): Renamed from cannot_store_register,
21470 (the_low_target): New.
21471 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
21472 (the_low_target): New.
21474 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21476 * Makefile.in: Add stamp-h target.
21477 * configure.in: Create stamp-h.
21478 * configure: Regenerated.
21480 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21482 * inferiors.c: New file.
21483 * target.c: New file.
21484 * target.h: New file.
21485 * Makefile.in: Add target.o and inferiors.o. Update
21487 * linux-low.c (inferior_pid): New static variable,
21488 moved from server.c.
21489 (linux_create_inferior): Renamed from create_inferior.
21490 Call add_inferior. Return 0 on success instead of a PID.
21491 (linux_attach): Renamed from myattach.
21492 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
21493 (linux_thread_alive): Renamed from mythread_alive.
21494 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
21496 (linux_resume): Renamed from myresume. Add missing ``return 0''.
21497 (regsets_store_inferior_registers): Correct error message.
21498 Add missing ``return 0''.
21499 (linux_fetch_registers): Renamed from fetch_inferior_registers.
21500 (linux_store_registers): Renamed from store_inferior_registers.
21501 (linux_read_memory): Renamed from read_inferior_memory.
21502 (linux_write_memory): Renamed from write_inferior_memory.
21503 (linux_target_ops): New structure.
21504 (initialize_low): Call set_target_ops ().
21505 * remote-utils.c (unhexify): New function.
21506 (hexify): New function.
21507 (input_interrupt): Send signals to ``signal_pid''.
21508 * server.c (inferior_pid): Remove.
21509 (start_inferior): Update create_inferior call.
21510 (attach_inferior): Call add_inferior.
21511 (handle_query): New function.
21512 (main): Call handle_query for `q' packets.
21513 * server.h: Include "target.h". Remove obsolete prototypes.
21514 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
21516 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21518 * Makefile.in: Add WARN_CFLAGS. Update configury
21520 * configure.in: Check for <string.h>
21521 * configure: Regenerate.
21522 * config.in: Regenerate.
21523 * gdbreplay.c: Include needed system headers.
21524 (remote_open): Remove strchr prototype.
21525 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
21526 * regcache.c (supply_register): Change buf argument to const void *.
21527 (supply_register_by_name): Likewise.
21528 (collect_register): Change buf argument to void *.
21529 (collect_register_by_name): Likewise.
21530 * regcache.h: Add missing prototypes.
21531 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
21532 * server.c (handle_query): New function.
21533 (attached): New static variable, moved out of main.
21534 (main): Quiet longjmp clobber warnings.
21535 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
21536 * utils.c (error): Remove NORETURN.