1 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3 Turn the 'siginfo_fixup' linux target op into a method of
6 * linux-low.h (struct linux_target_ops): Remove the op.
7 (class linux_process_target) <siginfo_fixup>
8 <low_siginfo_fixup>: Declare.
9 * linux-low.cc (siginfo_fixup): Turn into...
10 (linux_process_target::siginfo_fixup): ...this.
11 (linux_process_target::low_siginfo_fixup): Define.
12 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
13 (x86_siginfo_fixup): Turn into...
14 (x86_target::low_siginfo_fixup): ...this.
15 (the_low_target): Remove the op field.
16 * linux-aarch64-low.cc (class aarch64_target):
17 <low_siginfo_fixup>: Declare.
18 (aarch64_linux_siginfo_fixup): Turn into...
19 (aarch64_target::low_siginfo_fixup): ...this.
20 (the_low_target): Remove the op field.
21 * linux-arm-low.cc (the_low_target): Remove the op field.
22 * linux-bfin-low.cc (the_low_target): Ditto.
23 * linux-crisv32-low.cc (the_low_target): Ditto.
24 * linux-m32r-low.cc (the_low_target): Ditto.
25 * linux-m68k-low.cc (the_low_target): Ditto.
26 * linux-mips-low.cc (the_low_target): Ditto.
27 * linux-ppc-low.cc (the_low_target): Ditto.
28 * linux-s390-low.cc (the_low_target): Ditto.
29 * linux-sh-low.cc (the_low_target): Ditto.
30 * linux-tic6x-low.cc (the_low_target): Ditto.
31 * linux-tile-low.cc (the_low_target): Ditto.
32 * linux-xtensa-low.cc (the_low_target): Ditto.
34 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
36 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
37 linux target ops into methods of linux_process_target.
39 * linux-low.h (struct linux_target_ops): Remove the ops.
40 (class linux_process_target) <low_collect_ptrace_register>
41 <low_store_ptrace_register>: Declare.
42 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
43 (linux_process_target::low_supply_ptrace_register): Define.
45 Update the callers below.
47 (linux_process_target::fetch_register)
48 (linux_process_target::store_register)
50 * linux-x86-low.cc (the_low_target): Remove the op fields.
51 * linux-aarch64-low.cc (the_low_target): Ditto.
52 * linux-arm-low.cc (the_low_target): Ditto.
53 * linux-bfin-low.cc (the_low_target): Ditto.
54 * linux-crisv32-low.cc (the_low_target): Ditto.
55 * linux-m32r-low.cc (the_low_target): Ditto.
56 * linux-m68k-low.cc (the_low_target): Ditto.
57 * linux-sh-low.cc (the_low_target): Ditto.
58 * linux-sparc-low.cc (the_low_target): Ditto.
59 * linux-tic6x-low.cc (the_low_target): Ditto.
60 * linux-tile-low.cc (the_low_target): Ditto.
61 * linux-xtensa-low.cc (the_low_target): Ditto.
62 * linux-mips-low.cc (class mips_target)
63 <low_collect_ptrace_register>
64 <low_supply_ptrace_register>: Declare.
65 (mips_collect_ptrace_register): Turn into ...
66 (mips_target::low_collect_ptrace_register): ...this.
67 (mips_supply_ptrace_register): Turn into...
68 (mips_target::low_supply_ptrace_register): ...this.
69 (the_low_target): Remove the op fields.
70 * linux-ppc-low.cc (class ppc_target)
71 <low_collect_ptrace_register>
72 <low_supply_ptrace_register>: Declare.
73 (ppc_collect_ptrace_register): Turn into ...
74 (ppc_target::low_collect_ptrace_register): ...this.
75 (ppc_supply_ptrace_register): Turn into ...
76 (ppc_target::low_supply_ptrace_register): ...this.
77 (ppc_fill_gregset): Update for the calls to
78 low_collect_ptrace_register.
79 (the_low_target): Remove the op fields.
80 * linux-s390-low.cc (class s390_target)
81 <low_collect_ptrace_register>
82 <low_supply_ptrace_register>: Declare.
83 (s390_collect_ptrace_register): Turn into ...
84 (s390_target::low_collect_ptrace_register): ...this.
85 (s390_supply_ptrace_register): Turn into ...
86 (s390_target::low_supply_ptrace_register): ...this.
87 (s390_fill_gregset): Update for the calls to
88 low_collect_ptrace_register.
89 (the_low_target): Remove the op fields.
91 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
93 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
94 target ops into methods of linux_process_target.
96 * linux-low.h (struct linux_target_ops): Remove the ops.
97 (class linux_process_target) <check_stopped_by_watchpoint>
98 <low_stopped_by_watchpoint>
99 <low_stopped_data_address>: Declare.
100 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
101 (linux_process_target::check_stopped_by_watchpoint): ...this.
102 (linux_process_target::low_stopped_by_watchpoint): Define.
103 (linux_process_target::low_stopped_data_address): Define.
104 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
105 <low_stopped_data_address>: Declare.
106 (x86_stopped_by_watchpoint): Turn into...
107 (x86_target::low_stopped_by_watchpoint): ...this.
108 (x86_stopped_data_address): Turn into...
109 (x86_target::low_stopped_data_address): ...this.
110 (the_low_target): Remove the op fields.
111 * linux-aarch64-low.cc (class aarch64_target)
112 <low_stopped_by_watchpoint>
113 <low_stopped_data_address>: Declare.
114 (aarch64_stopped_by_watchpoint): Turn into...
115 (aarch64_target::low_stopped_by_watchpoint): ...this.
116 (aarch64_stopped_data_address): Turn into...
117 (aarch64_target::low_stopped_data_address): ...this.
118 (the_low_target): Remove the op fields.
119 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
120 <low_stopped_data_address>: Declare.
121 (arm_stopped_by_watchpoint): Turn into...
122 (arm_target::low_stopped_by_watchpoint): ...this.
123 (arm_stopped_data_address): Turn into...
124 (arm_target::low_stopped_data_address): ...this.
125 (the_low_target): Remove the op fields.
126 * linux-crisv32-low.cc (class crisv32_target)
127 <low_stopped_by_watchpoint>
128 <low_stopped_data_address>: Declare.
129 (cris_stopped_by_watchpoint): Turn into...
130 (crisv32_target::low_stopped_by_watchpoint): ...this.
131 (cris_stopped_data_address): Turn into...
132 (crisv32_target::low_stopped_data_address): ...this.
133 (the_low_target): Remove the op fields.
134 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
135 <low_stopped_data_address>: Declare.
136 (mips_stopped_by_watchpoint): Turn into...
137 (mips_target::low_stopped_by_watchpoint): ...this.
138 (mips_stopped_data_address): Turn into...
139 (mips_target::low_stopped_data_address): ...this.
140 (the_low_target): Remove the op fields.
141 * linux-bfin-low.cc (the_low_target): Remove the op fields.
142 * linux-m32r-low.cc (the_low_target): Ditto.
143 * linux-m68k-low.cc (the_low_target): Ditto.
144 * linux-ppc-low.cc (the_low_target): Ditto.
145 * linux-s390-low.cc (the_low_target): Ditto.
146 * linux-sh-low.cc (the_low_target): Ditto.
147 * linux-sparc-low.cc (the_low_target): Ditto.
148 * linux-tic6x-low.cc (the_low_target): Ditto.
149 * linux-tile-low.cc (the_low_target): Ditto.
150 * linux-xtensa-low.cc (the_low_target): Ditto.
152 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
154 Turn the 'insert_point' and 'remove_point' linux target ops into
155 methods of linux_process_target.
157 * linux-low.h (struct linux_target_ops): Remove the ops.
158 (class linux_process_target) <low_insert_point>
159 <low_remove_point>: Declare.
160 * linux-low.cc (linux_process_target::low_insert_point)
161 (linux_process_target::low_remove_point): Define.
162 (linux_process_target::insert_point)
163 (linux_process_target::remove_point): Update for calls to
164 low_insert_point and low_remove_point.
165 * linux-x86-low.cc (class x86_target) <low_insert_point>
166 <low_remove_point>: Declare.
167 (x86_insert_point): Turn into...
168 (x86_target::low_insert_point): ...this.
169 (x86_remove_point): Turn into...
170 (x86_target::low_remove_point): ...this.
171 (the_low_target): Remove the op fields.
172 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
173 <low_remove_point>: Declare.
174 (aarch64_insert_point): Turn into...
175 (aarch64_target::low_insert_point): ...this.
176 (aarch64_remove_point): Turn into...
177 (aarch64_target::low_remove_point): ...this.
178 (the_low_target): Remove the op fields.
179 * linux-arm-low.cc (class arm_target) <low_insert_point>
180 <low_remove_point>: Declare.
181 (arm_insert_point): Turn into...
182 (arm_target::low_insert_point): ...this.
183 (arm_remove_point): Turn into...
184 (arm_target::low_remove_point): ...this.
185 (the_low_target): Remove the op fields.
186 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
187 <low_remove_point>: Declare.
188 (crisv32_insert_point): Turn into...
189 (crisv32_target::low_insert_point): ...this.
190 (crisv32_remove_point): Turn into...
191 (crisv32_target::low_remove_point): ...this.
192 (the_low_target): Remove the op fields.
193 * linux-mips-low.cc (class mips_target) <low_insert_point>
194 <low_remove_point>: Declare.
195 (mips_insert_point): Turn into...
196 (mips_target::low_insert_point): ...this.
197 (mips_remove_point): Turn into...
198 (mips_target::low_remove_point): ...this.
199 (the_low_target): Remove the op fields.
200 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
201 <low_remove_point>: Declare.
202 (ppc_insert_point): Turn into...
203 (ppc_target::low_insert_point): ...this.
204 (ppc_remove_point): Turn into...
205 (ppc_target::low_remove_point): ...this.
206 (the_low_target): Remove the op fields.
207 * linux-bfin-low.cc (the_low_target): Remove the op fields.
208 * linux-m32r-low.cc (the_low_target): Ditto.
209 * linux-m68k-low.cc (the_low_target): Ditto.
210 * linux-s390-low.cc (the_low_target): Ditto.
211 * linux-sh-low.cc (the_low_target): Ditto.
212 * linux-sparc-low.cc (the_low_target): Ditto.
213 * linux-tic6x-low.cc (the_low_target): Ditto.
214 * linux-tile-low.cc (the_low_target): Ditto.
215 * linux-xtensa-low.cc (the_low_target): Ditto.
217 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
219 Remove the 'supports_z_point_type' linux target op and let the
220 concrete linux target define it by overriding the op declared in
221 process_stratum_target.
223 * linux-low.cc (linux_process_target::supports_z_point_type):
225 * linux-low.h (struct linux_target_ops): Remove the op.
226 (class linux_process_target) <supports_z_point_type>: Remove.
227 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
229 (x86_supports_z_point_type): Turn into...
230 (x86_target::supports_z_point_type): ...this.
231 (the_low_target): Remove the op field.
232 * linux-aarch64-low.cc (class aarch64_target)
233 <supports_z_point_type>: Declare.
234 (aarch64_supports_z_point_type): Turn into...
235 (aarch64_target::supports_z_point_type): ...this.
236 (the_low_target): Remove the op field.
237 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
239 (arm_supports_z_point_type): Turn into...
240 (arm_target::supports_z_point_type): ...this.
241 (the_low_target): Remove the op field.
242 * linux-crisv32-low.cc (class crisv32_target)
243 <supports_z_point_type>: Declare.
244 (cris_supports_z_point_type): Turn into...
245 (crisv32_target::supports_z_point_type): ...this.
246 (the_low_target): Remove the op field.
247 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
249 (mips_supports_z_point_type): Turn into...
250 (mips_target::supports_z_point_type): ...this.
251 (the_low_target): Remove the op field.
252 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
254 (ppc_supports_z_point_type): Turn into...
255 (ppc_target::supports_z_point_type): ...this.
256 (the_low_target): Remove the op field.
257 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
259 (s390_supports_z_point_type): Turn into...
260 (s390_target::supports_z_point_type): ...this.
261 (the_low_target): Remove the op field.
262 * linux-bfin-low.cc (the_low_target): Remove the op field.
263 * linux-m32r-low.cc (the_low_target): Ditto.
264 * linux-m68k-low.cc (the_low_target): Ditto.
265 * linux-sh-low.cc (the_low_target): Ditto.
266 * linux-sparc-low.cc (the_low_target): Ditto.
267 * linux-tic6x-low.cc (the_low_target): Ditto.
268 * linux-tile-low.cc (the_low_target): Ditto.
269 * linux-xtensa-low.cc (the_low_target): Ditto.
271 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
273 Turn the 'breakpoint_at' linux target op into a method of
274 linux_process_target.
276 * linux-low.h (struct linux_target_ops): Remove the op.
277 (class linux_process_target) <low_breakpoint_at>: Declare.
279 Update the callers below:
281 * linux-low.cc (linux_process_target::save_stop_reason)
282 (linux_process_target::thread_still_has_status_pending)
283 (linux_process_target::wait_1)
285 * linux-x86-low.cc (class x86_target)
286 <low_breakpoint_at>: Declare.
287 (x86_breakpoint_at): Turn into...
288 (x86_target::low_breakpoint_at): ...this.
289 (the_low_target): Remove the op field.
290 * linux-aarch64-low.cc (class aarch64_target)
291 <low_breakpoint_at>: Declare.
292 (aarch64_breakpoint_at): Turn into...
293 (aarch64_target::low_breakpoint_at): ...this.
294 (the_low_target): Remove the op field.
295 * linux-arm-low.cc (class arm_target)
296 <low_breakpoint_at>: Declare.
297 (arm_target::low_breakpoint_at): Define.
298 (the_low_target): Remove the op field.
299 * linux-bfin-low.cc (class bfin_target)
300 <low_breakpoint_at>: Declare.
301 (bfin_breakpoint_at): Turn into...
302 (bfin_target::low_breakpoint_at): ...this.
303 (the_low_target): Remove the op field.
304 * linux-cris-low.cc (class cris_target)
305 <low_breakpoint_at>: Declare.
306 (cris_breakpoint_at): Turn into...
307 (cris_target::low_breakpoint_at): ...this.
308 (the_low_target): Remove the op field.
309 * linux-crisv32-low.cc (class crisv32_target)
310 <low_breakpoint_at>: Declare.
311 (crisv32_breakpoint_at): Turn into...
312 (crisv32_target::low_breakpoint_at): ...this.
313 (the_low_target): Remove the op field.
314 * linux-ia64-low.cc (class ia64_target)
315 <low_breakpoint_at>: Declare.
316 (ia64_target::low_breakpoint_at): Define.
317 * linux-m32r-low.cc (class m32r_target)
318 <low_breakpoint_at>: Declare.
319 (m32r_breakpoint_at): Turn into...
320 (m32r_target::low_breakpoint_at): ...this.
321 (the_low_target): Remove the op field.
322 * linux-m68k-low.cc (class m68k_target)
323 <low_breakpoint_at>: Declare.
324 (m68k_breakpoint_at): Turn into...
325 (m68k_target::low_breakpoint_at): ...this.
326 (the_low_target): Remove the op field.
327 * linux-mips-low.cc (class mips_target)
328 <low_breakpoint_at>: Declare.
329 (mips_breakpoint_at): Turn into...
330 (mips_target::low_breakpoint_at): ...this.
331 (the_low_target): Remove the op field.
332 * linux-nios2-low.cc (class nios2_target)
333 <low_breakpoint_at>: Declare.
334 (nios2_breakpoint_at): Turn into...
335 (nios2_target::low_breakpoint_at): ...this.
336 (the_low_target): Remove the op field.
337 * linux-ppc-low.cc (class ppc_target)
338 <low_breakpoint_at>: Declare.
339 (ppc_breakpoint_at): Turn into...
340 (ppc_target::low_breakpoint_at): ...this.
341 (the_low_target): Remove the op field.
342 * linux-riscv-low.cc (class riscv_target)
343 <low_breakpoint_at>: Declare.
344 (riscv_breakpoint_at): Turn into...
345 (riscv_target::low_breakpoint_at): ...this.
346 (the_low_target): Remove the op field.
347 * linux-s390-low.cc (class s390_target)
348 <low_breakpoint_at>: Declare.
349 (s390_breakpoint_at): Turn into...
350 (s390_target::low_breakpoint_at): ...this.
351 (the_low_target): Remove the op field.
352 * linux-sh-low.cc (class sh_target)
353 <low_breakpoint_at>: Declare.
354 (sh_breakpoint_at): Turn into...
355 (sh_target::low_breakpoint_at): ...this.
356 (the_low_target): Remove the op field.
357 * linux-sparc-low.cc (class sparc_target)
358 <low_breakpoint_at>: Declare.
359 (sparc_breakpoint_at): Turn into...
360 (sparc_target::low_breakpoint_at): ...this.
361 (the_low_target): Remove the op field.
362 * linux-tic6x-low.cc (class tic6x_target)
363 <low_breakpoint_at>: Declare.
364 (tic6x_breakpoint_at): Turn into...
365 (tic6x_target::low_breakpoint_at): ...this.
366 (the_low_target): Remove the op field.
367 * linux-tile-low.cc (class tile_target)
368 <low_breakpoint_at>: Declare.
369 (tile_breakpoint_at): Turn into...
370 (tile_target::low_breakpoint_at): ...this.
371 (the_low_target): Remove the op field.
372 * linux-xtensa-low.cc (class xtensa_target)
373 <low_breakpoint_at>: Declare.
374 (xtensa_breakpoint_at): Turn into...
375 (xtensa_target::low_breakpoint_at): ...this.
376 (the_low_target): Remove the op field.
378 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
380 Turn the 'decr_pc_after_break' linux_target_ops field into
381 a method of linux_process_target.
383 * linux-low.h (struct linux_target_ops)
384 <decr_pc_after_break>: Remove.
385 (class linux_process_target) <low_decr_pc_after_break>: New method
387 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
388 New method implementation.
390 Update the users below.
392 (linux_process_target::save_stop_reason)
393 (linux_process_target::wait_1)
394 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
396 (x86_target::low_decr_pc_after_break): New method implementation.
397 (the_low_target): Remove the field.
398 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
400 (bfin_target::low_decr_pc_after_break): New method implementation.
401 (the_low_target): Remove the field.
402 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
404 (m68k_target::low_decr_pc_after_break): New method implementation.
405 (the_low_target): Remove the field.
406 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
408 (s390_target::low_decr_pc_after_break): New method implementation.
409 (the_low_target): Remove the field.
410 * linux-aarch64-low.cc (the_low_target): Remove the field.
411 * linux-arm-low.cc (the_low_target): Remove the field.
412 * linux-cris-low.cc (the_low_target): Remove the field.
413 * linux-crisv32-low.cc (the_low_target): Remove the field.
414 * linux-m32r-low.cc (the_low_target): Remove the field.
415 * linux-mips-low.cc (the_low_target): Remove the field.
416 * linux-nios2-low.cc (the_low_target): Remove the field.
417 * linux-ppc-low.cc (the_low_target): Remove the field.
418 * linux-riscv-low.cc (the_low_target): Remove the field.
419 * linux-sh-low.cc (the_low_target): Remove the field.
420 * linux-sparc-low.cc (the_low_target): Remove the field.
421 * linux-tic6x-low.cc (the_low_target): Remove the field.
422 * linux-tile-low.cc (the_low_target): Remove the field.
423 * linux-xtensa-low.cc (the_low_target): Remove the field.
425 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
427 Remove the 'supports_software_single_step' linux target op and let
428 the concrete linux target define it by overriding the op in
429 process_stratum_target.
430 Turn the 'get_next_pcs' linux target op into a method of
431 linux_process_target.
433 * linux-low.h (struct linux_target_ops): Remove the ops.
434 (class linux_process_target) <supports_software_single_step>:
436 <low_get_next_pcs>: Declare.
437 * linux-low.cc (can_software_single_step): Remove.
438 (linux_process_target::low_get_next_pcs): Define.
439 (linux_process_target::supports_software_single_step): Remove.
441 Update the callers below.
443 (linux_process_target::handle_extended_wait)
444 (linux_process_target::wait_1)
445 (linux_process_target::install_software_single_step_breakpoints)
446 (linux_process_target::single_step)
447 (linux_process_target::thread_needs_step_over)
448 (linux_process_target::proceed_one_lwp)
449 (linux_process_target::supports_range_stepping)
451 * linux-x86-low.cc (the_low_target): Remove the op field.
452 * linux-aarch64-low.cc (the_low_target): Ditto.
453 * linux-bfin-low.cc (the_low_target): Ditto.
454 * linux-cris-low.cc (the_low_target): Ditto.
455 * linux-crisv32-low.cc (the_low_target): Ditto.
456 * linux-m32r-low.cc (the_low_target): Ditto.
457 * linux-m68k-low.cc (the_low_target): Ditto.
458 * linux-mips-low.cc (the_low_target): Ditto.
459 * linux-nios2-low.cc (the_low_target): Ditto.
460 * linux-ppc-low.cc (the_low_target): Ditto.
461 * linux-riscv-low.cc (the_low_target): Ditto.
462 * linux-s390-low.cc (the_low_target): Ditto.
463 * linux-sh-low.cc (the_low_target): Ditto.
464 * linux-sparc-low.cc (the_low_target): Ditto.
465 * linux-tic6x-low.cc (the_low_target): Ditto.
466 * linux-tile-low.cc (the_low_target): Ditto.
467 * linux-xtensa-low.cc (the_low_target): Ditto.
468 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
469 <supports_software_single_step>: Declare.
470 (arm_target::supports_software_single_step): Define.
471 (arm_gdbserver_get_next_pcs): Turn into...
472 (arm_target::low_get_next_pcs): ...this.
473 (the_low_target): Remove the op field.
475 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
477 Remove the 'sw_breakpoint_from_kind' linux target op, and let
478 the concrete linux target define it by overriding the op
479 in process_stratum_target.
481 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
483 * linux-low.h (struct linux_target_ops): Remove the op.
484 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
485 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
487 (x86_sw_breakpoint_from_kind): Turn into...
488 (x86_target::sw_breakpoint_from_kind): ...this.
489 (the_low_target): Remove the op field.
490 * linux-aarch64-low.cc (class aarch64_target)
491 <sw_breakpoint_from_kind>: Declare.
492 (aarch64_sw_breakpoint_from_kind): Turn into...
493 (aarch64_target::sw_breakpoint_from_kind): ...this.
494 (the_low_target): Remove the op field.
495 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
497 (arm_target::sw_breakpoint_from_kind): Define.
498 (the_low_target): Remove the op field.
499 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
501 (bfin_sw_breakpoint_from_kind): Turn into...
502 (bfin_target::sw_breakpoint_from_kind): ...this.
503 (the_low_target): Remove the op field.
504 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
506 (cris_sw_breakpoint_from_kind): Turn into...
507 (cris_target::sw_breakpoint_from_kind): ...this.
508 (the_low_target): Remove the op field.
509 * linux-crisv32-low.cc (class crisv32_target)
510 <sw_breakpoint_from_kind>: Declare.
511 (cris_sw_breakpoint_from_kind): Turn into...
512 (crisv32_target::sw_breakpoint_from_kind): ...this.
513 (the_low_target): Remove the op field.
514 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
516 (ia64_target::sw_breakpoint_from_kind): Define.
517 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
519 (m32r_sw_breakpoint_from_kind): Turn into...
520 (m32r_target::sw_breakpoint_from_kind): ...this.
521 (the_low_target): Remove the op field.
522 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
524 (m68k_sw_breakpoint_from_kind): Turn into...
525 (m68k_target::sw_breakpoint_from_kind): ...this.
526 (the_low_target): Remove the op field.
527 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
529 (mips_sw_breakpoint_from_kind): Turn into...
530 (mips_target::sw_breakpoint_from_kind): ...this.
531 (the_low_target): Remove the op field.
532 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
534 (nios2_sw_breakpoint_from_kind): Turn into...
535 (nios2_target::sw_breakpoint_from_kind): ...this.
536 (the_low_target): Remove the op field.
537 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
539 (ppc_sw_breakpoint_from_kind): Turn into...
540 (ppc_target::sw_breakpoint_from_kind): ...this.
541 (the_low_target): Remove the op field.
542 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
544 (riscv_sw_breakpoint_from_kind): Turn into...
545 (riscv_target::sw_breakpoint_from_kind): ...this.
546 (the_low_target): Remove the op field.
547 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
549 (s390_sw_breakpoint_from_kind): Turn into...
550 (s390_target::sw_breakpoint_from_kind): ...this.
551 (the_low_target): Remove the op field.
552 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
554 (sh_sw_breakpoint_from_kind): Turn into...
555 (sh_target::sw_breakpoint_from_kind): ...this.
556 (the_low_target): Remove the op field.
557 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
559 (sparc_sw_breakpoint_from_kind): Turn into...
560 (sparc_target::sw_breakpoint_from_kind): ...this.
561 (the_low_target): Remove the op field.
562 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
564 (tic6x_sw_breakpoint_from_kind): Turn into...
565 (tic6x_target::sw_breakpoint_from_kind): ...this.
566 (the_low_target): Remove the op field.
567 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
569 (tile_sw_breakpoint_from_kind): Turn into...
570 (tile_target::sw_breakpoint_from_kind): ...this.
571 (the_low_target): Remove the op field.
572 * linux-xtensa-low.cc (class xtensa_target)
573 <sw_breakpoint_from_kind>: Declare.
574 (xtensa_sw_breakpoint_from_kind): Turn into...
575 (xtensa_target::sw_breakpoint_from_kind): ...this.
576 (the_low_target): Remove the op field.
578 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
580 Remove the 'breakpoint_kind_from_pc' and
581 'breakpoint_kind_from_current_state' linux target ops, and let the
582 concrete linux target define them by overriding the ops of
583 process_stratum_target.
585 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
587 (linux_process_target::breakpoint_kind_from_current_state): Remove.
588 * linux-low.h (struct linux_target_ops): Remove ops.
589 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
590 <breakpoint_kind_from_current_state>: Remove.
591 * linux-x86-low.cc (the_low_target): Remove the op fields.
592 * linux-bfin-low.cc (the_low_target): Ditto.
593 * linux-cris-low.cc (the_low_target): Ditto.
594 * linux-crisv32-low.cc (the_low_target): Ditto.
595 * linux-m32r-low.cc (the_low_target): Ditto.
596 * linux-m68k-low.cc (the_low_target): Ditto.
597 * linux-mips-low.cc (the_low_target): Ditto.
598 * linux-nios2-low.cc (the_low_target): Ditto.
599 * linux-ppc-low.cc (the_low_target): Ditto.
600 * linux-s390-low.cc (the_low_target): Ditto.
601 * linux-sh-low.cc (the_low_target): Ditto.
602 * linux-sparc-low.cc (the_low_target): Ditto.
603 * linux-tic6x-low.cc (the_low_target): Ditto.
604 * linux-tile-low.cc (the_low_target): Ditto.
605 * linux-xtensa-low.cc (the_low_target): Ditto.
606 * linux-aarch64-low.cc (class aarch64_target)
607 <breakpoint_kind_from_pc>
608 <breakpoint_kind_from_current_state>: Declare.
609 (aarch64_breakpoint_kind_from_pc): Turn into...
610 (aarch64_target::breakpoint_kind_from_pc): ...this.
611 (aarch64_breakpoint_kind_from_current_state): Turn into...
612 (aarch64_target::breakpoint_kind_from_current_state): ...this.
613 (the_low_target): Remove the op fields.
614 * linux-arm-low.cc (class arm_target):
615 <breakpoint_kind_from_pc>
616 <breakpoint_kind_from_current_state>: Declare.
617 (arm_target::breakpoint_kind_from_pc): Define.
618 (arm_target::breakpoint_kind_from_current_state): Define.
619 (the_low_target): Remove the op fields.
620 * linux-riscv-low.cc (class riscv_target):
621 <breakpoint_kind_from_pc>: Declare.
622 (riscv_breakpoint_kind_from_pc): Turn into...
623 (riscv_target::breakpoint_kind_from_pc): ...this.
624 (the_low_target): Remove the op fields.
626 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
628 Turn the 'get_pc' and 'set_pc' linux target ops into methods
629 of linux_process_target.
631 * linux-low.h (struct linux_target_ops): Remove the ops.
632 (class linux_process_target) <low_supports_breakpoints>
634 <low_set_pc>: Declare.
635 * linux-low.cc (supports_breakpoints): Turn into...
636 (linux_process_target::low_supports_breakpoints): ...this.
637 (linux_process_target::low_get_pc): Define.
638 (linux_process_target::low_set_pc): Define.
640 Update the callers below.
642 (linux_process_target::get_pc)
643 (linux_process_target::save_stop_reason)
644 (linux_process_target::maybe_move_out_of_jump_pad)
645 (linux_process_target::wait_1)
646 (linux_process_target::resume_one_lwp_throw)
647 (linux_process_target::resume)
648 (linux_process_target::proceed_all_lwps)
649 (linux_process_target::read_pc)
650 (linux_process_target::write_pc)
652 * linux-x86-low.cc (class linux_process_target)
653 <low_supports_breakpoints>
655 <low_set_pc>: Declare.
656 (x86_target::low_supports_breakpoints): Define.
657 (x86_get_pc): Turn into...
658 (x86_target::low_get_pc): ...this.
659 (x86_set_pc): Turn into...
660 (x86_target::low_set_pc): ...this.
661 (the_low_target): Remove the op fields.
662 * linux-arm-low.cc (class arm_target)
663 <low_supports_breakpoints>
665 <low_set_pc>: Declare.
666 (arm_target::low_supports_breakpoints)
667 (arm_target::low_get_pc)
668 (arm_target::low_set_pc): Define.
669 (the_low_target): Remove the op fields.
670 * linux-bfin-low.cc (class bfin_target)
671 <low_supports_breakpoints>
673 <low_set_pc>: Declare.
674 (bfin_target::low_supports_breakpoints)
675 (bfin_target::low_get_pc)
676 (bfin_target::low_set_pc): Define.
677 (the_low_target): Remove the op fields.
678 * linux-cris-low.cc (class cris_target)
679 <low_supports_breakpoints>
681 <low_set_pc>: Declare.
682 (cris_target::low_supports_breakpoints)
683 (cris_target::low_get_pc)
684 (cris_target::low_set_pc): Define.
685 (the_low_target): Remove the op fields.
686 * linux-crisv32-low.cc (class crisv32_target)
687 <low_supports_breakpoints>
689 <low_set_pc>: Declare.
690 (crisv32_target::low_supports_breakpoints)
691 (crisv32_target::low_get_pc)
692 (crisv32_target::low_set_pc): Define.
693 (the_low_target): Remove the op fields.
694 * linux-m32r-low.cc (class m32r_target)
695 <low_supports_breakpoints>
697 <low_set_pc>: Declare.
698 (m32r_target::low_supports_breakpoints)
699 (m32r_target::low_get_pc)
700 (m32r_target::low_set_pc): Define.
701 (the_low_target): Remove the op fields.
702 * linux-m68k-low.cc (class m68k_target)
703 <low_supports_breakpoints>
705 <low_set_pc>: Declare.
706 (m68k_target::low_supports_breakpoints)
707 (m68k_target::low_get_pc)
708 (m68k_target::low_set_pc): Define.
709 (the_low_target): Remove the op fields.
710 * linux-nios2-low.cc (class nios2_target)
711 <low_supports_breakpoints>
713 <low_set_pc>: Declare.
714 (nios2_target::low_supports_breakpoints)
715 (nios2_target::low_get_pc)
716 (nios2_target::low_set_pc): Define.
717 (the_low_target): Remove the op fields.
718 * linux-sh-low.cc (class sh_target)
719 <low_supports_breakpoints>
721 <low_set_pc>: Declare.
722 (sh_target::low_supports_breakpoints)
723 (sh_target::low_get_pc)
724 (sh_target::low_set_pc): Define.
725 (the_low_target): Remove the op fields.
726 * linux-xtensa-low.cc (class xtensa_target)
727 <low_supports_breakpoints>
729 <low_set_pc>: Declare.
730 (xtensa_target::low_supports_breakpoints)
731 (xtensa_target::low_get_pc)
732 (xtensa_target::low_set_pc): Define.
733 (the_low_target): Remove the op fields.
734 * linux-sparc-low.cc (class sparc_target)
735 <low_supports_breakpoints>
736 <low_get_pc>: Declare.
737 (sparc_target::low_supports_breakpoints)
738 (sparc_target::low_get_pc): Define.
739 (the_low_target): Remove the op fields.
740 * linux-tile-low.cc (class tile_target)
741 <low_supports_breakpoints>
743 <low_set_pc>: Declare.
744 (tile_target::low_supports_breakpoints)
745 (tile_target::low_get_pc)
746 (tile_target::low_set_pc): Define.
747 (the_low_target): Remove the op fields.
748 * linux-aarch64-low.cc (class aarch64_target)
749 <low_supports_breakpoints>
751 <low_set_pc>: Declare.
752 (aarch64_target::low_supports_breakpoints): Define.
753 (aarch64_get_pc): Turn into...
754 (aarch64_target::low_get_pc): ...this.
755 (aarch64_set_pc): Turn into...
756 (aarch64_target::low_set_pc): ...this.
757 (the_low_target): Remove the op fields.
758 * linux-mips-low.cc (class mips_target)
759 <low_supports_breakpoints>
761 <low_set_pc>: Declare.
762 (mips_target::low_supports_breakpoints): Define.
763 (mips_get_pc): Turn into...
764 (mips_target::low_get_pc): ...this.
765 (mips_set_pc): Turn into...
766 (mips_target::low_set_pc): ...this.
767 (the_low_target): Remove the op fields.
768 * linux-ppc-low.cc (class ppc_target)
769 <low_supports_breakpoints>
771 <low_set_pc>: Declare.
772 (ppc_target::low_supports_breakpoints): Define.
773 (ppc_get_pc): Turn into...
774 (ppc_target::low_get_pc): ...this.
775 (ppc_set_pc): Turn into...
776 (ppc_target::low_set_pc): ...this.
777 (the_low_target): Remove the op fields.
778 * linux-riscv-low.cc (class riscv_target)
779 <low_supports_breakpoints>
781 <low_set_pc>: Declare.
782 (riscv_target::low_supports_breakpoints): Define.
783 (riscv_get_pc): Turn into...
784 (riscv_target::low_get_pc): ...this.
785 (riscv_set_pc): Turn into...
786 (riscv_target::low_set_pc): ...this.
787 (the_low_target): Remove the op fields.
788 * linux-s390-low.cc (class s390_target)
789 <low_supports_breakpoints>
791 <low_set_pc>: Declare.
792 (s390_target::low_supports_breakpoints): Define.
793 (s390_get_pc): Turn into...
794 (s390_target::low_get_pc): ...this.
795 (s390_set_pc): Turn into...
796 (s390_target::low_set_pc): ...this.
797 (the_low_target): Remove the op fields.
798 * linux-tic6x-low.cc (class tic6x_target)
799 <low_supports_breakpoints>
801 <low_set_pc>: Declare.
802 (tic6x_target::low_supports_breakpoints): Define.
803 (tic6x_get_pc): Turn into...
804 (tic6x_target::low_get_pc): ...this.
805 (tic6x_set_pc): Turn into...
806 (tic6x_target::low_set_pc): ...this.
807 (the_low_target): Remove the op fields.
809 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
811 Turn some more static methods in linux-low into private methods
812 of linux_process_target.
814 * linux-low.cc (get_pc): Turn into...
815 (linux_process_target::get_pc): ...this.
816 (save_stop_reason): Turn into...
817 (linux_process_target::save_stop_reason): ...this.
818 (thread_still_has_status_pending_p): Turn into...
819 (linux_process_target::thread_still_has_status_pending): ...this.
820 (status_pending_p_callback): Turn into...
821 (linux_process_target::status_pending_p_callback): ...this.
822 (resume_stopped_resumed_lwps): Turn into...
823 (linux_process_target::resume_stopped_resumed_lwps): ...this.
824 (install_software_single_step_breakpoints): Turn into...
825 (linux_process_target::install_software_single_step_breakpoints):
827 (single_step): Turn into...
828 (linux_process_target::single_step): ...this.
829 (linux_resume_one_lwp_throw): Turn into...
830 (linux_process_target::resume_one_lwp_throw): ...this.
831 (linux_resume_one_lwp): Turn into...
832 (linux_process_target::resume_one_lwp): ...this.
833 (resume_status_pending_p): Turn into...
834 (linux_process_target::resume_status_pending): ...this.
835 (need_step_over_p): Turn into...
836 (linux_process_target::thread_needs_step_over): ...this.
837 (linux_resume_one_thread): Turn into...
838 (linux_process_target::resume_one_thread): ...this.
839 (proceed_one_lwp): Turn into...
840 (linux_process_target::proceed_one_lwp): ...this.
841 (unsuspend_and_proceed_one_lwp): Turn into...
842 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
844 Update the calls/references to the above functions below.
846 (linux_process_target::handle_extended_wait)
847 (linux_process_target::filter_event)
848 (linux_process_target::wait_for_event_filtered)
849 (linux_process_target::wait_1)
850 (linux_process_target::move_out_of_jump_pad)
851 (linux_process_target::start_step_over)
852 (linux_process_target::resume)
853 (linux_process_target::proceed_all_lwps)
854 (regsets_store_inferior_registers)
855 (linux_process_target::store_register)
857 * linux-low.h (class linux_process_target)
860 <thread_still_has_status_pending>
861 <status_pending_p_callback>
862 <resume_stopped_resumed_lwps>
863 <install_software_single_step_breakpoints>
865 <resume_one_lwp_throw>
867 <resume_status_pending>
868 <thread_needs_step_over>
871 <unsuspend_and_proceed_one_lwp>: Declare.
873 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
875 Turn the 'fetch_register' linux target op into a method of
876 linux_process_target.
878 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
879 (class linux_process_target) <low_fetch_register>: Declare.
880 * linux-x86-low.cc (the_low_target)
881 * linux-aarch64-low.cc (the_low_target)
882 * linux-arm-low.cc (the_low_target)
883 * linux-bfin-low.cc (the_low_target)
884 * linux-cris-low.cc (the_low_target)
885 * linux-crisv32-low.cc (the_low_target)
886 * linux-m32r-low.cc (the_low_target)
887 * linux-m68k-low.cc (the_low_target)
888 * linux-nios2-low.cc (the_low_target)
889 * linux-ppc-low.cc (the_low_target)
890 * linux-s390-low.cc (the_low_target)
891 * linux-sh-low.cc (the_low_target)
892 * linux-sparc-low.cc (the_low_target)
893 * linux-tic6x-low.cc (the_low_target)
894 * linux-tile-low.cc (the_low_target)
895 * linux-xtensa-low.cc (the_low_target): Remove the op field.
896 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
898 (ia64_fetch_register): Turn into...
899 (ia64_target::low_fetch_register): ...this.
900 (the_low_target): Remove the op field.
901 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
903 (mips_fetch_register): Turn into...
904 (mips_target::low_fetch_register): ...this.
905 (the_low_target): Remove the op field.
906 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
908 (riscv_fetch_register): Turn into...
909 (riscv_target::low_fetch_register): ...this.
910 (the_low_target): Remove the op field.
912 Update the callers below.
914 * linux-low.cc (linux_process_target::fetch_registers)
915 (linux_process_target::low_fetch_register)
917 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
919 Turn the 'cannot_fetch_register' and 'cannot_store_register'
920 linux target ops into methods of linux_process_target.
922 * linux-low.h (struct linux_target_ops): Remove the low target ops.
923 (class linux_process_target) <fetch_register>
925 <usr_fetch_inferior_registers>
926 <usr_store_inferior_registers>
927 <low_cannot_fetch_register>
928 <low_cannot_fetch_register> Declare.
929 * linux-low.cc (fetch_register): Turn into...
930 (linux_process_target::fetch_register): ...this.
931 (store_register): Turn into ...
932 (linux_process_target::store_register): ...this.
933 (usr_fetch_inferior_registers): Turn into...
934 (linux_process_target::usr_fetch_inferior_registers): ...this.
935 (usr_store_inferior_registers): Turn into...
936 (linux_process_target::usr_store_inferior_registers): ...this.
937 * linux-x86-low.cc (class x86_target)
938 <low_cannot_fetch_register>
939 <low_cannot_store_register>: Declare.
940 (x86_cannot_store_register): Turn into...
941 (x86_target::low_cannot_store_register): ...this.
942 (x86_cannot_fetch_register): Turn into...
943 (x86_target::low_cannot_fetch_register): ...this.
944 (the_low_target): Remove the target op fields.
945 * linux-aarch64-low.cc (class aarch64_target)
946 <low_cannot_fetch_register>
947 <low_cannot_store_register>: Declare.
948 (aarch64_target::low_cannot_fetch_register)
949 (aarch64_target::low_cannot_store_register): Define.
950 (the_low_target): Remove the op fields.
951 * linux-arm-low.cc (class arm_target)
952 <low_cannot_fetch_register>
953 <low_cannot_store_register>: Declare.
954 (arm_cannot_fetch_register): Turn into...
955 (arm_target::low_cannot_fetch_register): ...this.
956 (arm_cannot_store_register): Turn into...
957 (arm_target::low_cannot_store_register): ...this.
958 (the_low_target): Remove the op fields.
959 * linux-bfin-low.cc (class bfin_target)
960 <low_cannot_fetch_register>
961 <low_cannot_store_register>: Declare.
962 (bfin_cannot_fetch_register): Turn into...
963 (bfin_target::low_cannot_fetch_register): ...this.
964 (bfin_cannot_store_register): Turn into...
965 (bfin_target::low_cannot_store_register): ...this.
966 (the_low_target): Remove the op fields.
967 * linux-cris-low.cc (class cris_target)
968 <low_cannot_fetch_register>
969 <low_cannot_store_register>: Declare.
970 (cris_cannot_fetch_register): Turn into...
971 (cris_target::low_cannot_fetch_register): ...this.
972 (cris_cannot_store_register): Turn into...
973 (cris_target::low_cannot_store_register): ...this.
974 (the_low_target): Remove the op fields.
975 * linux-crisv32-low.cc (class crisv32_target)
976 <low_cannot_fetch_register>
977 <low_cannot_store_register>: Declare.
978 (crisv32_target::low_cannot_fetch_register)
979 (crisv32_target::low_cannot_store_register): Define.
980 (the_low_target): Remove the op fields.
981 * linux-ia64-low.cc (class ia64_target)
982 <low_cannot_fetch_register>
983 <low_cannot_store_register>: Declare.
984 (ia64_cannot_fetch_register): Turn into...
985 (ia64_target::low_cannot_fetch_register): ...this.
986 (ia64_cannot_store_register): Turn into...
987 (ia64_target::low_cannot_store_register): ...this.
988 (the_low_target): Remove the op fields.
989 * linux-m32r-low.cc (class m32r_target)
990 <low_cannot_fetch_register>
991 <low_cannot_store_register>: Declare.
992 (m32r_cannot_fetch_register): Turn into...
993 (m32r_target::low_cannot_fetch_register): ...this.
994 (m32r_cannot_store_register): Turn into...
995 (m32r_target::low_cannot_store_register): ...this.
996 (the_low_target): Remove the op fields.
997 * linux-m68k-low.cc (class m68k_target)
998 <low_cannot_fetch_register>
999 <low_cannot_store_register>: Declare.
1000 (m68k_cannot_fetch_register): Turn into...
1001 (m68k_target::low_cannot_fetch_register): ...this.
1002 (m68k_cannot_store_register): Turn into...
1003 (m68k_target::low_cannot_store_register): ...this.
1004 (the_low_target): Remove the op fields.
1005 * linux-mips-low.cc (class mips_target)
1006 <low_cannot_fetch_register>
1007 <low_cannot_store_register>: Declare.
1008 (mips_cannot_fetch_register): Turn into...
1009 (mips_target::low_cannot_fetch_register): ...this.
1010 (mips_cannot_store_register): Turn into...
1011 (mips_target::low_cannot_store_register): ...this.
1012 (get_usrregs_info): Inline at the call sites in
1013 low_cannot_fetch_register and low_cannot_store_register,
1015 (the_low_target): Remove the op fields.
1016 * linux-nios2-low.cc (class nios2_target)
1017 <low_cannot_fetch_register>
1018 <low_cannot_store_register>: Declare.
1019 (nios2_cannot_fetch_register): Turn into...
1020 (nios2_target::low_cannot_fetch_register): ...this.
1021 (nios2_cannot_store_register): Turn into...
1022 (nios2_target::low_cannot_store_register): ...this.
1023 (the_low_target): Remove the op fields.
1024 * linux-ppc-low.cc (class ppc_target)
1025 <low_cannot_fetch_register>
1026 <low_cannot_store_register>: Declare.
1027 (ppc_cannot_fetch_register): Turn into...
1028 (ppc_target::low_cannot_fetch_register): ...this.
1029 (ppc_cannot_store_register): Turn into...
1030 (ppc_target::low_cannot_store_register): ...this.
1031 (the_low_target): Remove the op fields.
1032 * linux-riscv-low.cc (class riscv_target)
1033 <low_cannot_fetch_register>
1034 <low_cannot_store_register>: Declare.
1035 (riscv_target::low_cannot_fetch_register)
1036 (riscv_target::low_cannot_store_register): Define.
1037 (the_low_target): Remove the op fields.
1038 * linux-s390-low.cc (class s390_target)
1039 <low_cannot_fetch_register>
1040 <low_cannot_store_register>: Declare.
1041 (s390_cannot_fetch_register): Turn into...
1042 (s390_target::low_cannot_fetch_register): ...this.
1043 (s390_cannot_store_register): Turn into...
1044 (s390_target::low_cannot_store_register): ...this.
1045 (the_low_target): Remove the op fields.
1046 * linux-sh-low.cc (class sh_target)
1047 <low_cannot_fetch_register>
1048 <low_cannot_store_register>: Declare.
1049 (sh_cannot_fetch_register): Turn into...
1050 (sh_target::low_cannot_fetch_register): ...this.
1051 (sh_cannot_store_register): Turn into...
1052 (sh_target::low_cannot_store_register): ...this.
1053 (the_low_target): Remove the op fields.
1054 * linux-sparc-low.cc (class sparc_target)
1055 <low_cannot_fetch_register>
1056 <low_cannot_store_register>: Declare.
1057 (sparc_cannot_fetch_register): Turn into...
1058 (sparc_target::low_cannot_fetch_register): ...this.
1059 (sparc_cannot_store_register): Turn into...
1060 (sparc_target::low_cannot_store_register): ...this.
1061 (the_low_target): Remove the op fields.
1062 * linux-tic6x-low.cc (class tic6x_target)
1063 <low_cannot_fetch_register>
1064 <low_cannot_store_register>: Declare.
1065 (tic6x_cannot_fetch_register): Turn into...
1066 (tic6x_target::low_cannot_fetch_register): ...this.
1067 (tic6x_cannot_store_register): Turn into...
1068 (tic6x_target::low_cannot_store_register): ...this.
1069 (the_low_target): Remove the op fields.
1070 * linux-tile-low.cc (class tile_target)
1071 <low_cannot_fetch_register>
1072 <low_cannot_store_register>: Declare.
1073 (tile_cannot_fetch_register): Turn into...
1074 (tile_target::low_cannot_fetch_register): ...this.
1075 (tile_cannot_store_register): Turn into...
1076 (tile_target::low_cannot_store_register): ...this.
1077 (the_low_target): Remove the op fields.
1078 * linux-xtensa-low.cc (class xtensa_target)
1079 <low_cannot_fetch_register>
1080 <low_cannot_store_register>: Declare.
1081 (xtensa_target::low_cannot_fetch_register)
1082 (xtensa_target::low_cannot_store_register): Define.
1083 (the_low_target): Remove the op fields.
1085 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1087 Turn the 'regs_info' linux target op into a method of
1088 linux_process_target.
1090 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
1091 (class linux_process_target) <get_regs_info>: Define.
1093 Update the callers below.
1095 * linux-low.cc (linux_process_target::fetch_registers)
1096 (linux_process_target::store_registers)
1097 * proc-service.cc (gregset_info)
1099 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
1100 (x86_linux_regs_info): Turn into ...
1101 (x86_target::get_regs_info): ...this.
1102 (the_low_target): Remove the op field.
1103 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
1105 (aarch64_regs_info): Turn into ...
1106 (aarch64_target::get_regs_info): ...this.
1107 (the_low_target): Remove the op field.
1108 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
1109 (arm_regs_info): Turn into ...
1110 (arm_target::get_regs_info): ...this.
1111 (the_low_target): Remove the op field.
1112 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
1113 (bfin_regs_info): Turn into ...
1114 (bfin_target::get_regs_info): ...this.
1115 (the_low_target): Remove the op field.
1116 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
1117 (cris_regs_info): Turn into ...
1118 (cris_target::get_regs_info): ...this.
1119 (the_low_target): Remove the op field.
1120 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
1122 (crisv32_regs_info): Turn into ...
1123 (crisv32_target::get_regs_info): ...this.
1124 (the_low_target): Remove the op field.
1125 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
1126 (ia64_regs_info): Turn into ...
1127 (ia64_target::get_regs_info): ...this.
1128 (the_low_target): Remove the op field.
1129 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
1130 (m32r_regs_info): Turn into ...
1131 (m32r_target::get_regs_info): ...this.
1132 (the_low_target): Remove the op field.
1133 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
1134 (m68k_regs_info): Turn into ...
1135 (m68k_target::get_regs_info): ...this.
1136 (the_low_target): Remove the op field.
1137 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
1138 (mips_regs_info): Turn into ...
1139 (mips_target::get_regs_info): ...this.
1140 (the_low_target): Remove the op field.
1141 (get_usrregs_info): Update the call to the op.
1142 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
1143 (nios2_regs_info): Turn into ...
1144 (nios2_target::get_regs_info): ...this.
1145 (the_low_target): Remove the op field.
1146 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
1147 (ppc_regs_info): Turn into ...
1148 (ppc_target::get_regs_info): ...this.
1149 (the_low_target): Remove the op field.
1150 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
1151 (riscv_regs_info): Turn into ...
1152 (riscv_target::get_regs_info): ...this.
1153 (the_low_target): Remove the op field.
1154 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
1155 (s390_regs_info): Turn into ...
1156 (s390_target::get_regs_info): ...this.
1157 (the_low_target): Remove the op field.
1158 (s390_collect_ptrace_register)
1159 (s390_supply_ptrace_register)
1160 (s390_fill_gregset): Update the call to the op.
1161 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
1162 (sh_regs_info): Turn into ...
1163 (sh_target::get_regs_info): ...this.
1164 (the_low_target): Remove the op field.
1165 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
1166 (sparc_regs_info): Turn into ...
1167 (sparc_target::get_regs_info): ...this.
1168 (the_low_target): Remove the op field.
1169 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
1170 (tic6x_regs_info): Turn into ...
1171 (tic6x_target::get_regs_info): ...this.
1172 (the_low_target): Remove the op field.
1173 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
1174 (tile_regs_info): Turn into ...
1175 (tile_target::get_regs_info): ...this.
1176 (the_low_target): Remove the op field.
1177 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
1179 (xtensa_regs_info): Turn into ...
1180 (xtensa_target::get_regs_info): ...this.
1181 (the_low_target): Remove the op field.
1183 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1185 Turn the 'arch_setup' linux target op into a method of
1186 linux_process_target.
1188 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
1189 (class linux_process_target) <arch_setup_thread>
1190 <low_arch_setup>: New declarations.
1191 * linux-low.cc (linux_arch_setup): Delete.
1192 (linux_arch_setup_thread): Turn into...
1193 (linux_process_target::arch_setup_thread): ... this.
1195 Update the callers below.
1197 (linux_process_target::handle_extended_wait)
1198 (linux_process_target::post_create_inferior)
1199 (linux_process_target::filter_event)
1201 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
1203 (x86_linux_update_xmltarget): Turn into...
1204 (x86_target::update_xmltarget): ...this.
1205 (x86_linux_process_qsupported): Update the call to
1206 x86_linux_update_xmltarget.
1207 (x86_arch_setup): Turn into ...
1208 (x86_target::low_arch_setup): ...this.
1209 (the_low_target): Remove the op field.
1210 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
1212 (aarch64_arch_setup): Turn into ...
1213 (aarch64_target::low_arch_setup): ...this.
1214 (the_low_target): Remove the op field.
1215 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
1217 (arm_arch_setup): Turn into ...
1218 (arm_target::low_arch_setup): ...this.
1219 (the_low_target): Remove the op field.
1220 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
1222 (bfin_arch_setup): Turn into ...
1223 (bfin_target::low_arch_setup): ...this.
1224 (the_low_target): Remove the op field.
1225 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
1227 (cris_arch_setup): Turn into ...
1228 (cris_target::low_arch_setup): ...this.
1229 (the_low_target): Remove the op field.
1230 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
1232 (crisv32_arch_setup): Turn into ...
1233 (crisv32_target::low_arch_setup): ...this.
1234 (the_low_target): Remove the op field.
1235 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
1237 (ia64_arch_setup): Turn into ...
1238 (ia64_target::low_arch_setup): ...this.
1239 (the_low_target): Remove the op field.
1240 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
1242 (m32r_arch_setup): Turn into ...
1243 (m32r_target::low_arch_setup): ...this.
1244 (the_low_target): Remove the op field.
1245 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
1247 (m68k_arch_setup): Turn into ...
1248 (m68k_target::low_arch_setup): ...this.
1249 (the_low_target): Remove the op field.
1250 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
1252 (mips_arch_setup): Turn into ...
1253 (mips_target::low_arch_setup): ...this.
1254 (the_low_target): Remove the op field.
1255 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
1257 (nios2_arch_setup): Turn into ...
1258 (nios2_target::low_arch_setup): ...this.
1259 (the_low_target): Remove the op field.
1260 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
1262 (ppc_arch_setup): Turn into ...
1263 (ppc_target::low_arch_setup): ...this.
1264 (the_low_target): Remove the op field.
1265 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
1267 (riscv_arch_setup): Turn into ...
1268 (riscv_target::low_arch_setup): ...this.
1269 (the_low_target): Remove the op field.
1270 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
1272 (s390_arch_setup): Turn into ...
1273 (s390_target::low_arch_setup): ...this.
1274 (the_low_target): Remove the op field.
1275 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
1277 (sh_arch_setup): Turn into ...
1278 (sh_target::low_arch_setup): ...this.
1279 (the_low_target): Remove the op field.
1280 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
1282 (sparc_arch_setup): Turn into ...
1283 (sparc_target::low_arch_setup): ...this.
1284 (the_low_target): Remove the op field.
1285 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
1287 (tic6x_arch_setup): Turn into ...
1288 (tic6x_target::low_arch_setup): ...this.
1289 (the_low_target): Remove the op field.
1290 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
1292 (tile_arch_setup): Turn into ...
1293 (tile_target::low_arch_setup): ...this.
1294 (the_low_target): Remove the op field.
1295 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
1297 (xtensa_arch_setup): Turn into ...
1298 (xtensa_target::low_arch_setup): ...this.
1299 (the_low_target): Remove the op field.
1301 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1303 * linux-low.h (the_linux_target): New extern declaration.
1304 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
1306 (the_linux_target): Remove.
1307 * linux-x86-low.cc (class x86_target): New class.
1308 (the_x86_target): New static object.
1309 (the_linux_target): Define as pointer to the_x86_target.
1310 * linux-aarch64-low.cc (class aarch64_target): New class.
1311 (the_aarch64_target): New static object.
1312 (the_linux_target): Define as pointer to the_aarch64_target.
1313 * linux-arm-low.cc (class arm_target): New class.
1314 (the_arm_target): New static object.
1315 (the_linux_target): Define as pointer to the_arm_target.
1316 * linux-bfin-low.cc (class bfin_target): New class.
1317 (the_bfin_target): New static object.
1318 (the_linux_target): Define as pointer to the_bfin_target.
1319 * linux-cris-low.cc (class cris_target): New class.
1320 (the_cris_target): New static object.
1321 (the_linux_target): Define as pointer to the_cris_target.
1322 * linux-crisv32-low.cc (class crisv32_target): New class.
1323 (the_crisv32_target): New static object.
1324 (the_linux_target): Define as pointer to the_crisv32_target.
1325 * linux-ia64-low.cc (class ia64_target): New class.
1326 (the_ia64_target): New static object.
1327 (the_linux_target): Define as pointer to the_ia64_target.
1328 * linux-m32r-low.cc (class m32r_target): New class.
1329 (the_m32r_target): New static object.
1330 (the_linux_target): Define as pointer to the_m32r_target.
1331 * linux-m68k-low.cc (class m68k_target): New class.
1332 (the_m68k_target): New static object.
1333 (the_linux_target): Define as pointer to the_m68k_target.
1334 * linux-mips-low.cc (class mips_target): New class.
1335 (the_mips_target): New static object.
1336 (the_linux_target): Define as pointer to the_mips_target.
1337 * linux-nios2-low.cc (class nios2_target): New class.
1338 (the_nios2_target): New static object.
1339 (the_linux_target): Define as pointer to the_nios2_target.
1340 * linux-ppc-low.cc (class ppc_target): New class.
1341 (the_ppc_target): New static object.
1342 (the_linux_target): Define as pointer to the_ppc_target.
1343 * linux-riscv-low.cc (class riscv_target): New class.
1344 (the_riscv_target): New static object.
1345 (the_linux_target): Define as pointer to the_riscv_target.
1346 * linux-s390-low.cc (class s390_target): New class.
1347 (the_s390_target): New static object.
1348 (the_linux_target): Define as pointer to the_s390_target.
1349 * linux-sh-low.cc (class sh_target): New class.
1350 (the_sh_target): New static object.
1351 (the_linux_target): Define as pointer to the_sh_target.
1352 * linux-sparc-low.cc (class sparc_target): New class.
1353 (the_sparc_target): New static object.
1354 (the_linux_target): Define as pointer to the_sparc_target.
1355 * linux-tic6x-low.cc (class tic6x_target): New class.
1356 (the_tic6x_target): New static object.
1357 (the_linux_target): Define as pointer to the_tic6x_target.
1358 * linux-tile-low.cc (class tile_target): New class.
1359 (the_tile_target): New static object.
1360 (the_linux_target): Define as pointer to the_tile_target.
1361 * linux-xtensa-low.cc (class xtensa_target): New class.
1362 (the_xtensa_target): New static object.
1363 (the_linux_target): Define as pointer to the_xtensa_target.
1365 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1367 Turn some static functions in linux-low.cc into private methods of
1368 linux_process_target.
1370 * linux-low.cc (handle_extended_wait): Turn into ...
1371 (linux_process_target::handle_extended_wait): ...this. Call
1372 'mourn' on 'this' object instead of 'the_target'.
1373 (maybe_move_out_of_jump_pad): Turn into...
1374 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
1375 (linux_low_filter_event): Turn into...
1376 (linux_process_target::filter_event): ...this.
1377 (linux_wait_for_event_filtered): Turn into...
1378 (linux_process_target::wait_for_event_filtered): ...this.
1379 (linux_wait_for_event): Turn into...
1380 (linux_process_target::wait_for_event): ...this.
1381 (linux_wait_1): Turn into...
1382 (linux_process_target::wait_1): ...this.
1383 (wait_for_sigstop): Turn into...
1384 (linux_process_target::wait_for_sigstop): ...this.
1385 (move_out_of_jump_pad_callback): Turn into...
1386 (linux_process_target::move_out_of_jump_pad): ...this.
1387 (stop_all_lwps): Turn into...
1388 (linux_process_target::stop_all_lwps): ...this.
1389 (start_step_over): Turn into...
1390 (linux_process_target::start_step_over): ...this.
1391 (complete_ongoing_step_over): Turn into...
1392 (linux_process_target::complete_ongoing_step_over): ...this.
1393 (proceed_all_lwps): Turn into...
1394 (linux_process_target::proceed_all_lwps): ...this.
1395 (unstop_all_lwps): Turn into...
1396 (linux_process_target::unstop_all_lwps): ...this.
1398 * linux-low.h (class linux_process_target)
1399 <handle_extended_wait>
1400 <maybe_move_out_of_jump_pad>
1402 <wait_for_event_filtered>
1406 <move_out_of_jump_pad>
1409 <complete_ongoing_step_over>
1411 <unstop_all_lwps>: Declare.
1413 Update the callers below.
1415 * linux-low.cc (linux_process_target::attach): Update.
1416 (linux_process_target::stabilize_threads): Ditto.
1417 (linux_process_target::wait): Ditto.
1419 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1421 * linux-low.h (struct linux_target_ops): Update the comment for
1422 'cannot_store_register' to return 0 or 1.
1423 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
1426 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
1428 * config.in: Re-generate.
1429 * configure: Re-generate.
1431 2020-03-17 Kamil Rytarowski <n54@gmx.com>
1433 * regcache.cc (find_register_by_number): Update.
1434 * tdesc.cc (init_target_desc): Likewise.
1435 * tdesc.h (target_desc::reg_defs): Likewise.
1437 2020-03-12 Tom Tromey <tom@tromey.com>
1439 * configure: Rebuild.
1440 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
1441 (WIN32APILIBS): New subst.
1442 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
1444 (gdbsupport/%.o): Remove target.
1445 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
1446 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
1447 (WIN32APILIBS): New variable.
1448 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
1449 (gdbreplay$(EXEEXT)): Likewise.
1451 2020-03-12 Tom Tromey <tom@tromey.com>
1453 * config.in, configure: Rebuild.
1454 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
1455 * acinclude.m4: Include gettext-sister.m4.
1456 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
1458 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
1459 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
1461 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
1463 * acinclude.m4: Update path to selftest.m4.
1465 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
1467 * configure.ac: Don't source bfd/development.sh, move
1468 GDB_AC_COMMON higher.
1469 * configure: Re-generate.
1471 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
1473 * configure: Re-generate.
1475 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
1477 * configure: Re-generate.
1479 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
1481 * .dir-locals.el: New file.
1483 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1485 * .gitattributes: New file.
1487 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
1489 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
1490 reply into an S reply.
1491 * server.cc (disable_packet_T): New global.
1492 (captured_main): Set new global when appropriate.
1493 * server.h (disable_packet_T): Declare.
1495 2020-02-21 Tom Tromey <tom@tromey.com>
1497 * Makefile.in (mostlyclean): New target.
1499 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1501 * target.h (struct process_stratum_target): Remove.
1502 (class process_target): Rename to ...
1503 (class process_stratum_target): ... this.
1504 * linux-low.h (class linux_process_target): Derive from
1505 'process_stratum_target'.
1506 * linux-low.cc (linux_target_ops): Remove.
1507 (initialize_low): Set the_target to the singleton instance of
1508 linux_process_target.
1509 * lynx-low.h (class lynx_process_target): Derive from
1510 'process_stratum_target'.
1511 * lynx-low.cc (lynx_target_ops): Remove.
1512 (initialize_low): Set the_target to the singleton instance of
1513 lynx_process_target.
1514 * nto-low.h (class nto_process_target): Derive from
1515 'process_stratum_target'.
1516 * nto-low.cc (nto_target_ops): Remove.
1517 (initialize_low): Set the_target to the singleton instance of
1519 * win32-low.h (class win32_process_target): Derive from
1520 'process_stratum_target'.
1521 * win32-low.cc (win32_target_ops): Remove.
1522 (initialize_low): Set the_target to the singleton instance of
1523 win32_process_target.
1525 Replace 'the_target->pt' with 'the_target' in the uses below.
1527 * hostio.cc (hostio_error)
1532 * linux-aarch32-low.cc (arm_breakpoint_at)
1533 * linux-aarch64-low.cc (aarch64_breakpoint_at)
1534 * linux-arm-low.cc (arm_sigreturn_next_pc)
1536 (arm_get_syscall_trapinfo)
1537 * linux-cris-low.cc (cris_breakpoint_at)
1538 * linux-crisv32-low.cc (cris_breakpoint_at)
1539 * linux-low.cc (handle_extended_wait)
1542 (linux_process_target::breakpoint_kind_from_pc)
1544 * linux-m32r-low.cc (m32r_breakpoint_at)
1545 * linux-mips-low.cc (mips_breakpoint_at)
1546 * linux-nios2-low.cc (nios2_breakpoint_at)
1547 * linux-ppc-low.cc (ppc_breakpoint_at)
1548 * linux-s390-low.cc (s390_get_hwcap)
1549 * linux-sh-low.cc (sh_breakpoint_at)
1550 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
1551 (sparc_store_gregset_from_stack)
1552 (sparc_breakpoint_at)
1553 * linux-tic6x-low.cc (tic6x_breakpoint_at)
1554 * linux-tile-low.cc (tile_breakpoint_at)
1555 * linux-x86-low.cc (x86_breakpoint_at)
1556 * linux-xtensa-low.cc (xtensa_breakpoint_at)
1557 * mem-break.cc (bp_size)
1559 (insert_memory_breakpoint)
1560 (set_raw_breakpoint_at)
1561 (delete_raw_breakpoint)
1563 (uninsert_raw_breakpoint)
1564 (reinsert_raw_breakpoint)
1565 (validate_inserted_breakpoint)
1566 * regcache.cc (regcache_read_pc)
1568 * remote-utils.cc (putpkt_binary_1)
1571 (prepare_resume_reply)
1572 * server.cc (handle_general_set)
1575 (handle_qxfer_exec_file)
1576 (handle_qxfer_libraries_svr4)
1577 (handle_qxfer_osdata)
1578 (handle_qxfer_siginfo)
1579 (handle_qxfer_fdpic)
1583 (queue_stop_reply_callback)
1585 * target.cc (prepare_to_access_memory)
1586 (done_accessing_memory)
1587 (read_inferior_memory)
1588 (target_write_memory)
1589 (target_stop_and_wait)
1591 (target_mourn_inferior)
1592 (target_continue_no_signal)
1594 (target_supports_multi_process)
1597 (target_create_inferior)
1598 (target_post_create_inferior)
1600 (target_supports_fork_events)
1601 (target_supports_vfork_events)
1602 (target_supports_exec_events)
1603 (target_handle_new_gdb_connection)
1606 (fetch_inferior_registers)
1607 (store_inferior_registers)
1609 (target_supports_non_stop)
1611 (target_process_qsupported)
1612 (target_supports_catch_syscall)
1613 (target_get_ipa_tdesc_idx)
1614 (target_supports_tracepoints)
1615 (target_supports_fast_tracepoints)
1616 (target_get_min_fast_tracepoint_insn_len)
1617 (target_thread_stopped)
1619 (target_unpause_all)
1620 (target_stabilize_threads)
1621 (target_install_fast_tracepoint_jump_pad)
1623 (target_supports_disable_randomization)
1624 (target_supports_agent)
1625 (target_enable_btrace)
1626 (target_disable_btrace)
1627 (target_read_btrace)
1628 (target_read_btrace_conf)
1629 (target_supports_range_stepping)
1630 (target_supports_stopped_by_sw_breakpoint)
1631 (target_stopped_by_sw_breakpoint)
1632 (target_supports_stopped_by_hw_breakpoint)
1633 (target_supports_hardware_single_step)
1634 (target_stopped_by_hw_breakpoint)
1635 (target_breakpoint_kind_from_pc)
1636 (target_breakpoint_kind_from_current_state)
1637 (target_supports_software_single_step)
1638 (target_core_of_thread)
1639 (target_thread_name)
1640 (target_thread_handle)
1641 * win32-low.cc (do_initial_child_stuff)
1643 Rename target op default definitions listed below.
1645 * target.cc (process_target::post_create_inferior): Rename as ...
1646 (process_stratum_target::post_create_inferior): ... this.
1647 (process_target::prepare_to_access_memory): Rename as ...
1648 (process_stratum_target::prepare_to_access_memory): ... this.
1649 (process_target::done_accessing_memory): Rename as ...
1650 (process_stratum_target::done_accessing_memory): ... this.
1651 (process_target::look_up_symbols): Rename as ...
1652 (process_stratum_target::look_up_symbols): ... this.
1653 (process_target::supports_read_auxv): Rename as ...
1654 (process_stratum_target::supports_read_auxv): ... this.
1655 (process_target::read_auxv): Rename as ...
1656 (process_stratum_target::read_auxv): ... this.
1657 (process_target::supports_z_point_type): Rename as ...
1658 (process_stratum_target::supports_z_point_type): ... this.
1659 (process_target::insert_point): Rename as ...
1660 (process_stratum_target::insert_point): ... this.
1661 (process_target::remove_point): Rename as ...
1662 (process_stratum_target::remove_point): ... this.
1663 (process_target::stopped_by_sw_breakpoint): Rename as ...
1664 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
1665 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
1666 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
1667 (process_target::stopped_by_hw_breakpoint): Rename as ...
1668 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
1669 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
1670 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
1671 (process_target::supports_hardware_single_step): Rename as ...
1672 (process_stratum_target::supports_hardware_single_step): ... this.
1673 (process_target::stopped_by_watchpoint): Rename as ...
1674 (process_stratum_target::stopped_by_watchpoint): ... this.
1675 (process_target::stopped_data_address): Rename as ...
1676 (process_stratum_target::stopped_data_address): ... this.
1677 (process_target::supports_read_offsets): Rename as ...
1678 (process_stratum_target::supports_read_offsets): ... this.
1679 (process_target::read_offsets): Rename as ...
1680 (process_stratum_target::read_offsets): ... this.
1681 (process_target::supports_get_tls_address): Rename as ...
1682 (process_stratum_target::supports_get_tls_address): ... this.
1683 (process_target::get_tls_address): Rename as ...
1684 (process_stratum_target::get_tls_address): ... this.
1685 (process_target::hostio_last_error): Rename as ...
1686 (process_stratum_target::hostio_last_error): ... this.
1687 (process_target::supports_qxfer_osdata): Rename as ...
1688 (process_stratum_target::supports_qxfer_osdata): ... this.
1689 (process_target::qxfer_osdata): Rename as ...
1690 (process_stratum_target::qxfer_osdata): ... this.
1691 (process_target::supports_qxfer_siginfo): Rename as ...
1692 (process_stratum_target::supports_qxfer_siginfo): ... this.
1693 (process_target::qxfer_siginfo): Rename as ...
1694 (process_stratum_target::qxfer_siginfo): ... this.
1695 (process_target::supports_non_stop): Rename as ...
1696 (process_stratum_target::supports_non_stop): ... this.
1697 (process_target::async): Rename as ...
1698 (process_stratum_target::async): ... this.
1699 (process_target::start_non_stop): Rename as ...
1700 (process_stratum_target::start_non_stop): ... this.
1701 (process_target::supports_multi_process): Rename as ...
1702 (process_stratum_target::supports_multi_process): ... this.
1703 (process_target::supports_fork_events): Rename as ...
1704 (process_stratum_target::supports_fork_events): ... this.
1705 (process_target::supports_vfork_events): Rename as ...
1706 (process_stratum_target::supports_vfork_events): ... this.
1707 (process_target::supports_exec_events): Rename as ...
1708 (process_stratum_target::supports_exec_events): ... this.
1709 (process_target::handle_new_gdb_connection): Rename as ...
1710 (process_stratum_target::handle_new_gdb_connection): ... this.
1711 (process_target::handle_monitor_command): Rename as ...
1712 (process_stratum_target::handle_monitor_command): ... this.
1713 (process_target::core_of_thread): Rename as ...
1714 (process_stratum_target::core_of_thread): ... this.
1715 (process_target::supports_read_loadmap): Rename as ...
1716 (process_stratum_target::supports_read_loadmap): ... this.
1717 (process_target::read_loadmap): Rename as ...
1718 (process_stratum_target::read_loadmap): ... this.
1719 (process_target::process_qsupported): Rename as ...
1720 (process_stratum_target::process_qsupported): ... this.
1721 (process_target::supports_tracepoints): Rename as ...
1722 (process_stratum_target::supports_tracepoints): ... this.
1723 (process_target::read_pc): Rename as ...
1724 (process_stratum_target::read_pc): ... this.
1725 (process_target::write_pc): Rename as ...
1726 (process_stratum_target::write_pc): ... this.
1727 (process_target::supports_thread_stopped): Rename as ...
1728 (process_stratum_target::supports_thread_stopped): ... this.
1729 (process_target::thread_stopped): Rename as ...
1730 (process_stratum_target::thread_stopped): ... this.
1731 (process_target::supports_get_tib_address): Rename as ...
1732 (process_stratum_target::supports_get_tib_address): ... this.
1733 (process_target::get_tib_address): Rename as ...
1734 (process_stratum_target::get_tib_address): ... this.
1735 (process_target::pause_all): Rename as ...
1736 (process_stratum_target::pause_all): ... this.
1737 (process_target::unpause_all): Rename as ...
1738 (process_stratum_target::unpause_all): ... this.
1739 (process_target::stabilize_threads): Rename as ...
1740 (process_stratum_target::stabilize_threads): ... this.
1741 (process_target::supports_fast_tracepoints): Rename as ...
1742 (process_stratum_target::supports_fast_tracepoints): ... this.
1743 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
1744 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
1745 (process_target::emit_ops): Rename as ...
1746 (process_stratum_target::emit_ops): ... this.
1747 (process_target::supports_disable_randomization): Rename as ...
1748 (process_stratum_target::supports_disable_randomization): ... this.
1749 (process_target::supports_qxfer_libraries_svr4): Rename as ...
1750 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
1751 (process_target::qxfer_libraries_svr4): Rename as ...
1752 (process_stratum_target::qxfer_libraries_svr4): ... this.
1753 (process_target::supports_agent): Rename as ...
1754 (process_stratum_target::supports_agent): ... this.
1755 (process_target::enable_btrace): Rename as ...
1756 (process_stratum_target::enable_btrace): ... this.
1757 (process_target::disable_btrace): Rename as ...
1758 (process_stratum_target::disable_btrace): ... this.
1759 (process_target::read_btrace): Rename as ...
1760 (process_stratum_target::read_btrace): ... this.
1761 (process_target::read_btrace_conf): Rename as ...
1762 (process_stratum_target::read_btrace_conf): ... this.
1763 (process_target::supports_range_stepping): Rename as ...
1764 (process_stratum_target::supports_range_stepping): ... this.
1765 (process_target::supports_pid_to_exec_file): Rename as ...
1766 (process_stratum_target::supports_pid_to_exec_file): ... this.
1767 (process_target::pid_to_exec_file): Rename as ...
1768 (process_stratum_target::pid_to_exec_file): ... this.
1769 (process_target::supports_multifs): Rename as ...
1770 (process_stratum_target::supports_multifs): ... this.
1771 (process_target::multifs_open): Rename as ...
1772 (process_stratum_target::multifs_open): ... this.
1773 (process_target::multifs_unlink): Rename as ...
1774 (process_stratum_target::multifs_unlink): ... this.
1775 (process_target::multifs_readlink): Rename as ...
1776 (process_stratum_target::multifs_readlink): ... this.
1777 (process_target::breakpoint_kind_from_pc): Rename as ...
1778 (process_stratum_target::breakpoint_kind_from_pc): ... this.
1779 (process_target::breakpoint_kind_from_current_state): Rename as ...
1780 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
1781 (process_target::thread_name): Rename as ...
1782 (process_stratum_target::thread_name): ... this.
1783 (process_target::thread_handle): Rename as ...
1784 (process_stratum_target::thread_handle): ... this.
1785 (process_target::supports_software_single_step): Rename as ...
1786 (process_stratum_target::supports_software_single_step): ... this.
1787 (process_target::supports_catch_syscall): Rename as ...
1788 (process_stratum_target::supports_catch_syscall): ... this.
1789 (process_target::get_ipa_tdesc_idx): Rename as ...
1790 (process_stratum_target::get_ipa_tdesc_idx): ... this.
1792 2020-02-20 Pedro Alves <palves@redhat.com>
1794 * target.cc (set_target_ops): Simply copy the given target pointer
1795 instead of creating a copy of the pointed object.
1797 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1799 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
1802 * target.h (struct process_stratum_target): Remove the target op.
1803 (class process_target): Add the target op.
1804 (target_get_ipa_tdesc_idx): Update the macro.
1805 * target.cc (process_target::get_ipa_tdesc_idx): Define.
1807 Update the derived classes and callers below.
1809 * linux-low.cc (linux_target_ops): Update.
1810 (linux_get_ipa_tdesc_idx): Turn into ...
1811 (linux_process_target::get_ipa_tdesc_idx): ... this.
1812 * linux-low.h (class linux_process_target): Update.
1813 * lynx-low.cc (lynx_target_ops): Update.
1814 * nto-low.cc (nto_target_ops): Update.
1815 * win32-low.cc (win32_target_ops): Update.
1817 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1819 Turn process_stratum_target's supports_catch_syscall op into a
1820 method of process_target.
1822 * target.h (struct process_stratum_target): Remove the target op.
1823 (class process_target): Add the target op.
1824 (target_supports_catch_syscall): Update the macro.
1825 * target.cc (process_target::supports_catch_syscall): Define.
1827 Update the derived classes and callers below.
1829 * linux-low.cc (linux_target_ops): Update.
1830 (linux_supports_catch_syscall): Turn into ...
1831 (linux_process_target::supports_catch_syscall): ... this.
1832 * linux-low.h (class linux_process_target): Update.
1833 * lynx-low.cc (lynx_target_ops): Update.
1834 * nto-low.cc (nto_target_ops): Update.
1835 * win32-low.cc (win32_target_ops): Update.
1837 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1839 Turn process_stratum_target's supports_software_single_step op
1840 into a method of process_target.
1842 * target.h (struct process_stratum_target): Remove the target op.
1843 (class process_target): Add the target op.
1844 (target_supports_software_single_step): Update the macro.
1845 * target.cc (process_target::supports_software_single_step): Define.
1847 Update the derived classes and callers below.
1849 * linux-low.cc (linux_target_ops): Update.
1850 (linux_supports_software_single_step): Turn into ...
1851 (linux_process_target::supports_software_single_step): ... this.
1852 * linux-low.h (class linux_process_target): Update.
1853 * lynx-low.cc (lynx_target_ops): Update.
1854 * nto-low.cc (nto_target_ops): Update.
1855 * win32-low.cc (win32_target_ops): Update.
1857 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1859 Turn process_stratum_target's thread_name and thread_handle ops
1860 into methods of process_target.
1862 * target.h (struct process_stratum_target): Remove the target ops.
1863 (class process_target): Add the target ops.
1864 (target_thread_name): Update the macro.
1865 (target_thread_handle): Update the macro.
1866 * target.cc (process_target::thread_name): Define.
1867 (process_target::thread_handle): Define.
1869 Update the derived classes and callers below.
1871 * linux-low.cc (linux_target_ops): Update.
1872 (linux_process_target::thread_name): Define.
1873 (linux_process_target::thread_handle): Define.
1874 * linux-low.h (class linux_process_target): Update.
1875 * lynx-low.cc (lynx_target_ops): Update.
1876 * nto-low.cc (nto_target_ops): Update.
1877 * win32-low.cc (win32_target_ops): Update.
1879 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1881 Turn process_stratum_target's breakpoint_kind_from_pc,
1882 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
1883 ops into methods of process_target.
1885 * target.h (struct process_stratum_target): Remove the target op.
1886 (class process_target): Add the target op.
1887 (target_breakpoint_kind_from_pc): Update the macro.
1888 (target_breakpoint_kind_from_current_state): Update the macro.
1889 (default_breakpoint_kind_from_pc): Remove declaration.
1890 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
1891 (process_target::breakpoint_kind_from_pc): ... this.
1892 (process_target::breakpoint_kind_from_current_state): Define.
1894 Update the derived classes and callers below.
1896 * mem-break.cc (bp_size): Update.
1897 (bp_opcode): Update.
1898 * linux-low.cc (linux_target_ops): Update.
1899 (linux_wait_1): Update.
1900 (linux_breakpoint_kind_from_pc): Turn into ...
1901 (linux_process_target::breakpoint_kind_from_pc): ... this.
1902 (linux_sw_breakpoint_from_kind): Turn into ...
1903 (linux_process_target::sw_breakpoint_from_kind): ... this.
1904 (linux_breakpoint_kind_from_current_state): Turn into ...
1905 (linux_process_target::breakpoint_kind_from_current_state): ... this.
1906 * linux-low.h (class linux_process_target): Update.
1907 * lynx-low.cc (lynx_target_ops): Update.
1908 (lynx_process_target::sw_breakpoint_from_kind): Define.
1909 * lynx-low.h (class lynx_process_target): Update.
1910 * nto-low.cc (nto_target_ops): Update.
1911 (nto_sw_breakpoint_from_kind): Turn into ...
1912 (nto_process_target::sw_breakpoint_from_kind): ... this.
1913 * nto-low.h (class nto_process_target): Update.
1914 * win32-low.cc (win32_target_ops): Update.
1915 (win32_sw_breakpoint_from_kind): Turn into ...
1916 (win32_process_target::sw_breakpoint_from_kind): ... this.
1917 * win32-low.h (class win32_process_target): Update.
1919 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1921 Turn process_stratum_target's multifs_open, multifs_readlink,
1922 multifs_unlink ops into methods of process_target.
1924 * target.h (struct process_stratum_target): Remove the target ops.
1925 (class process_target): Add the target ops. Also add
1927 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
1929 (process_target::supports_multifs): Define.
1930 (process_target::multifs_open): Define.
1931 (process_target::multifs_readlink): Define.
1932 (process_target::multifs_unlink): Define.
1934 Update the derived classes and callers below.
1936 * hostio.cc (handle_setfs): Update.
1937 (handle_open): Update.
1938 (handle_unlink): Update.
1939 (handle_readlink): Update.
1940 * linux-low.cc (linux_target_ops): Update.
1941 (linux_process_target::supports_multifs): Define.
1942 (linux_process_target::multifs_open): Define.
1943 (linux_process_target::multifs_readlink): Define.
1944 (linux_process_target::multifs_unlink): Define.
1945 * linux-low.h (class linux_process_target): Update.
1946 * lynx-low.cc (lynx_target_ops): Update.
1947 * nto-low.cc (nto_target_ops): Update.
1948 * win32-low.cc (win32_target_ops): Update.
1950 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1952 Turn process_stratum_target's pid_to_exec_file op into a method
1955 * target.h (struct process_stratum_target): Remove the target op.
1956 (class process_target): Add the target op. Also add
1957 'supports_pid_to_exec_file'.
1958 * target.cc (process_target::pid_to_exec_file): Define.
1959 (process_target::supports_pid_to_exec_file): Define.
1961 Update the derived classes and callers below.
1963 * server.cc (handle_qxfer_exec_file): Update.
1964 (handle_query): Update.
1965 * linux-low.cc (linux_target_ops): Update.
1966 (linux_process_target::supports_pid_to_exec_file): Define.
1967 (linux_process_target::pid_to_exec_file): Define.
1968 * linux-low.h (class linux_process_target): Update.
1969 * lynx-low.cc (lynx_target_ops): Update.
1970 * nto-low.cc (nto_target_ops): Update.
1971 * win32-low.cc (win32_target_ops): Update.
1973 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1975 Turn process_stratum_target's supports_range_stepping op into a
1976 method of process_target.
1978 * target.h (struct process_stratum_target): Remove the target op.
1979 (class process_target): Add the target op.
1980 (target_supports_range_stepping): Update the macro.
1981 * target.cc (process_target::supports_range_stepping): Define.
1983 Update the derived classes and callers below.
1985 * linux-low.cc (linux_target_ops): Update.
1986 (linux_supports_range_stepping): Turn into ...
1987 (linux_process_target::supports_range_stepping): ... this.
1988 * linux-low.h (class linux_process_target): Update.
1989 * lynx-low.cc (lynx_target_ops): Update.
1990 * nto-low.cc (nto_target_ops): Update.
1991 * win32-low.cc (win32_target_ops): Update.
1993 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1995 Turn process_stratum_target's btrace-related ops (enable_btrace,
1996 disable_btrace, read_btrace, read_btrace_conf) into methods of
1999 * target.h (struct process_stratum_target): Remove the target ops.
2000 (class process_target): Add the target ops.
2001 (target_enable_btrace): Update.
2002 (target_disable_btrace): Update.
2003 (target_read_btrace): Update.
2004 (target_read_btrace_conf): Update.
2005 * target.cc (process_target::enable_btrace): Define.
2006 (process_target::disable_btrace): Define.
2007 (process_target::read_btrace): Define.
2008 (process_target::read_btrace_conf): Define.
2010 Update the derived classes and callers below.
2012 * linux-low.cc (linux_target_ops): Update.
2013 (linux_process_target:enable_btrace): Define as a wrapper around
2014 linux_enable_btrace.
2015 (linux_low_disable_btrace): Turn into ...
2016 (linux_process_target::disable_btrace): ... this.
2017 (linux_low_read_btrace): Turn into ...
2018 (linux_process_target::read_btrace): ... this.
2019 (linux_low_btrace_conf): Turn into ...
2020 (linux_process_target::read_btrace_conf): ... this.
2021 * linux-low.h (class linux_process_target): Update.
2022 * lynx-low.cc (lynx_target_ops): Update.
2023 * nto-low.cc (nto_target_ops): Update.
2024 * win32-low.cc (win32_target_ops): Update.
2026 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2028 Turn process_stratum_target's supports_agent op into a method of
2031 * target.h (struct process_stratum_target): Remove the target op.
2032 (class process_target): Add the target op.
2033 (target_supports_agent): Update the macro.
2034 * target.cc (process_target::supports_agent): Define.
2036 Update the derived classes and callers below.
2038 * linux-low.cc (linux_target_ops): Update.
2039 (linux_supports_agent): Turn into ...
2040 (linux_process_target::supports_agent): ... this.
2041 * linux-low.h (class linux_process_target): Update.
2042 * lynx-low.cc (lynx_target_ops): Update.
2043 * nto-low.cc (nto_target_ops): Update.
2044 * win32-low.cc (win32_target_ops): Update.
2046 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2048 Turn process_stratum_target's qxfer_libraries_svr4 op into a
2049 method of process_target.
2051 * target.h (struct process_stratum_target): Remove the target op.
2052 (class process_target): Add the target op. Also add
2053 'supports_qxfer_libraries_svr4'.
2054 * target.cc (process_target::qxfer_libraries_svr4): Define.
2055 (process_target::supports_qxfer_libraries_svr4): Define.
2057 Update the derived classes and callers below.
2059 * server.cc (handle_qxfer_libraries_svr4): Update.
2060 (handle_query): Update.
2061 * linux-low.cc (linux_target_ops): Update.
2062 (linux_process_target::supports_qxfer_libraries_svr4): Define.
2063 (linux_qxfer_libraries_svr4): Turn into ...
2064 (linux_process_target::qxfer_libraries_svr4): ... this.
2065 * linux-low.h (class linux_process_target): Update.
2066 * lynx-low.cc (lynx_target_ops): Update.
2067 * nto-low.cc (nto_target_ops): Update.
2068 * win32-low.cc (win32_target_ops): Update.
2070 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2072 Turn process_stratum_target's supports_disable_randomization op
2073 into a method of process_target.
2075 * target.h (struct process_stratum_target): Remove the target op.
2076 (class process_target): Add the target op.
2077 (target_supports_disable_randomization): Update the macro.
2078 * target.cc (process_target::supports_disable_randomization): Define.
2080 Update the derived classes and callers below.
2082 * linux-low.cc (linux_target_ops): Update.
2083 (linux_supports_disable_randomization): Turn into ...
2084 (linux_process_target::supports_disable_randomization): ... this.
2085 * linux-low.h (class linux_process_target): Update.
2086 * lynx-low.cc (lynx_target_ops): Update.
2087 * nto-low.cc (nto_target_ops): Update.
2088 * win32-low.cc (win32_target_ops): Update.
2090 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2092 Turn process_stratum_target's emit_ops op into a method of
2095 * target.h (struct process_stratum_target): Remove the target op.
2096 (class process_target): Add the target op.
2097 (target_emit_ops): Update the macro.
2098 * target.cc (process_target::emit_ops): Define.
2100 Update the derived classes and callers below.
2102 * linux-low.cc (linux_target_ops): Update.
2103 (linux_emit_ops): Turn into ...
2104 (linux_process_target::emit_ops): ... this.
2105 * linux-low.h (class linux_process_target): Update.
2106 * lynx-low.cc (lynx_target_ops): Update.
2107 * nto-low.cc (nto_target_ops): Update.
2108 * win32-low.cc (win32_target_ops): Update.
2110 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2112 Turn process_stratum_target's install_fast_tracepoint_jump_pad
2113 and get_min_fast_tracepoint_insn_len ops into methods of
2116 * target.h (struct process_stratum_target): Remove the target ops.
2117 (class process_target): Add the target ops. Also add
2118 'supports_fast_tracepoints'.
2119 (target_supports_fast_tracepoints): Update the macro.
2120 (target_get_min_fast_tracepoint_insn_len): Update the macro.
2121 (install_fast_tracepoint_jump_pad): Update and rename the macro
2123 (target_install_fast_tracepoint_jump_pad): ... this.
2124 * target.cc (process_target::supports_fast_tracepoints): Define.
2125 (process_target::install_fast_tracepoint_jump_pad): Define.
2126 (process_target::get_min_fast_tracepoint_insn_len): Define.
2128 Update the derived classes and callers below.
2130 * tracepoint.cc (install_fast_tracepoint): Update.
2131 * linux-low.cc (linux_target_ops): Update.
2132 (linux_process_target::supports_fast_tracepoints): Define.
2133 (linux_install_fast_tracepoint_jump_pad): Turn into ...
2134 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
2135 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
2136 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
2137 * linux-low.h (class linux_process_target): Update.
2138 * lynx-low.cc (lynx_target_ops): Update.
2139 * nto-low.cc (nto_target_ops): Update.
2140 * win32-low.cc (win32_target_ops): Update.
2142 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2144 Turn process_stratum_target's stabilize_threads op into a
2145 method of process_target.
2147 * target.h (struct process_stratum_target): Remove the target op.
2148 (class process_target): Add the target op.
2149 (target_stabilize_threads): Update the macro.
2150 * target.cc (process_target::stabilize_threads): Define.
2152 Update the derived classes and callers below.
2154 * server.cc (handle_status): Update.
2155 * tracepoint.cc (cmd_qtdp): Update.
2156 (cmd_qtstart): Update.
2157 * linux-low.cc (linux_target_ops): Update.
2158 (linux_stabilize_threads): Turn into ...
2159 (linux_process_target::stabilize_threads): ... this.
2160 (linux_wait_1): Update.
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 pause_all and unpause_all ops
2169 into methods of process_target.
2171 * target.h (struct process_stratum_target): Remove the target ops.
2172 (class process_target): Add the target ops.
2173 (pause_all): Update the macro and rename to...
2174 (target_pause_all): ... this.
2175 (unpause_all): Update the macro and rename to...
2176 (target_unpause_all): ... this.
2177 * target.cc (process_target::pause_all): Define.
2178 (process_target::unpause_all): Define.
2180 Update the derived classes and callers below.
2182 * server.cc (handle_status): Update.
2183 * tracepoint.cc (clear_installed_tracepoints): Update.
2185 (cmd_qtstart): Update.
2186 (stop_tracing): Update.
2187 (cmd_qtstatus): Update.
2188 (upload_fast_traceframes): Update.
2189 (run_inferior_command): Update.
2190 * linux-low.cc (linux_target_ops): Update.
2191 (linux_pause_all): Turn into ...
2192 (linux_process_target::pause_all): ... this.
2193 (linux_unpause_all): Turn into ...
2194 (linux_process_target::unpause_all): ... this.
2195 (linux_process_target::prepare_to_access_memory): Update.
2196 (linux_process_target::done_accessing_memory): Update.
2197 * linux-low.h (class linux_process_target): Update.
2198 * lynx-low.cc (lynx_target_ops): Update.
2199 * nto-low.cc (nto_target_ops): Update.
2200 * win32-low.cc (win32_target_ops): Update.
2202 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2204 Turn process_stratum_target's get_tib_address op into a method of
2207 * target.h (struct process_stratum_target): Remove the target op.
2208 (class process_target): Add the target op. Also add
2209 'supports_get_tib_address'.
2210 * target.cc (process_target::get_tib_address): Define.
2211 (process_target::supports_get_tib_address): Define.
2213 Update the derived classes and callers below.
2215 * server.cc (handle_query): Update.
2216 * linux-low.cc (win32_target_ops): Update.
2217 * lynx-low.cc (lynx_target_ops): Update.
2218 * nto-low.cc (nto_target_ops): Update.
2219 * win32-low.cc (win32_target_ops): Update.
2220 (win32_process_target::supports_get_tib_address): Define.
2221 (win32_get_tib_address): Turn into ...
2222 (win32_process_target::get_tib_address): ... this.
2223 * win32-low.h (class win32_process_target): Update.
2225 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2227 Turn process_stratum_target's thread_stopped op into a method of
2230 * target.h (struct process_stratum_target): Remove the target op.
2231 (class process_target): Add the target op. Also add
2232 'supports_thread_stopped'.
2233 (target_thread_stopped): Update the macro.
2234 * target.cc (process_target::thread_stopped): Define.
2235 (process_target::supports_thread_stopped): Define.
2236 (prepare_to_access_memory): Update.
2238 Update the derived classes and callers below.
2240 * server.cc (queue_stop_reply_callback): Update.
2241 * linux-low.cc (linux_target_ops): Update.
2242 (linux_process_target::supports_thread_stopped): Define.
2243 (linux_thread_stopped): Turn into ...
2244 (linux_process_target::thread_stopped): ... this.
2245 * linux-low.h (class linux_process_target): Update.
2246 * lynx-low.cc (lynx_target_ops): Update.
2247 * nto-low.cc (nto_target_ops): Update.
2248 * win32-low.cc (win32_target_ops): Update.
2250 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2252 Turn process_stratum_target's read_pc and write_pc ops into
2253 methods of process_target.
2255 * target.h (struct process_stratum_target): Remove the target ops.
2256 (class process_target): Add the target ops.
2257 * target.cc (process_target::read_pc): Define.
2258 (process_target::write_pc): Define.
2260 Update the derived classes and callers below.
2262 * regcache.cc (regcache_read_pc): Update.
2263 (regcache_write_pc): Update.
2264 * linux-low.cc (linux_target_ops): Update.
2265 (linux_read_pc): Turn into ...
2266 (linux_process_target::read_pc): ... this.
2267 (linux_write_pc): Turn into ...
2268 (linux_process_target::write_pc): ... this.
2269 * linux-low.h (class linux_process_target): Update.
2270 * lynx-low.cc (lynx_target_ops): Update.
2271 * nto-low.cc (nto_target_ops): Update.
2272 * win32-low.cc (win32_target_ops): Update.
2274 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2276 Turn process_stratum_target's supports_tracepoints op into a
2277 method of process_target.
2279 * target.h (struct process_stratum_target): Remove the target op.
2280 (class process_target): Add the target op.
2281 (target_supports_tracepoints): Update the macro.
2282 * target.cc (process_target::supports_tracepoints): Define.
2284 Update the derived classes and callers below.
2286 * linux-low.cc (linux_target_ops): Update.
2287 (linux_supports_tracepoints): Turn into ...
2288 (linux_process_target::supports_tracepoints): ... this.
2289 * linux-low.h (class linux_process_target): Update.
2290 * lynx-low.cc (lynx_target_ops): Update.
2291 * nto-low.cc (nto_target_ops): Update.
2292 * win32-low.cc (win32_target_ops): Update.
2294 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2296 Turn process_stratum_target's process_qsupported op into a method
2299 * target.h (struct process_stratum_target): Remove the target op.
2300 (class process_target): Add the target op.
2301 (target_process_qsupported): Update the macro.
2302 * target.cc (process_target::process_qsupported): Define.
2304 Update the derived classes and callers below.
2306 * linux-low.cc (linux_target_ops): Update.
2307 (linux_process_qsupported): Turn into ...
2308 (linux_process_target::process_qsupported): ... this.
2309 * linux-low.h (class linux_process_target): Update.
2310 * lynx-low.cc (lynx_target_ops): Update.
2311 * nto-low.cc (nto_target_ops): Update.
2312 * win32-low.cc (win32_target_ops): Update.
2314 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2316 Turn process_stratum_target's read_loadmap op into a method of
2319 * target.h (struct process_stratum_target): Remove the target op.
2320 (class process_target): Add the target op. Also add
2321 'supports_read_loadmap'.
2322 * target.cc (process_target::read_loadmap): Define.
2323 (process_target::supports_read_loadmap): Define.
2325 Update the derived classes and callers below.
2327 * server.cc (handle_qxfer_fdpic): Update.
2328 (handle_query): Update.
2329 * linux-low.cc (linux_target_ops): Update.
2330 (linux_process_target::supports_read_loadmap): Define.
2331 (linux_read_loadmap): Turn into ...
2332 (linux_process_target::read_loadmap): ... this.
2333 * linux-low.h (class linux_process_target): Update.
2334 * lynx-low.cc (lynx_target_ops): Update.
2335 * nto-low.cc (nto_target_ops): Update.
2336 * win32-low.cc (win32_target_ops): Update.
2338 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2340 Turn process_stratum_target's core_of_thread op into a method of
2343 * target.h (struct process_stratum_target): Remove the target op.
2344 (class process_target): Add the target op.
2345 (target_core_of_thread): Update the macro.
2346 * target.cc (process_target::core_of_thread): Define.
2348 Update the derived classes and callers below.
2350 * linux-low.cc (linux_target_ops): Update.
2351 (linux_process_target::core_of_thread): Define.
2352 * linux-low.h (class linux_process_target): Update.
2353 * lynx-low.cc (lynx_target_ops): Update.
2354 * nto-low.cc (nto_target_ops): Update.
2355 * win32-low.cc (win32_target_ops): Update.
2357 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2359 Turn process_stratum_target's handle_monitor_command op into a
2360 method of process_target.
2362 * target.h (struct process_stratum_target): Remove the target op.
2363 (class process_target): Add the target op.
2364 (target_handle_monitor_command): Update the macro.
2365 * target.cc (process_target::handle_monitor_command): Define.
2367 Update the derived classes and callers below.
2369 * server.cc (handle_query): Update.
2370 * linux-low.cc (linux_target_ops): Update.
2371 (linux_process_target::handle_monitor_command): Define.
2372 * linux-low.h (class linux_process_target): Update.
2373 * lynx-low.cc (lynx_target_ops): Update.
2374 * nto-low.cc (nto_target_ops): Update.
2375 * win32-low.cc (win32_target_ops): Update.
2377 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2379 Turn process_stratum_target's handle_new_gdb_connection op into a
2380 method of process_target.
2382 * target.h (struct process_stratum_target): Remove the target op.
2383 (class process_target): Add the target op.
2384 (target_handle_new_gdb_connection): Update the macro.
2385 * target.cc (process_target::handle_new_gdb_connection): Define.
2387 Update the derived classes and callers below.
2389 * linux-low.cc (linux_target_ops): Update.
2390 (linux_handle_new_gdb_connection): Turn into ...
2391 (linux_process_target::handle_new_gdb_connection): ... this.
2392 * linux-low.h (class linux_process_target): Update.
2393 * lynx-low.cc (lynx_target_ops): Update.
2394 * nto-low.cc (nto_target_ops): Update.
2395 * win32-low.cc (win32_target_ops): Update.
2397 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2399 Turn process_stratum_target's supports_fork_events,
2400 supports_vfork_events, and supports_exec_events ops into methods
2403 * target.h (struct process_stratum_target): Remove the target ops.
2404 (class process_target): Add the target ops.
2405 (target_supports_fork_events): Update the macro.
2406 (target_supports_vfork_events): Update the macro.
2407 (target_supports_exec_events): Update the macro.
2408 * target.cc (process_target::supports_fork_events): Define.
2409 (process_target::supports_vfork_events): Define.
2410 (process_target::supports_exec_events): Define.
2412 Update the derived classes and callers below.
2414 * linux-low.cc (linux_target_ops): Update.
2415 (linux_supports_fork_events): Turn into ...
2416 (linux_process_target::supports_fork_events): ... this.
2417 (linux_supports_vfork_events): Turn into ...
2418 (linux_process_target::supports_vfork_events): ... this.
2419 (linux_supports_exec_events): Turn into ...
2420 (linux_process_target::supports_exec_events): ... this.
2421 * linux-low.h (class linux_process_target): Update.
2422 * lynx-low.cc (lynx_target_ops): Update.
2423 * nto-low.cc (nto_target_ops): Update.
2424 * win32-low.cc (win32_target_ops): Update.
2426 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2428 Turn process_stratum_target's supports_multi_process op into a
2429 method of process_target.
2431 * target.h (struct process_stratum_target): Remove the target op.
2432 (class process_target): Add the target op.
2433 * target.cc (process_target::supports_multi_process): Define.
2434 (target_supports_multi_process): Update.
2436 Update the derived classes and callers below.
2438 * linux-low.cc (linux_target_ops): Update.
2439 (linux_supports_multi_process): Turn into ...
2440 (linux_process_target::supports_multi_process): ... this.
2441 * linux-low.h (class linux_process_target): Update.
2442 * lynx-low.cc (lynx_target_ops): Update.
2443 * nto-low.cc (nto_target_ops): Update.
2444 * win32-low.cc (win32_target_ops): Update.
2446 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2448 Turn process_stratum_target's supports_non_stop, async, and
2449 start_non_stop ops into methods of process_target.
2451 * target.h (struct process_stratum_target): Remove the target ops.
2452 (class process_target): Add the target ops.
2453 (target_supports_non_stop): Update the macro.
2454 (target_async): Update the macro.
2455 (start_non_stop): Remove declaration.
2456 * target.cc (process_target::supports_non_stop): Define.
2457 (process_target::async): Define.
2458 (process_target::start_non_stop): Define.
2459 (start_non_stop): Remove.
2461 Update the derived classes and callers below.
2463 * server.cc (handle_qxfer_siginfo): Update.
2464 (handle_query): Update.
2465 * linux-low.cc (linux_target_ops): Update.
2466 (linux_supports_non_stop): Turn into ...
2467 (linux_process_target::supports_non_stop): ... this.
2468 (linux_async): Turn into ...
2469 (linux_process_target::async): ... this.
2470 (linux_start_non_stop): Turn into ...
2471 (linux_process_target::start_non_stop): ... this.
2472 * linux-low.h (class linux_process_target): Update.
2473 * lynx-low.cc (lynx_target_ops): Update.
2474 * nto-low.cc (nto_target_ops): Update.
2475 (nto_supports_non_stop): Remove; rely on the default behavior
2477 * win32-low.cc (win32_target_ops): Update.
2479 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2481 Turn process_stratum_target's qxfer_siginfo op into a method of
2484 * target.h (struct process_stratum_target): Remove the target op.
2485 (class process_target): Add the target op. Also add
2486 'supports_qxfer_siginfo'.
2487 * target.cc (process_target::qxfer_siginfo): Define.
2488 (process_target::supports_qxfer_siginfo): Define.
2490 Update the derived classes and callers below.
2492 * server.cc (handle_qxfer_siginfo): Update.
2493 (handle_query): Update.
2494 * linux-low.cc (linux_target_ops): Update.
2495 (linux_process_target::supports_qxfer_siginfo): Define.
2496 (linux_xfer_siginfo): Turn into ...
2497 (linux_process_target::qxfer_siginfo): ... this.
2498 * linux-low.h (class linux_process_target): Update.
2499 * lynx-low.cc (lynx_target_ops): Update.
2500 * nto-low.cc (nto_target_ops): Update.
2501 * win32-low.cc (win32_target_ops): Update.
2503 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2505 Turn process_stratum_target's qxfer_osdata op into a method of
2508 * target.h (struct process_stratum_target): Remove the target op.
2509 (class process_target): Add the target op. Also add
2510 'supports_qxfer_osdata'.
2511 * target.cc (process_target::qxfer_osdata): Define.
2512 (process_target::supports_qxfer_osdata): Define.
2514 Update the derived classes and callers below.
2516 * server.cc (handle_qxfer_osdata): Update.
2517 (handle_query): Update.
2518 * linux-low.cc (linux_target_ops): Update.
2519 (linux_process_target::supports_qxfer_osdata): Define.
2520 (linux_qxfer_osdata): Turn into ...
2521 (linux_process_target::qxfer_osdata): ... this.
2522 * linux-low.h (class linux_process_target): Update.
2523 * lynx-low.cc (lynx_target_ops): Update.
2524 * nto-low.cc (nto_target_ops): Update.
2525 * win32-low.cc (win32_target_ops): Update.
2527 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2529 Turn process_stratum_target's hostio_last_error op into a
2530 method of process_target.
2532 * target.h (struct process_stratum_target): Remove the target op.
2533 (class process_target): Add the target op.
2534 * target.cc: Add "hostio.h" to includes.
2535 (process_target::hostio_last_error): Define.
2537 Update the derived classes and callers below.
2539 * hostio.cc (hostio_error): Update.
2540 * linux-low.cc: Remove "hostio.h" from includes.
2541 (linux_target_ops): Update.
2542 * lynx-low.cc (lynx_target_ops): Update.
2543 * nto-low.cc (nto_target_ops): Update.
2544 * win32-low.h (class win32_process_target): Update.
2545 * win32-low.cc (win32_target_ops): Update.
2546 (wince_hostio_last_error): Turn into ...
2547 (win32_process_target::hostio_last_error): ... this.
2549 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2551 Turn process_stratum_target's get_tls_address op into a method of
2554 * target.h (struct process_stratum_target): Remove the target op.
2555 (class process_target): Add the target op. Also add
2556 'supports_get_tls_address'.
2557 * target.cc (process_target::get_tls_address): Define.
2558 (process_target::supports_get_tls_address): 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::supports_get_tls_address): Define.
2565 (linux_process_target::get_tls_address): Define.
2566 * linux-low.h (class linux_process_target): Update.
2567 * lynx-low.cc (lynx_target_ops): Update.
2568 * nto-low.cc (nto_target_ops): Update.
2569 * win32-low.cc (win32_target_ops): Update.
2571 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2573 Turn process_stratum_target's read_offsets op into a method of
2576 * target.h (struct process_stratum_target): Remove the target op.
2577 (class process_target): Add the target op. Also add
2578 'supports_read_offsets'.
2579 * target.cc (process_target::read_offsets): Define.
2580 (process_target::supports_read_offsets): Define.
2582 Update the derived classes and callers below.
2584 * server.cc (handle_query): Update.
2585 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
2586 (linux_target_ops): Update.
2587 (linux_process_target::supports_read_offsets): Define.
2588 (linux_read_offsets): Turn into ...
2589 (linux_process_target::read_offsets): ... this.
2590 * linux-low.h (class linux_process_target): Update.
2591 * lynx-low.cc (lynx_target_ops): Update.
2592 * nto-low.cc (nto_target_ops): Update.
2593 * win32-low.cc (win32_target_ops): Update.
2595 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2597 Turn process_stratum_target's stopped_by_watchpoint and
2598 stopped_data_address ops into methods of process_target.
2600 * target.h (struct process_stratum_target): Remove the target ops.
2601 (class process_target): Add the target ops.
2602 * target.cc (process_target::stopped_by_watchpoint): Define.
2603 (process_target::stopped_data_address): Define.
2605 Update the derived classes and callers below.
2607 * remote-utils.cc (prepare_resume_reply): Update.
2608 * linux-low.cc (linux_target_ops): Update.
2609 (linux_stopped_by_watchpoint): Turn into ...
2610 (linux_process_target::stopped_by_watchpoint): ... this.
2611 (linux_stopped_data_address): Turn into ...
2612 (linux_process_target::stopped_data_address): ... this.
2613 * linux-low.h (class linux_process_target): Update.
2614 * lynx-low.cc (lynx_target_ops): Update.
2615 * nto-low.cc (nto_target_ops): Update.
2616 (nto_stopped_by_watchpoint): Turn into ...
2617 (nto_process_target::stopped_by_watchpoint): ... this.
2618 (nto_stopped_data_address): Turn into ...
2619 (nto_process_target::stopped_data_address): ... this.
2620 * nto-low.h (class nto_process_target): Update.
2621 * win32-low.cc (win32_target_ops): Update.
2622 (win32_stopped_by_watchpoint): Turn into ...
2623 (win32_process_target::stopped_by_watchpoint): ... this.
2624 (win32_stopped_data_address): Turn into ...
2625 (win32_process_target::stopped_data_address): ... this.
2626 * win32-low.h (class win32_process_target): Update.
2628 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2630 Turn process_stratum_target's supports_hardware_single_step op into
2631 a method of process_target.
2633 * target.h (struct process_stratum_target): Remove the target op.
2634 (class process_target): Add the target op.
2635 (target_supports_hardware_single_step): Update the macro.
2636 (target_can_do_hardware_single_step): Remove declaration.
2637 * target.cc (process_target::supports_hardware_single_step): Define.
2638 (target_can_do_hardware_single_step): Remove.
2640 Update the derived classes and callers below.
2642 * linux-low.h (class linux_process_target): Update.
2643 * linux-low.cc (linux_target_ops): Update.
2644 (linux_supports_hardware_single_step): Turn into ...
2645 (linux_process_target::supports_hardware_single_step): ... this.
2646 * lynx-low.h (class lynx_process_target): Update.
2647 * lynx-low.cc (lynx_target_ops): Update.
2648 (lynx_process_target::supports_hardware_single_step): Define.
2649 * nto-low.h (class nto_process_target): Update.
2650 * nto-low.cc (nto_target_ops): Update.
2651 (nto_process_target::supports_hardware_single_step): Define.
2652 * win32-low.h (class win32_process_target): Update.
2653 * win32-low.cc (win32_target_ops): Update.
2654 (win32_process_target::supports_hardware_single_step): Define.
2656 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2658 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
2659 ops into methods of process_target.
2661 * target.h (struct process_stratum_target): Remove the target ops.
2662 (class process_target): Add the target ops.
2663 (target_stopped_by_hw_breakpoint): Update the macro.
2664 (target_supports_stopped_by_hw_breakpoint): Update the macro.
2665 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
2666 (process_target::supports_stopped_by_hw_breakpoint): Define.
2668 Update the derived classes and callers below.
2670 * linux-low.cc (linux_target_ops): Update.
2671 (linux_stopped_by_hw_breakpoint): Turn into ...
2672 (linux_process_target::stopped_by_hw_breakpoint): ... this.
2673 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
2674 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
2675 * linux-low.h (class linux_process_target): Update.
2676 * lynx-low.cc (lynx_target_ops): Update.
2677 * nto-low.cc (nto_target_ops): Update.
2678 * win32-low.cc (win32_target_ops): Update.
2680 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2682 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
2683 ops into methods of process_target.
2685 * target.h (struct process_stratum_target): Remove the target ops.
2686 (class process_target): Add the target ops.
2687 (target_stopped_by_sw_breakpoint): Update the macro.
2688 (target_supports_stopped_by_sw_breakpoint): Update the macro.
2689 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
2690 (process_target::supports_stopped_by_sw_breakpoint): Define.
2692 Update the derived classes and callers below.
2694 * linux-low.cc (linux_target_ops): Update.
2695 (linux_stopped_by_sw_breakpoint): Turn into ...
2696 (linux_process_target::stopped_by_sw_breakpoint): ... this.
2697 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
2698 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
2699 * linux-low.h (class linux_process_target): Update.
2700 * lynx-low.cc (lynx_target_ops): Update.
2701 * nto-low.cc (nto_target_ops): Update.
2702 * win32-low.cc (win32_target_ops): Update.
2704 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2706 Turn process_stratum_target's insert_point and remove_point ops
2707 into methods of process_target.
2709 * target.h (struct process_stratum_target): Remove the target ops.
2710 (class process_target): Add the target ops.
2711 * target.cc (process_target::insert_point): Define.
2712 (process_target::remove_point): Define.
2714 Update the derived classes and callers below.
2716 * mem-break.cc (set_raw_breakpoint_at): Update.
2717 (delete_raw_breakpoint): Update.
2718 (uninsert_raw_breakpoint): Update.
2719 (reinsert_raw_breakpoint): Update.
2720 * linux-low.cc (linux_target_ops): Update.
2721 (linux_insert_point): Turn into ...
2722 (linux_process_target::insert_point): ... this.
2723 (linux_remove_point): Turn into ...
2724 (linux_process_target::remove_point): ... this.
2725 * linux-low.h (class linux_process_target): Update.
2726 * lynx-low.cc (lynx_target_ops): Update.
2727 * nto-low.cc (nto_target_ops): Update.
2728 (nto_insert_point): Turn into ...
2729 (nto_process_target::insert_point): ... this.
2730 (nto_remove_point): Turn into ...
2731 (nto_process_target::remove_point): ... this.
2732 * nto-low.h (class nto_process_target): Update.
2733 * win32-low.cc (win32_target_ops): Update.
2734 (win32_insert_point): Turn into ...
2735 (win32_process_target::insert_point): ... this.
2736 (win32_remove_point): Turn into ...
2737 (win32_process_target::remove_point): ... this.
2738 * win32-low.h (class win32_process_target): Update.
2740 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2742 Turn process_stratum_target's supports_z_point_type op into a
2743 method of process_target.
2745 * target.h (struct process_stratum_target): Remove the target op.
2746 (class process_target): Add the target op.
2747 * target.cc (process_target::supports_z_point_type): Define.
2749 Update the derived classes and callers below.
2751 * mem-break.cc (z_type_supported): Update.
2752 * linux-low.cc (linux_target_ops): Update.
2753 (linux_supports_z_point_type): Turn into ...
2754 (linux_process_target::supports_z_point_type): ... this.
2755 * linux-low.h (class linux_process_target): Update.
2756 * lynx-low.cc (lynx_target_ops): Update.
2757 * nto-low.cc (nto_target_ops): Update.
2758 (nto_supports_z_point_type): Turn into ...
2759 (nto_process_target::supports_z_point_type): ... this.
2760 * nto-low.h (class nto_process_target): Update.
2761 * win32-low.cc (win32_target_ops): Update.
2762 (win32_supports_z_point_type): Turn into ...
2763 (win32_process_target::supports_z_point_type): ... this.
2764 * win32-low.h (class win32_process_target): Update.
2766 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2768 Turn process_stratum_target's read_auxv op into a method of
2771 * target.h (class process_stratum_target): Remove the target op.
2772 (struct process_target): Add the target op. Also add
2773 'supports_read_auxv'.
2774 * target.cc (process_target::read_auxv): Define.
2775 (process_target::supports_read_auxv): Define.
2777 Update the derived classes and callers below.
2779 * server.cc (handle_qxfer_auxv): Update.
2780 (handle_query): Update.
2781 * linux-low.cc (linux_target_ops): Update.
2782 (linux_process_target::supports_read_auxv): Define.
2783 (linux_read_auxv): Turn into ...
2784 (linux_process_target::read_auxv): ... this.
2785 * linux-low.h (class linux_process_target): Update.
2786 * lynx-low.cc (lynx_target_ops): Update.
2787 * nto-low.cc (nto_target_ops): Update.
2788 (nto_process_target::supports_read_auxv): Define.
2789 (nto_read_auxv): Turn into ...
2790 (nto_process_target::read_auxv): ... this.
2791 * nto-low.h (class nto_process_target): Update.
2792 * win32-low.cc (win32_target_ops): Update.
2794 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2796 Turn process_stratum_target's request_interrupt op into a method of
2799 * target.h (struct process_stratum_target): Remove the target op.
2800 (class process_target): Add the target op.
2802 Update the derived classes and callers below.
2804 * remote-utils.cc (putpkt_binary_1): Update.
2805 (input_interrupt): Update.
2807 * server.cc (handle_v_requests): Update.
2808 * linux-low.cc (linux_target_ops): Update.
2809 (linux_request_interrupt): Turn into ...
2810 (linux_process_target::request_interrupt): ... this.
2811 * linux-low.h (class linux_process_target): Update.
2812 * lynx-low.cc (lynx_target_ops): Update.
2813 (lynx_request_interrupt): Turn into ...
2814 (lynx_process_target::request_interrupt): ... this.
2815 * lynx-low.h (class lynx_process_target): Update.
2816 * nto-low.cc (nto_target_ops): Update.
2817 (nto_request_interrupt): Turn into ...
2818 (nto_process_target::request_interrupt): ... this.
2819 * nto-low.h (class nto_process_target): Update.
2820 * win32-low.cc (win32_target_ops): Update.
2821 (win32_request_interrupt): Turn into ...
2822 (win32_process_target::request_interrupt): ... this.
2823 * win32-low.h (class win32_process_target): Update.
2825 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2827 Turn process_stratum_target's look_up_symbols op into a method of
2830 * target.h (struct process_stratum_target): Remove the target op.
2831 (class process_target): Add the target op.
2832 * target.cc (process_target::look_up_symbols): Define.
2834 Update the derived classes and callers below.
2836 * server.cc (handle_query): Update.
2837 * linux-low.cc (linux_target_ops): Update.
2838 (linux_look_up_symbols): Turn into ...
2839 (linux_process_target::look_up_symbols): ... this.
2840 * linux-low.h (class linux_process_target): Update.
2841 * lynx-low.cc (lynx_target_ops): Update.
2842 * nto-low.cc (nto_target_ops): Update.
2843 * win32-low.cc (win32_target_ops): Update.
2845 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2847 Turn process_stratum_target's read_memory and write_memory
2848 ops into methods of process_target.
2850 * target.h (struct process_stratum_target): Remove the target ops.
2851 (class process_target): Add the target ops.
2853 Update the derived classes and callers below.
2855 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
2856 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
2857 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
2858 (arm_get_syscall_trapinfo): Update.
2859 * linux-cris-low.cc (cris_breakpoint_at): Update.
2860 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
2861 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
2862 * linux-mips-low.cc (mips_breakpoint_at): Update.
2863 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
2864 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
2865 * linux-sh-low.cc (sh_breakpoint_at): Update.
2866 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
2867 (sparc_store_gregset_from_stack): Update.
2868 (sparc_breakpoint_at): Update.
2869 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
2870 * linux-tile-low.cc (tile_breakpoint_at): Update.
2871 * linux-x86-low.cc (x86_breakpoint_at): Update.
2872 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
2873 * mem-brea.cc (insert_memory_breakpoint): Update.
2874 (validate_inserted_breakpoint): Update.
2875 * target.cc (read_inferior_memory): Update.
2876 (target_write_memory): Update.
2877 * linux-low.cc (linux_target_ops): Update.
2878 (linux_read_memory): Make a wrapper around the read_memory target
2880 (linux_process_target::read_memory): Rename from linux_read_memory.
2881 (linux_write_memory): Turn into ...
2882 (linux_process_target::write_memory): ... this.
2883 * linux-low.h (class linux_process_target): Update.
2884 * lynx-low.cc (lynx_target_ops): Update.
2885 (lynx_read_memory): Turn into ...
2886 (lynx_process_target::read_memory): ... this.
2887 (lynx_write_memory): Turn into ...
2888 (lynx_process_target::write_memory): ... this.
2889 * lynx-low.h (class lynx_process_target): Update.
2890 * nto-low.cc (nto_target_ops): Update.
2891 (nto_read_memory): Turn into ...
2892 (nto_process_target::read_memory): ... this.
2893 (nto_write_memory): Turn into ...
2894 (nto_process_target::write_memory): ... this.
2895 * nto-low.h (class nto_process_target): Update.
2896 * win32-low.cc (win32_target_ops): Update.
2897 (win32_read_inferior_memory): Turn into ...
2898 (win32_process_target::read_memory): ... this.
2899 (win32_write_inferior_memory): Turn into ...
2900 (win32_process_target::write_memory): ... this.
2901 * win32-low.h (class win32_process_target): Update.
2903 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2905 Turn process_stratum_target's prepare_to_access_memory and
2906 done_accessing_memory ops into methods of process_target.
2908 * target.h (struct process_stratum_target): Remove the target ops.
2909 (class process_target): Add the target ops.
2910 * target.cc (process_target::prepare_to_access_memory): Define.
2911 (process_target::done_accessing_memory): Define.
2912 (prepare_to_access_memory): Update.
2913 (done_accessing_memory): Update.
2915 Update the derived classes and callers below.
2917 * linux-low.cc (linux_target_ops): Update.
2918 (linux_prepare_to_access_memory): Turn into ...
2919 (linux_process_target::prepare_to_access_memory): ... this.
2920 (linux_done_accessing_memory): Turn into ...
2921 (linux_process_target::done_accessing_memory): ... this.
2922 * linux-low.h (class linux_process_target): Update.
2923 * lynx-low.cc (lynx_target_ops): Update.
2924 * nto-low.cc (nto_target_ops): Update.
2925 * win32-low.cc (win32_target_ops): Update.
2927 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2929 Turn process_stratum_target's fetch_registers and store_registers
2930 ops into methods of process_target.
2932 * target.h (struct process_stratum_target): Remove the target ops.
2933 (class process_target): Add the target ops.
2934 (fetch_inferior_registers): Update the macro.
2935 (store_inferior_registers): Update the macro.
2937 Update the derived classes and callers below.
2939 * linux-low.cc (linux_target_ops): Update.
2940 (linux_fetch_registers): Turn into ...
2941 (linux_process_target::fetch_registers): ... this.
2942 (linux_store_registers): Turn into ...
2943 (linux_process_target::store_registers): ... this.
2944 * linux-low.h (class linux_process_target): Update.
2945 * lynx-low.cc (lynx_target_ops): Update.
2946 (lynx_fetch_registers): Turn into ...
2947 (lynx_process_target::fetch_registers): ... this.
2948 (lynx_store_registers): Turn into ...
2949 (lynx_process_target::store_registers): ... this.
2950 * lynx-low.h (class lynx_process_target): Update.
2951 * nto-low.cc (nto_target_ops): Update.
2952 (nto_fetch_registers): Turn into ...
2953 (nto_process_target::fetch_registers): ... this.
2954 (nto_store_registers): Turn into ...
2955 (nto_process_target::store_registers): ... this.
2956 * nto-low.h (class nto_process_target): Update.
2957 * win32-low.cc (win32_target_ops): Update.
2958 (win32_fetch_inferior_registers): Turn into ...
2959 (win32_process_target::fetch_registers): ... this.
2960 (win32_store_inferior_registers): Turn into ...
2961 (win32_process_target::store_registers): ... this.
2962 * win32-low.h (class win32_process_target): Update.
2964 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2966 Turn process_stratum_target's wait op into a method of
2969 * target.h (struct process_stratum_target): Remove the target op.
2970 (class process_target): Add the target op.
2972 Update the derived classes and callers below.
2974 * target.cc (target_wait): Update.
2975 * linux-low.cc (linux_target_ops): Update.
2976 (linux_wait): Turn into ...
2977 (linux_process_target::wait): ... this.
2978 * linux-low.h (class linux_process_target): Update.
2979 * lynx-low.cc (lynx_target_ops): Update.
2980 (lynx_wait): Turn into ...
2981 (lynx_process_target::wait): ... this.
2982 * lynx-low.h (class lynx_process_target): Update.
2983 * nto-low.cc (nto_target_ops): Update.
2984 (nto_wait): Turn into ...
2985 (nto_process_target::wait): ... this.
2986 * nto-low.h (class nto_process_target): Update.
2987 * win32-low.cc (win32_target_ops): Update.
2988 (win32_wait): Turn into ...
2989 (win32_process_target::wait): ... this.
2990 (do_initial_child_stuff): Update.
2991 * win32-low.h (class win32_process_target): Update.
2993 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2995 Turn process_stratum_target's resume op into a method of
2998 * target.h (struct process_stratum_target): Remove the target op.
2999 (class process_target): Add the target op.
3001 Update the derived classes and callers below.
3003 * server.cc (resume): Update.
3004 * target.cc (target_stop_and_wait): Update.
3005 (target_continue_no_signal): Update.
3006 (target_continue): Update.
3007 * linux-low.cc (linux_target_ops): Update.
3008 (linux_resume): Turn into ...
3009 (linux_process_target::resume): ... this.
3010 * linux-low.h (class linux_process_target): Update.
3011 * lynx-low.cc (lynx_target_ops): Update.
3012 (lynx_resume): Turn into ...
3013 (lynx_process_target::resume): ... this.
3014 * lynx-low.h (class lynx_process_target): Update.
3015 * nto-low.cc (nto_target_ops): Update.
3016 (nto_resume): Turn into ...
3017 (nto_process_target::resume): ... this.
3018 * nto-low.h (class nto_process_target): Update.
3019 * win32-low.cc (win32_target_ops): Update.
3020 (win32_resume): Turn into ...
3021 (win32_process_target::resume): ... this.
3022 (win32_process_target::detach): Update.
3023 (do_initial_child_stuff): Update.
3024 * win32-low.h (class win32_process_target): Update.
3026 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3028 Turn process_stratum_target's thread_alive op into a method of
3031 * target.h (struct process_stratum_target): Remove the target op.
3032 (class process_target): Add the target op.
3033 (mythread_alive): Update the macro.
3035 Update the derived classes and callers below.
3037 * linux-low.cc (linux_target_ops): Update.
3038 (linux_thread_alive): Turn into ...
3039 (linux_process_target::thread_alive): ... this.
3040 (wait_for_sigstop): Update.
3041 * linux-low.h (class linux_process_target): Update.
3042 * lynx-low.cc (lynx_target_ops): Update.
3043 (lynx_thread_alive): Turn into ...
3044 (lynx_process_target::thread_alive): ... this.
3045 * lynx-low.h (class lynx_process_target): Update.
3046 * nto-low.cc (nto_target_ops): Update.
3047 (nto_thread_alive): Turn into ...
3048 (nto_process_target::thread_alive): ... this.
3049 * nto-low.h (class nto_process_target): Update.
3050 * win32-low.cc (win32_target_ops): Update.
3051 (win32_thread_alive): Turn into ...
3052 (win32_process_target::thread_alive): ... this.
3053 * win32-low.h (class win32_process_target): Update.
3055 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3057 Turn process_stratum_target's join op into a method of
3060 * target.h (struct process_stratum_target): Remove the target op.
3061 (class process_target): Add the target op.
3062 (join_inferior): Update the macro.
3064 Update the derived classes and callers below.
3066 * linux-low.cc (linux_target_ops): Update.
3067 (linux_join): Turn into ...
3068 (linux_process_target::join): ... this.
3069 * linux-low.h (class linux_process_target): Update.
3070 * lynx-low.cc (lynx_target_ops): Update.
3071 (lynx_join): Turn into ...
3072 (lynx_process_target::join): ... this.
3073 * lynx-low.h (class lynx_process_target): Update.
3074 * nto-low.cc (nto_target_ops): Update.
3075 (nto_process_target::join): Define.
3076 * nto-low.h (class nto_process_target): Update.
3077 * win32-low.cc (win32_target_ops): Update.
3078 (win32_join): Turn into ...
3079 (win32_process_target::join): ... this.
3080 * win32-low.h (class win32_process_target): Update.
3082 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3084 Turn process_stratum_target's mourn op into a method of
3087 * target.h (struct process_stratum_target): Remove the target op.
3088 (class process_target): Add the target op.
3090 Update the derived classes and callers below.
3092 * target.cc (target_mourn_inferior): Update.
3093 * linux-low.cc (linux_target_ops): Update.
3094 (linux_mourn): Turn into ...
3095 (linux_process_target::mourn): ... this.
3096 (handle_extended_wait): Update.
3097 (linux_process_target::kill): Update.
3098 (linux_process_target::detach): Update.
3099 * linux-low.h (class linux_process_target): Update.
3100 * lynx-low.cc (lynx_target_ops): Update.
3101 (lynx_mourn): Turn into ...
3102 (lynx_process_target::mourn): ... this.
3103 * lynx-low.h (class lynx_process_target): Update.
3104 * nto-low.cc (nto_target_ops): Update.
3105 (nto_mourn): Turn into ...
3106 (nto_process_target::mourn): ... this.
3107 * nto-low.h (class nto_process_target): Update.
3108 * win32-low.cc (win32_target_ops): Update.
3109 (win32_mourn): Turn into ...
3110 (win32_process_target::mourn): ... this.
3111 * win32-low.h (class win32_process_target): Update.
3113 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3115 Turn process_stratum_target's detach op into a method of
3118 * target.h (struct process_stratum_target): Remove the target op.
3119 (class process_target): Add the target op.
3120 (detach_inferior): Update the macro.
3122 Update the derived classes and callers below.
3124 * linux-low.cc (linux_target_ops): Update.
3125 (linux_detach): Turn into ...
3126 (linux_process_target::detach): ... this.
3127 * linux-low.h (class linux_process_target): Update.
3128 * lynx-low.cc (lynx_target_ops): Update.
3129 (lynx_detach): Turn into ...
3130 (lynx_process_target::detach): ... this.
3131 * lynx-low.h (class lynx_process_target): Update.
3132 * nto-low.cc (nto_target_ops): Update.
3133 (nto_detach): Turn into ...
3134 (nto_process_target::detach): ... this.
3135 * nto-low.h (class nto_process_target): Update.
3136 * win32-low.cc (win32_target_ops): Update.
3137 (win32_detach): Turn into ...
3138 (win32_process_target::detach): ... this.
3139 * win32-low.h (class win32_process_target): Update.
3141 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3143 Turn process_stratum_target's kill op into a method of
3146 * target.h (struct process_stratum_target): Remove the target op.
3147 (class process_target): Add the target op.
3149 Update the derived classes and callers below.
3151 * target.cc (kill_inferior): Update.
3152 * linux-low.cc (linux_target_ops): Update.
3153 (linux_kill): Turn into ...
3154 (linux_process_target::kill): ... this.
3155 * linux-low.h (class linux_process_target): Update.
3156 * lynx-low.cc (lynx_target_ops): Update.
3157 (lynx_kill): Turn into ...
3158 (lynx_process_target::kill): ... this.
3159 * lynx-low.h (class lynx_process_target): Update.
3160 * nto-low.cc (nto_target_ops): Update.
3161 (nto_kill): Turn into ...
3162 (nto_process_target::kill): ... this.
3163 * nto-low.h (class nto_process_target): Update.
3164 * win32-low.cc (win32_target_ops): Update.
3165 (win32_kill): Turn into ...
3166 (win32_process_target::kill): ... this.
3167 * win32-low.h (class win32_process_target): Update.
3169 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3171 Turn process_stratum_target's attach op into a method of
3174 * target.h (struct process_stratum_target): Remove the target op.
3175 (class process_target): Add the target op.
3176 (myattach): Update the macro.
3178 Update the derived classes and callers below.
3180 * linux-low.cc (linux_target_ops): Update.
3181 (linux_attach): Turn into ...
3182 (linux_process_target::attach): ... this.
3183 * linux-low.h (class linux_process_target): Update.
3184 * lynx-low.cc (lynx_target_ops): Update.
3185 (lynx_attach): Turn into ...
3186 (lynx_process_target::attach): ... this.
3187 * lynx-low.h (class lynx_process_target): Update.
3188 * nto-low.cc (nto_target_ops): Update.
3189 (nto_attach): Turn into ...
3190 (nto_process_target::attach): ... this.
3191 * nto-low.h (class nto_process_target): Update.
3192 * win32-low.cc (win32_target_ops): Update.
3193 (win32_attach): Turn into ...
3194 (win32_process_target::attach): ... this.
3195 * win32-low.h (class win32_process_target): Update.
3197 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3199 Turn process_stratum_target's post_create_inferior op into a method
3202 * target.h (struct process_stratum_target): Remove the target op.
3203 (class process_target): Add the target op.
3204 (target_post_create_inferior): Update the macro.
3205 * target.cc (process_target::post_create_inferior): Define.
3207 Update the derived classes and callers below.
3209 * linux-low.cc (linux_target_ops): Update.
3210 (linux_post_create_inferior): Turn into ...
3211 (linux_process_target::post_create_inferior): ... this.
3212 * linux-low.h (class linux_process_target): Update.
3213 * lynx-low.cc (lynx_target_ops): Update.
3214 * nto-low.cc (nto_target_ops): Update.
3215 * win32-low.cc (win32_target_ops): Update.
3217 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3219 Turn process_stratum_target's create_inferior op into a method of
3222 * target.h (struct process_stratum_target): Remove the target op.
3223 (class process_target): Add the target op.
3224 (create_inferior): Rename the macro to ...
3225 (target_create_inferior): ... this.
3227 Update the derived classes and callers below.
3229 * server.cc (handle_v_run): Update.
3230 (captured_main): Update.
3231 (process_serial_event): Update.
3232 * linux-low.cc (linux_target_ops): Update.
3233 (linux_create_inferior): Turn into ...
3234 (linux_process_target::create_inferior): ... this.
3235 * linux-low.h (class linux_process_target): Update.
3236 * lynx-low.cc (lynx_target_ops): Update.
3237 (lynx_create_inferior): Turn into ...
3238 (lynx_process_target::create_inferior): ... this.
3239 * lynx-low.h (class lynx_process_target): Update.
3240 * nto-low.cc (nto_target_ops): Update.
3241 (nto_create_inferior): Turn into ...
3242 (nto_process_target::create_inferior): ... this.
3243 * nto-low.h (class nto_process_target): Update.
3244 * win32-low.cc (win32_target_ops): Update.
3245 (win32_create_inferior): Turn into ...
3246 (win32_process_target::create_inferior): ... this.
3247 * win32-low.h (class win32_process_target): Update.
3249 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3251 * target.h (class process_target): New class definition.
3252 (struct process_stratum_target) <pt>: New field with type
3254 * linux-low.h (class linux_process_target): Define as a derived
3255 class of 'process_target'.
3256 * linux-low.cc (linux_target_ops): Add a linux_process_target*
3258 * lynx-low.h (class lynx_process_target): Define as a derived
3259 class of 'process_target'.
3260 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
3262 * nto-low.h (class nto_process_target): Define as a derived
3263 class of 'process_target'.
3264 * nto-low.cc (nto_target_ops): Add an nto_process_target*
3266 * win32-low.h (class win32_process_target): Define as a derived
3267 class of 'process_target'.
3268 * win32-low.cc (win32_target_ops): Add a win32_process_target*
3271 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
3273 * configure: Regenerate.
3275 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
3276 Andrew Burgess <andrew.burgess@embecosm.com>
3278 * linux-riscv-low.cc: New file.
3279 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
3280 and nat/riscv-linux-tdesc.c.
3281 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
3282 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
3285 2020-02-14 Tom Tromey <tom@tromey.com>
3287 * acinclude.m4: Don't include acx_configure_dir.m4.
3288 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
3289 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
3290 (all, install-only, uninstall, clean-info, clean)
3291 (maintainer-clean): Don't recurse.
3292 (subdir_do, all-lib): Remove.
3293 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
3295 (generated_files): Update.
3296 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
3297 * configure: Rebuild.
3298 * configure.ac: Don't configure gnulib or libiberty.
3301 2020-02-14 Eli Zaretskii <eliz@gnu.org>
3303 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
3304 preparing the command line for CreateProcess.
3305 (win32_create_inferior): Reflect the program name in debugging
3306 output that shows the process and its command line.
3308 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
3310 * Makefile.in: Rename source files from .c to .cc.
3311 * %.c: Rename to %.cc.
3312 * configure.ac: Rename server.c to server.cc.
3313 * configure: Re-generate.
3315 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
3317 * Makefile.in: Rename gdbsupport source files from .c to .cc.
3319 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
3321 * win32-low.c (win32_create_inferior): Set signal_pid.
3323 2020-02-12 Maciej W. Rozycki <macro@wdc.com>
3324 Pedro Alves <palves@redhat.com>
3326 Skip building gdbserver in a cross-configuration.
3327 * configure.srv: Set $gdbserver_host depending on whether $target
3328 is $host. Use $gdbserver_host instead of $host.
3330 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
3332 * configure: Re-generate.
3334 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
3336 * configure: Re-generate.
3338 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
3340 * acinclude.m4: Update warning.m4 path.
3342 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
3344 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
3345 (handle_exception): Set siginfo_er.
3346 (win32_xfer_siginfo): New function.
3348 2020-02-07 Tom Tromey <tom@tromey.com>
3349 Pedro Alves <palves@redhat.com>
3351 * README: Update build documentation.
3352 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
3354 * configure.ac: Update paths.
3355 * configure: Rebuild.
3356 * acinclude.m4: Update paths.
3357 * Makefile.in: Update include paths.
3358 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
3359 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
3360 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
3361 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
3362 (%-generated.c): Update paths.
3363 * Move entire directory from ../gdb/gdbserver.
3365 2020-01-29 Maciej W. Rozycki <macro@wdc.com>
3367 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
3369 2020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3371 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
3372 assignment instead of srv_linux_obj.
3374 2020-01-28 Hannes Domani <ssbssa@yahoo.de>
3376 * server.c (handle_qxfer_libraries): Write segment-address with
3379 2020-01-24 Hannes Domani <ssbssa@yahoo.de>
3381 * Makefile.in (install-strip): New target.
3382 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
3383 * aclocal.m4: Regenerate.
3384 * configure: Regenerate.
3385 * configure.ac: Add AM_PROG_INSTALL_STRIP.
3387 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
3389 * Makefile.in (SFILES): Adjust paths to point to real files.
3390 (OBS): Move waitstatus.o to target/waitstatus.o.
3391 (TAGS): Transform paths appropriately.
3393 (nat/%.o): ... this pattern rule.
3395 (target/%.o): ... this pattern rule.
3396 * configure.srv: Adjust paths throughout to include nat/ prefix
3397 with the revant files.
3398 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
3399 * configure: Regenerate.
3401 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
3403 * Makefile.in (TAGS): Remove config files from the recipe.
3405 2020-01-14 Tom Tromey <tom@tromey.com>
3407 * configure: Rebuild.
3408 * configure.ac: Remove any checks that were added to common.m4.
3409 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
3412 2020-01-14 Tom Tromey <tom@tromey.com>
3414 * server.h: Include config.h.
3415 * gdbreplay.c: Include config.h.
3416 * configure: Rebuild.
3417 * configure.ac: Don't source common.host.
3418 * acinclude.m4: Update path.
3419 * Makefile.in (INCSUPPORT): New variable.
3420 (INCLUDE_CFLAGS): Add INCSUPPORT.
3421 (SFILES): Update paths.
3422 (version-generated.c): Update path to create-version.sh.
3423 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
3425 2020-01-14 Tom Tromey <tom@tromey.com>
3427 * configure.ac (LIBS): Use WIN32APILIBS.
3428 (USE_WIN32API): Don't define.
3429 * configure: Rebuild.
3431 2020-01-14 Tom Tromey <tom@tromey.com>
3433 * configure: Rebuild.
3435 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
3437 * Makefile.in (%-generated.c): Remove rule for files from
3440 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
3442 * configure: Re-generate.
3444 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
3446 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
3448 * tracepoint.c (stop_tracing, flush_trace_buffer,
3449 about_to_request_buffer_space, get_trace_state_variable_value,
3450 set_trace_state_variable_value, gdb_collect): Add declaration.
3452 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
3454 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
3455 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
3456 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
3457 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
3458 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
3461 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
3463 * inferiors.c: Include gdbsupport/common-inferior.h.
3465 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
3467 * hostio-errno.c: Include hostio.h.
3469 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
3471 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
3474 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3476 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
3477 * linux-arm-tdesc.h: Include arch/arm.h.
3479 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3481 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
3483 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3485 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
3486 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
3488 2020-01-10 Pedro Alves <palves@redhat.com>
3490 * fork-child.c (post_fork_inferior): Pass target down to
3492 * inferiors.c (switch_to_thread): Add process_stratum_target
3494 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
3495 * nto-low.c (nto_target_ops): Now a process_stratum_target.
3496 * linux-low.c (linux_target_ops): Now a process_stratum_target.
3497 * remote-utils.c (prepare_resume_reply): Pass the target to
3499 * target.c (the_target): Now a process_stratum_target.
3500 (done_accessing_memory): Pass the target to switch_to_thread.
3501 (set_target_ops): Ajust to use process_stratum_target.
3502 * target.h (struct target_ops): Rename to ...
3503 (struct process_stratum_target): ... this.
3504 (the_target, set_target_ops): Adjust.
3505 (prepare_to_access_memory): Adjust comment.
3506 * win32-low.c (child_xfer_memory): Adjust to use
3507 process_stratum_target.
3508 (win32_target_ops): Now a process_stratum_target.
3510 2020-01-06 Eli Zaretskii <eliz@gnu.org>
3511 Pedro Alves <palves@redhat.com>
3513 * win32-low.c (get_child_debug_event): Extract the fatal exception
3514 from the exit status and convert to the equivalent Posix signal
3516 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
3517 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
3519 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
3521 * Makefile.in: Use INSTALL_PROGRAM_ENV.
3523 2020-01-01 Joel Brobecker <brobecker@adacore.com>
3525 * server.c (gdbserver_version): Change copyright year to 2020.
3526 * gdbreplay.c (gdbreplay_version): Likewise.
3528 2019-12-19 Christian Biesinger <cbiesinger@google.com>
3530 * configure: Regenerate.
3531 * configure.ac: Quote variable arguments of test.
3533 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
3535 * Makefile.in: Fix build with GNU Make 3.81
3537 2019-12-16 Tom Tromey <tromey@adacore.com>
3539 * server.c (get_exec_file): Constify result.
3541 2019-12-10 Christian Biesinger <cbiesinger@google.com>
3543 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
3544 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
3545 * config.in: Regenerate.
3546 * configure: Regenerate.
3547 * configure.ac: Don't check for strerror.
3548 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
3549 Call safe_strerror instead of strerror.
3550 * server.h (strerror): Remove this now-unnecessary declaration.
3551 * tracepoint.c (init_named_socket): Call safe_strerror instead of
3553 (gdb_agent_helper_thread): Likewise.
3554 * utils.c (perror_with_name): Likewise.
3556 2019-11-26 Tom Tromey <tom@tromey.com>
3558 * configure, config.in: Rebuild.
3560 2019-11-26 Tom Tromey <tom@tromey.com>
3562 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
3563 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
3565 * configure, config.in: Rebuild.
3567 2019-11-26 Tom Tromey <tom@tromey.com>
3569 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
3570 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
3571 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
3572 * acinclude.m4: Include ax_pthread.m4.
3573 * config.in, configure: Rebuild.
3575 2019-11-26 Christian Biesinger <cbiesinger@google.com>
3577 * debug.c (debug_set_output): Call safe_strerror instead of
3579 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
3580 (linux_kill_one_lwp): Likewise.
3581 (linux_detach_one_lwp): Likewise.
3582 (linux_wait_for_event_filtered): Likewise.
3583 (store_register): Likewise.
3584 * lynx-low.c (lynx_attach): Likewise.
3585 * mem-break.c (insert_memory_breakpoint): Likewise.
3586 (remove_memory_breakpoint): Likewise.
3587 (delete_fast_tracepoint_jump): Likewise.
3588 (set_fast_tracepoint_jump): Likewise.
3589 (uninsert_fast_tracepoint_jumps_at): Likewise.
3590 (reinsert_fast_tracepoint_jumps_at): Likewise.
3591 * nto-low.c (nto_xfer_memory): Likewise.
3592 (nto_resume): Likewise.
3594 2019-11-20 Luis Machado <luis.machado@linaro.org>
3596 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
3597 instead of register count.
3598 * tdesc.c (tdesc_contains_feature): New function.
3599 * tdesc.h (tdesc_contains_feature): New prototype.
3601 2019-11-15 Christian Biesinger <cbiesinger@google.com>
3603 * Makefile.in: Add safe-strerror.c.
3604 * configure: Regenerate.
3605 * configure.ac: Don't source common.host.
3607 2019-11-15 Christian Biesinger <cbiesinger@google.com>
3609 * config.in: Regenerate.
3610 * configure: Regenerate.
3612 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
3614 * ax.c (ax_printf): Handle size_t_arg.
3616 2019-11-06 Christian Biesinger <cbiesinger@google.com>
3618 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
3619 * mi/mi-main.c (output_cores): Likewise.
3620 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
3621 (linux_xfer_osdata_modules): Likewise.
3622 * remote.c (register_remote_support_xml): Likewise.
3623 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
3624 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
3626 2019-11-01 Christian Biesinger <cbiesinger@google.com>
3628 * configure: Regenerate.
3629 * configure.ac: Remove check for strerror_r.
3631 2019-10-31 Christian Biesinger <cbiesinger@google.com>
3633 * config.in: Regenerate.
3634 * configure: Regenerate.
3635 * configure.ac: Also check for strerror_r.
3637 2019-10-31 Christian Biesinger <cbiesinger@google.com>
3639 * ax.h (debug_agent): Remove duplicate declaration.
3641 2019-10-26 Tom de Vries <tdevries@suse.de>
3643 * linux-aarch64-low.c: Fix typos in comments.
3644 * linux-arm-low.c: Same.
3645 * linux-low.c: Same.
3646 * linux-ppc-low.c: Same.
3647 * proc-service.c: Same.
3650 * tracepoint.c: Same.
3651 * win32-low.c: Same.
3653 2019-10-25 Tom Tromey <tromey@adacore.com>
3655 * utils.c (xstrdup): Remove.
3657 2019-10-23 Tom Tromey <tom@tromey.com>
3659 * configure, config.in: Rebuild.
3661 2019-10-23 Tom Tromey <tom@tromey.com>
3663 * configure: Rebuild.
3664 * acinclude.m4: Use m4_include, not sinclude.
3666 2019-10-17 Tom Tromey <tromey@adacore.com>
3668 * configure: Rebuild.
3669 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
3670 in AC_CONFIG_FILES invocation.
3671 * Makefile.in (stamp-h, Makefile): Use new-style config.status
3674 2019-10-16 Christian Biesinger <cbiesinger@google.com>
3676 * server.c: Include xml-builtin.h.
3677 (get_xml_features): Don't declare xml_builtins here.
3679 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
3681 * Makefile.in: Remove references to vec-ipa.o.
3683 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
3685 * Makefile.in: Remove references to vec.c.
3687 2019-10-02 Christian Biesinger <cbiesinger@google.com>
3689 * server.c (server_waiting): Change to bool.
3690 (extended_protocol): Likewise.
3691 (response_needed): Likewise.
3692 (exit_requested): Likewise.
3693 (run_once): Likewise.
3694 (report_no_resumed): Likewise.
3695 (non_stop): Likewise.
3696 (disable_packet_vCont): Likewise.
3697 (disable_packet_Tthread): Likewise.
3698 (disable_packet_qC): Likewise.
3699 (disable_packet_qfThreadInfo): Likewise.
3700 (handle_general_set): Update.
3701 (handle_detach): Update.
3702 (handle_monitor_command): Update.
3703 (handle_query): Update.
3704 (captured_main): Update.
3705 (process_serial_event): Update.
3706 * server.h (server_waiting): Change to bool.
3707 (disable_packet_vCont): Likewise.
3708 (disable_packet_Tthread): Likewise.
3709 (disable_packet_qC): Likewise.
3710 (disable_packet_qfThreadInfo): Likewise.
3711 (run_once): Likewise.
3712 (non_stop): Likewise.
3713 * target.c (target_stop_and_wait): Update.
3715 2019-10-02 Tom Tromey <tromey@adacore.com>
3717 * Makefile.in (SFILES): Add common-inferior.c.
3718 (OBS): Add common-inferior.o.
3719 * server.c (startup_with_shell): Don't define.
3721 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3723 * linux-low.c (linux_low_read_btrace): Update for change to
3726 2019-09-20 Christian Biesinger <cbiesinger@google.com>
3728 * debug.c (debug_threads): Remove comment in favor of the header.
3729 * debug.h (using_threads): Add declaration.
3730 (debug_threads): Add comment.
3731 * linux-aarch64-low.c: Include debug.h and remove declaration of
3733 * nto-low.c: Likewise.
3734 * remote-utils.c: Likewise.
3735 * thread-db.c: Likewise.
3737 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
3739 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
3740 and powerpc-cell64l-ipa.o.
3741 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
3742 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
3743 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
3746 * spu-low.c: Remove file.
3748 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
3749 (parse_spufs_run): Remove.
3750 (ppc_get_pc): Remove Cell/B.E. support.
3751 (ppc_set_pc): Likewise.
3752 (ppc_breakpoint_at): Likewise.
3753 (ppc_arch_setup): Likewise.
3754 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
3755 tdesc_powerpc_cell32l.
3756 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
3757 or init_registers_powerpc_cell32l.
3758 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
3759 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
3760 or init_registers_powerpc_cell32l.
3761 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
3762 (init_registers_powerpc_cell32l): Remove prototype.
3763 (init_registers_powerpc_cell64l): Likewise.
3765 * target.h (struct target_ops): Remove qxfer_spu member.
3766 * server.c (handle_qxfer_spu): Remove.
3767 (qxfer_packets): Remove entry for "spu".
3768 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
3769 * linux-low.c (SPUFS_MAGIC): Remove.
3770 (spu_enumerate_spu_ids): Remove.
3771 (linux_qxfer_spu): Remove.
3772 (linux_target_ops): Remove qxfer_spu member.
3773 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
3774 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
3775 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
3777 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
3779 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
3780 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
3781 * config.in: Regenerate.
3782 * configure: Regenerate.
3784 2019-08-15 Tom Tromey <tromey@adacore.com>
3786 * target.c (target_write_memory): Use gdb::byte_vector.
3788 2019-08-15 Tom Tromey <tromey@adacore.com>
3790 * tracepoint.c (write_inferior_data_pointer)
3791 (write_inferior_integer, write_inferior_int8)
3792 (write_inferior_uinteger, m_tracepoint_action_download)
3793 (r_tracepoint_action_download, x_tracepoint_action_download)
3794 (l_tracepoint_action_download, clear_inferior_trace_buffer)
3795 (download_agent_expr, download_tracepoint_1)
3796 (download_trace_state_variables, upload_fast_traceframes): Update.
3797 * server.c (gdb_write_memory): Update.
3798 * remote-utils.c (relocate_instruction): Update.
3799 * proc-service.c (ps_pdwrite): Update.
3800 * mem-break.c (remove_memory_breakpoint)
3801 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
3802 (uninsert_fast_tracepoint_jumps_at)
3803 (reinsert_fast_tracepoint_jumps_at): Update.
3804 * linux-x86-low.c (append_insns)
3805 (i386_install_fast_tracepoint_jump_pad)
3806 (amd64_write_goto_address, i386_write_goto_address): Update.
3807 * linux-s390-low.c (append_insns, s390_write_goto_address):
3809 * linux-ppc-low.c (ppc_relocate_instruction)
3810 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
3811 (ppc_write_goto_address): Update.
3812 * linux-aarch64-low.c (append_insns): Update.
3813 * target.h (struct target_ops): Update.
3814 (write_inferior_memory): Don't declare.
3815 * target.c (target_write_memory): Rename from
3816 write_inferior_memory. Remove old target_write_memory.
3818 2019-08-15 Tom Tromey <tromey@adacore.com>
3820 * target.c (write_inferior_memory): Use std::vector.
3822 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
3825 * configure.ac: Drop enable-libmcheck support.
3826 * configure, config.in: Rebuild.
3827 * acinclude.m4: Don't include it.
3829 2019-07-19 Alan Hayward <alan.hayward@arm.com>
3831 * configure.srv: Remove Arm xml files.
3833 2019-07-19 Alan Hayward <alan.hayward@arm.com>
3835 * configure.srv: Add new files. Remove xml generated files.
3836 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
3838 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
3839 * linux-aarch32-tdesc.c: New file.
3840 * linux-aarch32-tdesc.h: New file.
3841 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
3842 * linux-arm-low.c (init_registers_arm, tdesc_arm)
3843 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
3844 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
3845 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
3846 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
3847 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
3848 (arm_read_description): Call arm_linux_read_description.
3849 (initialize_low_arch): Don't init registers.
3850 * linux-arm-tdesc.c: New file.
3851 * linux-arm-tdesc.h: New file.
3853 2019-07-10 Alan Hayward <alan.hayward@arm.com>
3855 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
3856 Move counter inside for.
3857 (arm_read_description): Check ptrace earlier.
3858 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
3860 2019-07-09 Tom Tromey <tom@tromey.com>
3862 * configure: Rebuild.
3863 * configure.ac: Change common to gdbsupport.
3864 * acinclude.m4: Change common to gdbsupport.
3865 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
3866 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
3867 common to gdbsupport.
3868 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
3869 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
3870 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
3871 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
3872 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
3873 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
3874 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
3875 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
3876 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
3877 common to gdbsupport.
3879 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3881 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
3883 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
3885 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3887 * configure.srv: Remove legacy xml.
3888 * linux-aarch64-low.c (initialize_low_arch): Remove
3889 initialize_low_tdesc call.
3890 * linux-aarch64-tdesc-selftest.c: Remove file.
3891 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
3892 * linux-x86-low.c (initialize_low_arch): Remove
3893 initialize_low_tdesc call.
3894 * linux-x86-tdesc-selftest.c: Remove file.
3895 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
3897 2019-06-20 Tom de Vries <tdevries@suse.de>
3899 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
3900 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
3902 2019-06-19 Tom de Vries <tdevries@suse.de>
3904 * debug.h (debug_write): Change return type to ssize_t.
3905 * debug.c (debug_write): Same.
3907 2019-06-14 Tom Tromey <tom@tromey.com>
3909 * configure.ac: Use new path to gnulib.
3910 * configure: Rebuild.
3911 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
3914 2019-06-11 Tom Tromey <tom@tromey.com>
3916 * Makefile.in (SFILES): Add alloc.c.
3918 (IPA_OBJS): Add alloc-ipa.o.
3919 (alloc-ipa.o): New target.
3920 (%.o: ../%.c): New pattern rule.
3922 2019-06-10 Tom Tromey <tromey@adacore.com>
3924 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
3925 end warning with a newline.
3926 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
3928 * thread-db.c (attach_thread): Don't end warning with a newline.
3929 (thread_db_notice_clone): Likewise.
3930 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
3932 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
3933 end warning with a newline.
3935 2019-06-04 Pedro Alves <palves@redhat.com>
3937 * server.c (captured_main): Use make_unique_xstrdup.
3939 2019-06-02 Tom Tromey <tom@tromey.com>
3941 * gdbreplay.c (fromhex): Remove.
3942 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
3944 2019-05-29 Tom Tromey <tromey@adacore.com>
3946 * configure: Rebuild.
3948 2019-05-06 Kevin Buettner <kevinb@redhat.com>
3950 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
3951 sign extension code on 32-bit builds.
3953 2019-05-03 Eli Zaretskii <eliz@gnu.org>
3956 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
3958 2019-04-19 Tom Tromey <tom@tromey.com>
3960 * server.c (struct vstop_notif): Derive from notif_event.
3962 (queue_stop_reply): Update.
3963 (remove_all_on_match_ptid): Change type. Rewrite.
3964 (discard_queued_stop_replies): Rewrite.
3965 (in_queued_stop_replies_ptid): Change type.
3966 (in_queued_stop_replies): Rewrite.
3967 (notif_stop): Update.
3968 (queue_stop_reply_callback): Update.
3969 (captured_main): Don't call initialize_notif.
3970 (push_stop_notification): Update.
3971 * notif.c (notif_write_event, handle_notif_ack)
3972 (notif_event_enque, notif_push): Update.
3973 (notif_event_xfree, initialize_notif): Remove.
3974 * notif.h (struct notif_event): Include <list>, not
3976 (struct notif_server) <queue>: Now a std::list.
3977 (notif_event_p): Remove typedef.
3978 (initialize_notif): Don't declare.
3979 (struct notif_event): Add virtual destructor.
3981 2019-04-17 Alan Hayward <alan.hayward@arm.com>
3983 * ax.c (ax_vdebug): Call debug_printf.
3984 * debug.c (debug_write): New function.
3985 * debug.h (debug_write): New declaration.
3986 * linux-low.c (sigchld_handler): Call debug_write.
3988 2019-04-17 Alan Hayward <alan.hayward@arm.com>
3990 * debug.c (debug_set_output): New function.
3991 (debug_vprintf): Send output to debug_file.
3992 (debug_flush): Likewise.
3993 * debug.h (debug_set_output): New declaration.
3994 * server.c (handle_monitor_command): Add debug-file option.
3995 (captured_main): Likewise.
3997 2019-04-17 Alan Hayward <alan.hayward@arm.com>
3999 * debug.c (remote_debug): Add definition.
4000 * debug.h (remote_debug): Add declaration.
4001 * hostio.c (remote_debug): Remove declaration.
4002 * remote-utils.c (struct ui_file): Likewise.
4003 (remote_debug): Likewise.
4004 * remote-utils.h (remote_debug): Likewise,
4005 * server.c (remote_debug): Remove definition.
4007 2019-04-10 Kevin Buettner <kevinb@redhat.com>
4009 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
4010 when using a 64-bit gdbserver.
4012 2019-04-09 Tom Tromey <tromey@adacore.com>
4014 * linux-low.c (select_event_lwp): Use find_thread_in_random.
4016 2019-04-08 Tom Tromey <tom@tromey.com>
4018 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
4020 (linux_resume_one_lwp): Likewise.
4022 2019-04-08 Tom Tromey <tom@tromey.com>
4024 * gdbreplay.c: Update.
4025 * linux-low.c: Update.
4028 2019-04-08 Tom Tromey <tom@tromey.com>
4030 * server.c: Use C++ exception handling.
4031 * linux-low.c: Use C++ exception handling.
4032 * gdbreplay.c: Use C++ exception handling.
4034 2019-04-08 Tom Tromey <tom@tromey.com>
4036 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
4037 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
4038 (captured_main, main): Update.
4039 * gdbreplay.c (main): Update.
4041 2019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4043 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
4044 value in argument pointer, return 1 if the entry is found and 0
4045 otherwise. Move comment.
4046 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
4047 * linux-low.h (linux_get_auxv): Declare.
4048 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
4050 2019-04-05 Tom Tromey <tromey@adacore.com>
4052 * server.c (gdbserver_usage): Use upper-case for metasyntactic
4055 2019-03-28 Alan Hayward <alan.hayward@arm.com>
4057 * linux-low.c (AT_HWCAP2): Add define if not already included.
4059 2019-03-26 Alan Hayward <alan.hayward@arm.com>
4061 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
4062 (aarch64_arch_setup): Call linux_get_hwcap.
4063 * linux-arm-low.c (arm_get_hwcap): Remove function.
4064 (arm_read_description): Call linux_get_hwcap.
4065 * linux-low.c (linux_get_auxv): New function.
4066 (linux_get_hwcap): Likewise.
4067 (linux_get_hwcap2): Likewise.
4068 * linux-low.h (linux_get_hwcap): New declaration.
4069 (linux_get_hwcap2): Likewise.
4070 * linux-ppc-low.c (ppc_get_auxv): Remove function.
4071 (ppc_arch_setup): Call linux_get_hwcap.
4072 * linux-s390-low.c (s390_get_hwcap): Remove function.
4073 (s390_arch_setup): Call linux_get_hwcap.
4075 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4076 Jiong Wang <jiong.wang@arm.com>
4078 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
4079 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
4081 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
4083 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4084 Jiong Wang <jiong.wang@arm.com>
4086 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
4087 (aarch64_get_hwcap): New function.
4088 (aarch64_arch_setup): Read APIA hwcap.
4090 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4091 Jiong Wang <jiong.wang@arm.com>
4093 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
4094 (initialize_low_tracepoint): Likewise.
4095 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
4096 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
4097 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
4098 (aarch64_linux_read_description): Likewise.
4099 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
4101 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4103 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
4104 i386_create_target_description for 'segments' parameter.
4105 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
4106 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
4107 * win32-i386-low.c (i386_arch_setup): Likewise.
4109 2019-03-12 Tom Tromey <tromey@adacore.com>
4111 * linux-low.c (iterate_over_lwps): Update.
4113 2019-03-06 Tom Tromey <tom@tromey.com>
4115 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
4116 (captured_main): Use SCOPE_EXIT.
4118 2019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
4120 * configure.srv: Use '$enable_unittest' instead of '$development'
4121 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
4124 2019-02-27 Tom Tromey <tromey@adacore.com>
4126 * gdbreplay.c (logchar): Handle \r\n.
4128 2019-02-07 Alan Hayward <alan.hayward@arm.com>
4130 * linux-low.c (linux_attach): Add process before lwp.
4131 * server.c (attach_inferior): Check if already attached.
4133 2019-02-07 Tom Tromey <tom@tromey.com>
4135 * x86-tdesc.h: Rename include guard.
4136 * x86-low.h: Add include guard.
4137 * wincecompat.h: Rename include guard.
4138 * win32-low.h: Add include guard.
4139 * utils.h: Rename include guard.
4140 * tracepoint.h: Rename include guard.
4141 * tdesc.h: Rename include guard.
4142 * target.h: Rename include guard.
4143 * server.h: Rename include guard.
4144 * remote-utils.h: Rename include guard.
4145 * regcache.h: Rename include guard.
4146 * nto-low.h: Rename include guard.
4147 * notif.h: Add include guard.
4148 * mem-break.h: Rename include guard.
4149 * lynx-low.h: Add include guard.
4150 * linux-x86-tdesc.h: Add include guard.
4151 * linux-s390-tdesc.h: Add include guard.
4152 * linux-ppc-tdesc-init.h: Add include guard.
4153 * linux-low.h: Add include guard.
4154 * linux-aarch64-tdesc.h: Add include guard.
4155 * linux-aarch32-low.h: Add include guard.
4156 * inferiors.h: Rename include guard.
4157 * i387-fp.h: Rename include guard.
4158 * hostio.h: Rename include guard.
4159 * gdbthread.h: Rename include guard.
4160 * gdb_proc_service.h: Rename include guard.
4161 * event-loop.h: Rename include guard.
4162 * dll.h: Rename include guard.
4163 * debug.h: Rename include guard.
4164 * ax.h: Rename include guard.
4166 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
4169 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
4170 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
4172 2019-01-25 Tom Tromey <tom@tromey.com>
4174 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
4176 2019-01-25 Tom Tromey <tom@tromey.com>
4178 * win32-low.c: Fix common/ includes.
4179 * win32-i386-low.c: Fix common/ includes.
4180 * tracepoint.c: Fix common/ includes.
4181 * thread-db.c: Fix common/ includes.
4182 * target.h: Fix common/ includes.
4183 * symbol.c: Fix common/ includes.
4184 * spu-low.c: Fix common/ includes.
4185 * server.h: Fix common/ includes.
4186 * server.c: Fix common/ includes.
4187 * remote-utils.c: Fix common/ includes.
4188 * regcache.h: Fix common/ includes.
4189 * regcache.c: Fix common/ includes.
4190 * nto-x86-low.c: Fix common/ includes.
4191 * notif.h: Fix common/ includes.
4192 * mem-break.h: Fix common/ includes.
4193 * lynx-low.c: Fix common/ includes.
4194 * lynx-i386-low.c: Fix common/ includes.
4195 * linux-x86-tdesc-selftest.c: Fix common/ includes.
4196 * linux-x86-low.c: Fix common/ includes.
4197 * linux-low.c: Fix common/ includes.
4198 * inferiors.h: Fix common/ includes.
4199 * i387-fp.c: Fix common/ includes.
4200 * hostio.c: Fix common/ includes.
4201 * hostio-errno.c: Fix common/ includes.
4202 * gdbthread.h: Fix common/ includes.
4203 * gdbreplay.c: Fix common/ includes.
4204 * fork-child.c: Fix common/ includes.
4205 * event-loop.c: Fix common/ includes.
4207 (enum gdb_agent_op): Fix common/ includes.
4209 2019-01-21 Tom Tromey <tom@tromey.com>
4211 * tracepoint.c: Fix includes.
4212 * remote-utils.c: Fix includes.
4213 * linux-x86-low.c: Fix includes.
4215 2019-01-01 Joel Brobecker <brobecker@adacore.com>
4217 * gdbreplay.c (gdbreplay_version): Update copyright year in
4219 * server.c (gdbserver_version): Likewise.
4221 2018-12-05 Alan Hayward <alan.hayward@arm.com>
4223 * linux-low.c (add_lwp): Switch ordering.
4225 2018-11-29 Tom Tromey <tom@tromey.com>
4227 * win32-low.c (win32_join): Take pid, not process.
4228 * target.h (struct target_ops) <join>: Change argument type.
4229 (join_inferior): Change argument name.
4230 * spu-low.c (spu_join): Take pid, not process.
4231 * server.c (handle_detach): Preserve pid before destroying
4233 * lynx-low.c (lynx_join): Take pid, not process.
4234 * linux-low.c (linux_join): Take pid, not process.
4236 2018-11-23 Alan Hayward <alan.hayward@arm.com>
4238 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
4239 (aarch64_cannot_fetch_register): Likewise.
4240 (struct linux_target_ops): Update references.
4242 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4244 * linux-ppc-low.c: Include nat/linux-ptrace.h.
4246 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4248 * configure.srv (ipa_ppc_linux_regobj): Add
4249 powerpc-isa207-htm-vsx32l-ipa.o and
4250 powerpc-isa207-htm-vsx64l-ipa.o.
4251 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
4252 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
4253 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
4254 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
4255 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
4256 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
4257 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
4258 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
4259 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
4260 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
4261 (init_registers_powerpc_isa207_htm_vsx32l)
4262 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
4263 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
4264 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
4265 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
4266 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
4267 (ppc_store_tm_ctarregset): New functions.
4268 (ppc_regsets): Add entries for HTM regsets.
4269 (ppc_arch_setup): Set htm in features struct when needed. Set
4270 sizes for the HTM regsets.
4271 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
4272 (initialize_low_arch): Call
4273 init_registers_powerpc_isa207_htm_vsx32l and
4274 init_registers_powerpc_isa207_htm_vsx64l.
4275 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
4276 PPC_TDESC_ISA207_HTM_VSX.
4277 (initialize_low_tracepoint): Call
4278 init_registers_powerpc_isa207_htm_vsx32l and
4279 init_registers_powerpc_isa207_htm_vsx64l.
4281 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4283 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
4284 rs6000/power-linux-pmu.xml to srv_xmlfiles.
4285 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
4286 (ppc_store_pmuregset): New functions.
4287 (ppc_regsets): Add entries for ebb and pmu regsets.
4288 (ppc_arch_setup): Set isa207 in features struct if the ebb and
4289 pmu regsets are available. Set sizes for these regsets.
4291 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4293 * configure.srv (ipa_ppc_linux_regobj): Add
4294 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
4295 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
4296 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
4297 rs6000/powerpc-isa207-vsx32l.xml, and
4298 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
4299 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
4300 <PPC_TDESC_ISA207_VSX>: New enum value.
4301 (init_registers_powerpc_isa207_vsx32l): Declare.
4302 (init_registers_powerpc_isa207_vsx64l): Declare.
4303 * linux-ppc-low.c (ppc_fill_tarregset): New function.
4304 (ppc_store_tarregset): New function.
4305 (ppc_regsets): Add entry for the TAR regset.
4306 (ppc_arch_setup): Set isa207 in features struct when needed. Set
4307 size for the TAR regsets.
4308 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
4309 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
4310 and init_registers_powerpc_isa207_vsx64l.
4311 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
4312 (initialize_low_tracepoint): Call
4313 init_registers_powerpc_isa207_vsx32l and
4314 init_registers_powerpc_isa207_vsx64l.
4316 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4317 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4319 * configure.srv (ipa_ppc_linux_regobj): Add
4320 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
4321 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
4322 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
4323 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
4324 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
4325 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
4326 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
4327 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
4328 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
4329 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
4330 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
4331 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
4332 (ppc_hwcap): Add comment.
4333 (ppc_hwcap2): New global.
4334 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
4335 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
4336 (ppc_regsets): Add entries for the DSCR and PPR regsets.
4337 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
4338 when needed. Set sizes for the the DSCR and PPR regsets.
4339 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
4340 (initialize_low_arch): Call
4341 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
4342 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
4343 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
4344 PPC_TDESC_ISA205_PPR_DSCR_VSX.
4345 (initialize_low_tracepoint): Call
4346 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
4347 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
4349 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4351 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
4353 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
4354 Simon Marchi <simark@simark.ca>
4356 * acinclude.m4: Include "../selftest.m4".
4357 * configure: Regenerate.
4358 * configure.ac: Use "GDB_AC_SELFTEST".
4359 * configure.srv: Use "$enable_unittests" instead of
4360 "$development" when checking whether unit tests have been
4362 * server.c (captured_main): Update message informing that
4363 selftests have been disabled.
4365 2018-10-04 Tom Tromey <tom@tromey.com>
4367 * configure: Rebuild.
4369 2018-10-04 Tom Tromey <tom@tromey.com>
4371 * server.c (handle_status): Rename inner "thread".
4372 (process_serial_event): Declare "res" in 'm' case.
4373 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
4374 (iterate_over_lwps): Rename inner "thread".
4375 (linux_qxfer_libraries_svr4): Rename inner "len".
4376 * gdbthread.h (find_thread_in_random): Rename inner "thread".
4378 2018-10-01 Gary Benson <gbenson@redhat.com>
4380 * gdb_proc_service.h: Moved common code to
4381 common/gdb_proc_service.h.
4383 2018-10-01 Gary Benson <gbenson@redhat.com>
4385 * gdb_proc_service.h: Synchronize comments and whitespace with
4386 GDB's version of this file.
4388 2018-09-25 Tom Tromey <tom@tromey.com>
4390 * configure: Rebuild.
4391 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
4393 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
4395 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
4396 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
4397 ($(IPA_LIB)): Sort IPA_OBJS.
4399 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
4401 * Makefile.in: Remove references to $(ADD_DEPS).
4403 2018-09-16 Tom Tromey <tom@tromey.com>
4405 * remote-utils.c (remote_open): Use GNU style for metasyntactic
4407 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
4410 2018-09-05 Tom Tromey <tom@tromey.com>
4412 * configure: Rebuild.
4414 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
4417 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
4419 2018-08-27 Tom Tromey <tom@tromey.com>
4422 * configure: Rebuild.
4424 2018-08-27 Tom Tromey <tom@tromey.com>
4426 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
4427 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
4428 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
4429 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
4430 (s390x_emit_stack_adjust): Add casts to unsigned char.
4432 2018-08-22 Simon Marchi <simon.marchi@ericsson.com>
4436 * server.h (struct client_state) <disable_randomization>:
4439 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4441 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
4443 (mips_supply_ptrace_register): Likewise.
4445 2018-07-22 Tom Tromey <tom@tromey.com>
4447 * configure: Rebuild.
4449 2018-07-22 Tom Tromey <tom@tromey.com>
4451 * win32-low.c (win32_create_inferior): Remove unused variables.
4452 * gdbreplay.c (remote_open): Remove unused variable.
4453 * remote-utils.c (remote_prepare): Remove unused variable.
4454 * x86-tdesc.h (X86_TDESC_H): Define.
4455 (amd64_expedite_regs): Define conditionally.
4456 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
4457 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
4458 * remote-utils.c (readchar): Remove unused variable.
4460 2018-07-13 Pedro Alves <palves@redhat.com>
4462 * linux-low.c (linux_kill): Change parameter to process_info
4463 pointer instead of pid. Adjust.
4464 * lynx-low.c (lynx_kill): Likewise.
4465 * nto-low.c (nto_kill): Likewise.
4466 * spu-low.c (spu_kill): Likewise.
4467 * win32-low.c (win32_kill): Likewise.
4468 * server.c (handle_v_kill, kill_inferior_callback)
4469 (detach_or_kill_for_exit): Adjust.
4470 * target.c (kill_inferior): Change parameter to process_info
4471 pointer instead of pid. Adjust.
4472 * target.h (struct target_ops) <kill>: Change parameter to
4473 process_info pointer instead of pid. Adjust all implementations
4475 (kill_inferior): Likewise.
4477 2018-07-13 Pedro Alves <palves@redhat.com>
4479 * linux-low.c (linux_detach, linux_join): Change parameter to
4480 process_info pointer instead of pid. Adjust.
4481 * lynx-low.c (lynx_detach, lynx_join): Likewise.
4482 * nto-low.c (nto_detach): Likewise.
4483 * spu-low.c (spu_detach, spu_join): Likewise.
4484 * win32-low.c (win32_detach, win32_join): Likewise.
4485 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
4486 * target.h (struct target_ops) <detach, join>: Change parameter to
4487 process_info pointer instead of pid. Adjust all implementations
4489 (detach_inferior, join_inferior): Rename 'pid' parameter to
4492 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4493 Jan Kratochvil <jan.kratochvil@redhat.com>
4494 Paul Fertser <fercerpav@gmail.com>
4495 Tsutomu Seki <sekiriki@gmail.com>
4497 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
4498 (OBS): Add 'common/netstuff.o'.
4499 (GDBREPLAY_OBS): Likewise.
4500 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
4501 (remote_open): Implement support for IPv6
4503 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
4505 (handle_accept_event): Accept connections from IPv6 sources.
4506 (remote_prepare): Handle IPv6-style hostnames; implement
4507 support for IPv6 connections.
4508 (remote_open): Implement support for printing connections from
4511 2018-07-11 Pedro Alves <palves@redhat.com>
4514 * mem-break.c (any_persistent_commands): Add process_info
4515 parameter and use it instead of relying on the current process.
4516 Change return type to bool.
4517 * mem-break.h (any_persistent_commands): Add process_info
4518 parameter and change return type to bool.
4519 * server.c (handle_detach): Remove require_running_or_return call.
4520 Look up the process_info for the process we're about to detach.
4521 If not found, return back error to GDB. Adjust
4522 any_persistent_commands call to pass down a process pointer.
4524 2018-07-11 Pedro Alves <palves@redhat.com>
4526 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
4527 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
4528 instead of collect_register_by_name.
4529 * regcache.c (regcache_raw_get_unsigned_by_name): New.
4530 * regcache.h (regcache_raw_get_unsigned_by_name): New.
4532 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
4533 Pedro Alves <palves@redhat.com>
4535 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
4537 2018-07-03 Tom Tromey <tom@tromey.com>
4539 * linux-low.c: Update.
4540 * lynx-low.c: Update.
4541 * mem-break.c: Update.
4542 * nto-low.c: Update.
4543 * remote-utils.c: Update.
4545 * spu-low.c: Update.
4547 * win32-low.c: Update.
4549 2018-07-03 Tom Tromey <tom@tromey.com>
4553 2018-07-03 Tom Tromey <tom@tromey.com>
4555 * linux-low.c: Update.
4557 2018-07-03 Tom Tromey <tom@tromey.com>
4561 2018-07-03 Tom Tromey <tom@tromey.com>
4563 * linux-low.c: Update.
4564 * linux-mips-low.c: Update.
4565 * lynx-low.c: Update.
4566 * nto-low.c: Update.
4567 * remote-utils.c: Update.
4569 * spu-low.c: Update.
4571 * thread-db.c: Update.
4573 2018-07-03 Tom Tromey <tom@tromey.com>
4575 * linux-low.c: Update.
4576 * linux-mips-low.c: Update.
4577 * lynx-low.c: Update.
4578 * mem-break.c: Update.
4579 * nto-low.c: Update.
4580 * remote-utils.c: Update.
4582 * spu-low.c: Update.
4584 * tracepoint.c: Update.
4586 2018-07-03 Tom Tromey <tom@tromey.com>
4588 * linux-low.c: Update.
4589 * linux-ppc-low.c: Update.
4590 * linux-x86-low.c: Update.
4591 * proc-service.c: Update.
4593 * spu-low.c: Update.
4594 * thread-db.c: Update.
4595 * win32-low.c: Update.
4597 2018-07-03 Tom Tromey <tom@tromey.com>
4599 * linux-low.c: Update.
4600 * lynx-low.c: Update.
4601 * nto-low.c: Update.
4602 * remote-utils.c: Update.
4603 * spu-low.c: Update.
4604 * thread-db.c: Update.
4605 * win32-low.c: Update.
4607 2018-06-29 Joel Brobecker <brobecker@adacore.com>
4609 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
4610 parameter in call to 'amd64_create_target_description'.
4612 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4614 * x86-tdesc.h: Remove executable permission flag.
4616 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
4618 * configure.ac: Remove AC_PREREQ, add missing quoting.
4619 * configure: Re-generate.
4620 * config.in: Re-generate.
4621 * aclocal.m4: Re-generate.
4623 2018-06-18 Simon Marchi <simon.marchi@ericsson.com>
4625 * tracepoint.h (current_traceframe): Remove declaration.
4627 2018-06-18 Alan Hayward <alan.hayward@arm.com>
4629 * linux-aarch64-low.c (is_sve_tdesc): New function.
4630 (aarch64_sve_regs_copy_to_regcache): Likewise.
4631 (aarch64_sve_regs_copy_from_regcache): Likewise.
4632 (aarch64_regs_info): Add SVE checks.
4633 (initialize_low_arch): Initialize SVE.
4635 2018-06-18 Alan Hayward <alan.hayward@arm.com>
4637 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
4639 2018-06-11 Alan Hayward <alan.hayward@arm.com>
4641 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
4642 (initialize_low_tracepoint): Likewise
4643 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
4644 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
4646 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
4648 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
4650 2018-06-11 Alan Hayward <alan.hayward@arm.com>
4652 * server.h (PBUFSIZ): Increase size
4654 2018-06-11 Alan Hayward <alan.hayward@arm.com>
4656 * regcache.c (regcache::raw_compare): New function.
4657 * regcache.h (regcache::raw_compare): New declaration.
4659 2018-06-11 Alan Hayward <alan.hayward@arm.com>
4661 * regcache.c (new_register_cache): Use new.
4662 (free_register_cache): Use delete.
4663 (register_data): Use const.
4664 (supply_register): Move body inside regcache.
4665 (regcache::raw_supply): New override function.
4666 (collect_register): Move body inside regcache.
4667 (regcache::raw_collect): New override function.
4668 (regcache::get_register_status): New override function.
4669 * regcache.h (struct regcache): Inherit from reg_buffer_common.
4671 2018-06-09 Tom Tromey <tom@tromey.com>
4673 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
4675 (event_queue): Use std::queue.
4676 (gdb_event_xfree): Remove.
4677 (initialize_event_loop, process_event, wait_for_event): Update.
4679 2018-06-08 Stan Cox <scox@redhat.com>
4681 * win32-low.c (win32_create_inferior): last_ptid and last_status
4682 moved to client_state.
4684 2018-06-08 Pedro Alves <palves@redhat.com>
4686 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
4687 common/common-exceptions.o, common/common-utils.o,
4688 common/errors.o, common/print-utils.o and utils.o.
4689 * gdbreplay.c: Include "common-defs.h" instead of the two
4690 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
4691 string.h or alloca.h.
4692 (perror_with_name): Delete.
4693 (remote_open): Use xstrdup instead of strdup.
4694 (main): Rename to ...
4695 (captured_main): ... this.
4698 2018-06-08 Tom Tromey <tom@tromey.com>
4700 * linux-low.c (linux_low_read_btrace): Update.
4702 2018-06-04 Stan Cox <scox@redhat.com>
4704 * server.h (struct client_state): New.
4705 * server.c (cont_thread, general_thread, multi_process)
4706 (report_fork_events, report_vfork_events, report_exec_events)
4707 (report_thread_events, swbreak_feature, hwbreak_feature)
4708 (vCont_supported, disable_randomization, pass_signals)
4709 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
4710 Moved to client_state.
4711 * remote-utils.c (remote_debug, noack_mode)
4712 (transport_is_reliable): Moved to client_state.
4713 * tracepoint.c (current_traceframe): Moved to client_state.
4716 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
4717 linux-low.c, remote-utils.h, target.c: Use client_state.
4719 2018-05-31 Alan Hayward <alan.hayward@arm.com>
4721 * configure.srv: Add new c/h file.
4723 2018-05-31 Alan Hayward <alan.hayward@arm.com>
4725 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
4728 2018-05-25 Maciej W. Rozycki <macro@mips.com>
4730 * gdb.arch/mips-fpregset-core.exp: New test.
4731 * gdb.arch/mips-fpregset-core.c: New test source.
4733 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
4736 * hostio.c (require_int): Do not report overflow for integers
4737 between 0xfffffff and 0x7fffffff.
4739 2018-05-22 Maciej W. Rozycki <macro@mips.com>
4741 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
4742 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
4743 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
4745 (the_low_target): Wire them.
4747 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4749 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
4750 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
4751 mode. Call collect_register_by_name with vscr using
4752 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
4753 (ppc_store_vrregset): Add and set vscr_offset variable as in
4754 ppc_fill_vrregset. Call supply_register_by_name with vscr using
4757 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4759 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
4760 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
4761 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
4763 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4765 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
4766 (ppc_store_vsxregset): Likewise.
4767 (ppc_fill_vrregset): Likewise.
4768 (ppc_store_vrregset): Likewise.
4769 (ppc_fill_evrregset): Likewise.
4770 (ppc_store_evrregset): Likewise.
4771 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
4772 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
4775 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4777 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
4778 wordsize of the inferior. Call ppc_linux_target_wordsize.
4780 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4782 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
4783 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
4784 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
4785 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
4786 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
4787 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
4788 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
4789 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
4790 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
4791 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
4792 (tdesc_powerpc_e500l): Remove.
4793 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
4794 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
4795 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
4796 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
4798 (ppc_arch_setup): Remove target description matching code. Fill a
4799 ppc_linux_features struct and call ppc_linux_match_description
4802 2018-05-22 Maciej W. Rozycki <macro@mips.com>
4804 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
4805 width of the requested register exceeds the width of the
4807 (mips_cannot_store_register): Likewise.
4809 2018-05-21 Maciej W. Rozycki <macro@mips.com>
4811 * linux-mips-low.c (mips_fetch_register): New function. Update
4813 (mips_store_gregset): Supply 0 rather than $restart for $zero.
4814 (the_low_target): Wire `mips_fetch_register'.
4816 2018-05-10 Joel Brobecker <brobecker@adacore.com>
4818 * lynx-i386-low.c (LYNXOS_178): New macro.
4819 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
4820 the layout on LynxOS-178.
4821 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
4822 handle floating point registers that are not supported by
4825 2018-05-10 Tom Tromey <tom@tromey.com>
4827 * configure: Rebuild.
4829 2018-05-10 Joel Brobecker <brobecker@adacore.com>
4832 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
4833 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
4834 Use it to set the expedite_regs field in the given tdesc.
4835 * x86-tdesc.h: New file.
4836 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
4837 Adjust following the addition of the new expedite_regs parameter
4838 to init_target_desc.
4839 * linux-tic6x-low.c (tic6x_read_description): Likewise.
4840 * linux-x86-tdesc.c: #include "x86-tdesc.h".
4841 (i386_linux_read_description, amd64_linux_read_description):
4842 Adjust following the addition of the new expedite_regs parameter
4843 to init_target_desc.
4844 * lynx-i386-low.c: #include "x86-tdesc.h".
4845 (lynx_i386_arch_setup): Adjust following the addition of the new
4846 expedite_regs parameter to init_target_desc.
4847 * nto-x86-low.c: #include "x86-tdesc.h".
4848 (nto_x86_arch_setup): Adjust following the addition of the new
4849 expedite_regs parameter to init_target_desc.
4850 * win32-i386-low.c: #include "x86-tdesc.h".
4851 (i386_arch_setup): Adjust following the addition of the new
4852 expedite_regs parameter to init_target_desc.
4854 2018-05-10 Joel Brobecker <brobecker@adacore.com>
4857 * win32-low.c (win32_create_inferior): Add call to my_wait
4858 setting last_status global.
4860 2018-05-10 Joel Brobecker <brobecker@adacore.com>
4863 * win32-low.c (create_process): Only call gdb_tilde_expand if
4864 inferior_cwd is not NULL.
4866 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
4868 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
4869 registers to the cache if their values have changed.
4870 (i387_xsave_to_cache): Provide default values for x87 control
4871 registers when these features are available, but disabled.
4872 * regcache.c (supply_register_by_name_zeroed): New function.
4873 * regcache.h (supply_register_by_name_zeroed): Declare new
4876 2018-05-07 Tom Tromey <tom@tromey.com>
4878 * configure: Rebuild.
4880 2018-05-04 Tom Tromey <tom@tromey.com>
4882 * configure: Rebuild.
4884 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4885 Pedro Alves <palves@redhat.com>
4887 * linux-aarch64-low.c (aarch64_stopped_data_address):
4890 2018-04-27 Tom Tromey <tom@tromey.com>
4892 * configure: Rebuild.
4894 2018-04-23 Tom Tromey <tom@tromey.com>
4896 * configure: Rebuild.
4898 2018-04-19 Simon Marchi <simon.marchi@ericsson.com>
4900 * Makefile.in (depcomp): Add "..".
4901 (all_deps_files): New and use it.
4903 2018-04-18 Alan Hayward <alan.hayward@arm.com>
4905 * configure.srv (aarch64*-*-linux*): Don't include xml.
4906 (i[34567]86-*-cygwin*): Likewise.
4907 (i[34567]86-*-linux*): Likewise.
4908 (i[34567]86-*-lynxos*): Likewise.
4909 (i[34567]86-*-mingw32ce*): Likewise.
4910 (i[34567]86-*-mingw*): Likewise.
4911 (i[34567]86-*-nto*): Likewise.
4912 (tic6x-*-uclinux): Likewise.
4913 (x86_64-*-linux*): Likewise.
4914 (x86_64-*-mingw*): Likewise.
4915 (x86_64-*-cygwin*): Likewise.
4917 2018-04-18 Alan Hayward <alan.hayward@arm.com>
4919 * tdesc.c: Remove xml parameter.
4921 2018-04-18 Alan Hayward <alan.hayward@arm.com>
4923 * server.c (get_features_xml): Remove cast.
4924 * tdesc.c (void target_desc::accept): Fill in function.
4925 (tdesc_get_features_xml): Remove old xml creation.
4926 (print_xml_feature::visit_pre): Add xml vistor.
4927 * tdesc.h (struct target_desc): Make xmltarget mutable.
4928 (tdesc_get_features_xml): Remove declaration.
4930 2018-04-18 Alan Hayward <alan.hayward@arm.com>
4932 * tdesc.c (tdesc_architecture_name): Add new function.
4933 (tdesc_osabi_name): Likewise.
4934 (tdesc_get_features_xml): Use new functions.
4936 2018-04-18 Alan Hayward <alan.hayward@arm.com>
4938 * tdesc.c (tdesc_create_flags): Remove.
4939 (tdesc_add_flag): Likewise.
4940 (tdesc_named_type): Likewise.
4941 (tdesc_create_union): Likewise.
4942 (tdesc_create_struct): Likewise.
4943 (tdesc_create_vector): Likewise.
4944 (tdesc_add_bitfield): Likewise.
4945 (tdesc_add_field): Likewise.
4946 (tdesc_set_struct_size): Likewise.
4948 2018-04-18 Alan Hayward <alan.hayward@arm.com>
4950 * tdesc.c (~target_desc): Remove implictly deleted items.
4951 (init_target_desc): Iterate all features.
4952 (tdesc_get_features_xml): Use vector.
4953 (tdesc_create_feature): Create feature.
4954 * tdesc.h (tdesc_feature) Remove
4955 (target_desc): Add features.
4957 2018-04-18 Alan Hayward <alan.hayward@arm.com>
4959 * Makefile.in: Add common/tdesc.c
4960 * tdesc.c (init_target_desc): init all reg_defs from register
4962 (tdesc_create_reg): Create tdesc_reg.
4963 * tdesc.h (tdesc_feature): Add register vector.
4965 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
4967 * tdesc.h (struct target_desc) <features>: Change type to
4968 std::vector<std::string>.
4969 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
4971 (tdesc_get_features_xml): Likewise.
4972 (tdesc_create_feature): Likewise.
4974 2018-03-26 Alan Hayward <alan.hayward@arm.com>
4976 * regcache.c (find_register_by_number): Return a ref.
4977 (find_regno): Use references.
4978 (register_size): Likewise.
4979 (register_data): Likewise.
4980 * tdesc.c (target_desc::~target_desc): Remove free calls.
4981 (target_desc::operator==): Use std::vector compare.
4982 (init_target_desc): Use reference.
4983 (tdesc_create_reg): Use reg constructors.
4984 * tdesc.h (struct target_desc): Replace pointer with object.
4986 2018-03-23 Alan Hayward <alan.hayward@arm.com>
4988 * regcache.c (find_register_by_number): Make static.
4989 (find_regno): Use find_register_by_number
4990 * regcache.h (struct reg): Remove declaration.
4992 2018-03-23 Alan Hayward <alan.hayward@arm.com>
4994 * tdesc.c (target_desc::~target_desc): Move to here.
4995 (target_desc::operator==): Likewise.
4996 * tdesc.h (target_desc::~target_desc): Move from here.
4997 (target_desc::operator==): Likewise.
4999 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
5001 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
5003 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5005 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
5007 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
5008 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
5009 and init_registers_s390_gs_linux64.
5011 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5013 * linux-s390-low.c (s390_fill_gs): Remove function.
5014 (s390_fill_gsbc): Remove function.
5015 (s390_regsets): Set fill functions for the guarded storage regsets
5018 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5020 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
5021 the word size. Add comment.
5022 (s390_get_wordsize): New function.
5023 (s390_arch_setup): No longer select a temporary tdesc to fetch the
5024 pswm with it. Instead, use s390_get_wordsize to determine the
5025 word size first and derive the correct tdesc from that directly.
5027 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
5029 * Makefile.in: Include silent-rules.mk.
5030 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
5031 (COMPILE): Add ECHO_CXX.
5032 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5033 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5034 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
5035 (version-generated.c): Add ECHO_GEN.
5036 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
5037 (IPAGENT_COMPILE): Add ECHO_CXX.
5038 (%-generated.c): Add ECHO_REGDAT.
5040 2018-03-14 Tom Tromey <tom@tromey.com>
5043 * ax.c (ax_printf): Special case for NULL.
5045 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5047 * linux-low.c (linux_qxfer_libraries_svr4): Use
5048 xml_escape_text_append.
5050 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5052 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
5054 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5056 * server.c (handle_general_set): Remove unnecessary xstrdup.
5058 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5060 * server.c (parse_debug_format_options): Adjust to
5061 delim_string_to_char_ptr_vec changes.
5062 * thread-db.c (thread_db_load_search): Adjust to
5063 dirnames_to_char_ptr_vec changes.
5065 2018-03-01 Markus Metzger <markus.t.metzger@intel.com>
5067 * target.h (target_enable_btrace, target_disable_btrace)
5068 (target_read_btrace, target_read_btrace_conf): Turn macro into
5069 inline function. Throw error if target method is not defined.
5070 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
5071 check for btrace target method. Be prepared to handle exceptions
5072 from btrace target methods.
5074 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5076 * server.c (captured_main): Change order of error message printed
5077 when the current working directory cannot be found.
5079 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5081 * server.c: Include "filenames.h" and "pathstuff.h".
5082 (program_name): Delete variable.
5083 (program_path): New anonymous class.
5084 (get_exec_wrapper): Use "program_path" instead of
5086 (handle_v_run): Likewise.
5087 (captured_main): Likewise.
5088 (process_serial_event): Likewise.
5090 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5092 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
5093 (OBJS): Add "pathstuff.o".
5094 * server.c (current_directory): New global variable.
5095 (captured_main): Initialize "current_directory".
5097 2018-02-26 Alan Hayward <alan.hayward@arm.com>
5099 * tdesc.c: Use common/tdesc.h.
5100 * tdesc.h: Likewise.
5102 2018-02-20 Alan Hayward <alan.hayward@arm.com>
5103 Simon Marchi <simon.marchi@ericsson.com>
5105 * Makefile.in: Switch order of make rules.
5107 2018-02-19 Alan Hayward <alan.hayward@arm.com>
5109 * Makefile.in: Add common directory in build.
5110 * configure.ac: Add common reference.
5111 * configure: Regenerate.
5113 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5115 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
5116 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
5117 * spu-low.c (spu_target_ops): Likewise.
5118 * win32-low.c (win32_target_ops): Likewise.
5119 * server.c (supported_btrace_packets): Report packets unconditionally.
5120 * target.h (target_ops) <supports_btrace>: Remove.
5121 (target_supports_btrace): Remove.
5123 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5125 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
5126 (handle_btrace_disable): Change return type to void. Use exceptions
5128 (handle_btrace_general_set): Catch exception and copy message to
5131 2018-02-08 Tom Tromey <tom@tromey.com>
5133 * linux-low.c (install_software_single_step_breakpoints): Use
5134 make_scoped_restore.
5135 * inferiors.c (make_cleanup_restore_current_thread): Remove.
5136 (do_restore_current_thread_cleanup): Remove.
5137 * gdbthread.h (make_cleanup_restore_current_thread): Don't
5140 2018-02-08 Tom Tromey <tom@tromey.com>
5142 * mem-break.c (set_raw_breakpoint_at): Use
5143 gdb::unique_xmalloc_ptr.
5145 2018-01-30 Pedro Alves <palves@redhat.com>
5148 * target.c (target_terminal::terminal_state): Rename to ...
5149 (target_terminal::m_terminal_state): ... this.
5151 2018-01-19 James Clarke <jrtc27@jrtc27.com>
5153 * linux-low.c (handle_extended_wait): Surround call to
5154 thread_db_notice_clone with #ifdef USE_THREAD_DB.
5156 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
5158 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
5159 linux_ptrace_attach_fail_reason_string now returning an
5161 (linux_attach): Likewise.
5162 * thread-db.c (attach_thread): Likewise.
5164 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
5167 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
5168 checking for fs_base/gs_base fields in struct user_regs_struct.
5169 * configure: Regenerate.
5171 2018-01-16 Yao Qi <yao.qi@linaro.org>
5174 * linux-low.c (fetch_register): Call supply_register instead of
5177 2018-01-08 Yao Qi <yao.qi@linaro.org>
5178 Simon Marchi <simon.marchi@ericsson.com>
5180 * Makefile.in (OBS): Remove selftest.o.
5181 * configure.ac: Set srv_selftest_objs if $development is true.
5182 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
5183 * configure: Re-generated.
5184 * server.c (captured_main): Wrap variable selftest_filter with
5187 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
5189 * server.c (parse_debug_format_options): Return std::string.
5190 (handle_monitor_command, captured_main): Adjust.
5192 2018-01-05 Pedro Alves <palves@redhat.com>
5195 * server.c (captured_main): Pass quiet=false to
5196 save_original_signals_state.
5198 2018-01-01 Joel Brobecker <brobecker@adacore.com>
5200 * gdbreplay.c (gdbreplay_version): Update copyright year in
5202 * server.c (gdbserver_version): Likewise.
5204 2017-12-08 Tom Tromey <tom@tromey.com>
5206 * ax.c (ax_printf): Update.
5208 2017-12-07 Yao Qi <yao.qi@linaro.org>
5210 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
5211 aarch64_linux_read_description.
5212 * linux-amd64-ipa.c (idx2mask): New array.
5213 (get_ipa_tdesc): Move idx2mask out.
5214 (initialize_low_tracepoint): Initialize target descriptions.
5215 * linux-i386-ipa.c (idx2mask): New array.
5216 (get_ipa_tdesc): Move idx2mask out.
5217 (initialize_low_tracepoint): Initialize target descriptions.
5219 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
5221 * tdesc.c (struct tdesc_type): Change return type.
5222 (tdesc_add_flag): Change parameter type.
5223 (tdesc_add_bitfield): Likewise.
5224 (tdesc_add_field): Likewise.
5225 (tdesc_set_struct_size): Likewise.
5227 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
5229 * regcache.c (registers_to_string): Remove unused variable.
5231 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5233 * inferiors.c (for_each_inferior_with_data): Remove.
5234 * inferiors.h (for_each_inferior_with_data): Remove.
5235 * server.c (handle_qxfer_threads_worker): Change parameter type.
5236 (handle_qxfer_threads_proper): Use for_each_thread.
5238 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5240 * inferiors.c (for_each_inferior): Remove.
5241 (clear_inferiors): Use for_each_thread.
5242 * inferiors.h (for_each_inferior): Remove.
5243 * linux-low.c (linux_wait_for_event_filtered): Use
5245 (linux_stabilize_threads): Likewise.
5246 * regcache.c (regcache_release): Likewise.
5247 * server.c (gdb_wants_all_threads_stopped): Likewise.
5248 (clear_pending_status_callback): Remove.
5249 (handle_status): Use for_each_thread.
5250 (captured_main): Likewise.
5251 * win32-low.c (child_init_thread_list): Likewise.
5252 (win32_clear_inferiors): Likewise.
5253 (fake_breakpoint_event): Likewise.
5255 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5257 * inferiors.h (find_inferior): Remove.
5258 * inferiors.c (find_inferior): Remove.
5260 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5262 * linux-low.c (resume_status_pending_p): Update comment.
5263 (need_step_over_p): Update comment.
5265 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5267 * linux-low.c (proceed_one_lwp): Return void, change parameter
5269 (unsuspend_and_proceed_one_lwp): Likewise.
5270 (proceed_all_lwps): Use for_each_thread.
5271 (unstop_all_lwps): Likewise.
5273 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5275 * linux-low.c (linux_resume_one_thread): Return void, take
5277 (linux_resume): Use for_each_thread.
5279 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5281 * linux-low.c (send_sigstop_callback): Return void, change
5282 parameter type. Rename to...
5283 (send_sigstop): ... this.
5284 (suspend_and_send_sigstop_callback): Return void, change parameter
5286 (suspend_and_send_sigstop): ... this.
5287 (stop_all_lwps): Use for_each_thread.
5289 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5291 * linux-low.c (lwp_running): Return bool, remove unused
5293 (linux_stabilize_threads): Use find_thread.
5295 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5297 * linux-low.c (select_singlestep_lwp_callback): Remove.
5298 (count_events_callback): Remove.
5299 (select_event_lwp_callback): Remove.
5300 (select_event_lwp): Use find_thread/for_each_thread.
5302 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5304 * linux-low.c (not_stopped_callback): Return bool, take filter
5306 (linux_wait_for_event_filtered): Use find_thread.
5307 (linux_wait_1): Likewise.
5309 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5311 * linux-low.c (same_lwp): Remove.
5312 (find_lwp_pid): Use find_thread.
5314 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5316 * linux-low.c (delete_lwp_callback): Remove.
5317 (linux_mourn): Use for_each_thread.
5319 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5321 * linux-low.c (linux_detach_lwp_callback): Return void, remove
5322 args parameter, don't check for pid.
5323 (linux_detach): Use for_each_thread.
5325 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5327 * linux-low.c (struct counter): Remove.
5328 (second_thread_of_pid_p): Remove.
5329 (last_thread_of_process_p): Use find_thread.
5331 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5333 * inferiors.c (find_inferior_in_random): Remove.
5334 * inferiors.h (find_inferior_in_random): Remove.
5335 * linux-low.c (status_pending_p_callback): Return bool, accept
5336 parameter ptid directly.
5337 (linux_wait_for_event_filtered): Use find_thread_in_random.
5338 (linux_wait_1): Likewise.
5340 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5342 * inferiors.c (find_inferior_id): Remove.
5343 (find_thread_ptid): Move implemention from find_inferior_id to
5345 * inferiors.h (find_inferior_id): Remove.
5346 * server.c (handle_status): Use find_thread_ptid.
5347 (process_serial_event): Likewise.
5348 * thread-db.c (find_one_thread): Likewise.
5349 (thread_db_thread_handle): Likewise.
5350 * win32-low.c (thread_rec): Likewise.
5351 (child_delete_thread): Likewise.
5352 (win32_thread_alive): Likewise.
5353 (get_child_debug_event): Likewise.
5355 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5357 * linux-mips-low.c (update_watch_registers_callback): Return
5358 void, remove pid_p parameter, don't check for pid.
5359 (mips_insert_point, mips_remove_point): Use for_each_thread.
5361 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5363 * lynx.low (lynx_delete_thread_callback): Remove.
5364 (lynx_mourn): Use for_each_thread.
5366 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5368 * regcache.c (regcache_invalidate_one): Remove.
5369 (regcache_invalidate_pid): use for_each_thread.
5371 2017-11-26 Tom Tromey <tom@tromey.com>
5373 * linux-low.c (linux_create_inferior): Update.
5375 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
5377 * spu-low.c (spu_create_inferior): Fix typo in argument name.
5379 2017-11-24 Alan Hayward <alan.hayward@arm.com>
5381 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
5382 * linux-aarch64-low.c (initialize_low_arch): Call init func.
5383 * linux-aarch64-tdesc-selftest.c: New file.
5384 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
5386 2017-11-24 Alan Hayward <alan.hayward@arm.com>
5388 * configure.srv: Add new file.
5389 * linux-aarch64-low.c (initialize_low_arch): Call init func.
5390 * linux-aarch64-tdesc-selftest.c: New file.
5391 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
5393 2017-11-24 Alan Hayward <alan.hayward@arm.com>
5395 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
5396 * linux-aarch64-low.c (initialize_low_arch): Remove init.
5397 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
5399 2017-11-24 Alan Hayward <alan.hayward@arm.com>
5401 * configure.srv: Add new files.
5402 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
5403 aarch64_linux_read_description.
5404 * linux-aarch64-low.c (aarch64_linux_read_description):
5405 Merge with aarch64_arch_setup.
5406 (aarch64_arch_setup): Call aarch64_linux_read_description.
5407 * linux-aarch64-tdesc.c: New file.
5408 * linux-aarch64-tdesc.h: New file.
5410 2017-11-24 Yao Qi <yao.qi@linaro.org>
5412 * configure.srv: Set $srv_regobj for tic6x-linux.
5413 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
5414 (tic6x_read_description): Move some code to tic6x_arch_setup.
5415 (tic6x_tdesc_test): New function.
5416 (initialize_low_arch): Call selftests::register_test.
5418 2017-11-22 Yao Qi <yao.qi@linaro.org>
5420 * remote-utils.c (prepare_resume_reply): Use memcpy.
5422 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5424 * linux-low.c (kill_one_lwp_callback): Return void, take
5425 argument directly, don't filter on pid.
5426 (linux_kill): Use for_each_thread.
5428 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5430 * linux-low.c (need_step_over_p): Return bool, remove dummy
5432 (linux_resume, proceed_all_lwps): Use find_thread.
5434 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5436 * linux-low.c (resume_status_pending_p): Return bool, remove
5438 (linux_resume): Use find_thread.
5440 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5442 * linux-low.c (struct thread_resume_array): Remove.
5443 (linux_set_resume_request): Return void, take arguments
5445 (linux_resume): Use for_each_thread.
5447 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5449 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
5450 return bool, remove data argument.
5451 (linux_stabilize_threads): Use find_thread.
5453 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5455 * linux-low.c (unsuspend_one_lwp): Remove.
5456 (unsuspend_all_lwps): Use for_each_thread, inline code from
5459 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5461 * gdbthread.h (find_thread): Add overload with ptid_t filter.
5462 * linux-low.c (struct iterate_over_lwps_args): Remove.
5463 (iterate_over_lwps_filter): Remove.
5464 (iterate_over_lwps): Use find_thread.
5466 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5468 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
5469 (linux_handle_new_gdb_connection): Use for_each_thread, inline
5470 code from reset_lwp_ptrace_options_callback.
5472 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5474 * linux-arm-low.c (struct update_registers_data): Remove.
5475 (update_registers_callback): Return void, take arguments
5476 directly, don't check thread's pid.
5477 (arm_insert_point, arm_remove_point): Use for_each_thread.
5479 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5481 * win32-low.c (continue_one_thread): Return void, take argument
5483 (child_continue): Use for_each_thread.
5485 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5487 * win32-i386-low.c (update_debug_registers_callback): Rename
5489 (update_debug_registers): ... this, return void, remove pid_p arg.
5490 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
5492 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
5494 * inferiors.h (struct process_info): Add constructor, initialize
5496 <syscalls_to_catch>: Change type to std::vector<int>.
5497 * inferiors.c (add_process): Allocate process_info with new.
5498 (remove_process): Free process_info with delete.
5499 * linux-low.c (handle_extended_wait): Adjust.
5500 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
5501 * server.c (handle_general_set): Adjust.
5503 2017-11-16 Pedro Alves <palves@redhat.com>
5505 * remote-utils.c (remote_close): Block SIGIO signals instead of
5506 uninstalling the SIGIO handler.
5508 2017-11-16 Alan Hayward <alan.hayward@arm.com>
5510 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
5512 2017-11-16 Yao Qi <yao.qi@linaro.org>
5514 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
5515 (tic6x_store_gregset): Likewise.
5516 (tic6x_usrregs_info): Move it up.
5518 2017-11-15 Alan Hayward <alan.hayward@arm.com>
5520 * Makefile.in: Update arch rules.
5521 * configure.srv: Explicitly mark arch/ files.
5523 2017-11-13 Andreas Schwab <schwab@suse.de>
5525 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
5527 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
5529 2017-11-06 Pedro Alves <palves@redhat.com>
5531 * config.in, configure: Regenerate.
5533 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
5535 * target.c (struct thread_search): Remove.
5536 (thread_search_callback): Remove.
5537 (prepare_to_access_memory): Use for_each_thread instead of
5538 find_inferior. Inline code from thread_search_callback.
5540 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
5542 * server.c (struct visit_actioned_threads_data): Remove.
5543 (visit_actioned_threads): Change prototype to take arguments
5545 (resume): Use find_thread instead of find_inferior.
5547 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
5549 * server.c (queue_stop_reply_callback): Change prototype, return
5551 (find_status_pending_thread_callback): Remove.
5552 (handle_status): Replace find_inferior with find_thread and
5555 2017-10-25 Alan Hayward <alan.hayward@arm.com>
5557 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
5559 (aarch64_store_gregset): Likewise.
5560 (aarch64_fill_fpregset): Likewise.
5561 (aarch64_store_fpregset): Likewise.
5563 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
5565 * gdbthread.h (find_thread, for_each_thread): New functions.
5566 * inferiors.c (thread_of_pid): Remove.
5567 (find_any_thread_of_pid): Use find_thread.
5568 * linux-low.c (num_lwps): Use for_each_thread.
5570 2017-10-17 Yao Qi <yao.qi@linaro.org>
5572 * Makefile.in: Remove one rule.
5573 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
5575 2017-10-17 Yao Qi <yao.qi@linaro.org>
5577 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
5578 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
5580 2017-10-17 Yao Qi <yao.qi@linaro.org>
5582 * configure.srv: Rename arm.o with arch/arm.o.
5584 2017-10-17 Yao Qi <yao.qi@linaro.org>
5586 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
5587 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
5588 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
5589 (arch-i386.o, arch-amd64.o): Remove rules.
5590 (arch/%.o): New rule.
5591 Update POSTCOMPILE and COMPILE.pre.
5592 * configure.ac: Invoke AC_CONFIG_COMMANDS.
5593 * configure: Re-generated.
5594 * configure.srv: Replace arch-i386.o with arch/i386.o.
5595 Replace arch-amd64.o with arch/amd64.o.
5597 2017-10-16 Yao Qi <yao.qi@linaro.org>
5599 * configure: Regenerated.
5601 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
5603 * inferiors.h: (struct inferior_list): Remove.
5604 (struct inferior_list_entry); Remove.
5605 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
5606 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
5607 get_first_inferior): Remove.
5608 (for_each_inferior, for_each_inferior_with_data, find_inferior,
5609 find_inferior_id, find_inferior_in_random): Change signature.
5610 * inferiors.c (all_threads): Change type to
5611 std::list<thread_info *>.
5612 (get_thread): Remove macro.
5613 (find_inferior, find_inferior_id): Change signature, implement
5615 (find_inferior_in_random): Change signature, implement using
5616 find_thread_in_random.
5617 (for_each_inferior, for_each_inferior_with_data): Change
5618 signature, implement using for_each_thread.
5619 (add_inferior_to_list, remove_inferior): Remove.
5620 (add_thread, get_first_thread, thread_of_pid,
5621 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
5622 (get_first_inferior, one_inferior_p, clear_inferior_list):
5624 (clear_inferiors, get_thread_process): Update.
5625 * gdbthread.h: Include <list>.
5626 (struct thread_info) <entry>: Remove field.
5628 (all_threads): Change type to std::list<thread_info *>.
5629 (get_first_inferior): Add doc.
5630 (find_thread, for_each_thread, find_thread_in_random): New
5632 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
5633 * linux-arm-low.c (update_registers_callback): Update.
5634 * linux-low.c (second_thread_of_pid_p): Update.
5635 (kill_one_lwp_callback, linux_detach_lwp_callback,
5636 delete_lwp_callback, status_pending_p_callback, same_lwp,
5637 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
5638 iterate_over_lwps, not_stopped_callback,
5639 resume_stopped_resumed_lwps, count_events_callback,
5640 select_singlestep_lwp_callback, select_event_lwp_callback,
5641 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
5642 suspend_and_send_sigstop_callback, wait_for_sigstop,
5643 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
5644 lwp_running, linux_set_resume_request, resume_status_pending_p,
5645 need_step_over_p, start_step_over, linux_resume_one_thread,
5646 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
5647 reset_lwp_ptrace_options_callback): Update.
5648 * linux-mips-low.c (update_watch_registers_callback): Update.
5649 * regcache.c (regcache_invalidate_one, regcache_invalidate):
5651 (free_register_cache_thread_one): Remove.
5652 (regcache_release): Update.
5653 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
5654 handle_qxfer_threads_worker): Update.
5655 (handle_query): Update, use list iterator.
5656 (visit_actioned_threads, handle_pending_status,
5657 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
5658 clear_pending_status_callback, set_pending_status_callback,
5659 find_status_pending_thread_callback, handle_status,
5660 process_serial_event): Update.
5661 * target.c (thread_search_callback): Update.
5662 * thread-db.c (thread_db_get_tls_address): Update.
5663 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
5665 * win32-i386-low.c (update_debug_registers_callback): Update.
5666 * win32-low.c (delete_thread_info, child_delete_thread,
5667 continue_one_thread, suspend_one_thread,
5668 get_child_debug_event): Adjust.
5670 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
5672 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
5673 * inferiors.h: Include <list>.
5674 (struct process_info) <entry>: Remove field.
5676 (pid_of): Change macro to function.
5677 (ptid_of, lwpid_of): Remove macro.
5678 (all_processes): Change type to std::list<process_info *>.
5679 (ALL_PROCESSES): Remove macro.
5680 (for_each_process, find_process): New function.
5681 * inferiors.c (all_processes): Change type to
5682 std::list<process_info *>.
5683 (find_thread_process): Adjust.
5684 (add_process): Likewise.
5685 (remove_process): Likewise.
5686 (find_process_pid): Likewise.
5687 (get_first_process): Likewise.
5688 (started_inferior_callback): Remove.
5689 (have_started_inferiors_p): Adjust.
5690 (attached_inferior_callback): Remove.
5691 (have_attached_inferiors_p): Adjust.
5692 * linux-low.c (check_zombie_leaders): Likewise.
5693 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
5694 (x86_linux_update_xmltarget): Adjust.
5695 * server.c (handle_query): Likewise.
5696 (gdb_reattached_process): Remove.
5697 (handle_status): Adjust.
5698 (kill_inferior_callback): Likewise.
5699 (detach_or_kill_inferior): Remove.
5700 (print_started_pid): Likewise.
5701 (print_attached_pid): Likewise.
5702 (detach_or_kill_for_exit): Update.
5703 (process_serial_event): Likewise.
5704 * linux-arm-low.c (arm_new_fork): Likewise.
5706 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
5708 * dll.h: Include <list>.
5709 (struct dll_info): Add constructor.
5710 <entry>: Remove field.
5711 (all_dlls): Change type to std::list<dll_info>.
5712 * dll.c: Include <algorithm>.
5713 (get_dll): Remove macro.
5714 (all_dlls): Change type to std::list<dll_info *>.
5715 (free_one_dll): Remove.
5716 (match_dll): Likewise.
5717 (loaded_dll): Adjust.
5718 (unloaded_dll): Adjust to all_dlls type change, use
5719 std::find_if. Inline code from match_dll.
5720 (clear_dlls): Adjust to all_dlls type change.
5721 * server.c (emit_dll_description): Remove.
5722 (handle_qxfer_libraries): Adjust to all_dlls type change,
5723 integrate emit_dll_description's functionality.
5725 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
5727 * linux-low.h (struct linux_target_ops) <delete_process>: New
5729 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
5730 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
5731 (struct linux_target_ops): Add delete_process callback.
5732 * linux-arm-low.c (arm_delete_process): New.
5733 (struct linux_target_ops): Add delete_process callback.
5734 * linux-bfin-low.c (struct linux_target_ops): Likewise.
5735 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
5736 * linux-m32r-low.c (struct linux_target_ops): Likewise.
5737 * linux-mips-low.c (mips_linux_delete_process): New.
5738 (struct linux_target_ops): Add delete_process callback.
5739 * linux-ppc-low.c (struct linux_target_ops): Likewise.
5740 * linux-s390-low.c (struct linux_target_ops): Likewise.
5741 * linux-sh-low.c (struct linux_target_ops): Likewise.
5742 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
5743 * linux-tile-low.c (struct linux_target_ops): Likewise.
5744 * linux-x86-low.c (x86_linux_delete_process): New.
5745 (struct linux_target_ops): Add delete_process callback.
5746 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
5748 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
5750 * linux-aarch64-low.c (the_low_target): Add thread delete
5752 * linux-arm-low.c (arm_delete_thread): New function.
5753 (the_low_target): Add thread delete callback.
5754 * linux-bfin-low.c (the_low_target): Likewise.
5755 * linux-crisv32-low.c (the_low_target): Likewise.
5756 * linux-low.c (delete_lwp): Invoke delete_thread callback if
5758 * linux-low.h (struct linux_target_ops) <delete_thread>: New
5760 * linux-m32r-low.c (the_low_target): Add thread delete callback.
5761 * linux-mips-low.c (mips_linux_delete_thread): New function.
5762 (the_low_target): Add thread delete callback.
5763 * linux-ppc-low.c (the_low_target): Likewise.
5764 * linux-s390-low.c (the_low_target): Likewise.
5765 * linux-sh-low.c (the_low_target): Likewise.
5766 * linux-tic6x-low.c (the_low_target): Likewise.
5767 * linux-tile-low.c (the_low_target): Likewise.
5768 * linux-x86-low.c (the_low_target): Likewise.
5769 * linux-xtensa-low.c (the_low_target): Likewise.
5771 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
5773 * win32-low.c: Include "common-inferior.h".
5775 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
5777 * inferiors.c (set_inferior_cwd): New function.
5778 * server.c (handle_general_set): Handle QSetWorkingDir packet.
5779 (handle_query): Inform that QSetWorkingDir is supported.
5780 * win32-low.c (create_process): Pass the inferior's cwd to
5783 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
5785 * inferiors.c (current_inferior_cwd): New global variable.
5786 (get_inferior_cwd): New function.
5787 * inferiors.h (struct process_info) <cwd>: New field.
5789 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
5791 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
5792 (OBS): Add gdb_tilde_expand.o.
5794 2017-10-02 Simon Marchi <simon.marchi@ericsson.com>
5796 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
5797 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
5799 2017-09-29 Pedro Alves <palves@redhat.com>
5801 * ax.c (gdb_parse_agent_expr): Constify.
5802 * ax.h (gdb_parse_agent_expr): Constify.
5803 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
5805 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
5806 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
5807 * remote-utils.h (read_ptid): Constify.
5808 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
5809 (process_point_options, process_serial_event): Constify.
5810 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
5811 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
5812 (cmd_qtbuffer): Constify.
5814 2017-09-29 Pedro Alves <palves@redhat.com>
5816 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
5819 2017-09-29 Pedro Alves <palves@redhat.com>
5821 * linux-low.c (handle_extended_wait): Pass parent thread instead
5822 of process to thread_db_notice_clone.
5823 * linux-low.h (thread_db_notice_clone): Replace parent process
5824 parameter with parent thread parameter.
5825 * thread-db.c (find_one_thread): Add comment.
5826 (thread_db_notice_clone): Replace parent process parameter with
5827 parent thread parameter. Temporarily switch to the parent thread.
5829 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
5831 * gdbthread.h: Include "common-gdbthread.h".
5832 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
5833 "if" when validating the ptid.
5834 * remote-utils.c: Include "gdbthread.h".
5835 (prepare_resume_reply): Use "switch_to_thread".
5836 * target.c (done_accessing_memory): Likewise.
5838 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
5840 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
5841 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
5842 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
5843 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
5844 s390x-gs-linux64-ipa.o to ipa_obj.
5845 * linux-s390-low.c (HWCAP_S390_GS): New define.
5846 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
5848 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
5849 (s390_arch_setup): Check for guarded-storage support and choose
5851 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
5852 init_registers_s390x_gs_linux64.
5853 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
5855 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
5856 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
5858 2017-09-22 Simon Marchi <simon.marchi@ericsson.com>
5860 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
5862 2017-09-21 Kevin Buettner <kevinb@redhat.com>
5864 * linux-low.h (struct lwp_info): Add new field, thread_handle.
5865 (thread_db_thread_handle): Declare.
5866 * linux-low.c (linux_target_ops): Initialize thread_handle.
5867 * server.c (handle_qxfer_threads_worker): Add support for
5869 * target.h (struct target_ops): Add new function pointer,
5871 (target_thread_handle): Define.
5872 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
5874 (thread_db_thread_handle): New function.
5876 2017-09-21 Kevin Buettner <kevinb@redhat.com>
5878 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
5879 * linux-low.h (thread_db_notice_clone): Declare.
5880 * thread-db.c (thread_db_notice_clone): New function.
5882 2017-09-21 Pedro Alves <palves@redhat.com>
5884 * server.c (gdb_read_memory, handle_status, process_serial_event)
5885 (handle_serial_event, handle_target_event): Adjust to
5886 set_desired_thread prototype change.
5887 * target.c (set_desired_thread): Remove 'use_general' parameter
5889 * target.h (set_desired_thread): Remove 'use_general' parameter.
5891 2017-09-20 Tom Tromey <tom@tromey.com>
5893 * target.c (target_terminal::terminal_state): Define.
5894 (target_terminal::init): Rename from target_terminal_init.
5895 (target_terminal::inferior): Rename from
5896 target_terminal_inferior.
5897 (target_terminal::ours): Rename from target_terminal_ours.
5898 (target_terminal::ours_for_output, target_terminal::info): New.
5900 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
5902 * server.c (accumulate_file_name_length): Remove.
5903 (emit_dll_description): Adjust to std::string change.
5904 (handle_qxfer_libraries): Use std::string to hold document.
5906 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
5908 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
5909 return type of xml_escape_text.
5910 * server.c (emit_dll_description): Likewise.
5912 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
5914 * server.c (captured_main): Accept argument for --selftest.
5915 Update run_tests call.
5916 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
5917 when registering selftests.
5919 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
5921 * regcache.c (get_thread_regcache): Update code to use "std::vector"
5922 instead of "VEC" for "target_desc.reg_defs".
5923 (regcache_cpy): Likewise.
5924 (registers_to_string): Likewise.
5925 (registers_from_string): Likewise.
5926 (find_regno): Likewise.
5927 (supply_regblock): Likewise.
5928 (regcache_raw_read_unsigned): Likewise.
5929 * tdesc.c (init_target_desc): Likewise.
5930 (tdesc_create_reg): Likewise.
5931 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
5932 (struct target_desc) <reg_defs>: Convert to "std::vector".
5933 (target_desc): Do not initialize "reg_defs".
5934 (~target_desc): Update code to use "std::vector" instead of "VEC"
5935 for "target_desc.reg_defs".
5936 (operator==): Likewise.
5938 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
5940 * inferiors.h (thread_to_gdb_id): Remove.
5941 * inferiors.c (thread_to_gdb_id): Remove.
5942 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
5943 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
5944 lynx_store_registers, lynx_read_memory, lynx_write_memory):
5946 * nto-low.c (nto_fetch_registers, nto_store_registers,
5947 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
5949 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
5951 * inferiors.h (gdb_id_to_thread_id): Remove.
5952 * inferiors.c (gdb_id_to_thread_id): Remove.
5953 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
5954 removal. Move pid declaration closer to where it's used.
5956 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
5958 * server.c (handle_detach): New function.
5959 (process_serial_event): Move code out, call handle_detach.
5961 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
5963 * server.c (require_running): Rename to ...
5964 (require_running_or_return): ... this ...
5965 (require_running_or_break): ... and this.
5966 (handle_query, process_serial_event): Adjust.
5968 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
5970 * linux-low.c (linux_set_resume_request): Remove unused
5973 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
5975 * server.c (first_thread_of): Remove.
5976 (process_serial_event): Replace usage of first_thread_of with
5977 find_any_thread_of_pid.
5978 * tracepoint.c (same_process_p): Remove.
5979 (gdb_agent_about_to_close): Replace usage of same_process_p with
5980 find_any_thread_of_pid.
5981 * linux-x86-low.c (same_process_callback): Remove.
5982 (x86_arch_setup_process_callback): Replace usage of
5983 same_process_callback with find_any_thread_of_pid.
5984 * thread-db.c (any_thread_of): Remove.
5985 (switch_to_process): Replace usage of any_thread_of with
5986 find_any_thread_of_pid.
5987 * inferiors.c (thread_pid_matches_callback): Remove.
5988 (find_thread_process): Adjust to use find_any_thread_of_pid.
5990 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
5992 * regcache.c (get_thread_regcache): Guard calls to "memset"
5995 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
5997 * linux-low.c (handle_extended_wait): Use
5998 "allocate_target_description" instead of "XNEW".
5999 * linux-x86-low.c (initialize_low_arch): Likewise.
6001 2017-09-05 Yao Qi <yao.qi@linaro.org>
6003 * configure.srv (srv_i386_regobj): Remove.
6004 (srv_amd64_regobj): Remove.
6005 (srv_regobj): Set it to "" for x86 non-linux targets.
6006 * linux-x86-tdesc.c (i386_linux_read_description):
6007 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
6008 (init_registers_i386): Remove the declaration.
6009 (tdesc_i386): Remove the declaration.
6010 (lynx_i386_arch_setup): Call i386_create_target_description.
6011 * nto-x86-low.c: Likewise.
6012 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
6013 [!__x86_64__]: include arch/i386.h.
6014 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
6016 2017-09-05 Yao Qi <yao.qi@linaro.org>
6018 * configure.srv (srv_amd64_linux_xmlfiles): Remove
6019 i386/amd64-XXX-linux from it.
6021 2017-09-05 Yao Qi <yao.qi@linaro.org>
6023 * configure.srv: Empty srv_amd64_linux_regobj if $development is
6025 (ipa_amd64_linux_regobj): Remove.
6026 (ipa_x32_linux_regobj): Remove.
6028 2017-09-05 Yao Qi <yao.qi@linaro.org>
6030 * Makefile.in (arch-amd64.o): New rule.
6031 * configure.srv: Append arch-amd64.o.
6032 * linux-amd64-ipa.c: Include common/x86-xstate.h.
6033 (get_ipa_tdesc): Call amd64_linux_read_description.
6034 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
6035 and init_registers_amd64_XXX.
6036 * linux-x86-low.c (x86_linux_read_description): Call
6037 amd64_linux_read_description.
6038 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
6039 (initialize_low_arch): Don't call init_registers_x32_XXX and
6040 init_registers_amd64_XXX.
6041 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
6042 and tdesc_amd64_XXX.
6043 [__x86_64__] (amd64_tdesc_test): New function.
6044 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
6045 and init_registers_amd64_XXX.
6046 * linux-x86-tdesc.c: Include arch/amd64.h.
6047 (xcr0_to_tdesc_idx): New function.
6048 (i386_linux_read_description): New function.
6049 (amd64_get_ipa_tdesc_idx): New function.
6050 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
6051 (amd64_get_ipa_tdesc): Declare.
6053 2017-09-05 Yao Qi <yao.qi@linaro.org>
6055 * configure.srv (srv_i386_linux_xmlfiles): Remove
6056 i386/i386-XXX-linux.xml from it.
6058 2017-09-05 Yao Qi <yao.qi@linaro.org>
6060 * configure.srv: Set srv_i386_linux_regobj empty if $development
6062 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
6063 initialize_low_tdesc.
6064 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
6065 with #if initialize_low_tdesc.
6066 * linux-x86-tdesc-selftest.c: New file.
6067 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
6069 2017-09-05 Yao Qi <yao.qi@linaro.org>
6071 * Makefile.in (arch-i386.o): New rule.
6072 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
6073 (x86_64-*-linux*): Likewise.
6074 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
6075 include arch/i386.h.
6076 (i386_linux_read_description): Remove code and call
6077 i386_create_target_description.
6078 * tdesc.c (allocate_target_description): New function.
6079 * tdesc.h (set_tdesc_architecture): Remove declaration.
6080 (set_tdesc_osabi): Likewise.
6082 2017-09-05 Yao Qi <yao.qi@linaro.org>
6084 * linux-x86-tdesc.c: Don't include <inttypes.h>.
6085 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
6086 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
6088 * server.c (get_features_xml): Call tdesc_get_features_xml.
6089 * tdesc.c (set_tdesc_architecture): New function.
6090 (set_tdesc_osabi): New function.
6091 (tdesc_get_features_xml): New function.
6092 (tdesc_create_feature): Add an argument.
6093 * tdesc.h (struct target_desc) <features>: New field.
6094 <arch, osabi>: New field.
6095 (~target_desc): xfree features, arch, and osabi.
6096 (target_desc::oerator==): Don't compare .xmltarget.
6097 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
6098 (set_tdesc_osabi): Likewise.
6099 (tdesc_get_features_xml): Likewise.
6101 2017-09-05 Yao Qi <yao.qi@linaro.org>
6103 * linux-x86-tdesc.c: Include selftest.h.
6104 (i386_tdesc_test): New function.
6105 (initialize_low_tdesc): Call selftests::register_test.
6106 * tdesc.h: Include regdef.h.
6107 (target_desc): Override operator == and !=.
6109 2017-09-05 Yao Qi <yao.qi@linaro.org>
6111 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
6112 (ipa_obj): Likewise.
6113 * linux-i386-ipa.c: Include common/x86-xstate.h
6114 (get_ipa_tdesc): Call i386_linux_read_description.
6115 (initialize_low_tracepoint): Don't call init_registers_XXX
6116 functions, call initialize_low_tdesc instead.
6117 * linux-x86-low.c (x86_linux_read_description): Call
6118 i386_linux_read_description.
6119 (initialize_low_arch): Don't call init_registers_i386_XXX
6120 functions, call initialize_low_tdesc.
6121 * linux-x86-tdesc.c: New file.
6122 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
6123 (i386_get_ipa_tdesc_idx): Declare.
6124 (i386_get_ipa_tdesc): Declare.
6125 (initialize_low_tdesc): Declare.
6127 2017-09-05 Yao Qi <yao.qi@linaro.org>
6129 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
6132 2017-09-05 Yao Qi <yao.qi@linaro.org>
6134 * Makefile.in (IPA_OBJS): Add vec-ipa.o
6135 * regcache.c (get_thread_regcache): Use VEC_length.
6136 (init_register_cache): Likewise.
6137 (regcache_cpy): Likewise.
6138 (registers_to_string): Iterate reg_defs via VEC_iterate.
6139 (find_regno): Likewise.
6140 (find_register_by_number): Use VEC_index.
6141 (register_size): Call find_register_by_number.
6142 (register_data): Call find_register_by_number.
6143 (supply_regblock): Use VEC_length.
6144 (regcache_raw_read_unsigned): Likewise.
6145 * tdesc.c (init_target_desc): Iterate reg_defs via
6147 (default_description): Update initializer.
6148 (copy_target_description): Don't update field num_registers.
6149 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
6150 <num_registers>: Remove.
6152 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
6154 * Makefile.in (.SECONDARY): Define target.
6156 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
6158 * linux-low.c (linux_wait_1): Adjust.
6159 * server.c (queue_stop_reply_callback): Adjust.
6161 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
6163 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
6164 QEnvironmentUnset and QEnvironmentReset packets.
6165 (handle_query): Inform remote that QEnvironmentHexEncoded,
6166 QEnvironmentUnset and QEnvironmentReset are supported.
6168 2017-08-25 Simon Marchi <simon.marchi@ericsson.com>
6170 * inferiors.h (inferior_target_data): Rename to ...
6171 (thread_target_data): ... this.
6172 (inferior_regcache_data): Rename to ...
6173 (thread_regcache_data): ... this.
6174 (set_inferior_regcache_data): Rename to ...
6175 (set_thread_regcache_data): ... this.
6176 * inferiors.c (inferior_target_data): Rename to ...
6177 (thread_target_data): ... this.
6178 (inferior_regcache_data): Rename to ...
6179 (thread_regcache_data): ... this.
6180 (set_inferior_regcache_data): Rename to ...
6181 (set_thread_regcache_data): ... this.
6182 (free_one_thread): Update.
6183 * linux-low.h (get_thread_lwp): Update.
6184 * regcache.c (get_thread_regcache): Update.
6185 (regcache_invalidate_thread): Update.
6186 (free_register_cache_thread): Update.
6187 * win32-i386-low.c (update_debug_registers_callback): Update.
6188 (win32_get_current_dr): Update.
6189 * win32-low.c (thread_rec): Update.
6190 (delete_thread_info): Update.
6191 (continue_one_thread): Update.
6192 (suspend_one_thread): Update.
6194 2017-08-24 Simon Marchi <simon.marchi@ericsson.com>
6196 * inferiors.c (set_inferior_target_data): Remove.
6197 * inferiors.h (set_inferior_target_data): Remove.
6199 2017-08-18 Yao Qi <yao.qi@linaro.org>
6201 * Makefile.in (OBS): Add selftest.o.
6202 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
6203 * configure, config.in: Re-generated.
6204 * server.c: Include common/sefltest.h.
6205 (captured_main): Handle option --selftest.
6207 2017-08-09 Yao Qi <yao.qi@linaro.org>
6209 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
6210 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
6211 i386-avx-mpx.o and i386-mmx.o.
6212 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
6213 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
6214 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
6215 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
6216 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
6217 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
6218 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
6219 i386/amd64-avx-mpx.xml.
6221 2017-08-09 Yao Qi <yao.qi@linaro.org>
6223 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
6224 and x32-avx-avx512.o.
6225 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
6226 i386/x32-avx-avx512.xml.
6228 2017-07-26 Simon Marchi <simon.marchi@ericsson.com>
6230 * tracepoint.h (enum class fast_tpoint_collect_result): New
6232 (fast_tracepoint_collecting): Change return type to
6233 fast_tpoint_collect_result.
6234 * tracepoint.c (fast_tracepoint_collecting): Likewise.
6235 * linux-low.h: Include tracepoint.h.
6236 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
6237 fast_tpoint_collect_result.
6238 * linux-low.c (handle_tracepoints): Adjust.
6239 (linux_fast_tracepoint_collecting): Change return type to
6240 fast_tpoint_collect_result.
6241 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
6242 linux_wait_1, stuck_in_jump_pad_callback,
6243 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
6244 proceed_one_lwp): Adjust to type change.
6246 2017-07-10 Yao Qi <yao.qi@linaro.org>
6248 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
6250 2017-06-29 Yao Qi <yao.qi@linaro.org>
6252 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
6254 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
6256 2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
6258 * Makefile.in (IPA_OBJS): Sort and format one item per line.
6260 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
6262 * linux-low.c (linux_create_inferior): Adjust code to access the
6263 environment information via 'gdb_environ' class.
6264 * lynx-low.c (lynx_create_inferior): Likewise.
6265 * server.c (our_environ): Make it an instance of 'gdb_environ'.
6266 (get_environ): Return a pointer to 'our_environ'.
6267 (captured_main): Initialize 'our_environ'.
6268 * server.h (get_environ): Adjust prototype.
6269 * spu-low.c (spu_create_inferior): Adjust code to access the
6270 environment information via 'gdb_environ' class.
6272 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6274 * linux-low.c (linux_read_memory, linux_write_memory): Remove
6275 usage of "register" keyword.
6277 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6279 * configure: Re-generate.
6281 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6283 * configure: Re-generate.
6285 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6287 * Makefile.in (COMPILE.pre): Add "-x c++".
6289 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
6291 * fork-child.c: Conditionally include <signal.h>.
6293 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6295 * server.c (handle_general_set): Handle new packet
6296 "QStartupWithShell".
6297 (handle_query): Add "QStartupWithShell" to the list of supported
6299 (gdbserver_usage): Add help text explaining the
6300 new "--startup-with-shell" and "--no-startup-with-shell" CLI
6302 (captured_main): Recognize and act upon the presence of the new
6305 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6306 Pedro Alves <palves@redhat.com>
6308 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
6309 * configure: Regenerate.
6310 * configure.srv (srv_linux_obj): Add "fork-child.o" and
6312 (i[34567]86-*-lynxos*): Likewise.
6313 (spu*-*-*): Likewise.
6314 * fork-child.c: New file.
6315 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
6317 (linux_ptrace_fun): New function.
6318 (linux_create_inferior): Adjust function prototype to reflect
6319 change on "target.h". Adjust function code to use
6321 (linux_request_interrupt): Delete "signal_pid".
6322 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
6323 (lynx_ptrace_fun): New function.
6324 (lynx_create_inferior): Adjust function prototype to reflect
6325 change on "target.h". Adjust function code to use
6327 * nto-low.c (nto_create_inferior): Adjust function prototype and
6328 code to reflect change on "target.h". Update comments.
6329 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
6330 "common-terminal.h" and "environ.h".
6331 (terminal_fd): Moved to fork-child.c.
6332 (old_foreground_pgrp): Likewise.
6333 (restore_old_foreground_pgrp): Likewise.
6334 (last_status): Make it global.
6335 (last_ptid): Likewise.
6336 (our_environ): New variable.
6337 (startup_with_shell): Likewise.
6338 (program_name): Likewise.
6339 (program_argv): Rename to...
6340 (program_args): ...this.
6341 (wrapper_argv): New variable.
6342 (start_inferior): Delete function.
6343 (get_exec_wrapper): New function.
6344 (get_exec_file): Likewise.
6345 (get_environ): Likewise.
6346 (prefork_hook): Likewise.
6347 (post_fork_inferior): Likewise.
6348 (postfork_hook): Likewise.
6349 (postfork_child_hook): Likewise.
6350 (handle_v_run): Update code to deal with arguments coming from the
6351 remote host. Update calls from "start_inferior" to
6353 (captured_main): Likewise. Initialize environment variable. Call
6355 * server.h (post_fork_inferior): New prototype.
6356 (get_environ): Likewise.
6357 (last_status): Declare.
6358 (last_ptid): Likewise.
6359 (signal_pid): Likewise.
6360 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
6361 (spu_ptrace_fun): New function.
6362 (spu_create_inferior): Adjust function prototype to reflect change
6363 on "target.h". Adjust function code to use "fork_inferior".
6364 * target.c (target_terminal_init): New function.
6365 (target_terminal_inferior): Likewise.
6366 (target_terminal_ours): Likewise.
6367 * target.h: Include <vector>.
6368 (struct target_ops) <create_inferior>: Update prototype.
6369 (create_inferior): Update macro.
6370 * utils.c (gdb_flush_out_err): New function.
6371 * win32-low.c (win32_create_inferior): Adjust function prototype
6372 and code to reflect change on "target.h".
6374 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6376 * inferiors.c (switch_to_thread): New function.
6378 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6380 * Makefile.in (SFILE): Add "common/job-control.c".
6381 (OBS): Add "job-control.o".
6383 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
6385 * Makefile: Remove "@host_makefile_frag@".
6387 2017-05-05 Pedro Alves <palves@redhat.com>
6389 * configure: Regenerate.
6391 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
6393 * configure: Regenerate.
6395 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6397 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
6398 software_single_step change of return type to
6399 std::vector<CORE_ADDR>.
6400 * linux-low.c (install_software_single_step_breakpoints):
6402 * linux-low.h (install_software_single_step_breakpoints):
6405 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
6407 * remote-utils.c: Include "gdb_termios.h" instead of
6409 * terminal.h: Delete file.
6411 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
6413 * server.c: Include <vector>.
6414 <program_argv, wrapper_argv>: Convert to std::vector.
6415 (start_inferior): Rewrite function to use C++.
6416 (handle_v_run): Likewise. Update code that calculates the argv
6417 based on the vRun packet; use C++.
6418 (captured_main): Likewise.
6420 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
6422 * server.c (handle_v_cont): Initialize thread_resume::thread
6425 2017-04-05 Pedro Alves <palves@redhat.com>
6427 * configure: Regenerate.
6429 2017-04-05 Pedro Alves <palves@redhat.com>
6431 * gdbreplay.c (sync_error): Constify.
6432 * linux-x86-low.c (push_opcode): Constify.
6434 2017-04-05 Pedro Alves <palves@redhat.com>
6436 * win32-low.c (get_child_debug_event)
6437 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
6438 Report TARGET_WAITKIND_SPURIOUS instead.
6440 2017-04-05 Pedro Alves <palves@redhat.com>
6442 * remote-utils.c (remote_prepare, remote_open): Constify.
6443 * remote-utils.h (remote_prepare, remote_open): Constify.
6444 * server.c (captured_main): Constify 'port' handling.
6446 2017-04-04 Simon Marchi <simon.marchi@ericsson.com>
6448 * Makefile.in (clean): Clear .deps.
6450 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
6452 * .gitignore: Remove generated files, replace with wildcard.
6453 * (clean): Replace removal of generated files with wildcard.
6454 (version.c): Replace with...
6455 (version-generated.c): ...this.
6456 (xml-builtin.c): Replace with...
6457 (xml-builtin-generated.c): ...this.
6458 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
6459 (%.c: *regformats*): Replace with...
6460 (%-generated.c: *regformats*): ...this.
6462 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
6464 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
6465 (xtensa_fill_gregset): Call collect_register_by_name for
6467 (xtensa_store_gregset): Call supply_register_by_name for
6470 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
6472 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
6473 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
6474 (xtensa_store_gregset): Call supply_register for all registers in
6475 a0_regnum..a0_regnum + C0_NREGS range.
6477 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6479 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
6480 (ax-ipa.o: ax.c): Remove.
6481 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
6482 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
6483 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
6484 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
6485 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
6487 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6489 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
6490 (print-utils-ipa.o: ../common/print-utils.c): Remove.
6491 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
6492 (errors-ipa.o: ../common/errors.c): Remove.
6493 (format-ipa.o: ../common/format.c): Remove.
6494 (common-utils-ipa.o: ../common/common-utils.c): Remove.
6496 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6498 * Makefile.in (%-ipa.o: %.c): New rule.
6499 (tracepoint-ipa.o: tracepoint.c): Remove.
6500 (utils-ipa.o: utils.c): Remove.
6501 (remote-utils-ipa.o: remote-utils.c): Remove.
6502 (regcache-ipa.o: regcache.c): Remove.
6503 (i386-linux-ipa.o: i386-linux.c): Remove.
6504 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
6505 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
6506 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
6507 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
6508 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
6509 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
6510 (amd64-linux-ipa.o: amd64-linux.c): Remove.
6511 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
6512 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
6513 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
6514 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
6515 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
6516 (aarch64-ipa.o: aarch64.c): Remove.
6517 (s390-linux32-ipa.o: s390-linux32.c): Remove.
6518 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
6519 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
6520 (s390-linux64-ipa.o: s390-linux64.c): Remove.
6521 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
6522 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
6523 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
6524 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
6525 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
6526 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
6527 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
6528 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
6529 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
6530 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
6531 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
6532 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
6533 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
6534 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
6535 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
6536 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
6537 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
6538 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
6539 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
6540 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
6541 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
6542 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
6543 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
6544 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
6545 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
6546 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
6547 (tdesc-ipa.o: tdesc.c): Remove.
6548 (x32-linux-ipa.o: x32-linux.c): Remove.
6549 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
6550 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
6552 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6554 * Makefile.in (%.o: ../arch/%.c): New rule.
6555 (arm.o: ../arch/arm.c): Remove.
6556 (arm-linux.o: ../arch/arm-linux.c): Remove.
6557 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
6558 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
6560 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6562 * Makefile.in (%.o: ../nat/%.c): New rule.
6563 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
6564 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
6565 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
6566 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
6567 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
6568 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
6569 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
6570 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
6571 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
6572 (linux-personality.o: ../nat/linux-personality.c): Remove.
6573 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
6574 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
6575 (x86-linux.o: ../nat/x86-linux.c): Remove.
6576 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
6577 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
6579 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6581 * Makefile.in (%.o: ../common/%.c): New rule.
6582 (signals.o: ../common/signals.c): Remove.
6583 (print-utils.o: ../common/print-utils.c): Remove.
6584 (rsp-low.o: ../common/rsp-low.c): Remove.
6585 (common-utils.o: ../common/common-utils.c): Remove.
6586 (posix-strerror.o: ../common/posix-strerror.c): Remove.
6587 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
6588 (vec.o: ../common/vec.c): Remove.
6589 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
6590 (xml-utils.o: ../common/xml-utils.c): Remove.
6591 (ptid.o: ../common/ptid.c): Remove.
6592 (buffer.o: ../common/buffer.c): Remove.
6593 (format.o: ../common/format.c): Remove.
6594 (filestuff.o: ../common/filestuff.c): Remove.
6595 (agent.o: ../common/agent.c): Remove.
6596 (errors.o: ../common/errors.c): Remove.
6597 (environ.o: ../common/environ.c): Remove.
6598 (common-debug.o: ../common/common-debug.c): Remove.
6599 (cleanups.o: ../common/cleanups.c): Remove.
6600 (common-exceptions.o: ../common/common-exceptions.c): Remove.
6601 (fileio.o: ../common/fileio.c): Remove.
6602 (common-regcache.o: ../common/common-regcache.c): Remove.
6603 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
6604 (new-op.o: ../common/new-op.c): Remove.
6605 (btrace-common.o: ../common/btrace-common.c): Remove.
6607 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6609 * Makefile.in (%.o: ../target/%.c): New rule.
6610 (waitstatus.o: ../target/waitstatus.c): Remove.
6612 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6615 (%.c: ../regformats/%.dat,
6616 (%.c: ../regformats/arm/%.dat,
6617 (%.c: ../regformats/i386/%.dat,
6618 (%.c: ../regformats/rs6000/%.dat): New rules.
6619 (aarch64.c): Remove.
6620 (reg-arm.c): Remove.
6621 (arm-with-iwmmxt.c): Remove.
6622 (arm-with-vfpv2.c): Remove.
6623 (arm-with-vfpv3.c): Remove.
6624 (arm-with-neon.c): Remove.
6625 (reg-bfin.c): Remove.
6626 (reg-cris.c): Remove.
6627 (reg-crisv32.c): Remove.
6629 (i386-linux.c): Remove.
6630 (i386-avx.c): Remove.
6631 (i386-avx-linux.c): Remove.
6632 (i386-avx-avx512.c): Remove.
6633 (i386-avx-avx512-linux.c): Remove.
6634 (i386-mpx.c): Remove.
6635 (i386-mpx-linux.c): Remove.
6636 (i386-avx-mpx-avx512-pku.c): Remove.
6637 (i386-avx-mpx-avx512-pku-linux.c): Remove.
6638 (i386-avx-mpx.c): Remove.
6639 (i386-avx-mpx-linux.c): Remove.
6640 (i386-mmx.c): Remove.
6641 (i386-mmx-linux.c): Remove.
6642 (reg-ia64.c): Remove.
6643 (reg-m32r.c): Remove.
6644 (reg-m68k.c): Remove.
6646 (mips-linux.c): Remove.
6647 (mips-dsp-linux.c): Remove.
6648 (mips64-linux.c): Remove.
6649 (mips64-dsp-linux.c): Remove.
6650 (nios2-linux.c): Remove.
6651 (powerpc-32.c): Remove.
6652 (powerpc-32l.c): Remove.
6653 (powerpc-altivec32l.c): Remove.
6654 (powerpc-cell32l.c): Remove.
6655 (powerpc-vsx32l.c): Remove.
6656 (powerpc-isa205-32l.c): Remove.
6657 (powerpc-isa205-altivec32l.c): Remove.
6658 (powerpc-isa205-vsx32l.c): Remove.
6659 (powerpc-e500l.c): Remove.
6660 (powerpc-64l.c): Remove.
6661 (powerpc-altivec64l.c): Remove.
6662 (powerpc-cell64l.c): Remove.
6663 (powerpc-vsx64l.c): Remove.
6664 (powerpc-isa205-64l.c): Remove.
6665 (powerpc-isa205-altivec64l.c): Remove.
6666 (powerpc-isa205-vsx64l.c): Remove.
6667 (s390-linux32.c): Remove.
6668 (s390-linux32v1.c): Remove.
6669 (s390-linux32v2.c): Remove.
6670 (s390-linux64.c): Remove.
6671 (s390-linux64v1.c): Remove.
6672 (s390-linux64v2.c): Remove.
6673 (s390-te-linux64.c): Remove.
6674 (s390-vx-linux64.c): Remove.
6675 (s390-tevx-linux64.c): Remove.
6676 (s390x-linux64.c): Remove.
6677 (s390x-linux64v1.c): Remove.
6678 (s390x-linux64v2.c): Remove.
6679 (s390x-te-linux64.c): Remove.
6680 (s390x-vx-linux64.c): Remove.
6681 (s390x-tevx-linux64.c): Remove.
6682 (tic6x-c64xp-linux.c): Remove.
6683 (tic6x-c64x-linux.c): Remove.
6684 (tic6x-c62x-linux.c): Remove.
6686 (reg-sparc64.c): Remove.
6687 (reg-spu.c): Remove.
6689 (amd64-linux.c): Remove.
6690 (amd64-avx.c): Remove.
6691 (amd64-avx-linux.c): Remove.
6692 (amd64-avx-avx512.c): Remove.
6693 (amd64-avx-avx512-linux.c): Remove.
6694 (amd64-mpx.c): Remove.
6695 (amd64-mpx-linux.c): Remove.
6696 (amd64-avx-mpx-avx512-pku.c): Remove.
6697 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
6698 (amd64-avx-mpx.c): Remove.
6699 (amd64-avx-mpx-linux.c): Remove.
6701 (x32-linux.c): Remove.
6702 (x32-avx.c): Remove.
6703 (x32-avx-linux.c): Remove.
6704 (x32-avx-avx512.c): Remove.
6705 (x32-avx-avx512-linux.c): Remove.
6706 (reg-xtensa.c): Remove.
6707 (reg-tilegx.c): Remove.
6708 (reg-tilegx32.c): Remove.
6710 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
6712 * Makefile.in (SFILES): Add "common/environ.c".
6713 (OBJS): Add "common/environ.h".
6715 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
6717 * configure.ac: Check if the fs_base and gs_base members of
6718 `struct user_regs_struct' exist.
6719 * config.in: Regenerated.
6720 * configure: Likewise.
6722 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
6724 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
6726 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
6727 (get_next_pcs_syscall_next_pc): Likewise.
6729 2016-12-23 Luis Machado <lgustavo@codesourcery.com>
6731 * win32-i386-low.c: Fix incorrect reference to a couple source files.
6732 * nto-x86-low.c: Likewise.
6734 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
6736 * Makefile.in: Include disable-implicit-rules.mk.
6738 2016-11-23 Pedro Alves <palves@redhat.com>
6740 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
6741 (debug_vprintf): Use std::chrono::steady_clock instead of
6742 gettimeofday. Use '.' instead of ':'.
6743 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
6744 (get_timestamp): Use std::chrono::steady_clock instead of
6747 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
6749 * Makefile.in: Fix whitespace formatting.
6751 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
6753 * Makefile.in (SFILES, OBS): Flatten list and order
6756 2016-11-23 Pedro Alves <palves@redhat.com>
6758 * event-loop.c (handle_file_event): Use warning.
6759 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
6760 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6763 2016-11-23 Pedro Alves <palves@redhat.com>
6765 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
6767 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
6768 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
6769 debug_printf and debug_flush for debug output.
6770 * server.c (handle_general_set): Likewise.
6771 * thread-db.c (try_thread_db_load): Use debug_printf for debug
6774 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6776 * Makefile.in (.c.o): Replace rule with ...
6777 (%.o: %.c): ... this one.
6779 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6781 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
6782 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
6784 * configure.ac: Remove checks for the make program.
6785 * configure: Re-generate.
6787 2016-10-28 Pedro Alves <palves@redhat.com>
6789 * Makefile.in (CXX_DIALECT): Get from configure.
6790 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
6791 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
6792 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
6793 * config.in: Regenerate.
6794 * configure: Regenerate.
6796 2016-10-27 Yao Qi <yao.qi@linaro.org>
6798 * linux-low.c (linux_supports_range_stepping): Return true if
6799 can_software_single_step return true.
6801 2016-10-27 Yao Qi <yao.qi@linaro.org>
6803 * inferiors.c (find_inferior_in_random): New function.
6804 * inferiors.h (find_inferior_in_random): Declare.
6805 * linux-low.c (linux_wait_for_event_filtered): Call
6806 find_inferior_in_random instead of find_inferior.
6808 2016-10-27 Yao Qi <yao.qi@linaro.org>
6810 * linux-low.c (linux_wait_1): If single-step breakpoints are
6811 inserted, remove them.
6813 2016-10-26 Pedro Alves <palves@redhat.com>
6815 * linux-low.c (handle_extended_wait): Link parent/child fork
6817 (linux_wait_1): Unlink them.
6818 (linux_set_resume_request): Ignore resume requests for
6819 already-resumed and unhandled fork child threads.
6820 * linux-low.h (struct lwp_info) <fork_relative>: New field.
6821 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
6823 (handle_v_requests) <vCont>: Don't call require_running.
6824 * server.h (in_queued_stop_replies): New declaration.
6826 2016-10-24 Yao Qi <yao.qi@linaro.org>
6829 * linux-aarch64-low.c (append_insns): Cast the return value to
6832 2016-10-10 Yao Qi <yao.qi@linaro.org>
6834 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
6836 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
6838 * target.c (target_supports_multi_process): New function, moved
6840 * target.h (target_supports_multi_process): ... here. Remove
6843 2016-10-05 Tom Tromey <tom@tromey.com>
6846 * tracepoint.c (handle_tracepoint_bkpts): Check
6847 ipa_error_tracepoint, not ipa_stopping_tracepoint.
6849 2016-10-05 Yao Qi <yao.qi@linaro.org>
6851 * configure.srv: Update the path of arm-*.xml files.
6853 2016-10-05 Terry Guo <terry.guo@arm.com>
6854 Yao Qi <yao.qi@linaro.org>
6856 * Makefile.in: Adjust the path of rules.
6857 * configure.srv: Update the path of xml files.
6858 * regformats/arm-with-iwmmxt.dat: Regenerated.
6859 * regformats/arm-with-neon.dat: Likewise.
6860 * regformats/arm-with-vfpv2.dat: Likewise.
6861 * regformats/arm-with-vfpv3.dat Likewise.
6863 2016-09-30 Yao Qi <yao.qi@linaro.org>
6866 * target.c (target_stop_and_wait): Don't call
6867 target_continue_no_signal, use resume_stop instead.
6869 2016-09-26 Yao Qi <yao.qi@linaro.org>
6871 * linux-low.c (linux_wait_1): Call debug_exit.
6873 2016-09-23 Pedro Alves <palves@redhat.com>
6875 * Makefile.in (SFILES): Add common/new-op.c.
6876 (OBS): Add common/new-op.o.
6877 (new-op.o): New rule.
6879 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
6881 * .gitinore: Ignore more files.
6883 2016-09-21 Yao Qi <yao.qi@linaro.org>
6885 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
6888 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
6890 * server.c (start_inferior): Call target_mourn_inferior instead of
6891 mourn_inferior; pass ptid_t argument to it.
6893 (handle_target_event): Likewise.
6894 * target.c (target_mourn_inferior): New function.
6895 * target.h (mourn_inferior): Delete macro.
6897 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
6899 * linux-low.c (lwp_is_stepping): New function.
6901 2016-09-06 Carl Love <cel@us.ibm.com>
6903 * server.c (start_inferior): Fixed comment, requested comment change
6904 didn't get updated correctly. Removed reference to ptrace () call as
6905 it is only true on Linux systems.
6907 2016-09-06 Carl Love <cel@us.ibm.com>
6909 * server.c (start_inferior): Do not call
6910 function target_post_create_inferior () if the
6911 inferior process has already exited.
6913 2016-09-05 Pedro Alves <palves@redhat.com>
6915 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
6916 (COMPILE.pre, CC_LD): Use CXX directly.
6917 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
6918 * acinclude.m4: Don't include build-with-cxx.m4.
6919 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
6920 * configure: Regenerate.
6922 2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
6925 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
6926 call writing data to own_buf.
6928 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
6930 * target.c (mywait): Call target_wait instead of
6932 (target_wait): New function.
6934 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
6936 * server.c (start_inferior): New variable 'ptid'. Replace calls
6937 to the_target->resume by target_continue{,_no_signal}, depending
6939 * target.c (target_stop_and_wait): Call target_continue_no_signal
6940 instead of the_target->resume.
6941 (target_continue): New function.
6943 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
6945 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
6947 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6950 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
6952 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
6953 * linux-arm-low.c (ps_get_thread_area): Likewise.
6954 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
6955 * linux-m68k-low.c (ps_get_thread_area): Likewise.
6956 * linux-mips-low.c (ps_get_thread_area): Likewise.
6957 * linux-nios2-low.c (ps_get_thread_area): Likewise.
6958 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
6959 * linux-x86-low.c (ps_get_thread_area): Likewise.
6960 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
6962 2016-08-19 Pedro Alves <palves@redhat.com>
6964 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
6966 2016-08-19 Pedro Alves <palves@redhat.com>
6968 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
6969 comment. Use memcpy instead of casting through unsigned long.
6971 2016-08-19 Pedro Alves <palves@redhat.com>
6973 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
6974 allocating around 0x80000000.
6976 2016-08-19 Pedro Alves <palves@redhat.com>
6979 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
6980 (x32-avx512-linux-ipa.o): New rules.
6981 * configure.ac (x86_64-*-linux*): New x32 check.
6982 * configure.srv (ipa_x32_linux_regobj): New.
6983 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
6984 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
6986 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
6988 * configure: Regenerate.
6990 2016-08-09 Pedro Alves <palves@redhat.com>
6993 * Makefile.in (OBS): Add signals-state-save-restore.o.
6994 (signals-state-save-restore.o): New rule.
6995 * config.in: Regenerate.
6996 * configure: Regenerate.
6997 * linux-low.c: Include "signals-state-save-restore.h".
6998 (linux_create_inferior): Call
6999 restore_original_signals_state.
7000 * server.c: Include "dispositions-save-restore.h".
7001 (captured_main): Call save_original_signals_state.
7003 2016-08-05 Pedro Alves <palves@redhat.com>
7005 * configure: Regenerate.
7007 2016-08-04 Yao Qi <yao.qi@linaro.org>
7009 * linux-low.c (regsets_fetch_inferior_registers): Check
7010 errno is ESRCH or not.
7012 2016-08-02 Yao Qi <yao.qi@linaro.org>
7014 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
7015 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
7016 (thread_db_load_search): Update.
7017 (try_thread_db_load_1): Don't look for td_ta_event_addr,
7018 td_ta_set_event and td_ta_event_getmsg.
7020 2016-07-26 Pedro Alves <palves@redhat.com>
7023 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
7024 of unsigned long for 64-bit registers and use uint32_t instead of
7025 unsigned int for 32-bit registers.
7027 2016-07-26 Pedro Alves <palves@redhat.com>
7029 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
7032 2016-07-21 Tom Tromey <tom@tromey.com>
7034 * configure: Rebuild.
7036 2016-07-21 Yao Qi <yao.qi@linaro.org>
7038 * mem-break.c (find_gdb_breakpoint): Cast bp to
7039 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
7041 2016-07-21 Yao Qi <yao.qi@linaro.org>
7043 * server.c (handle_v_requests): Support s and S actions
7044 if target_supports_software_single_step return true.
7046 2016-07-21 Yao Qi <yao.qi@linaro.org>
7048 * linux-low.c (resume_stopped_resumed_lwps): If resume request
7049 is resume_step, call maybe_hw_step.
7050 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
7052 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
7054 (proceed_one_lwp): If resume request is resume_step, install
7055 reinsert breakpoints and call maybe_hw_step.
7057 2016-07-21 Yao Qi <yao.qi@linaro.org>
7059 * linux-low.c (proceed_one_lwp): Declare.
7060 (linux_resume_one_thread): Remove local variable 'step'.
7061 Lift code enqueue signal. Call proceed_one_lwp instead of
7062 linux_resume_one_lwp.
7064 2016-07-21 Yao Qi <yao.qi@linaro.org>
7066 * linux-low.c (linux_resume_one_thread): Call
7067 enqueue_pending_signal.
7069 2016-07-21 Yao Qi <yao.qi@linaro.org>
7071 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
7072 * inferiors.c (do_restore_current_thread_cleanup): New function.
7073 (make_cleanup_restore_current_thread): Likewise.
7074 * linux-low.c (install_software_single_step_breakpoints): Call
7075 make_cleanup_restore_current_thread. Switch current_thread to
7078 2016-07-21 Yao Qi <yao.qi@linaro.org>
7080 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
7081 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
7082 (clone_one_breakpoint): Likewise.
7083 (delete_reinsert_breakpoints): Change parameter to thread.
7085 (has_reinsert_breakpoints): Likewise.
7086 (uninsert_reinsert_breakpoints): Likewise.
7087 (reinsert_reinsert_breakpoints): Likewise.
7088 * mem-break.h (set_reinsert_breakpoint): Update declaration.
7089 (delete_reinsert_breakpoints): Likewise.
7090 (reinsert_reinsert_breakpoints): Likewise.
7091 (uninsert_reinsert_breakpoints): Likewise.
7092 (has_reinsert_breakpoints): Likewise.
7094 2016-07-21 Yao Qi <yao.qi@linaro.org>
7096 * inferiors.c (get_thread_process): Make parameter const.
7097 * inferiors.h (get_thread_process): Update declaration.
7098 * mem-break.c (clone_all_breakpoints): Remove all parameters.
7099 Add new parameters child_thread and parent_thread. Callers
7101 * mem-break.h (clone_all_breakpoints): Update declaration.
7103 2016-07-21 Yao Qi <yao.qi@linaro.org>
7105 * mem-break.c (struct breakpoint) <cond_list>: Remove.
7106 <command_list, handler>: Remove.
7107 (struct gdb_breakpoint): New.
7108 (struct other_breakpoint): New.
7109 (struct reinsert_breakpoint): New.
7110 (is_gdb_breakpoint): New function.
7111 (any_persistent_commands): Update command_list if
7112 is_gdb_breakpoint returns true.
7113 (set_breakpoint): Create breakpoints according to their types.
7114 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
7115 (set_gdb_breakpoint_1): Likewise.
7116 (set_gdb_breakpoint): Likewise.
7117 (clear_breakpoint_conditions): Change parameter type to
7118 'struct gdb_breakpoint *'.
7119 (clear_breakpoint_commands): Likewise.
7120 (clear_breakpoint_conditions_and_commands): Likewise.
7121 (add_condition_to_breakpoint): Likewise.
7122 (add_breakpoint_condition): Likewise.
7123 (add_commands_to_breakpoint): Likewise.
7124 (check_breakpoints): Check other_breakpoint.
7125 (clone_one_breakpoint): Clone breakpopint according to its type.
7126 * mem-break.h (struct gdb_breakpoint): Declare.
7127 (set_gdb_breakpoint): Update declaration.
7128 (clear_breakpoint_conditions_and_commands): Likewise.
7129 (add_breakpoint_condition): Likewise.
7130 (add_breakpoint_commands): Likewise.
7131 * server.c (process_point_options): Change parameter type to
7132 'struct gdb_breakpoint *'.
7134 2016-07-21 Yao Qi <yao.qi@linaro.org>
7136 * mem-break.c (set_breakpoint_at): Rename it to ...
7137 (set_breakpoint_type_at): ... it.
7138 (set_breakpoint_at): Call set_breakpoint_type_at.
7139 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
7140 * mem-break.h (set_breakpoint_at): Update comments.
7142 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
7144 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
7146 (nios2_store_gregset): Likewise.
7148 2016-07-01 Pedro Alves <palves@redhat.com>
7149 Antoine Tremblay <antoine.tremblay@ericsson.com>
7151 * linux-low.c: Change interface to take the target lwp_info
7152 pointer directly and return void. Handle detaching from a zombie
7154 (linux_detach_lwp_callback): New function.
7155 (linux_detach): Detach from the leader thread after detaching from
7158 2016-06-28 Yao Qi <yao.qi@linaro.org>
7160 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
7161 for variable new_offset.
7162 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
7163 (aarch64_ftrace_insn_reloc_cb): Likewise.
7164 (aarch64_ftrace_insn_reloc_tb): Likewise.
7165 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
7166 PRIx64 instead of PRIx32.
7168 2016-06-28 Yao Qi <yao.qi@linaro.org>
7170 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
7171 (the_low_target): Install arm_get_syscall_trapinfo.
7173 2016-06-28 Yao Qi <yao.qi@linaro.org>
7175 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
7177 (the_low_target): Install aarch64_get_syscall_trapinfo.
7179 2016-06-28 Yao Qi <yao.qi@linaro.org>
7181 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
7183 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
7184 Remove parameter sysno.
7185 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
7188 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7190 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
7191 (s390_emit_ne_goto): Likewise.
7192 (s390_emit_lt_goto): Likewise.
7193 (s390_emit_le_goto): Likewise.
7194 (s390_emit_gt_goto): Likewise.
7195 (s390_emit_ge_goto): Likewise.
7196 (s390x_emit_eq_goto): Likewise.
7197 (s390x_emit_ne_goto): Likewise.
7198 (s390x_emit_lt_goto): Likewise.
7199 (s390x_emit_le_goto): Likewise.
7200 (s390x_emit_gt_goto): Likewise.
7201 (s390x_emit_ge_goto): Likewise.
7202 (s390_emit_ops_impl): Mark variable static.
7203 (s390x_emit_ops): Likewise.
7205 2016-06-17 Yao Qi <yao.qi@linaro.org>
7207 * linux-low.c (handle_extended_wait): Call
7208 uninsert_reinsert_breakpoints for the parent process. Remove
7209 reinsert breakpoints from the child process. Reinsert them to
7210 the parent process when vfork is done.
7211 * mem-break.c (uninsert_reinsert_breakpoints): New function.
7212 (reinsert_reinsert_breakpoints): New function.
7213 * mem-break.h (uninsert_reinsert_breakpoints): Declare
7214 (reinsert_reinsert_breakpoints): Declare.
7216 2016-06-17 Yao Qi <yao.qi@linaro.org>
7218 * linux-low.c (handle_extended_wait): If the parent is doing
7219 step-over, remove the reinsert breakpoints from the forked child.
7221 2016-06-17 Yao Qi <yao.qi@linaro.org>
7223 * linux-low.c (unsuspend_all_lwps): Declare.
7224 (linux_low_filter_event): If thread exited, call finish_step_over.
7225 If step-over is finished, unsuspend other threads.
7227 2016-06-17 Yao Qi <yao.qi@linaro.org>
7229 * linux-low.c (linux_resume_one_lwp_throw): Assert
7230 has_reinsert_breakpoints returns false.
7231 * mem-break.c (delete_disabled_breakpoints): Assert
7232 bp type isn't reinsert_breakpoint.
7234 2016-06-17 Yao Qi <yao.qi@linaro.org>
7236 * linux-low.c (maybe_hw_step): New function.
7237 (linux_resume_one_lwp_throw): Call maybe_hw_step.
7238 (finish_step_over): Switch current_thread to lwp temporarily,
7239 and assert has_reinsert_breakpoints returns true.
7240 (proceed_one_lwp): Call maybe_hw_step.
7241 * mem-break.c (has_reinsert_breakpoints): New function.
7242 * mem-break.h (has_reinsert_breakpoints): Declare.
7244 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
7246 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
7248 2016-05-17 Yao Qi <yao.qi@linaro.org>
7250 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
7251 instead of find_inferior.
7253 2016-05-05 Yao Qi <yao.qi@linaro.org>
7255 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
7256 Initialize res to zero.
7258 2016-05-05 Yao Qi <yao.qi@linaro.org>
7260 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
7263 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7265 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
7266 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
7267 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
7269 2016-04-28 Par Olsson <par.olsson@windriver.com>
7270 Simon Marchi <simon.marchi@ericsson.com>
7272 * tracepoint.c (write_inferior_int8): New function.
7273 (cmd_qtenable_disable): Write enable flag using
7274 write_inferior_int8.
7276 2016-04-25 Yao Qi <yao.qi@linaro.org>
7278 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
7279 (need_step_over_p): Return zero if the LWP has pending signals
7280 can be delivered on software single step target.
7282 2016-04-25 Yao Qi <yao.qi@linaro.org>
7284 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
7285 return instead of error.
7287 2016-04-22 Yao Qi <yao.qi@linaro.org>
7289 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
7292 2016-04-22 Yao Qi <yao.qi@linaro.org>
7294 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
7295 signal when stepping over breakpoint with software single
7298 2016-04-21 Pedro Alves <palves@redhat.com>
7300 * linux-s390-low.c (s390_collect_ptrace_register)
7301 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
7303 (s390_check_regset): Use void * instead of gdb_byte *.
7305 2016-04-20 Pedro Alves <palves@redhat.com>
7307 * configure: Renegerate.
7309 2016-04-20 Yao Qi <yao.qi@linaro.org>
7311 * linux-aarch32-low.c: Include "arch/arm-linux.h".
7312 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
7314 (arm_store_gregset): Likewise.
7316 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
7318 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
7319 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
7320 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
7321 (amd64-avx-mpx-linux.c): New rules.
7322 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
7323 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
7324 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
7325 (srv_amd64_regobj): Add amd64-avx-mpx.o.
7326 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
7327 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
7328 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
7329 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
7330 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
7331 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
7332 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
7333 * linux-x86-low.c (x86_linux_read_description): Add case for
7334 X86_XSTATE_AVX_MPX_MASK.
7335 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
7336 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
7337 init_registers_i386_avx_mpx_linux.
7338 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
7339 (initialize_low_tracepoint): Call
7340 init_registers_i386_avx_mpx_linux.
7341 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
7342 (initialize_low_tracepoint): Call
7343 init_registers_amd64_avx_mpx_linux.
7344 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
7345 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
7346 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
7349 2016-04-18 Pedro Alves <palves@redhat.com>
7351 * configure: Regenerate.
7353 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
7355 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
7356 (aarch64_emit_sub): Likewise.
7358 2016-04-12 Pedro Alves <palves@redhat.com>
7360 * utils.c (prepare_to_throw_exception): Delete.
7362 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
7364 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
7366 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
7368 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
7370 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
7372 * linux-aarch64-ipa.c: Add <elf.h> include.
7373 * linux-ppc-ipa.c: Add <elf.h> include.
7374 * linux-s390-ipa.c: Add <elf.h> include.
7376 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
7378 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
7379 (get_raw_reg_ptr): Likewise.
7380 (get_trace_state_variable_value_ptr): Likewise.
7381 (set_trace_state_variable_value_ptr): Likewise.
7382 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
7385 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
7386 Marcin Kościelnicki <koriakin@0x04.net>
7389 * linux-ppc-low.c (emit_insns): New function.
7390 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
7391 (ppc_emit_prologue): New function.
7392 (ppc_emit_epilogue): New function.
7393 (ppc_emit_add): New function.
7394 (ppc_emit_sub): New function.
7395 (ppc_emit_mul): New function.
7396 (ppc_emit_lsh): New function.
7397 (ppc_emit_rsh_signed): New function.
7398 (ppc_emit_rsh_unsigned): New function.
7399 (ppc_emit_ext): New function.
7400 (ppc_emit_zero_ext): New function.
7401 (ppc_emit_log_not): New function.
7402 (ppc_emit_bit_and): New function.
7403 (ppc_emit_bit_or): New function.
7404 (ppc_emit_bit_xor): New function.
7405 (ppc_emit_bit_not): New function.
7406 (ppc_emit_equal): New function.
7407 (ppc_emit_less_signed): New function.
7408 (ppc_emit_less_unsigned): New function.
7409 (ppc_emit_ref): New function.
7410 (ppc_emit_const): New function.
7411 (ppc_emit_reg): New function.
7412 (ppc_emit_pop): New function.
7413 (ppc_emit_stack_flush): New function.
7414 (ppc_emit_swap): New function.
7415 (ppc_emit_stack_adjust): New function.
7416 (ppc_emit_call): New function.
7417 (ppc_emit_int_call_1): New function.
7418 (ppc_emit_void_call_2): New function.
7419 (ppc_emit_if_goto): New function.
7420 (ppc_emit_goto): New function.
7421 (ppc_emit_eq_goto): New function.
7422 (ppc_emit_ne_goto): New function.
7423 (ppc_emit_lt_goto): New function.
7424 (ppc_emit_le_goto): New function.
7425 (ppc_emit_gt_goto): New function.
7426 (ppc_emit_ge_goto): New function.
7427 (ppc_write_goto_address): New function.
7428 (ppc_emit_ops_impl): New static variable.
7429 (ppc64v1_emit_prologue): New function.
7430 (ppc64v2_emit_prologue): New function.
7431 (ppc64_emit_epilogue): New function.
7432 (ppc64_emit_add): New function.
7433 (ppc64_emit_sub): New function.
7434 (ppc64_emit_mul): New function.
7435 (ppc64_emit_lsh): New function.
7436 (ppc64_emit_rsh_signed): New function.
7437 (ppc64_emit_rsh_unsigned): New function.
7438 (ppc64_emit_ext): New function.
7439 (ppc64_emit_zero_ext): New function.
7440 (ppc64_emit_log_not): New function.
7441 (ppc64_emit_bit_and): New function.
7442 (ppc64_emit_bit_or): New function.
7443 (ppc64_emit_bit_xor): New function.
7444 (ppc64_emit_bit_not): New function.
7445 (ppc64_emit_equal): New function.
7446 (ppc64_emit_less_signed): New function.
7447 (ppc64_emit_less_unsigned): New function.
7448 (ppc64_emit_ref): New function.
7449 (ppc64_emit_const): New function.
7450 (ppc64v1_emit_reg): New function.
7451 (ppc64v2_emit_reg): New function.
7452 (ppc64_emit_pop): New function.
7453 (ppc64_emit_stack_flush): New function.
7454 (ppc64_emit_swap): New function.
7455 (ppc64v1_emit_call): New function.
7456 (ppc64v2_emit_call): New function.
7457 (ppc64v1_emit_int_call_1): New function.
7458 (ppc64v2_emit_int_call_1): New function.
7459 (ppc64v1_emit_void_call_2): New function.
7460 (ppc64v2_emit_void_call_2): New function.
7461 (ppc64_emit_if_goto): New function.
7462 (ppc64_emit_eq_goto): New function.
7463 (ppc64_emit_ne_goto): New function.
7464 (ppc64_emit_lt_goto): New function.
7465 (ppc64_emit_le_goto): New function.
7466 (ppc64_emit_gt_goto): New function.
7467 (ppc64_emit_ge_goto): New function.
7468 (ppc64v1_emit_ops_impl): New static variable.
7469 (ppc64v2_emit_ops_impl): New static variable.
7470 (ppc_emit_ops): New function.
7471 (linux_low_target): Wire in ppc_emit_ops.
7473 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
7474 Marcin Kościelnicki <koriakin@0x04.net>
7477 * Makefile.in: Add powerpc-*-ipa.o
7478 * configure.srv: Add ipa_obj for powerpc*-linux.
7479 * linux-ppc-ipa.c: New file.
7480 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
7482 (PPC_FIELD): New macro.
7483 (PPC_SEXT): New macro.
7484 (PPC_OP6): New macro.
7485 (PPC_BO): New macro.
7486 (PPC_LI): New macro.
7487 (PPC_BD): New macro.
7488 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
7489 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
7490 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
7491 (ppc_get_thread_area): New function.
7492 (is_elfv2_inferior): New function.
7493 (gen_ds_form): New function.
7494 (GEN_STD): New macro.
7495 (GEN_STDU): New macro.
7496 (GEN_LD): New macro.
7497 (GEN_LDU): New macro.
7498 (gen_d_form): New function.
7499 (GEN_ADDI): New macro.
7500 (GEN_ADDIS): New macro.
7501 (GEN_LI): New macro.
7502 (GEN_LIS): New macro.
7503 (GEN_ORI): New macro.
7504 (GEN_ORIS): New macro.
7505 (GEN_LWZ): New macro.
7506 (GEN_STW): New macro.
7507 (GEN_STWU): New macro.
7508 (gen_xfx_form): New function.
7509 (GEN_MFSPR): New macro.
7510 (GEN_MTSPR): New macro.
7511 (GEN_MFCR): New macro.
7512 (GEN_MTCR): New macro.
7513 (GEN_SYNC): New macro.
7514 (GEN_LWSYNC): New macro.
7515 (gen_x_form): New function.
7516 (GEN_OR): New macro.
7517 (GEN_MR): New macro.
7518 (GEN_LWARX): New macro.
7519 (GEN_STWCX): New macro.
7520 (GEN_CMPW): New macro.
7521 (gen_md_form): New function.
7522 (GEN_RLDICL): New macro.
7523 (GEN_RLDICR): New macro.
7524 (gen_i_form): New function.
7526 (GEN_BL): New macro.
7527 (gen_b_form): New function.
7528 (GEN_BNE): New macro.
7529 (GEN_LOAD): New macro.
7530 (GEN_STORE): New macro.
7531 (gen_limm): New function.
7532 (gen_atomic_xchg): New function.
7533 (gen_call): New function.
7534 (ppc_relocate_instruction): New function.
7535 (ppc_install_fast_tracepoint_jump_pad): New function.
7536 (ppc_get_min_fast_tracepoint_insn_len): New function.
7537 (ppc_get_ipa_tdesc_idx): New function.
7538 (the_low_target): Wire in the new functions.
7539 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
7541 * linux-ppc-tdesc.h: New file.
7543 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
7545 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
7546 (alloc_jump_pad_buffer): New function.
7547 * linux-amd64-ipa.c: Add <sys/mman.h> include.
7548 (alloc_jump_pad_buffer): New function.
7549 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
7550 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
7551 (alloc_jump_pad_buffer): New function.
7552 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
7553 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
7554 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
7555 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
7557 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
7559 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
7560 * linux-amd64-ipa.c: Likewise.
7561 * linux-i386-ipa.c: Likewise.
7562 * linux-s390-ipa.c: Likewise.
7563 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
7564 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
7565 set_trace_state_variable_value_ptr.
7566 (struct ipa_sym_addresses): Likewise.
7567 (symbol_list): Likewise.
7568 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
7569 accessing gdb_collect directly.
7570 (gdb_collect_ptr_type): New typedef.
7571 (get_raw_reg_ptr_type): New typedef.
7572 (get_trace_state_variable_value_ptr_type): New typedef.
7573 (set_trace_state_variable_value_ptr_type): New typedef.
7574 (gdb_collect_ptr): New global.
7575 (get_raw_reg_ptr): New global.
7576 (get_trace_state_variable_value_ptr): New global.
7577 (set_trace_state_variable_value_ptr): New global.
7578 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
7579 accessing get_raw_reg directly.
7580 (get_get_tsv_func_addr): Likewise for
7581 get_trace_state_variable_value_ptr.
7582 (get_set_tsv_func_addr): Likewise for
7583 set_trace_state_variable_value_ptr.
7584 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
7586 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
7588 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
7590 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
7592 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
7594 (relocate_instruction): Remove own_buf.
7595 * server.c (own_buf): Make global.
7596 (handle_v_requests): Make global.
7597 * server.h (own_buf): New declaration.
7598 (handle_v_requests): New prototype.
7600 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
7603 * linux-s390-low.c (add_insns): New function.
7604 (s390_emit_prologue): New function.
7605 (s390_emit_epilogue): New function.
7606 (s390_emit_add): New function.
7607 (s390_emit_sub): New function.
7608 (s390_emit_mul): New function.
7609 (s390_emit_lsh): New function.
7610 (s390_emit_rsh_signed): New function.
7611 (s390_emit_rsh_unsigned): New function.
7612 (s390_emit_ext): New function.
7613 (s390_emit_log_not): New function.
7614 (s390_emit_bit_and): New function.
7615 (s390_emit_bit_or): New function.
7616 (s390_emit_bit_xor): New function.
7617 (s390_emit_bit_not): New function.
7618 (s390_emit_equal): New function.
7619 (s390_emit_less_signed): New function.
7620 (s390_emit_less_unsigned): New function.
7621 (s390_emit_ref): New function.
7622 (s390_emit_if_goto): New function.
7623 (s390_emit_goto): New function.
7624 (s390_write_goto_address): New function.
7625 (s390_emit_litpool): New function.
7626 (s390_emit_const): New function.
7627 (s390_emit_call): New function.
7628 (s390_emit_reg): New function.
7629 (s390_emit_pop): New function.
7630 (s390_emit_stack_flush): New function.
7631 (s390_emit_zero_ext): New function.
7632 (s390_emit_swap): New function.
7633 (s390_emit_stack_adjust): New function.
7634 (s390_emit_set_r2): New function.
7635 (s390_emit_int_call_1): New function.
7636 (s390_emit_void_call_2): New function.
7637 (s390_emit_eq_goto): New function.
7638 (s390_emit_ne_goto): New function.
7639 (s390_emit_lt_goto): New function.
7640 (s390_emit_le_goto): New function.
7641 (s390_emit_gt_goto): New function.
7642 (s390_emit_ge_goto): New function.
7643 (s390x_emit_prologue): New function.
7644 (s390x_emit_epilogue): New function.
7645 (s390x_emit_add): New function.
7646 (s390x_emit_sub): New function.
7647 (s390x_emit_mul): New function.
7648 (s390x_emit_lsh): New function.
7649 (s390x_emit_rsh_signed): New function.
7650 (s390x_emit_rsh_unsigned): New function.
7651 (s390x_emit_ext): New function.
7652 (s390x_emit_log_not): New function.
7653 (s390x_emit_bit_and): New function.
7654 (s390x_emit_bit_or): New function.
7655 (s390x_emit_bit_xor): New function.
7656 (s390x_emit_bit_not): New function.
7657 (s390x_emit_equal): New function.
7658 (s390x_emit_less_signed): New function.
7659 (s390x_emit_less_unsigned): New function.
7660 (s390x_emit_ref): New function.
7661 (s390x_emit_if_goto): New function.
7662 (s390x_emit_const): New function.
7663 (s390x_emit_call): New function.
7664 (s390x_emit_reg): New function.
7665 (s390x_emit_pop): New function.
7666 (s390x_emit_stack_flush): New function.
7667 (s390x_emit_zero_ext): New function.
7668 (s390x_emit_swap): New function.
7669 (s390x_emit_stack_adjust): New function.
7670 (s390x_emit_int_call_1): New function.
7671 (s390x_emit_void_call_2): New function.
7672 (s390x_emit_eq_goto): New function.
7673 (s390x_emit_ne_goto): New function.
7674 (s390x_emit_lt_goto): New function.
7675 (s390x_emit_le_goto): New function.
7676 (s390x_emit_gt_goto): New function.
7677 (s390x_emit_ge_goto): New function.
7678 (s390_emit_ops): New function.
7679 (struct linux_target_ops): Fill in emit_ops hook.
7681 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
7684 * Makefile.in: Add s390 IPA files.
7685 * configure.srv: Build IPA for s390.
7686 * linux-s390-ipa.c: New file.
7687 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
7688 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
7689 (tdesc_s390_linux32): Likewise.
7690 (init_registers_s390_linux32v1): Likewise.
7691 (tdesc_s390_linux32v1): Likewise.
7692 (init_registers_s390_linux32v2): Likewise.
7693 (tdesc_s390_linux32v2): Likewise.
7694 (init_registers_s390_linux64): Likewise.
7695 (tdesc_s390_linux64): Likewise.
7696 (init_registers_s390_linux64v1): Likewise.
7697 (tdesc_s390_linux64v1): Likewise.
7698 (init_registers_s390_linux64v2): Likewise.
7699 (tdesc_s390_linux64v2): Likewise.
7700 (init_registers_s390_te_linux64): Likewise.
7701 (tdesc_s390_te_linux64): Likewise.
7702 (init_registers_s390_vx_linux64): Likewise.
7703 (tdesc_s390_vx_linux64): Likewise.
7704 (init_registers_s390_tevx_linux64): Likewise.
7705 (tdesc_s390_tevx_linux64): Likewise.
7706 (init_registers_s390x_linux64): Likewise.
7707 (tdesc_s390x_linux64): Likewise.
7708 (init_registers_s390x_linux64v1): Likewise.
7709 (tdesc_s390x_linux64v1): Likewise.
7710 (init_registers_s390x_linux64v2): Likewise.
7711 (tdesc_s390x_linux64v2): Likewise.
7712 (init_registers_s390x_te_linux64): Likewise.
7713 (tdesc_s390x_te_linux64): Likewise.
7714 (init_registers_s390x_vx_linux64): Likewise.
7715 (tdesc_s390x_vx_linux64): Likewise.
7716 (init_registers_s390x_tevx_linux64): Likewise.
7717 (tdesc_s390x_tevx_linux64): Likewise.
7718 (have_hwcap_s390_vx): New static variable.
7719 (s390_arch_setup): Fill have_hwcap_s390_vx.
7720 (s390_get_thread_area): New function.
7721 (s390_ft_entry_gpr_esa): New const.
7722 (s390_ft_entry_gpr_zarch): New const.
7723 (s390_ft_entry_misc): New const.
7724 (s390_ft_entry_fr): New const.
7725 (s390_ft_entry_vr): New const.
7726 (s390_ft_main_31): New const.
7727 (s390_ft_main_64): New const.
7728 (s390_ft_exit_fr): New const.
7729 (s390_ft_exit_vr): New const.
7730 (s390_ft_exit_misc): New const.
7731 (s390_ft_exit_gpr_esa): New const.
7732 (s390_ft_exit_gpr_zarch): New const.
7733 (append_insns): New function.
7734 (s390_relocate_instruction): New function.
7735 (s390_install_fast_tracepoint_jump_pad): New function.
7736 (s390_get_min_fast_tracepoint_insn_len): New function.
7737 (s390_get_ipa_tdesc_idx): New function.
7738 (struct linux_target_ops): Wire in the above functions.
7739 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
7740 * linux-s390-tdesc.h: New file.
7742 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
7744 * linux-s390-low.c (s390_supports_tracepoints): New function.
7745 (struct linux_target_ops): Fill supports_tracepoints hook.
7747 2016-03-18 Yao Qi <yao.qi@linaro.org>
7749 * linux-low.c (lwp_signal_can_be_delivered): New function.
7750 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
7752 2016-03-18 Yao Qi <yao.qi@linaro.org>
7754 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
7755 0 if signal is enqueued. Remove 'signal' from one debugging
7756 message. Move one debugging message to some lines below.
7757 Remove code setting 'signal' to 0.
7759 2016-03-18 Yao Qi <yao.qi@linaro.org>
7761 * linux-low.c (linux_low_filter_event): Remove redundant
7762 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
7764 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
7766 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
7767 (struct linux_target_ops): Wire in the above.
7769 2016-03-03 Yao Qi <yao.qi@linaro.org>
7771 * linux-low.c: Update comments to start_step_over.
7773 2016-03-03 Yao Qi <yao.qi@linaro.org>
7776 * linux-low.c (handle_extended_wait): Set child suspended
7777 if event_lwp->bp_reinsert isn't zero.
7779 2016-03-02 Yao Qi <yao.qi@linaro.org>
7781 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
7782 enqueue_pending_signal.
7784 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
7786 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
7789 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
7791 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
7792 (s390_regmap_3264) [!__s390x__]: New global.
7793 (s390_collect_ptrace_register): Skip map entries containing -1.
7794 (s390_supply_ptrace_register): Ditto.
7795 (s390_fill_gprs_high): New function.
7796 (s390_store_gprs_high): New function.
7797 (s390_regsets): Add NT_S390_HIGH_GPRS.
7798 (s390_get_hwcap): Enable on 31-bit.
7799 (have_hwcap_s390_high_gprs): Enable on 31-bit.
7800 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
7801 Detect NT_S390_HIGH_GPRS.
7802 (s390_usrregs_info_3264): Enable on 31-bit.
7803 (s390_regs_info): Enable regs_info_3264 on 31-bit.
7804 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
7806 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
7809 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
7810 * configure.srv: Ditto.
7811 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
7812 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
7813 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
7814 (init_registers_amd64_linux): Remove prototype.
7815 (tdesc_amd64_linux): Remove declaration.
7816 (get_ipa_tdesc): New function.
7817 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
7818 initialize remaining tdescs.
7819 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
7820 (init_registers_i386_linux): Remove prototype.
7821 (tdesc_i386_linux): Remove declaration.
7822 (get_ipa_tdesc): New function.
7823 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
7824 initialize remaining tdescs.
7825 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
7826 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
7827 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
7828 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
7829 (x86_get_ipa_tdesc_idx): New function.
7830 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
7831 * linux-x86-tdesc.h: New file.
7832 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
7833 (target_get_ipa_tdesc_idx): New macro.
7834 * tracepoint.c (ipa_tdesc_idx): New macro.
7835 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
7836 (symbol_list): Add ipa_tdesc_idx.
7837 (cmd_qtstart): Write ipa_tdesc_idx in the target.
7838 (ipa_tdesc): Remove.
7839 (ipa_tdesc_idx): New variable.
7840 (get_context_regcache): Use get_ipa_tdesc.
7841 (gdb_collect): Ditto.
7843 * tracepoint.h (get_ipa_tdesc): New prototype.
7844 (ipa_tdesc): Remove.
7846 2016-02-24 Pedro Alves <palves@redhat.com>
7848 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
7849 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
7850 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
7851 Factor out common code between the USE_SIGTRAP_SIGINFO and
7852 !USE_SIGTRAP_SIGINFO blocks.
7853 (linux_low_filter_event): Call save_stop_reason instead of
7854 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
7856 (linux_wait_1): Update comments.
7858 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
7860 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
7861 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
7862 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
7863 ppc_insert_point, ppc_remove_point.
7865 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
7867 * linux-s390-low.c (s390_supports_z_point_type): New function.
7868 (struct linux_target_ops): Wire s390_supports_z_point_type in.
7870 2016-02-16 Yao Qi <yao.qi@linaro.org>
7872 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
7873 PC. Get pc from regcache_read_pc.
7875 2016-02-12 Yao Qi <yao.qi@linaro.org>
7877 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
7878 or linux_get_pc_32bit.
7879 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
7881 2016-02-12 Yao Qi <yao.qi@linaro.org>
7883 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
7884 arm_linux_get_next_pcs_fixup.
7886 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
7888 * tracepoint.c (x_tracepoint_action_download): Change
7889 write_inferior_data_ptr to write_inferior_data_pointer.
7890 (cmd_qtstart): Likewise.
7891 (write_inferior_data_ptr): Remove.
7892 (download_agent_expr): Change write_inferior_data_ptr to
7893 write_inferior_data_pointer.
7894 (download_tracepoint_1): Likewise.
7895 (download_tracepoint): Likewise.
7896 (download_trace_state_variables): Likewise.
7898 2016-02-11 Wei-cheng Wang <cole945@gmail.com>
7899 Marcin Kościelnicki <koriakin@0x04.net>
7901 * tracepoint.c (struct tracepoint_action_ops): Remove.
7902 (struct tracepoint_action): Remove ops.
7903 (m_tracepoint_action_download, r_tracepoint_action_download)
7904 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
7905 size and offset accordingly.
7906 (m_tracepoint_action_ops, r_tracepoint_action_ops)
7907 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
7908 (tracepoint_action_send, tracepoint_action_download): New functions.
7909 Helpers for trace action handlers.
7910 (add_tracepoint_action): Remove setup actions ops.
7911 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
7913 2016-02-10 Yao Qi <yao.qi@linaro.org>
7915 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
7917 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
7919 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
7921 * configure: Regenerate.
7923 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
7925 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
7926 void * to gdb_byte *.
7927 * linux-low.c (siginfo_fixup): Likewise.
7928 (linux_xfer_siginfo): Likewise.
7929 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
7931 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
7933 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
7935 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
7937 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
7939 * linux-x86-low.c [__x86_64__]: Include
7940 "nat/amd64-linux-siginfo.h".
7941 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
7942 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
7943 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
7944 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
7945 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
7946 (cpt_si_fd, si_timerid, si_overrun): Move from
7947 nat/amd64-linux-siginfo.c.
7948 * Makefile.in (amd64-linux-siginfo.o:): New rule.
7950 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
7952 * server.c (skip_to_semicolon): Remove.
7953 (process_point_options): Use strchrnul instead of
7956 2016-01-26 Yao Qi <yao.qi@linaro.org>
7958 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
7959 * linux-low.c (install_software_single_step_breakpoints): Don't
7960 call regcache_read_pc.
7961 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
7964 2016-01-26 Yao Qi <yao.qi@linaro.org>
7966 * linux-low.c (install_software_single_step_breakpoints): Call
7967 regcache_read_pc instead of get_pc.
7969 2016-01-26 Yao Qi <yao.qi@linaro.org>
7971 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
7972 (unblock_async_io): Rename to ...
7973 (block_unblock_async_io): ... it. New function.
7974 (enable_async_io): Don't install SIGIO handler. Unblock it
7976 (disable_async_io): Don't ignore SIGIO. Block it instead.
7977 (initialize_async_io): Install SIGIO handler. Don't call
7980 2016-01-26 Yao Qi <yao.qi@linaro.org>
7982 * remote-utils.c (getpkt): If the buffer isn't empty, and the
7983 first character is '\003', call *the_target->request_interrupt.
7985 2016-01-25 Yao Qi <yao.qi@linaro.org>
7987 * remote-utils.c (new_thread_notify): Remove.
7988 (dead_thread_notify): Likewise.
7989 * remote-utils.h (new_thread_notify): Remove declaration.
7990 (dead_thread_notify): Likewise.
7992 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
7994 * gdb.trace/pending.exp: Fix expected message on continue.
7996 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
7998 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
7999 it works properly on big-endian machines where sizeof (CORE_ADDR)
8002 2016-01-21 Pedro Alves <palves@redhat.com>
8004 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
8005 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
8006 * configure: Regenerate.
8008 2016-01-21 Yao Qi <yao.qi@linaro.org>
8010 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
8011 is_thumb and set it according to CPSR saved on the stack.
8012 (get_next_pcs_syscall_next_pc): Pass is_thumb to
8013 arm_sigreturn_next_pc.
8015 2016-01-18 Yao Qi <yao.qi@linaro.org>
8017 * linux-low.c (linux_set_pc_64bit): New function.
8018 (linux_get_pc_64bit): New function.
8019 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
8021 * linux-sparc-low.c (debug_threads): Remove declaration.
8022 (sparc_get_pc): Remove.
8023 (the_low_target): Use linux_get_pc_64bit instead of
8025 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
8026 (the_low_target): Use linux_get_pc_64bit and
8029 2016-01-18 Yao Qi <yao.qi@linaro.org>
8031 * linux-arm-low.c (debug_threads): Remove declaration.
8032 (arm_get_pc, arm_set_pc): Remove.
8033 (the_low_target): Use linux_get_pc_32bit and
8035 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
8036 (the_low_target): Use linux_get_pc_32bit and
8038 * linux-cris-low.c (debug_threads): Remove declaration.
8039 (cris_get_pc, cris_set_pc,): Remove.
8040 (the_low_target): Use linux_get_pc_32bit and
8042 * linux-crisv32-low.c (debug_threads): Remove declaration.
8043 (cris_get_pc, cris_set_pc): Remove.
8044 (the_low_target): Use linux_get_pc_32bit and
8046 * linux-low.c: Include inttypes.h.
8047 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
8048 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
8049 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
8050 (the_low_target): Use linux_get_pc_32bit and
8052 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
8053 (the_low_target): Use linux_get_pc_32bit and
8055 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
8056 (the_low_target): Use linux_get_pc_32bit and
8058 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
8059 (the_low_target): Use linux_get_pc_32bit and
8061 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
8062 (the_low_target): Use linux_get_pc_32bit and
8065 2016-01-18 Gary Benson <gbenson@redhat.com>
8067 * configure.ac (AC_FUNC_FORK): New check.
8068 * config.in: Regenerate.
8069 * configure: Likewise.
8071 2016-01-14 Yao Qi <yao.qi@linaro.org>
8073 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
8074 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
8075 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
8076 arm_get_next_pcs_ctor.
8078 2016-01-12 Josh Stone <jistone@redhat.com>
8079 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8081 * inferiors.h: Include "gdb_vecs.h".
8082 (struct process_info): Add syscalls_to_catch.
8083 * inferiors.c (remove_process): Free syscalls_to_catch.
8084 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
8085 syscall_return stops.
8086 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
8087 * server.c (handle_general_set): Handle QCatchSyscalls.
8088 (handle_query): Report support for QCatchSyscalls.
8089 * target.h (struct target_ops): Add supports_catch_syscall.
8090 (target_supports_catch_syscall): New macro.
8091 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
8092 (struct lwp_info): Add syscall_state.
8093 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
8094 Maintain syscall_state and syscalls_to_catch across exec.
8095 (get_syscall_trapinfo): New function, proxy to the_low_target.
8096 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
8097 (linux_low_filter_event): Toggle syscall_state entry/return for
8098 syscall traps, and set it ignored for all others.
8099 (gdb_catching_syscalls_p): New function.
8100 (gdb_catch_this_syscall_p): New function.
8101 (linux_wait_1): Handle SYSCALL_SIGTRAP.
8102 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
8103 (linux_supports_catch_syscall): New function.
8104 (linux_target_ops): Install it.
8105 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
8106 (the_low_target): Install it.
8108 2016-01-12 Mike Frysinger <vapier@gentoo.org>
8110 * acinclude.m4: Include new ../warning.m4 file.
8111 * configure: Regenerated.
8112 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
8114 2016-01-12 Mike Frysinger <vapier@gentoo.org>
8116 * ax.c (is_goto_target): Mark static.
8117 * linux-low.c (register_addr): Likewise.
8118 (linux_fetch_registers, linux_store_registers): Likewise.
8119 * mem-break.c (any_persistent_commands): Fix old prototype.
8120 (add_commands_to_breakpoint): Mark static.
8121 * regcache.c (find_register_by_name): Delete unused func.
8122 * remote-utils.c (hex_or_minus_one): Mark static.
8123 * server.c (monitor_show_help): Mark static.
8124 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
8125 handle_v_requests): Likewise.
8127 2016-01-12 Pedro Alves <palves@redhat.com>
8129 Remove use of the registered trademark symbol throughout.
8131 2016-01-08 Yao Qi <yao.qi@linaro.org>
8133 * remote-utils.c (getpkt): If c is '\003', call target hook
8136 2016-01-06 Yao Qi <yao.qi@linaro.org>
8138 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
8139 linux-aarch32-low.c.
8140 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8141 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8142 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8143 (thumb2_breakpoint): Declare.
8144 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
8145 linux-aarch32-low.h.
8146 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8147 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8148 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8150 2016-01-01 Joel Brobecker <brobecker@adacore.com>
8152 * gdbreplay.c (gdbreplay_version): Change copyright year in
8154 * server.c (gdbserver_version): Likewise.
8156 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
8158 * server.c (crc32_table): Delete.
8159 (crc32): Use libiberty's xcrc32 function.
8161 2015-12-22 Joel Brobecker <brobecker@adacore.com>
8163 * lynx-low.c (lynx_delete_thread_callback): New function.
8164 (lynx_mourn): Properly delete our process and all of its
8165 threads. Remove call to clear_inferiors.
8167 2015-12-22 Joel Brobecker <brobecker@adacore.com>
8169 * target.c (thread_search_callback): Add check that
8170 the thread_stopped target callback is not NULL before
8173 2015-12-21 Yao Qi <yao.qi@linaro.org>
8175 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
8178 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8180 * server.c (handle_query): Call target_supports_software_single_step.
8182 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8184 * linux-low.c (single_step): New function.
8185 (linux_resume_one_lwp_throw): Call single_step.
8186 (start_step_over): Likewise.
8188 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8190 * Makefile.in (SFILES): Append arch/arm-linux.c,
8191 arch/arm-get-next-pcs.c.
8192 (arm-linux.o): New rule.
8193 (arm-get-next-pcs.o): New rule.
8194 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
8196 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
8197 to linux-aarch32-low.c.
8198 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8199 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8200 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8201 (thumb2_breakpoint_len): Likewise.
8202 (arm_is_thumb_mode): Make non-static.
8203 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
8204 from linux-aarch32-low.c.
8205 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8206 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8207 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8208 (thumb2_breakpoint_len): Likewise.
8209 (arm_is_thumb_mode): New declaration.
8210 * linux-arm-low.c: Include arch/arm-linux.h
8211 aarch/arm-get-next-pcs.h, sys/syscall.h.
8212 (get_next_pcs_ops): New struct.
8213 (get_next_pcs_addr_bits_remove): New function.
8214 (get_next_pcs_is_thumb): New function.
8215 (get_next_pcs_read_memory_unsigned_integer): Likewise.
8216 (arm_sigreturn_next_pc): Likewise.
8217 (get_next_pcs_syscall_next_pc): Likewise.
8218 (arm_gdbserver_get_next_pcs): Likewise.
8219 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
8221 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
8222 * server.h: Include gdb_vecs.h.
8224 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8226 * Makefile.in (SFILES): Append common/common-regcache.c.
8227 (OBS): Append common-regcache.o.
8228 (common-regcache.o): New rule.
8229 * regcache.c (init_register_cache): Initialize cache to
8231 (regcache_raw_read_unsigned): New function.
8232 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
8233 register_status enum.
8235 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8237 * linux-aarch64-low.c (the_low_targets): Rename
8238 breakpoint_reinsert_addr to get_next_pcs.
8239 * linux-arm-low.c (the_low_targets): Likewise.
8240 * linux-bfin-low.c (the_low_targets): Likewise.
8241 * linux-cris-low.c (the_low_targets): Likewise.
8242 * linux-crisv32-low.c (the_low_targets): Likewise.
8243 * linux-low.c (can_software_single_step): Likewise.
8244 (install_software_single_step_breakpoints): New function.
8245 (start_step_over): Use install_software_single_step_breakpoints.
8246 * linux-low.h: New CORE_ADDR vector.
8247 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
8249 * linux-mips-low.c (the_low_targets): Likewise.
8250 * linux-nios2-low.c (the_low_targets): Likewise.
8251 * linux-sparc-low.c (the_low_targets): Likewise.
8253 2015-12-17 Pedro Alves <palves@redhat.com>
8255 * linux-low.c (linux_kill_one_lwp): Remove references to
8257 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
8259 (linux_init_signals): Delete.
8260 (initialize_low): Adjust.
8261 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
8263 2015-12-16 Pedro Alves <palves@redhat.com>
8265 * configure.ac (compiler warning flags): When testing a
8266 -Wno-foo option, check whether -Wfoo works instead.
8267 * configure: Regenerate.
8269 2015-12-11 Don Breazeal <donb@codesourcery.com>
8271 * server.c (process_serial_event): Don't exit from gdbserver
8272 in remote mode if there are still active inferiors.
8274 2015-12-11 Yao Qi <yao.qi@linaro.org>
8276 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
8277 arm_breakpoint_at if the process is 32-bit.
8279 2015-12-11 Yao Qi <yao.qi@linaro.org>
8281 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
8284 2015-12-07 Yao Qi <yao.qi@linaro.org>
8286 * configure.srv: Append arm.o to srv_tgtobj for
8287 aarch64*-*-linux* target.
8288 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
8289 from linux-arm-low.c.
8290 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8291 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8292 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8293 (thumb2_breakpoint_len): Likewise.
8294 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
8295 (arm_breakpoint_kinds): Likewise.
8296 (arm_breakpoint_kind_from_pc): Likewise.
8297 (arm_sw_breakpoint_from_kind): Likewise.
8298 (arm_breakpoint_kind_from_current_state): Likewise.
8299 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
8300 (arm_sw_breakpoint_from_kind): Declare.
8301 (arm_breakpoint_kind_from_current_state): Declare.
8302 (arm_breakpoint_at): Declare.
8303 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
8304 arm_sw_breakpoint_from_kind if process is 32-bit.
8305 (aarch64_breakpoint_kind_from_pc): New function.
8306 (aarch64_breakpoint_kind_from_current_state): New function.
8307 (the_low_target): Initialize fields breakpoint_kind_from_pc
8308 and breakpoint_kind_from_current_state.
8309 * linux-arm-low.c (arm_breakpoint_kinds): Move to
8310 linux-aarch32-low.c.
8311 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
8312 (arm_breakpoint, arm_breakpoint_len): Likewise.
8313 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
8314 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8315 (arm_is_thumb_mode): Likewise.
8316 (arm_breakpoint_at): Likewise.
8317 (arm_breakpoint_kind_from_pc): Likewise.
8318 (arm_sw_breakpoint_from_kind): Likewise.
8319 (arm_breakpoint_kind_from_current_state): Likewise.
8322 2015-08-04 Yao Qi <yao.qi@linaro.org>
8324 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
8325 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
8326 * server.c (extended_protocol): Remove "static".
8327 * server.h (extended_protocol): Declare it.
8329 2015-12-04 Josh Stone <jistone@redhat.com>
8331 * target.h (struct target_ops) <arch_setup>: Rename to ...
8332 (struct target_ops) <post_create_inferior>: ... this.
8333 (target_arch_setup): Rename to ...
8334 (target_post_create_inferior): ... this, calling post_create_inferior.
8335 * server.c (start_inferior): Update target_arch_setup calls to
8336 target_post_create_inferior.
8337 * linux-low.c (linux_low_ptrace_options): Forward declare.
8338 (linux_arch_setup): Update its comment for general use.
8339 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
8340 (struct linux_target_ops): Use linux_post_create_inferior.
8341 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
8342 to post_create_inferior.
8343 * nto-low.c (struct nto_target_ops): Likewise.
8344 * spu-low.c (struct spu_target_ops): Likewise.
8345 * win32-low.c (struct win32_target_ops): Likewise.
8347 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
8349 * linux-arm-low.c: Remove duplicate arch/arm.h include.
8351 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
8353 * linux-arm-low.c (arm_reinsert_addr): Remove function.
8354 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
8355 * linux-cris-low.c (cris_reinsert_addr> Remove function.
8356 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8357 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
8358 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8359 * linux-mips-low.c (mips_reinsert_addr): Remove function.
8360 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8361 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
8362 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8363 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
8364 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8366 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
8368 * linux-low.c (linux_look_up_symbols): Don't call
8369 linux_supports_traceclone.
8370 * linux-low.h (thread_db_init): Remove use_events argument.
8371 * thread-db.c (thread_db_use_event): Remove global variable.
8372 (struct thread_db) <td_thr_event_enable_p>: Remove field.
8373 (struct thread_db) <td_create_bp>: Remove field.
8374 (thread_db_create_event): Remove function.
8375 (thread_db_enable_reporting): Likewise.
8376 (find_one_thread): Don't check for thread_db_use_events.
8377 (attach_thread): Likewise.
8378 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
8379 (try_thread_db_load_1): Don't check for thread_db_use_events.
8380 (thread_db_init): Remove use_events argument and thread events
8382 (remove_thread_event_breakpoints): Remove function.
8383 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
8385 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
8387 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
8389 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8390 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
8391 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8392 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
8393 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
8395 * linux-crisv32-low.c (cris_supports_hardware_single_step):
8397 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8398 * linux-low.c (can_hardware_single_step): Use
8399 supports_hardware_single_step.
8400 (can_software_single_step): New function.
8401 (start_step_over): Call can_software_single_step.
8402 (linux_supports_hardware_single_step): New function.
8403 (struct target_ops) <supports_software_single_step>: Initialize.
8404 * linux-low.h (struct linux_target_ops)
8405 <supports_hardware_single_step>: Initialize.
8406 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
8407 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8408 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
8409 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
8410 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
8411 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8412 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
8413 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8414 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
8415 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
8417 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
8418 (struct linux_target_ops) <tile_supports_hardware_single_step>:
8420 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
8421 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8422 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
8424 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8425 * target.h (struct target_ops): <supports_software_single_step>:
8427 (target_supports_software_single_step): New macro.
8429 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
8431 * linux-low.c (linux_wait_1): Fix pc advance condition.
8432 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
8433 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
8435 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
8437 * linux-arm-low.c (arm_is_thumb_mode): New function.
8438 (arm_breakpoint_at): Use arm_is_thumb_mode.
8439 (arm_breakpoint_kind_from_current_state): New function.
8440 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
8442 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
8443 (linux_breakpoint_kind_from_current_state): New function.
8444 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
8445 * linux-low.h (struct linux_target_ops)
8446 <breakpoint_kind_from_current_state>: New field.
8447 * target.h (struct target_ops): Likewise.
8448 (target_breakpoint_kind_from_current_state): New macro.
8450 2015-11-30 Pedro Alves <palves@redhat.com>
8452 * linux-low.c (linux_resume): Wake up the event loop before
8455 2015-11-30 Pedro Alves <palves@redhat.com>
8457 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
8459 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
8461 * target.c (struct thread_search): New structure.
8462 (thread_search_callback): New function.
8463 (prev_general_thread): New global.
8464 (prepare_to_access_memory, done_accessing_memory): New functions.
8465 * target.h (prepare_to_access_memory, done_accessing_memory):
8466 Replace macros with function declarations.
8468 2015-11-30 Pedro Alves <palves@redhat.com>
8471 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
8472 report TARGET_WAITKIND_NO_RESUMED.
8473 * remote-utils.c (prepare_resume_reply): Handle
8474 TARGET_WAITKIND_NO_RESUMED.
8475 * server.c (report_no_resumed): New global.
8476 (handle_query) <qSupported>: Handle "no-resumed+". Report
8477 "no-resumed+" support.
8478 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
8479 return error if the client doesn't support no-resumed events.
8480 (push_stop_notification): New function.
8481 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
8482 events if the client supports them.
8484 2015-11-30 Pedro Alves <palves@redhat.com>
8486 * linux-low.c (thread_still_has_status_pending_p): Don't check
8488 (lwp_resumed): New function.
8489 (status_pending_p_callback): Return early if the LWP is not
8490 supposed to be resumed.
8492 2015-11-30 Pedro Alves <palves@redhat.com>
8494 * linux-low.c (handle_extended_wait): Assert that the LWP's
8495 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
8496 thread create events, leave the new child's status pending.
8497 (linux_low_filter_event): If GDB wants to hear about thread exit
8498 events, leave the LWP marked dead and don't delete it.
8499 (linux_wait_for_event_filtered): Don't check for thread exit.
8500 (filter_exit_event): New function.
8501 (linux_wait_1): Use it, when returning an exit event.
8502 (linux_resume_one_lwp_throw): Assert that the LWP's
8503 waitstatus is TARGET_WAITKIND_IGNORE.
8504 * remote-utils.c (prepare_resume_reply): Handle
8505 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
8506 * server.c (report_thread_events): New global.
8507 (handle_general_set): Handle QThreadEvents.
8508 (handle_query) <qSupported>: Handle and report QThreadEvents+;
8509 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
8510 TARGET_WAITKIND_THREAD_EXITED.
8511 * server.h (report_thread_events): Declare.
8513 2015-11-30 Pedro Alves <palves@redhat.com>
8515 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
8516 the thread's last_resume_kind was resume_stop.
8518 2015-11-30 Pedro Alves <palves@redhat.com>
8520 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
8523 2015-11-30 Pedro Alves <palves@redhat.com>
8525 * server.c (handle_v_requests): Handle vCtrlC.
8527 2015-11-30 Pedro Alves <palves@redhat.com>
8529 * gdbthread.h (find_any_thread_of_pid): Declare.
8530 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
8532 * server.c (handle_query): If current_thread is NULL, look for
8533 another thread of the selected process.
8535 2015-11-26 Daniel Colascione <dancol@dancol.org>
8536 Simon Marchi <simon.marchi@ericsson.com>
8538 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
8539 * server.c (handle_qxfer_threads_worker): Refactor to include thread
8541 * target.h (struct target_ops) <thread_name>: New field.
8542 (target_thread_name): New macro.
8544 2015-11-23 Joel Brobecker <brobecker@adacore.com>
8546 * regcache.h (regcache_invalidate_pid): Add declaration.
8547 * regcache.c (regcache_invalidate_pid): New function, extracted
8548 from regcache_invalidate.
8549 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
8550 Add trivial documentation comment.
8551 * lynx-low.c: Use regcache_invalidate_pid instead of
8552 regcache_invalidate.
8554 2015-11-23 Joel Brobecker <brobecker@adacore.com>
8556 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
8557 and Elf64_auxv_t if the target is Android.
8559 2015-11-22 Doug Evans <xdje42@gmail.com>
8561 * target.h: #include <sys/types.h>.
8563 2015-11-19 Pedro Alves <palves@redhat.com>
8565 * linux-low.c (linux_process_qsupported): Change prototype.
8567 * linux-low.h (struct linux_target_ops) <process_qsupported>:
8569 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
8570 and adjust to loop over all features.
8571 * server.c (handle_query) <qSupported>: Adjust to call
8572 target_process_qsupported once, passing it a vector of unprocessed
8574 * target.h (struct target_ops) <process_qsupported>: Change
8576 (target_process_qsupported): Adjust.
8578 2015-11-19 Pedro Alves <palves@redhat.com>
8580 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
8582 * configure: Regenerate.
8584 2015-11-19 Pedro Alves <palves@redhat.com>
8586 * configure: Regenerate.
8588 2015-11-19 Yao Qi <yao.qi@linaro.org>
8590 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
8593 2015-11-19 Yao Qi <yao.qi@linaro.org>
8595 * linux-aarch64-low.c (enum aarch64_operand_type): New.
8596 (struct aarch64_operand): Move enum out.
8598 2015-11-19 Yao Qi <yao.qi@linaro.org>
8600 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
8601 struct user_fpsimd_state *.
8602 (aarch64_store_fpregset): Likewise.
8604 2015-11-19 Yao Qi <yao.qi@linaro.org>
8606 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
8607 struct user_pt_regs *.
8608 (aarch64_store_gregset): Likewise.
8610 2015-11-18 Pedro Alves <palves@redhat.com>
8612 * Makefile.in (all_object_files): Add $IPA_OBJS.
8614 2015-11-17 Pedro Alves <palves@redhat.com>
8616 * win32-low.c (win32_resume): Use gdb_signal_from_host,
8617 GDB_SIGNAL_0 and gdb_signal_to_string.
8619 2015-11-17 Pedro Alves <palves@redhat.com>
8621 * win32-low.c (handle_output_debug_string): Remove parameter.
8622 (win32_kill): Remove our_status local and adjust call to
8623 handle_output_debug_string.
8624 (get_child_debug_event): Adjust call to
8625 handle_output_debug_string.
8627 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8629 * linux-mips-low.c (mips_fill_gregset): Add cast.
8630 (mips_store_gregset): Likewise.
8631 (mips_fill_fpregset): Likewise.
8632 (mips_store_fpregset): Likewise.
8634 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8636 * linux-mips-low.c (mips_add_watchpoint): Rename private to
8639 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8641 * linux-mips-low.c (mips_linux_new_thread): Change type of
8642 watch_type to enum target_hw_bp_type.
8644 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8646 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
8647 Change return type to arm_hwbp_type.
8649 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8651 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
8652 (arm_store_gregset): Likewise.
8653 * linux-arm-low.c (arm_get_hwcap): Likewise.
8654 (arm_read_description): Likewise.
8656 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8658 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
8660 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8662 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
8663 (ppc_fill_vsxregset): Likewise.
8664 (ppc_store_vsxregset): Likewise.
8665 (ppc_fill_vrregset): Likewise.
8666 (ppc_store_vrregset): Likewise.
8667 (ppc_fill_evrregset): Likewise.
8668 (ppc_store_evrregset): Likewise.
8670 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8672 * linux-ppc-low.c (ppc_usrregs_info): Remove
8673 forward-declaration.
8674 (ppc_arch_setup): Move lower in file.
8676 2015-10-30 Simon Marchi <simon.marchi@ericsson.com>
8678 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
8679 (ps_pdwrite): Likewise.
8681 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
8683 * linux-arm-low.c (arm_new_thread): Move pointer dereference
8684 to after assert checks.
8686 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
8688 * proc-service.c (ps_pdread): Add/adjust casts.
8689 (ps_pdwrite): Add/adjust casts.
8691 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
8693 * server.c (handle_search_memory_1): Cast return value of
8696 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
8698 * server.c (write_qxfer_response): Change type of data to
8701 2015-10-29 Pedro Alves <palves@redhat.com>
8703 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
8705 2015-10-29 Pedro Alves <palves@redhat.com>
8707 * tracepoint.c (clear_installed_tracepoints): Add casts.
8709 2015-10-29 Pedro Alves <palves@redhat.com>
8711 * server.c (handle_v_cont, process_serial_event): Add enum
8712 gdb_signal casts to signal parsing code.
8714 2015-10-29 Pedro Alves <palves@redhat.com>
8716 * linux-low.h (NULL_REGSET): Define.
8717 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
8718 * linux-arm-low.c (arm_regsets): Likewise.
8719 * linux-crisv32-low.c (cris_regsets): Likewise.
8720 * linux-m68k-low.c (m68k_regsets): Likewise.
8721 * linux-mips-low.c (mips_regsets): Likewise.
8722 * linux-nios2-low.c (nios2_regsets): Likewise.
8723 * linux-ppc-low.c (ppc_regsets): Likewise.
8724 * linux-s390-low.c (s390_regsets): Likewise.
8725 * linux-sh-low.c (sh_regsets): Likewise.
8726 * linux-sparc-low.c (sparc_regsets): Likewise.
8727 * linux-tic6x-low.c (tic6x_regsets): Likewise.
8728 * linux-tile-low.c (tile_regsets): Likewise.
8729 * linux-x86-low.c (x86_regsets): Likewise.
8730 * linux-xtensa-low.c (xtensa_regsets): Likewise.
8732 2015-10-29 Pedro Alves <palves@redhat.com>
8734 * linux-low.h (NULL_REGSET): Define.
8735 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
8736 * linux-arm-low.c (arm_regsets): Likewise.
8737 * linux-crisv32-low.c (cris_regsets): Likewise.
8738 * linux-m68k-low.c (m68k_regsets): Likewise.
8739 * linux-mips-low.c (mips_regsets): Likewise.
8740 * linux-nios2-low.c (nios2_regsets): Likewise.
8741 * linux-ppc-low.c (ppc_regsets): Likewise.
8742 * linux-s390-low.c (s390_regsets): Likewise.
8743 * linux-sh-low.c (sh_regsets): Likewise.
8744 * linux-sparc-low.c (sparc_regsets): Likewise.
8745 * linux-tic6x-low.c (tic6x_regsets): Likewise.
8746 * linux-tile-low.c (tile_regsets): Likewise.
8747 * linux-x86-low.c (x86_regsets): Likewise.
8748 * linux-xtensa-low.c (xtensa_regsets): Likewise.
8750 2015-10-26 Doug Evans <dje@google.com>
8752 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
8754 2015-10-26 Doug Evans <dje@google.com>
8756 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
8758 2015-10-26 Doug Evans <dje@google.com>
8760 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
8762 (attach_thread, find_new_threads_callback): Ditto.
8764 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
8766 * mem-break.h (set_breakpoint_data): Remove.
8768 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
8770 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
8771 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
8772 (initialize_low): Remove set_breakpoint_data call.
8773 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
8774 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
8775 (initialize_low): Remove set_breakpoint_data call.
8776 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
8777 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
8778 (initialize_low): Remove set_breakpoint_data call.
8780 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
8782 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
8783 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
8784 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
8785 * target.h (target_breakpoint_kind_from_pc): New macro.
8787 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
8789 * linux-low.c (default_breakpoint_kind_from_pc): New function.
8790 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
8791 the default breakpoint kind.
8793 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
8795 * linux-arm-low.c (arm_supports_z_point_type): Add software
8798 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
8800 * linux-arm-low.c: Refactor breakpoint definitions.
8801 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
8802 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
8804 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
8806 * Makefile.in: Add arm.c/o.
8807 * configure.srv: Likewise.
8808 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
8809 (arm_breakpoint_kind_from_pc): New function.
8810 (arm_sw_breakpoint_from_kind): Return proper kind.
8811 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
8813 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
8815 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
8817 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
8818 (struct raw_breakpoint) <size>: Remove.
8819 (struct raw_breakpoint) <kind>: Add.
8820 (bp_size): New function.
8821 (bp_opcode): Likewise.
8822 (find_raw_breakpoint_at): Adjust for kind.
8823 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
8824 (remove_memory_breakpoint): Adjust for kind call bp_size.
8825 (set_raw_breakpoint_at): Adjust for kind.
8826 (set_breakpoint): Likewise.
8827 (set_breakpoint_at): Call breakpoint_kind_from_pc.
8828 (delete_raw_breakpoint): Adjust for kind.
8829 (delete_breakpoint): Likewise.
8830 (find_gdb_breakpoint): Likewise.
8831 (set_gdb_breakpoint_1): Likewise.
8832 (set_gdb_breakpoint): Likewise.
8833 (delete_gdb_breakpoint_1): Likewise.
8834 (delete_gdb_breakpoint): Likewise.
8835 (uninsert_raw_breakpoint): Likewise.
8836 (reinsert_raw_breakpoint): Likewise.
8837 (set_breakpoint_data): Remove.
8838 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
8839 (check_mem_read): Adjust for kind call bp_size.
8840 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
8841 (clone_one_breakpoint): Adjust for kind.
8842 * mem-break.h (set_gdb_breakpoint): Likewise.
8843 (delete_gdb_breakpoint): Likewise.
8844 * server.c (process_serial_event): Likewise.
8846 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
8848 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
8849 (struct linux_target_ops) <breakpoint>: Remove.
8850 (struct linux_target_ops) <breakpoint_len>: Remove.
8851 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8852 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8853 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
8854 (arm_sw_breakpoint_from_kind): New function.
8855 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
8856 (struct linux_target_ops) <breakpoint>: Remove.
8857 (struct linux_target_ops) <breakpoint_len>: Remove.
8858 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8859 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8860 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
8861 (struct linux_target_ops) <breakpoint>: Remove.
8862 (struct linux_target_ops) <breakpoint_len>: Remove.
8863 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8864 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8865 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
8866 (struct linux_target_ops) <breakpoint>: Remove.
8867 (struct linux_target_ops) <breakpoint_len>: Remove.
8868 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8869 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8870 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
8871 and sw_breakpoint_from_kind to increment the pc.
8872 (linux_breakpoint_kind_from_pc): New function.
8873 (linux_sw_breakpoint_from_kind): New function.
8874 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
8875 (initialize_low): Call breakpoint_kind_from_pc and
8876 sw_breakpoint_from_kind to replace breakpoint_data/len.
8877 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
8879 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
8880 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
8881 (struct linux_target_ops) <breakpoint>: Remove.
8882 (struct linux_target_ops) <breakpoint_len>: Remove.
8883 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8884 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8885 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
8886 (struct linux_target_ops) <breakpoint>: Remove.
8887 (struct linux_target_ops) <breakpoint_len>: Remove.
8888 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8889 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8890 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
8891 (struct linux_target_ops) <breakpoint>: Remove.
8892 (struct linux_target_ops) <breakpoint_len>: Remove.
8893 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8894 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8895 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
8896 (struct linux_target_ops) <breakpoint>: Remove.
8897 (struct linux_target_ops) <breakpoint_len>: Remove.
8898 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8899 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8900 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
8901 (struct linux_target_ops) <breakpoint>: Remove.
8902 (struct linux_target_ops) <breakpoint_len>: Remove.
8903 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8904 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8905 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
8906 (struct linux_target_ops) <breakpoint>: Remove.
8907 (struct linux_target_ops) <breakpoint_len>: Remove.
8908 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8909 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8910 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
8911 (struct linux_target_ops) <breakpoint>: Remove.
8912 (struct linux_target_ops) <breakpoint_len>: Remove.
8913 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8914 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8915 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
8916 (struct linux_target_ops) <breakpoint>: Remove.
8917 (struct linux_target_ops) <breakpoint_len>: Remove.
8918 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8919 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8920 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
8921 (struct linux_target_ops) <breakpoint>: Remove.
8922 (struct linux_target_ops) <breakpoint_len>: Remove.
8923 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8924 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8925 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
8926 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
8927 (struct linux_target_ops) <breakpoint>: Remove.
8928 (struct linux_target_ops) <breakpoint_len>: Remove.
8929 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8930 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8931 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
8932 (struct linux_target_ops) <breakpoint>: Remove.
8933 (struct linux_target_ops) <breakpoint_len>: Remove.
8934 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8935 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8937 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
8939 * linux-cris-low.c (cris_get_pc): Remove void arg.
8941 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
8943 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
8946 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
8948 * inferiors.c (thread_pid_matches_callback): New function.
8949 (find_thread_process): New function.
8950 (remove_thread): Reset current_thread.
8951 (remove_process): Assert threads have been removed first.
8953 2015-10-15 Yao Qi <yao.qi@linaro.org>
8955 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
8957 (aarch64_remove_point): Likewise.
8958 * regcache.c (regcache_register_size): New function.
8960 2015-10-12 Yao Qi <yao.qi@linaro.org>
8962 * linux-aarch64-low.c: Update all callers as emit_load_store
8963 is renamed to aarch64_emit_load_store.
8965 2015-10-12 Yao Qi <yao.qi@linaro.org>
8967 * linux-aarch64-low.c: Update all callers of function renaming
8968 from emit_insn to aarch64_emit_insn.
8970 2015-10-12 Yao Qi <yao.qi@linaro.org>
8972 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
8973 arch/aarch64-insn.h.
8974 (struct aarch64_memory_operand): Likewise.
8976 (emit_insn): Move to arch/aarch64-insn.c.
8977 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
8978 (emit_load_store): Move to arch/aarch64-insn.c.
8979 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
8980 (can_encode_int32): Remove.
8982 2015-10-12 Yao Qi <yao.qi@linaro.org>
8984 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
8985 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
8986 (aarch64_relocate_instruction): Likewise.
8987 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
8988 (struct aarch64_insn_visitor): Likewise.
8990 2015-10-12 Yao Qi <yao.qi@linaro.org>
8992 * linux-aarch64-low.c (struct aarch64_insn_data): New.
8993 (struct aarch64_insn_visitor): New.
8994 (struct aarch64_insn_relocation_data): New.
8995 (aarch64_ftrace_insn_reloc_b): New function.
8996 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
8997 (aarch64_ftrace_insn_reloc_cb): Likewise.
8998 (aarch64_ftrace_insn_reloc_tb): Likewise.
8999 (aarch64_ftrace_insn_reloc_adr): Likewise.
9000 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
9001 (aarch64_ftrace_insn_reloc_others): Likewise.
9003 (aarch64_relocate_instruction): Use visitor.
9005 2015-10-12 Yao Qi <yao.qi@linaro.org>
9007 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
9008 int. Add argument buf.
9009 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
9010 aarch64_relocate_instruction.
9012 2015-10-12 Yao Qi <yao.qi@linaro.org>
9014 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
9015 argument insn. Remove local variable insn. Don't call
9017 (aarch64_install_fast_tracepoint_jump_pad): Call
9020 2015-09-30 Yao Qi <yao.qi@linaro.org>
9022 * linux-aarch64-low.c (emit_movk): Shorten a long line.
9023 (emit_load_store_pair): Likewise.
9025 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9027 * dll.c (match_dll): Add cast(s).
9028 (unloaded_dll): Likewise.
9029 * linux-low.c (second_thread_of_pid_p): Likewise.
9030 (delete_lwp_callback): Likewise.
9031 (count_events_callback): Likewise.
9032 (select_event_lwp_callback): Likewise.
9033 (linux_set_resume_request): Likewise.
9034 * server.c (accumulate_file_name_length): Likewise.
9035 (emit_dll_description): Likewise.
9036 (handle_qxfer_threads_worker): Likewise.
9037 (visit_actioned_threads): Likewise.
9038 * thread-db.c (any_thread_of): Likewise.
9039 * tracepoint.c (same_process_p): Likewise.
9040 (match_blocktype): Likewise.
9041 (build_traceframe_info_xml): Likewise.
9043 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9045 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
9047 (gdb_unparse_agent_expr): Likewise.
9048 * hostio.c (require_data): Likewise.
9049 (handle_pread): Likewise.
9050 * linux-low.c (disable_regset): Likewise.
9051 (fetch_register): Likewise.
9052 (store_register): Likewise.
9053 (get_dynamic): Likewise.
9054 (linux_qxfer_libraries_svr4): Likewise.
9055 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
9056 (set_fast_tracepoint_jump): Likewise.
9057 (uninsert_fast_tracepoint_jumps_at): Likewise.
9058 (reinsert_fast_tracepoint_jumps_at): Likewise.
9059 (validate_inserted_breakpoint): Likewise.
9060 (clone_agent_expr): Likewise.
9061 * regcache.c (init_register_cache): Likewise.
9062 * remote-utils.c (putpkt_binary_1): Likewise.
9063 (decode_M_packet): Likewise.
9064 (decode_X_packet): Likewise.
9065 (look_up_one_symbol): Likewise.
9066 (relocate_instruction): Likewise.
9067 (monitor_output): Likewise.
9068 * server.c (handle_search_memory): Likewise.
9069 (handle_qxfer_exec_file): Likewise.
9070 (handle_qxfer_libraries): Likewise.
9071 (handle_qxfer): Likewise.
9072 (handle_query): Likewise.
9073 (handle_v_cont): Likewise.
9074 (handle_v_run): Likewise.
9075 (captured_main): Likewise.
9076 * target.c (write_inferior_memory): Likewise.
9077 * thread-db.c (try_thread_db_load_from_dir): Likewise.
9078 * tracepoint.c (init_trace_buffer): Likewise.
9079 (add_tracepoint_action): Likewise.
9080 (add_traceframe): Likewise.
9081 (add_traceframe_block): Likewise.
9082 (cmd_qtdpsrc): Likewise.
9083 (cmd_qtdv): Likewise.
9084 (cmd_qtstatus): Likewise.
9085 (response_source): Likewise.
9086 (response_tsv): Likewise.
9087 (cmd_qtnotes): Likewise.
9088 (gdb_collect): Likewise.
9089 (initialize_tracepoint): Likewise.
9091 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9093 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
9094 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
9095 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
9097 (enum aarch64_condition_codes): New enum.
9098 (w0): New static global.
9101 (struct aarch64_memory_operand) <type>: New
9102 MEMORY_OPERAND_POSTINDEX type.
9103 (postindex_memory_operand): New helper function.
9104 (emit_ret): New function.
9105 (emit_load_store_pair): New function, factored out of emit_stp
9106 with support for MEMORY_OPERAND_POSTINDEX.
9107 (emit_stp): Rewrite using emit_load_store_pair.
9108 (emit_ldp): New function.
9109 (emit_load_store): Likewise.
9110 (emit_ldr): Mention post-index instruction in comment.
9111 (emit_ldrh): New function.
9112 (emit_ldrb): New function.
9113 (emit_ldrsw): Mention post-index instruction in comment.
9114 (emit_str): Likewise.
9115 (emit_subs): New function.
9116 (emit_cmp): Likewise.
9117 (emit_and): Likewise.
9118 (emit_orr): Likewise.
9119 (emit_orn): Likewise.
9120 (emit_eor): Likewise.
9121 (emit_mvn): Likewise.
9122 (emit_lslv): Likewise.
9123 (emit_lsrv): Likewise.
9124 (emit_asrv): Likewise.
9125 (emit_mul): Likewise.
9126 (emit_sbfm): Likewise.
9127 (emit_sbfx): Likewise.
9128 (emit_ubfm): Likewise.
9129 (emit_ubfx): Likewise.
9130 (emit_csinc): Likewise.
9131 (emit_cset): Likewise.
9132 (emit_nop): Likewise.
9133 (emit_ops_insns): New helper function.
9134 (emit_pop): Likewise.
9135 (emit_push): Likewise.
9136 (aarch64_emit_prologue): New function.
9137 (aarch64_emit_epilogue): Likewise.
9138 (aarch64_emit_add): Likewise.
9139 (aarch64_emit_sub): Likewise.
9140 (aarch64_emit_mul): Likewise.
9141 (aarch64_emit_lsh): Likewise.
9142 (aarch64_emit_rsh_signed): Likewise.
9143 (aarch64_emit_rsh_unsigned): Likewise.
9144 (aarch64_emit_ext): Likewise.
9145 (aarch64_emit_log_not): Likewise.
9146 (aarch64_emit_bit_and): Likewise.
9147 (aarch64_emit_bit_or): Likewise.
9148 (aarch64_emit_bit_xor): Likewise.
9149 (aarch64_emit_bit_not): Likewise.
9150 (aarch64_emit_equal): Likewise.
9151 (aarch64_emit_less_signed): Likewise.
9152 (aarch64_emit_less_unsigned): Likewise.
9153 (aarch64_emit_ref): Likewise.
9154 (aarch64_emit_if_goto): Likewise.
9155 (aarch64_emit_goto): Likewise.
9156 (aarch64_write_goto_address): Likewise.
9157 (aarch64_emit_const): Likewise.
9158 (aarch64_emit_call): Likewise.
9159 (aarch64_emit_reg): Likewise.
9160 (aarch64_emit_pop): Likewise.
9161 (aarch64_emit_stack_flush): Likewise.
9162 (aarch64_emit_zero_ext): Likewise.
9163 (aarch64_emit_swap): Likewise.
9164 (aarch64_emit_stack_adjust): Likewise.
9165 (aarch64_emit_int_call_1): Likewise.
9166 (aarch64_emit_void_call_2): Likewise.
9167 (aarch64_emit_eq_goto): Likewise.
9168 (aarch64_emit_ne_goto): Likewise.
9169 (aarch64_emit_lt_goto): Likewise.
9170 (aarch64_emit_le_goto): Likewise.
9171 (aarch64_emit_gt_goto): Likewise.
9172 (aarch64_emit_ge_got): Likewise.
9173 (aarch64_emit_ops_impl): New static global variable.
9174 (aarch64_emit_ops): New target function, return
9175 &aarch64_emit_ops_impl.
9176 (struct linux_target_ops): Install it.
9178 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9180 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
9181 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
9183 * linux-aarch64-ipa.c: New file.
9184 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
9186 (aarch64_get_thread_area): New target method.
9187 (extract_signed_bitfield): New helper function.
9188 (aarch64_decode_ldr_literal): New function.
9189 (enum aarch64_opcodes): New enum.
9190 (struct aarch64_register): New struct.
9191 (struct aarch64_operand): New struct.
9192 (x0): New static global.
9201 (aarch64_register): New helper function.
9202 (register_operand): Likewise.
9203 (immediate_operand): Likewise.
9204 (struct aarch64_memory_operand): New struct.
9205 (offset_memory_operand): New helper function.
9206 (preindex_memory_operand): Likewise.
9207 (enum aarch64_system_control_registers): New enum.
9208 (ENCODE): New macro.
9209 (emit_insn): New helper function.
9210 (emit_b): New function.
9211 (emit_bcond): Likewise.
9212 (emit_cb): Likewise.
9213 (emit_tb): Likewise.
9214 (emit_blr): Likewise.
9215 (emit_stp): Likewise.
9216 (emit_ldp_q_offset): Likewise.
9217 (emit_stp_q_offset): Likewise.
9218 (emit_load_store): Likewise.
9219 (emit_ldr): Likewise.
9220 (emit_ldrsw): Likewise.
9221 (emit_str): Likewise.
9222 (emit_ldaxr): Likewise.
9223 (emit_stxr): Likewise.
9224 (emit_stlr): Likewise.
9225 (emit_data_processing_reg): Likewise.
9226 (emit_data_processing): Likewise.
9227 (emit_add): Likewise.
9228 (emit_sub): Likewise.
9229 (emit_mov): Likewise.
9230 (emit_movk): Likewise.
9231 (emit_mov_addr): Likewise.
9232 (emit_mrs): Likewise.
9233 (emit_msr): Likewise.
9234 (emit_sevl): Likewise.
9235 (emit_wfe): Likewise.
9236 (append_insns): Likewise.
9237 (can_encode_int32_in): New helper function.
9238 (aarch64_relocate_instruction): New function.
9239 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
9240 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
9241 (struct linux_target_ops): Install aarch64_get_thread_area,
9242 aarch64_install_fast_tracepoint_jump_pad and
9243 aarch64_get_min_fast_tracepoint_insn_len.
9245 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9247 * Makefile.in (aarch64-insn.o): New rule.
9248 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
9250 2015-09-21 Yao Qi <yao.qi@linaro.org>
9252 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
9254 2015-09-21 Yao Qi <yao.qi@linaro.org>
9256 * tracepoint.c (max_jump_pad_size): Remove.
9258 2015-09-18 Yao Qi <yao.qi@linaro.org>
9260 * linux-aarch64-low.c: Don't include sys/uio.h.
9261 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
9263 2015-09-16 Wei-cheng Wang <cole945@gmail.com>
9265 * tracepoint.c (eval_result_type): Change prototype.
9266 (condition_true_at_tracepoint): Fix argument to compiled_cond.
9268 2015-09-15 Pedro Alves <palves@redhat.com>
9270 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
9271 Check whether to report exec events instead of checking whether
9272 multiprocess is enabled.
9274 2015-09-15 Pedro Alves <palves@redhat.com>
9277 * remote-utils.c (prepare_resume_reply): Merge
9278 TARGET_WAITKIND_VFORK_DONE switch case with the
9279 TARGET_WAITKIND_FORKED case.
9281 2015-09-15 Yao Qi <yao.qi@linaro.org>
9283 * server.c (handle_query): Check string comparison using
9284 "else if" instead of "if".
9286 2015-09-15 Yao Qi <yao.qi@linaro.org>
9288 * server.c (vCont_supported): New global variable.
9289 (handle_query): Set vCont_supported to 1 if "vContSupported+"
9290 matches. Append ";vContSupported+" to own_buf.
9291 (handle_v_requests): Append ";s;S" to own_buf if target supports
9292 hardware single step or vCont_supported is false.
9293 (capture_main): Set vCont_supported to zero.
9295 2015-09-15 Yao Qi <yao.qi@linaro.org>
9297 * linux-low.c (linux_supports_conditional_breakpoints): Rename
9299 (linux_supports_hardware_single_step): ... New function.
9300 (linux_target_ops): Update.
9301 * lynx-low.c (lynx_target_ops): Set field
9302 supports_hardware_single_step to target_can_do_hardware_single_step.
9303 * nto-low.c (nto_target_ops): Likewise.
9304 * spu-low.c (spu_target_ops): Likewise.
9305 * win32-low.c (win32_target_ops): Likewise.
9306 * target.c (target_can_do_hardware_single_step): New function.
9307 * target.h (struct target_ops) <supports_conditional_breakpoints>:
9308 Remove. <supports_hardware_single_step>: New field.
9309 (target_supports_conditional_breakpoints): Remove.
9310 (target_supports_hardware_single_step): New macro.
9311 (target_can_do_hardware_single_step): Declare.
9312 * server.c (handle_query): Use target_supports_hardware_single_step
9313 instead of target_supports_conditional_breakpoints.
9315 2015-09-15 Yao Qi <yao.qi@linaro.org>
9317 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
9319 (struct linux_target_ops the_low_target): Install
9320 aarch64_linux_siginfo_fixup.
9322 2015-09-11 Don Breazeal <donb@codesourcery.com>
9323 Luis Machado <lgustavo@codesourcery.com>
9325 * linux-low.c (linux_mourn): Static declaration.
9326 (linux_arch_setup): Move in front of
9327 handle_extended_wait.
9328 (linux_arch_setup_thread): New function.
9329 (handle_extended_wait): Handle exec events. Call
9330 linux_arch_setup_thread. Make event_lwp argument a
9331 pointer-to-a-pointer.
9332 (check_zombie_leaders): Do not check stopped threads.
9333 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
9334 (linux_low_filter_event): Add lwp and thread for exec'ing
9335 non-leader thread if leader thread has been deleted.
9336 Refactor code into linux_arch_setup_thread and call it.
9337 Pass child lwp pointer by reference to handle_extended_wait.
9338 (linux_wait_for_event_filtered): Update comment.
9339 (linux_wait_1): Prevent clobbering exec event status.
9340 (linux_supports_exec_events): New function.
9341 (linux_target_ops) <supports_exec_events>: Initialize new member.
9342 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
9344 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
9345 * server.c (report_exec_events): New global variable.
9346 (handle_query): Handle qSupported query for exec-events feature.
9347 (captured_main): Initialize report_exec_events.
9348 * server.h (report_exec_events): Declare new global variable.
9349 * target.h (struct target_ops) <supports_exec_events>: New
9351 (target_supports_exec_events): New macro.
9352 * win32-low.c (win32_target_ops) <supports_exec_events>:
9353 Initialize new member.
9355 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
9357 * linux-low.c (linux_low_enable_btrace): Remove.
9358 (linux_target_ops): Replace linux_low_enable_btrace with
9359 linux_enable_btrace.
9361 2015-09-03 Yao Qi <yao.qi@linaro.org>
9363 * linux-aarch64-low.c (aarch64_insert_point): Call
9364 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
9367 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9369 * linux-low.c (check_stopped_by_breakpoint): Use
9370 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
9372 2015-08-27 Pedro Alves <palves@redhat.com>
9374 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
9376 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
9378 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
9379 the XNEW-family equivalent.
9380 (compile_bytecodes): Likewise.
9381 * dll.c (loaded_dll): Likewise.
9382 * event-loop.c (append_callback_event): Likewise.
9383 (create_file_handler): Likewise.
9384 (create_file_event): Likewise.
9385 * hostio.c (handle_open): Likewise.
9386 * inferiors.c (add_thread): Likewise.
9387 (add_process): Likewise.
9388 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
9389 * linux-arm-low.c (arm_new_process): Likewise.
9390 (arm_new_thread): Likewise.
9391 * linux-low.c (add_to_pid_list): Likewise.
9392 (linux_add_process): Likewise.
9393 (handle_extended_wait): Likewise.
9394 (add_lwp): Likewise.
9395 (enqueue_one_deferred_signal): Likewise.
9396 (enqueue_pending_signal): Likewise.
9397 (linux_resume_one_lwp_throw): Likewise.
9398 (linux_resume_one_thread): Likewise.
9399 (linux_read_memory): Likewise.
9400 (linux_write_memory): Likewise.
9401 * linux-mips-low.c (mips_linux_new_process): Likewise.
9402 (mips_linux_new_thread): Likewise.
9403 (mips_add_watchpoint): Likewise.
9404 * linux-x86-low.c (initialize_low_arch): Likewise.
9405 * lynx-low.c (lynx_add_process): Likewise.
9406 * mem-break.c (set_raw_breakpoint_at): Likewise.
9407 (set_breakpoint): Likewise.
9408 (add_condition_to_breakpoint): Likewise.
9409 (add_commands_to_breakpoint): Likewise.
9410 (clone_agent_expr): Likewise.
9411 (clone_one_breakpoint): Likewise.
9412 * regcache.c (new_register_cache): Likewise.
9413 * remote-utils.c (look_up_one_symbol): Likewise.
9414 * server.c (queue_stop_reply): Likewise.
9415 (start_inferior): Likewise.
9416 (queue_stop_reply_callback): Likewise.
9417 (handle_target_event): Likewise.
9418 * spu-low.c (fetch_ppc_memory): Likewise.
9419 (store_ppc_memory): Likewise.
9420 * target.c (set_target_ops): Likewise.
9421 * thread-db.c (thread_db_load_search): Likewise.
9422 (try_thread_db_load_1): Likewise.
9423 * tracepoint.c (add_tracepoint): Likewise.
9424 (add_tracepoint_action): Likewise.
9425 (create_trace_state_variable): Likewise.
9426 (cmd_qtdpsrc): Likewise.
9427 (cmd_qtro): Likewise.
9428 (add_while_stepping_state): Likewise.
9429 * win32-low.c (child_add_thread): Likewise.
9430 (get_image_name): Likewise.
9432 2015-08-25 Yao Qi <yao.qi@linaro.org>
9434 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
9436 2015-08-25 Yao Qi <yao.qi@linaro.org>
9438 * Makefile.in (aarch64-linux.o): New rule.
9439 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
9441 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
9442 (aarch64_init_debug_reg_state): Make it extern.
9443 (aarch64_linux_prepare_to_resume): Remove.
9445 2015-08-25 Yao Qi <yao.qi@linaro.org>
9447 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
9448 lwp_arch_private_info and ptid_of_lwp.
9450 2015-08-25 Yao Qi <yao.qi@linaro.org>
9452 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
9453 Find proc_info by find_process_pid. All callers updated.
9455 2015-08-25 Yao Qi <yao.qi@linaro.org>
9457 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
9459 (debug_reg_change_callback): Remove.
9460 (aarch64_notify_debug_reg_change): Remove.
9462 2015-08-25 Yao Qi <yao.qi@linaro.org>
9464 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
9465 Call current_lwp_ptid.
9467 2015-08-25 Yao Qi <yao.qi@linaro.org>
9469 * linux-aarch64-low.c (debug_reg_change_callback): Use
9472 2015-08-25 Yao Qi <yao.qi@linaro.org>
9474 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
9476 2015-08-25 Yao Qi <yao.qi@linaro.org>
9478 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
9480 2015-08-25 Yao Qi <yao.qi@linaro.org>
9482 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
9485 2015-08-25 Yao Qi <yao.qi@linaro.org>
9487 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
9489 (debug_reg_change_callback): Remove argument entry and add argument
9490 lwp. Remove local variable thread. Don't print thread id in the
9491 debugging output. Don't check whether pid of thread equals to pid.
9492 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
9493 iterate_over_lwps instead find_inferior.
9495 2015-08-24 Pedro Alves <palves@redhat.com>
9497 * inferiors.c (get_first_process): New function.
9498 * inferiors.h (get_first_process): New declaration.
9499 * remote-utils.c (read_ptid): Default to the first process in the
9500 list, instead of to the current thread's process.
9502 2015-08-24 Pedro Alves <palves@redhat.com>
9504 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
9505 * event-loop.c: Likewise.
9506 * remote-utils.c: Likewise.
9507 * tracepoint.c: Likewise.
9509 2015-08-24 Pedro Alves <palves@redhat.com>
9511 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
9514 2015-08-21 Pedro Alves <palves@redhat.com>
9516 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
9517 instead of literal 1.
9519 2015-08-21 Pedro Alves <palves@redhat.com>
9521 * tdesc.c (default_description): Explicitly zero-initialize.
9523 2015-08-21 Pedro Alves <palves@redhat.com>
9526 * inferiors.c (remove_thread): Discard any pending stop reply for
9528 * server.c (remove_all_on_match_pid): Rename to ...
9529 (remove_all_on_match_ptid): ... this. Work with a filter ptid
9531 (discard_queued_stop_replies): Change parameter to a ptid. Now
9533 (handle_v_kill, kill_inferior_callback, captured_main)
9534 (process_serial_event): Adjust.
9535 * server.h (discard_queued_stop_replies): Declare.
9537 2015-08-21 Pedro Alves <palves@redhat.com>
9539 * linux-low.c (wait_for_sigstop): Always switch to no thread
9540 selected if the previously current thread dies.
9541 * lynx-low.c (lynx_request_interrupt): Use the first thread's
9542 process instead of the current thread's.
9543 * remote-utils.c (input_interrupt): Don't check if there's no
9545 * server.c (gdb_read_memory, gdb_write_memory): If setting the
9546 current thread to the general thread fails, error out.
9547 (handle_qxfer_auxv, handle_qxfer_libraries)
9548 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
9549 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
9550 (handle_query): Check if there's a thread selected instead of
9551 checking whether there's any thread in the thread list.
9552 (handle_qxfer_threads, handle_qxfer_btrace)
9553 (handle_qxfer_btrace_conf): Don't error out early if there's no
9554 thread in the thread list.
9555 (handle_v_cont, myresume): Don't set the current thread to the
9557 (process_serial_event) <Hg handling>: Also set thread_id if the
9558 previous general thread is still alive.
9559 (process_serial_event) <g/G handling>: If setting the current
9560 thread to the general thread fails, error out.
9561 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
9562 thread's lwp instead of the current thread's.
9563 * target.c (set_desired_thread): If the desired thread was not
9564 found, leave the current thread pointing to NULL. Return an int
9565 (boolean) indicating success.
9566 * target.h (set_desired_thread): Change return type to int.
9568 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
9570 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
9571 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
9573 (ps_get_thread_area): New function.
9575 2015-08-19 Gary Benson <gbenson@redhat.com>
9577 * hostio.c (handle_pread): Do not attempt to read more data
9578 than hostio_reply_with_data can fit in a packet.
9580 2015-08-18 Joel Brobecker <brobecker@adacore.com>
9582 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
9584 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
9586 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
9588 2015-08-06 Pedro Alves <palves@redhat.com>
9590 * tracepoint.c (expr_eval_result): Now an int.
9592 2015-08-06 Pedro Alves <palves@redhat.com>
9594 * gdbthread.h (struct regcache): Forward declare.
9595 (struct thread_info) <regcache_data>: Now a struct regcache
9597 * inferiors.c (inferior_regcache_data)
9598 (set_inferior_regcache_data): Now work with struct regcache
9600 * inferiors.h (struct regcache): Forward declare.
9601 (inferior_regcache_data, set_inferior_regcache_data): Now work
9602 with struct regcache pointers.
9603 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
9604 (free_register_cache_thread): Remove struct regcache pointer
9607 2015-08-06 Pedro Alves <palves@redhat.com>
9609 * server.c (captured_main): On error, print the exception message
9610 to stderr, and if run_once is set, throw a quit.
9612 2015-08-06 Pedro Alves <palves@redhat.com>
9614 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
9617 2015-08-06 Pedro Alves <palves@redhat.com>
9619 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
9620 reading beyond the passed in buffer length.
9622 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
9624 * tracepoint.c (symbol_list) <required>: Remove.
9626 2015-08-06 Pedro Alves <palves@redhat.com>
9628 * linux-low.c (handle_extended_wait): Set the fork child's suspend
9629 count if stopping and suspending threads.
9630 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
9631 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
9632 (linux_detach): Complete an ongoing step-over.
9633 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
9635 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
9636 (linux_wait_1): If passing a signal to the inferior after
9637 finishing a step-over, unsuspend and re-resume all lwps. If we
9638 see a single-step event but the thread should be continuing, don't
9639 pass the trap to gdb.
9640 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
9641 internal_error instead of gdb_assert.
9642 (enqueue_pending_signal): New function.
9643 (check_ptrace_stopped_lwp_gone): Add debug output.
9644 (start_step_over): Use internal_error instead of gdb_assert.
9645 (complete_ongoing_step_over): New function.
9646 (linux_resume_one_thread): Don't resume a suspended thread.
9647 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
9650 2015-08-06 Pedro Alves <palves@redhat.com>
9652 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
9653 (linux_thread_alive): Use lwp_is_marked_dead.
9654 (extended_event_reported): Delete.
9655 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
9656 instead of extended_event_reported.
9657 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
9659 (lwp_is_marked_dead): New function.
9660 (lwp_running): Use lwp_is_marked_dead.
9661 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
9664 2015-08-06 Pedro Alves <palves@redhat.com>
9666 * linux-low.c (linux_wait_1): Move fork event output out of the
9667 !report_to_gdb check. Pass event_child->waitstatus to
9668 target_waitstatus_to_string instead of ourstatus.
9670 2015-08-04 Yao Qi <yao.qi@linaro.org>
9672 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
9673 if current_thread is 32 bit.
9675 2015-08-04 Yao Qi <yao.qi@linaro.org>
9677 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9678 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9679 * server.c (extended_protocol): Remove "static".
9680 * server.h (extended_protocol): Declare it.
9682 2015-08-04 Yao Qi <yao.qi@linaro.org>
9684 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
9685 both aarch64 and aarch32.
9686 (aarch64_set_pc): Likewise.
9688 2015-08-04 Yao Qi <yao.qi@linaro.org>
9690 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
9691 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
9692 arm-with-neon.xml to srv_xmlfiles.
9693 * linux-aarch64-low.c: Include linux-aarch32-low.h.
9694 (is_64bit_tdesc): New function.
9695 (aarch64_linux_read_description): New function.
9696 (aarch64_arch_setup): Call aarch64_linux_read_description.
9697 (regs_info): Rename to regs_info_aarch64.
9698 (aarch64_regs_info): Return right regs_info.
9699 (initialize_low_arch): Call initialize_low_arch_aarch32.
9701 2015-08-04 Yao Qi <yao.qi@linaro.org>
9703 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
9704 * linux-aarch32-low.c: New file.
9705 * linux-aarch32-low.h: New file.
9706 * linux-arm-low.c (arm_fill_gregset): Move it to
9707 linux-aarch32-low.c.
9708 (arm_store_gregset): Likewise.
9709 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
9710 (arm_store_vfpregset): Call arm_store_vfpregset_num.
9711 (arm_arch_setup): Check if PTRACE_GETREGSET works.
9712 (regs_info): Rename to regs_info_arm.
9713 (arm_regs_info): Return regs_info_aarch32 if
9714 have_ptrace_getregset is 1 and target description is
9715 arm_with_neon or arm_with_vfpv3.
9716 (initialize_low_arch): Don't call init_registers_arm_with_neon.
9717 Call initialize_low_arch_aarch32 instead.
9719 2015-08-04 Yao Qi <yao.qi@linaro.org>
9721 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
9722 * linux-low.c: ... here.
9723 * linux-low.h (have_ptrace_getregset): Declare it.
9725 2015-08-04 Pedro Alves <palves@redhat.com>
9727 * thread-db.c (struct thread_db): Use new typedefs.
9728 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
9730 (disable_thread_event_reporting): Cast result of dlsym to
9731 destination function pointer type.
9732 (thread_db_mourn): Use td_ta_delete_ftype.
9734 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
9736 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
9738 (CDX_BREAKPOINT): Define for R2.
9739 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
9740 (the_low_target): Add comments.
9742 2015-07-30 Yao Qi <yao.qi@linaro.org>
9744 * linux-arm-low.c (arm_hwcap): Remove it.
9745 (arm_read_description): New local variable arm_hwcap. Don't
9746 set arm_hwcap to zero.
9748 2015-07-30 Yao Qi <yao.qi@linaro.org>
9750 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
9751 Use regcache->tdesc instead.
9752 (arm_store_wmmxregset): Likewise.
9753 (arm_fill_vfpregset): Likewise.
9754 (arm_store_vfpregset): Likewise.
9756 2015-07-30 Yao Qi <yao.qi@linaro.org>
9758 * linux-arm-low.c: Include arch/arm.h.
9759 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
9760 (arm_store_gregset): Likewise.
9762 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
9764 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
9765 ptrace's 4th parameter.
9767 2015-07-27 Yao Qi <yao.qi@linaro.org>
9769 * configure.srv (case aarch64*-*-linux*): Don't set
9772 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
9774 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
9776 * linux-arm-low.c: Likewise.
9777 * linux-cris-low.c: Likewise.
9778 * linux-crisv32-low.c: Likewise.
9779 * linux-low.c: Likewise.
9780 * linux-m68k-low.c: Likewise.
9781 * linux-mips-low.c: Likewise.
9782 * linux-nios2-low.c: Likewise.
9783 * linux-s390-low.c: Likewise.
9784 * linux-sparc-low.c: Likewise.
9785 * linux-tic6x-low.c: Likewise.
9786 * linux-tile-low.c: Likewise.
9787 * linux-x86-low.c: Likewise.
9789 2015-07-24 Pedro Alves <palves@redhat.com>
9791 * config.in: Regenerate.
9792 * configure: Regenerate.
9794 2015-07-24 Pedro Alves <palves@redhat.com>
9796 * acinclude.m4: Include ../ptrace.m4.
9797 * configure.ac: Call GDB_AC_PTRACE.
9798 * config.in, configure: Regenerate.
9800 2015-07-24 Yao Qi <yao.qi@linaro.org>
9802 * linux-low.c (linux_create_inferior): Remove setting to
9803 proc->priv->new_inferior.
9804 (linux_attach): Likewise.
9805 (linux_low_filter_event): Likewise.
9806 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
9808 2015-07-24 Yao Qi <yao.qi@linaro.org>
9810 * linux-low.c (linux_arch_setup): New function.
9811 (linux_low_filter_event): If proc->tdesc is NULL and
9812 proc->attached is true, call the_low_target.arch_setup.
9813 Otherwise, keep status pending, and return.
9814 (linux_resume_one_lwp_throw): Don't call get_pc if
9815 thread->while_stepping isn't NULL. Don't call
9816 get_thread_regcache if proc->tdesc is NULL.
9817 (need_step_over_p): Return 0 if proc->tdesc is NULL.
9818 (linux_target_ops): Install arch_setup.
9819 * server.c (start_inferior): Call the_target->arch_setup.
9820 * target.h (struct target_ops) <arch_setup>: New field.
9821 (target_arch_setup): New marco.
9822 * lynx-low.c (lynx_target_ops): Update.
9823 * nto-low.c (nto_target_ops): Update.
9824 * spu-low.c (spu_target_ops): Update.
9825 * win32-low.c (win32_target_ops): Update.
9827 2015-07-24 Yao Qi <yao.qi@linaro.org>
9829 * linux-low.c (linux_add_process): Don't set
9830 proc->priv->new_inferior.
9831 (linux_create_inferior): Set proc->priv->new_inferior to 1.
9832 (linux_attach): Likewise.
9834 2015-07-24 Yao Qi <yao.qi@linaro.org>
9836 * server.c (start_inferior): Code refactor.
9838 2015-07-24 Yao Qi <yao.qi@linaro.org>
9840 * server.c (process_serial_event): Set general_thread.
9842 2015-07-21 Yao Qi <yao.qi@linaro.org>
9844 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
9845 aarch64_linux_get_debug_reg_capacity.
9847 2015-07-17 Yao Qi <yao.qi@linaro.org>
9849 * Makefile.in (aarch64-linux-hw-point.o): New rule.
9850 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
9851 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
9852 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
9853 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
9854 (AARCH64_HWP_ALIGNMENT): Likewise.
9855 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
9856 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
9857 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
9858 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
9859 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
9860 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
9861 (struct aarch64_debug_reg_state): Likewise.
9862 (struct arch_lwp_info): Likewise.
9863 (aarch64_align_watchpoint): Likewise.
9864 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
9865 (aarch64_watchpoint_length): Likewise.
9866 (aarch64_point_encode_ctrl_reg): Likewise
9867 (aarch64_point_is_aligned): Likewise.
9868 (aarch64_align_watchpoint): Likewise.
9869 (aarch64_linux_set_debug_regs):
9870 (aarch64_dr_state_insert_one_point): Likewise.
9871 (aarch64_dr_state_remove_one_point): Likewise.
9872 (aarch64_handle_breakpoint): Likewise.
9873 (aarch64_handle_aligned_watchpoint): Likewise.
9874 (aarch64_handle_unaligned_watchpoint): Likewise.
9875 (aarch64_handle_watchpoint): Likewise.
9877 2015-07-17 Yao Qi <yao.qi@linaro.org>
9879 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
9880 and don't aarch64_get_debug_reg_state. All callers update.
9881 (aarch64_handle_aligned_watchpoint): Likewise.
9882 (aarch64_handle_unaligned_watchpoint): Likewise.
9883 (aarch64_handle_watchpoint): Likewise.
9884 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
9885 (aarch64_remove_point): Likewise.
9887 2015-07-17 Yao Qi <yao.qi@linaro.org>
9889 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
9891 (aarch64_handle_unaligned_watchpoint): Likewise.
9893 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9895 Revert the previous 3 commits:
9896 Move gdb_regex* to common/
9897 Move linux_find_memory_regions_full & co.
9898 gdbserver build-id attribute generator
9900 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
9901 Jan Kratochvil <jan.kratochvil@redhat.com>
9903 gdbserver build-id attribute generator.
9904 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
9905 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
9906 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
9908 (get_dynamic): Use find_pdhr to traverse program headers.
9909 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
9910 (compare_mapping_entry_range, struct find_memory_region_callback_data)
9911 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
9912 (get_hex_build_id): New.
9913 (linux_qxfer_libraries_svr4): Add optional build-id attribute
9914 to reply XML document.
9916 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
9917 Jan Kratochvil <jan.kratochvil@redhat.com>
9919 * target.c: Include target/target-utils.h and fcntl.h.
9920 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
9921 (target_fileio_read_stralloc): New functions.
9923 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9925 * Makefile.in (OBS): Add gdb_regex.o.
9927 * config.in: Rebuilt.
9928 * configure: Rebuilt.
9930 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
9931 Jan Kratochvil <jan.kratochvil@redhat.com>
9933 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
9934 * Makefile.in (OBS): Add target-utils.o.
9935 (linux-maps.o, target-utils.o): New.
9936 * configure.srv (srv_linux_obj): Add linux-maps.o.
9938 2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
9940 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
9942 (the_low_target): Install it.
9944 2015-07-14 Pedro Alves <palves@redhat.com>
9946 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
9947 Instead, ignore ECHILD, and throw an error for other errnos.
9949 2015-07-10 Pedro Alves <palves@redhat.com>
9951 * event-loop.c (struct callback_event) <data>: Change type to
9952 gdb_client_data instance instead of gdb_client_data pointer.
9953 (append_callback_event): Adjust.
9955 2015-07-10 Pierre Langlois <pierre.langlois@arm.com>
9957 * linux-aarch64-low.c: Add comments for each linux_target_ops
9958 method. Remove comments already covered in target_ops and
9959 linux_target_ops definitions.
9960 (the_low_target): Add comments for each unimplemented method.
9962 2015-07-09 Yao Qi <yao.qi@linaro.org>
9964 * linux-aarch64-low.c (aarch64_regmap): Remove.
9965 (aarch64_usrregs_info): Remove.
9966 (regs_info): Set field usrregs to NULL.
9968 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
9970 * linux-low.c: Include "rsp-low.h"
9971 (linux_low_encode_pt_config, linux_low_encode_raw): New.
9972 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
9973 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
9974 (handle_btrace_enable_pt): New.
9975 (handle_btrace_general_set): Support "pt".
9976 (handle_btrace_conf_general_set): Support "pt:size".
9978 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
9980 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
9983 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
9985 * linux-aarch64-low.c: Remove comment about endianness.
9986 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
9987 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
9990 2015-06-24 Gary Benson <gbenson@redhat.com>
9992 * linux-i386-ipa.c (stdint.h): Do not include.
9993 * lynx-i386-low.c (stdint.h): Likewise.
9994 * lynx-ppc-low.c (stdint.h): Likewise.
9995 * mem-break.c (stdint.h): Likewise.
9996 * thread-db.c (stdint.h): Likewise.
9997 * tracepoint.c (stdint.h): Likewise.
9998 * win32-low.c (stdint.h): Likewise.
10000 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
10002 * server.c (write_qxfer_response): Update call to
10003 remote_escape_output.
10005 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
10006 Jan Kratochvil <jan.kratochvil@redhat.com>
10008 Merge multiple hex conversions.
10009 * gdbreplay.c (tohex): Rename to 'fromhex'.
10010 (logchar): Use fromhex.
10012 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10014 * server.c (handle_qxfer_libraries): Set `version' attribute for
10017 2015-06-10 Gary Benson <gbenson@redhat.com>
10019 * target.h (struct target_ops) <multifs_open>: New field.
10020 <multifs_unlink>: Likewise.
10021 <multifs_readlink>: Likewise.
10022 * linux-low.c (nat/linux-namespaces.h): New include.
10023 (linux_target_ops): Initialize the_target->multifs_open,
10024 the_target->multifs_unlink and the_target->multifs_readlink.
10025 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
10026 * hostio.c (hostio_fs_pid): New static variable.
10027 (hostio_handle_new_gdb_connection): New function.
10028 (handle_setfs): Likewise.
10029 (handle_open): Use the_target->multifs_open as appropriate.
10030 (handle_unlink): Use the_target->multifs_unlink as appropriate.
10031 (handle_readlink): Use the_target->multifs_readlink as
10033 (handle_vFile): Handle vFile:setfs packets.
10034 * server.c (handle_query): Call hostio_handle_new_gdb_connection
10035 after target_handle_new_gdb_connection.
10037 2015-06-10 Gary Benson <gbenson@redhat.com>
10039 * configure.ac (AC_CHECK_FUNCS): Add setns.
10040 * config.in: Regenerate.
10041 * configure: Likewise.
10042 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
10043 (linux-namespaces.o): New rule.
10044 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
10046 2015-06-09 Gary Benson <gbenson@redhat.com>
10048 * hostio.c (handle_open): Process mode argument with
10049 fileio_to_host_mode.
10051 2015-06-01 Yao Qi <yao.qi@linaro.org>
10053 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
10054 * linux-x86-low.c: Likewise.
10056 2015-05-28 Don Breazeal <donb@codesourcery.com>
10058 * linux-low.c (handle_extended_wait): Initialize
10059 thread_info.last_resume_kind for new fork children.
10061 2015-05-15 Pedro Alves <palves@redhat.com>
10063 * target.h (target_handle_new_gdb_connection): Rewrite using if
10064 wrapped in do/while.
10066 2015-05-14 Joel Brobecker <brobecker@adacore.com>
10068 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
10069 * configure, config.in: Regenerate.
10070 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
10073 2015-05-12 Don Breazeal <donb@codesourcery.com>
10075 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
10076 PTRACE_EVENT_VFORK_DONE.
10077 (linux_low_ptrace_options, extended_event_reported): Add vfork
10079 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
10080 and "vforkdone" for RSP 'T' Stop Reply Packet.
10081 * server.h (report_vfork_events): Declare
10084 2015-05-12 Don Breazeal <donb@codesourcery.com>
10086 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
10087 (the_low_target) <new_fork>: Initialize new member.
10088 * linux-arm-low.c (arm_new_fork): New function.
10089 (the_low_target) <new_fork>: Initialize new member.
10090 * linux-low.c (handle_extended_wait): Call new target function
10092 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
10093 * linux-mips-low.c (mips_add_watchpoint): New function
10094 extracted from mips_insert_point.
10095 (the_low_target) <new_fork>: Initialize new member.
10096 (mips_linux_new_fork): New function.
10097 (mips_insert_point): Call mips_add_watchpoint.
10098 * linux-x86-low.c (x86_linux_new_fork): New function.
10099 (the_low_target) <new_fork>: Initialize new member.
10101 2015-05-12 Don Breazeal <donb@codesourcery.com>
10103 * linux-low.c (handle_extended_wait): Implement return value,
10104 rename argument 'event_child' to 'event_lwp', handle
10105 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
10106 (linux_low_ptrace_options): New function.
10107 (linux_low_filter_event): Call linux_low_ptrace_options,
10108 use different argument fo linux_enable_event_reporting,
10109 use return value from handle_extended_wait.
10110 (extended_event_reported): New function.
10111 (linux_wait_1): Call extended_event_reported and set
10112 status to report fork events.
10113 (linux_write_memory): Add pid to debug message.
10114 (reset_lwp_ptrace_options_callback): New function.
10115 (linux_handle_new_gdb_connection): New function.
10116 (linux_target_ops): Initialize new structure member.
10117 * linux-low.h (struct lwp_info) <waitstatus>: New member.
10118 * lynx-low.c: Initialize new structure member.
10119 * remote-utils.c (prepare_resume_reply): Implement stop reason
10120 "fork" for "T" stop message.
10121 * server.c (handle_query): Call handle_new_gdb_connection.
10122 * server.h (report_fork_events): Declare global flag.
10123 * target.h (struct target_ops) <handle_new_gdb_connection>:
10125 (target_handle_new_gdb_connection): New macro.
10126 * win32-low.c: Initialize new structure member.
10128 2015-05-12 Don Breazeal <donb@codesourcery.com>
10130 * mem-break.c (APPEND_TO_LIST): Define macro.
10131 (clone_agent_expr): New function.
10132 (clone_one_breakpoint): New function.
10133 (clone_all_breakpoints): New function.
10134 * mem-break.h: Declare new functions.
10136 2015-05-12 Don Breazeal <donb@codesourcery.com>
10138 * linux-low.c (linux_supports_fork_events): New function.
10139 (linux_supports_vfork_events): New function.
10140 (linux_target_ops): Initialize new structure members.
10141 (initialize_low): Call linux_check_ptrace_features.
10142 * lynx-low.c (lynx_target_ops): Initialize new structure
10144 * server.c (report_fork_events, report_vfork_events):
10146 (handle_query): Add new features to qSupported packet and
10148 (captured_main): Initialize new global variables.
10149 * target.h (struct target_ops) <supports_fork_events>:
10151 <supports_vfork_events>: New member.
10152 (target_supports_fork_events): New macro.
10153 (target_supports_vfork_events): New macro.
10154 * win32-low.c (win32_target_ops): Initialize new structure
10157 2015-05-12 Gary Benson <gbenson@redhat.com>
10159 * server.c (handle_qxfer_exec_file): Use current process
10162 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
10164 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
10165 Remove HAVE_PTRACE_GETREGS conditionals.
10166 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
10167 instead of PTRACE_GETREGS and PTRACE_SETREGS.
10169 2015-05-08 Yao Qi <yao.qi@linaro.org>
10171 * linux-low.c (linux_supports_conditional_breakpoints): New
10173 (linux_target_ops): Install new target method.
10174 * lynx-low.c (lynx_target_ops): Install NULL hook for
10175 supports_conditional_breakpoints.
10176 * nto-low.c (nto_target_ops): Likewise.
10177 * spu-low.c (spu_target_ops): Likewise.
10178 * win32-low.c (win32_target_ops): Likewise.
10179 * server.c (handle_query): Check
10180 target_supports_conditional_breakpoints.
10181 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10183 (target_supports_conditional_breakpoints): New macro.
10185 2015-05-06 Pedro Alves <palves@redhat.com>
10188 * server.c (start_inferior): If the process exits, mourn it.
10190 2015-04-21 Gary Benson <gbenson@redhat.com>
10192 * hostio.c (fileio_open_flags_to_host): Factored out to
10193 fileio_to_host_openflags in common/fileio.c. Single use
10196 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
10198 * linux-xtensa-low.c (xtensa_fill_gregset)
10199 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
10202 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
10204 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
10205 (regs_info): Replace usrregs pointer with NULL.
10207 2015-04-17 Gary Benson <gbenson@redhat.com>
10209 * target.h (struct target_ops) <pid_to_exec_file>: New field.
10210 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
10211 * server.c (handle_qxfer_exec_file): New function.
10212 (qxfer_packets): Add exec-file entry.
10213 (handle_query): Report qXfer:exec-file:read as supported packet.
10215 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
10217 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
10219 2015-04-09 Gary Benson <gbenson@redhat.com>
10221 * hostio-errno.c (errno_to_fileio_error): Remove function.
10222 Update caller to use remote_fileio_to_fio_error.
10224 2015-04-09 Yao Qi <yao.qi@linaro.org>
10226 * linux-low.c (linux_insert_point): Call
10227 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
10228 (linux_remove_point): Call remove_memory_breakpoint if type is
10230 * linux-x86-low.c (x86_insert_point): Don't call
10231 insert_memory_breakpoint.
10232 (x86_remove_point): Don't call remove_memory_breakpoint.
10234 2015-04-01 Pedro Alves <palves@redhat.com>
10235 Cleber Rosa <crosa@redhat.com>
10237 * server.c (gdbserver_usage): Reorganize and extend the usage
10240 2015-03-24 Pedro Alves <palves@redhat.com>
10242 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
10243 output. Also dump TRAP_TRACE.
10244 (linux_low_filter_event): In debug output, distinguish a
10245 resume_stop SIGSTOP from a delayed SIGSTOP.
10247 2015-03-24 Gary Benson <gbenson@redhat.com>
10249 * linux-x86-low.c (x86_linux_new_thread): Moved to
10251 (x86_linux_prepare_to_resume): Likewise.
10253 2015-03-24 Gary Benson <gbenson@redhat.com>
10255 * Makefile.in (x86-linux-dregs.o): New rule.
10256 * configure.srv: Add x86-linux-dregs.o to relevant targets.
10257 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
10258 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
10259 (x86_linux_dr_get): Likewise.
10260 (x86_linux_dr_set): Likewise.
10261 (update_debug_registers_callback): Likewise.
10262 (x86_linux_dr_set_addr): Likewise.
10263 (x86_linux_dr_get_addr): Likewise.
10264 (x86_linux_dr_set_control): Likewise.
10265 (x86_linux_dr_get_control): Likewise.
10266 (x86_linux_dr_get_status): Likewise.
10267 (x86_linux_update_debug_registers): Likewise.
10269 2015-03-24 Gary Benson <gbenson@redhat.com>
10271 * linux-x86-low.c (x86_linux_update_debug_registers):
10272 New function, factored out from...
10273 (x86_linux_prepare_to_resume): ...this.
10275 2015-03-24 Gary Benson <gbenson@redhat.com>
10277 * linux-x86-low.c (x86_linux_dr_get): Update comments.
10278 (x86_linux_dr_set): Likewise.
10279 (update_debug_registers_callback): Likewise.
10280 (x86_linux_dr_set_addr): Likewise.
10281 (x86_linux_dr_get_addr): Likewise.
10282 (x86_linux_dr_set_control): Likewise.
10283 (x86_linux_dr_get_control): Likewise.
10284 (x86_linux_dr_get_status): Likewise.
10285 (x86_linux_prepare_to_resume): Likewise.
10287 2015-03-24 Gary Benson <gbenson@redhat.com>
10289 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
10290 Use perror_with_name. Pass string through gettext.
10291 (x86_linux_dr_set): Likewise.
10293 2015-03-24 Gary Benson <gbenson@redhat.com>
10295 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
10296 (x86_linux_dr_set_addr): ...this.
10297 (x86_dr_low_get_addr): Rename to...
10298 (x86_linux_dr_get_addr): ...this.
10299 (x86_dr_low_set_control): Rename to...
10300 (x86_linux_dr_set_control): ...this.
10301 (x86_dr_low_get_control): Rename to...
10302 (x86_linux_dr_get_control): ...this.
10303 (x86_dr_low_get_status): Rename to...
10304 (x86_linux_dr_get_status): ...this.
10305 (x86_dr_low): Update with new function names.
10307 2015-03-24 Gary Benson <gbenson@redhat.com>
10309 * Makefile.in (x86-linux.o): New rule.
10310 * configure.srv: Add x86-linux.o to relevant targets.
10311 * linux-low.c (lwp_set_arch_private_info): New function.
10312 (lwp_arch_private_info): Likewise.
10313 * linux-x86-low.c: Include nat/x86-linux.h.
10314 (arch_lwp_info): Removed structure.
10315 (update_debug_registers_callback):
10316 Use lwp_set_debug_registers_changed.
10317 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
10318 and lwp_set_debug_registers_changed.
10319 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
10321 2015-03-24 Gary Benson <gbenson@redhat.com>
10323 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
10324 * linux-arm-low.c (arm_new_thread): Likewise.
10325 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
10326 * linux-mips-low.c (mips_linux_new_thread): Likewise.
10327 * linux-x86-low.c (x86_linux_new_thread): Likewise.
10328 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
10330 2015-03-24 Gary Benson <gbenson@redhat.com>
10332 * linux-low.c (ptid_of_lwp): New function.
10333 (lwp_is_stopped): Likewise.
10334 (lwp_stop_reason): Likewise.
10335 * linux-x86-low.c (update_debug_registers_callback):
10336 Use lwp_is_stopped.
10337 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
10340 2015-03-24 Gary Benson <gbenson@redhat.com>
10342 * linux-low.h (linux_stop_lwp): Remove declaration.
10344 2015-03-24 Gary Benson <gbenson@redhat.com>
10346 * linux-low.h: Include nat/linux-nat.h.
10347 * linux-low.c (iterate_over_lwps_args): New structure.
10348 (iterate_over_lwps_filter): New function.
10349 (iterate_over_lwps): Likewise.
10350 * linux-x86-low.c (update_debug_registers_callback):
10351 Update signature to what iterate_over_lwps expects.
10352 Remove PID check that iterate_over_lwps now performs.
10353 (x86_dr_low_set_addr): Use iterate_over_lwps.
10354 (x86_dr_low_set_control): Likewise.
10356 2015-03-24 Gary Benson <gbenson@redhat.com>
10358 * linux-x86-low.c (x86_debug_reg_state): New function.
10359 (x86_linux_prepare_to_resume): Use the above.
10361 2015-03-24 Gary Benson <gbenson@redhat.com>
10363 * linux-low.c (current_lwp_ptid): New function.
10364 * linux-x86-low.c: Include nat/linux-nat.h.
10365 (x86_dr_low_get_addr): Use current_lwp_ptid.
10366 (x86_dr_low_get_control): Likewise.
10367 (x86_dr_low_get_status): Likewise.
10369 2015-03-20 Pedro Alves <palves@redhat.com>
10371 * tracepoint.c (cmd_qtstatus): Make "str" const.
10373 2015-03-20 Pedro Alves <palves@redhat.com>
10375 * server.c (handle_general_set): Make "req_str" const.
10377 2015-03-19 Pedro Alves <palves@redhat.com>
10379 * linux-low.c (linux_resume_one_lwp): Rename to ...
10380 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
10381 instead call perror_with_name.
10382 (check_ptrace_stopped_lwp_gone): New function.
10383 (linux_resume_one_lwp): Reimplement as wrapper around
10384 linux_resume_one_lwp_throw that swallows errors if the LWP is
10387 2015-03-19 Pedro Alves <palves@redhat.com>
10389 * linux-low.c (count_events_callback, select_event_lwp_callback):
10390 No longer check whether the thread has resume_stop as last resume
10393 2015-03-19 Pedro Alves <palves@redhat.com>
10395 * linux-low.c (count_events_callback, select_event_lwp_callback):
10396 Use the lwp's status_pending_p field, not the thread's.
10398 2015-03-19 Pedro Alves <palves@redhat.com>
10400 * linux-low.c (select_event_lwp_callback): Update comments to
10401 no longer mention SIGTRAP.
10403 2015-03-18 Gary Benson <gbenson@redhat.com>
10405 * server.c (handle_query): Do not report vFile:fstat as supported.
10407 2015-03-11 Gary Benson <gbenson@redhat.com>
10409 * hostio.c (sys/types.h): New include.
10410 (sys/stat.h): Likewise.
10411 (common-remote-fileio.h): Likewise.
10412 (handle_fstat): New function.
10413 (handle_vFile): Handle vFile:fstat packets.
10415 2015-03-11 Gary Benson <gbenson@redhat.com>
10417 * configure.ac (AC_CHECK_MEMBERS): Add checks for
10418 struct stat.st_blocks and struct stat.st_blksize.
10419 * configure: Regenerate.
10420 * config.in: Likewise.
10421 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
10422 (OBS): Add common-remote-fileio.o.
10423 (common-remote-fileio.o): New rule.
10425 2015-03-09 Pedro Alves <palves@redhat.com>
10427 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
10428 'struct sockaddr' pointer in 'accept' call.
10430 2015-03-09 Pedro Alves <palves@redhat.com>
10433 2015-03-07 Pedro Alves <palves@redhat.com>
10434 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
10435 or <winsock2.h> here. Instead include "gdb_socket.h".
10436 (remote_open): Use union gdb_sockaddr_u.
10437 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
10438 or <winsock2.h> here. Instead include "gdb_socket.h".
10439 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
10440 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
10442 (init_named_socket, gdb_agent_helper_thread): Use union
10445 2015-03-07 Pedro Alves <palves@redhat.com>
10447 * configure.ac (build_warnings): Move
10448 -Wdeclaration-after-statement to the C-specific set.
10449 * configure: Regenerate.
10451 2015-03-07 Pedro Alves <palves@redhat.com>
10453 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
10454 or <winsock2.h> here. Instead include "gdb_socket.h".
10455 (remote_open): Use union gdb_sockaddr_u.
10456 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
10457 or <winsock2.h> here. Instead include "gdb_socket.h".
10458 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
10459 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
10461 (init_named_socket, gdb_agent_helper_thread): Use union
10464 2015-03-07 Pedro Alves <palves@redhat.com>
10466 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
10469 2015-03-06 Yao Qi <yao.qi@linaro.org>
10471 * linux-aarch64-low.c (aarch64_insert_point): Use
10472 show_debug_regs as a boolean.
10473 (aarch64_remove_point): Likewise.
10475 2015-03-05 Pedro Alves <palves@redhat.com>
10477 * lynx-low.c (lynx_target_ops): Install NULL hooks for
10478 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
10479 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
10480 * nto-low.c (nto_target_ops): Likewise.
10481 * spu-low.c (spu_target_ops): Likewise.
10482 * win32-low.c (win32_target_ops): Likewise.
10484 2015-03-04 Pedro Alves <palves@redhat.com>
10486 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
10487 Decide whether a breakpoint triggered based on the SIGTRAP's
10489 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
10490 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
10491 (linux_low_filter_event): Check for breakpoints before checking
10493 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
10495 (linux_stopped_by_sw_breakpoint)
10496 (linux_supports_stopped_by_sw_breakpoint)
10497 (linux_stopped_by_hw_breakpoint)
10498 (linux_supports_stopped_by_hw_breakpoint): New functions.
10499 (linux_target_ops): Install new target methods.
10501 2015-03-04 Pedro Alves <palves@redhat.com>
10503 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
10504 * server.c (swbreak_feature, hwbreak_feature): New globals.
10505 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
10506 (captured_main): Clear swbreak_feature and hwbreak_feature.
10507 * server.h (swbreak_feature, hwbreak_feature): Declare.
10508 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
10509 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
10510 supports_stopped_by_hw_breakpoint>: New fields.
10511 (target_supports_stopped_by_sw_breakpoint)
10512 (target_stopped_by_sw_breakpoint)
10513 (target_supports_stopped_by_hw_breakpoint)
10514 (target_stopped_by_hw_breakpoint): Declare.
10516 2015-03-04 Pedro Alves <palves@redhat.com>
10518 enum lwp_stop_reason -> enum target_stop_reason
10519 * linux-low.c (check_stopped_by_breakpoint): Adjust.
10520 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
10521 (linux_wait_1, stuck_in_jump_pad_callback)
10522 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
10523 (linux_stopped_by_watchpoint):
10524 * linux-low.h (enum lwp_stop_reason): Delete.
10525 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
10526 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
10528 2015-03-04 Yao Qi <yao.qi@linaro.org>
10530 * Makefile.in (SFILES): Add linux-aarch64-low.c.
10532 2015-03-03 Gary Benson <gbenson@redhat.com>
10534 * hostio.c (handle_vFile): Fix prefix lengths.
10536 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10538 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
10541 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
10543 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
10544 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
10545 (clean): Add "rm -f" for above C files.
10546 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
10547 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
10548 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
10549 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
10550 * linux-s390-low.c (HWCAP_S390_VX): New macro.
10551 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
10552 (init_registers_s390x_vx_linux64)
10553 (init_registers_s390x_tevx_linux64)
10554 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
10555 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
10557 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
10558 (s390_store_vxrs_high): New functions.
10559 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
10561 (s390_arch_setup): Add logic for selecting one of the new target
10562 descriptions. Activate the new vector regsets if applicable.
10563 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
10564 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
10565 and init_registers_s390x_tevx_linux64.
10567 2015-03-01 Pedro Alves <palves@redhat.com>
10569 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
10572 2015-02-27 Pedro Alves <palves@redhat.com>
10574 * linux-x86-low.c (u_debugreg_offset): New function.
10575 (x86_linux_dr_get, x86_linux_dr_set): Use it.
10577 2015-02-27 Pedro Alves <palves@redhat.com>
10579 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
10580 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
10581 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
10582 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
10583 (ps_lsetfpregs, ps_getpid)
10584 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
10585 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
10586 (ps_lsetxregs, ps_plog): Declare.
10588 2015-02-27 Pedro Alves <palves@redhat.com>
10590 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
10591 IP_AGENT_EXPORT_FUNC.
10592 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
10593 IP_AGENT_EXPORT_FUNC.
10594 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
10595 (IP_AGENT_EXPORT): Delete.
10596 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
10597 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
10598 (gdb_trampoline_buffer_error, collecting, gdb_collect)
10599 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
10600 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
10601 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
10602 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
10603 (traceframe_read_count, traceframe_write_count)
10604 (traceframes_created, trace_state_variables, get_raw_reg)
10605 (get_trace_state_variable_value, set_trace_state_variable_value)
10606 (ust_loaded, helper_thread_id, cmd_buf): Use
10607 IPA_SYM_EXPORTED_NAME.
10608 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
10609 (tracepoints) Use IP_AGENT_EXPORT_VAR.
10610 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
10611 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
10612 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
10613 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
10614 EXTERN_C_PUSH/EXTERN_C_POP.
10615 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
10616 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
10617 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
10618 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
10619 (traceframe_write_count, traceframe_read_count)
10620 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
10621 (about_to_request_buffer_space, get_trace_state_variable_value)
10622 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
10623 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
10624 EXTERN_C_PUSH/EXTERN_C_POP.
10625 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
10626 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
10627 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
10628 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
10629 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
10630 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
10631 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
10632 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
10634 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
10635 (IP_AGENT_EXPORT_VAR_DECL): Define.
10636 (tracing): Declare.
10637 (gdb_agent_get_raw_reg): Declare.
10639 2015-02-27 Tom Tromey <tromey@redhat.com>
10640 Pedro Alves <palves@redhat.com>
10642 Rename symbols whose names are reserved C++ keywords throughout.
10644 2015-02-27 Pedro Alves <palves@redhat.com>
10646 * Makefile.in (COMPILER): New, get it from autoconf.
10647 (CXX): Get from autoconf instead.
10648 (COMPILE.pre): Use COMPILER.
10649 (CC-LD): Rename to ...
10650 (CC_LD): ... this. Use COMPILER.
10651 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
10652 (CXX_FOR_TARGET): Default to g++ instead of gcc.
10653 * acinclude.m4: Include build-with-cxx.m4.
10654 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
10655 Disable -Werror by default if building in C++ mode.
10656 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
10657 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
10658 the C++ compiler. Save/restore CXXFLAGS too.
10659 * configure: Regenerate.
10661 2015-02-27 Pedro Alves <palves@redhat.com>
10663 * acinclude.m4: Include libiberty.m4.
10664 * configure.ac: Call libiberty_INIT.
10665 * config.in, configure: Regenerate.
10667 2015-02-26 Pedro Alves <palves@redhat.com>
10669 * linux-low.c (linux_wait_1): When incrementing the PC past a
10670 program breakpoint always use the_low_target.breakpoint_len as
10671 increment, rather than the maximum between that and
10672 the_low_target.decr_pc_after_break.
10674 2015-02-23 Pedro Alves <palves@redhat.com>
10676 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
10677 thread was doing a step-over; always adjust the PC if
10678 we stepped over a permanent breakpoint.
10679 (linux_wait_1): If we stepped over breakpoint that was on top of a
10680 permanent breakpoint, manually advance the PC past it.
10682 2015-02-23 Pedro Alves <palves@redhat.com>
10684 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
10686 (x86_fill_gregset, x86_store_gregset): Use it when handling
10689 2015-02-20 Pedro Alves <palves@redhat.com>
10691 * thread-db.c: Include "nat/linux-procfs.h".
10692 (thread_db_init): Skip listing new threads if the kernel supports
10693 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
10695 2015-02-20 Pedro Alves <palves@redhat.com>
10697 * linux-low.c (status_pending_p_callback): Use ptid_match.
10699 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
10701 PR breakpoints/16812
10702 * linux-low.c (wstatus_maybe_breakpoint): Remove.
10703 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
10704 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
10706 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
10708 PR breakpoints/15956
10709 * tracepoint.c (cmd_qtinit): Add check for current_thread.
10711 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10713 * linux-low.c (linux_low_btrace_conf): Print size.
10714 * server.c (handle_btrace_conf_general_set): New.
10715 (hanle_general_set): Call handle_btrace_conf_general_set.
10716 (handle_query): Report Qbtrace-conf:bts:size as supported.
10718 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10720 * linux-low.c (linux_low_enable_btrace): Update parameters.
10721 (linux_low_btrace_conf): New.
10722 (linux_target_ops)<to_btrace_conf>: Initialize.
10723 * server.c (current_btrace_conf): New.
10724 (handle_btrace_enable): Rename to ...
10725 (handle_btrace_enable_bts): ... this. Pass ¤t_btrace_conf
10726 to target_enable_btrace. Update comment. Update users.
10727 (handle_qxfer_btrace_conf): New.
10728 (qxfer_packets): Add btrace-conf entry.
10729 (handle_query): Report qXfer:btrace-conf:read as supported packet.
10730 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
10731 (target_ops)<read_btrace_conf>: New.
10732 (target_enable_btrace): Update parameters.
10733 (target_read_btrace_conf): New.
10735 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10737 * server.c (handle_btrace_general_set): Remove call to
10738 target_supports_btrace.
10739 (supported_btrace_packets): New.
10740 (handle_query): Call supported_btrace_packets.
10741 * target.h: include btrace-common.h.
10742 (btrace_target_info): Removed.
10743 (supports_btrace, target_supports_btrace): Update parameters.
10745 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10747 * Makefile.in (SFILES): Add common/btrace-common.c.
10748 (OBS): Add common/btrace-common.o.
10749 (btrace-common.o): Add build rules.
10750 * linux-low: Include btrace-common.h.
10751 (linux_low_read_btrace): Use struct btrace_data. Call
10752 btrace_data_init and btrace_data_fini.
10754 2015-02-06 Pedro Alves <palves@redhat.com>
10756 * thread-db.c (find_new_threads_callback): Add debug output.
10758 2015-02-04 Pedro Alves <palves@redhat.com>
10760 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
10761 (resume_stopped_resumed_lwps): New function.
10762 (linux_wait_for_event_filtered): Use it.
10764 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
10766 * Makefile.in (SFILES): Add linux-personality.c.
10767 (linux-personality.o): New rule.
10768 * configure.srv (srv_linux_obj): Add linux-personality.o to the
10769 list of objects to be built.
10770 * linux-low.c: Include nat/linux-personality.h.
10771 (linux_create_inferior): Remove code to disable address space
10772 randomization (moved to ../nat/linux-personality.c). Create
10773 cleanup to disable address space randomization.
10775 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
10777 * Makefile.in (posix-strerror.o): New rule.
10778 (mingw-strerror.o): Likewise.
10779 * configure: Regenerated.
10780 * configure.ac: Source file ../common/common.host. Initialize new
10781 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
10783 2015-01-14 Yao Qi <yao@codesourcery.com>
10785 * Makefile.in (SFILES): Add nat/ppc-linux.c.
10786 (ppc-linux.o): New rule.
10787 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
10788 * configure.ac: AC_CHECK_FUNCS(getauxval).
10789 * config.in: Re-generated.
10790 * configure: Re-generated.
10791 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
10792 ppc64_64bit_inferior_p
10794 2015-01-14 Yao Qi <yao@codesourcery.com>
10796 * linux-ppc-low.c: Include "nat/ppc-linux.h".
10797 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
10798 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
10799 (PT_ORIG_R3, PT_TRAP): Likewise.
10800 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
10801 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
10802 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
10804 2015-01-10 Joel Brobecker <brobecker@adacore.com>
10806 * i387-fp.c (i387_cache_to_xsave): In look over
10807 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
10808 zmmh_low_space field by use of zmmh_high_space.
10810 2015-01-09 Pedro Alves <palves@redhat.com>
10812 * linux-low.c (step_over_bkpt): Move higher up in the file.
10813 (handle_extended_wait): Don't store the stop_pc here.
10814 (get_stop_pc): Adjust comments and rename to ...
10815 (check_stopped_by_breakpoint): ... this. Record whether the LWP
10816 stopped for a software breakpoint or hardware breakpoint.
10817 (thread_still_has_status_pending_p): New function.
10818 (status_pending_p_callback): Use
10819 thread_still_has_status_pending_p. If the event is no longer
10820 interesting, resume the LWP.
10821 (handle_tracepoints): Add assert.
10822 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
10823 (wstatus_maybe_breakpoint): New function.
10824 (cancel_breakpoint): Delete function.
10825 (check_stopped_by_watchpoint): New function, factored out from
10826 linux_low_filter_event.
10827 (lp_status_maybe_breakpoint): Delete function.
10828 (linux_low_filter_event): Remove filter_ptid argument.
10829 Leave thread group exits pending here. Store the LWP's stop PC.
10830 Always leave events pending.
10831 (linux_wait_for_event_filtered): Pull all events out of the
10832 kernel, and leave them all pending.
10833 (count_events_callback, select_event_lwp_callback): Consider all
10835 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
10836 (select_event_lwp): Only give preference to the stepping LWP in
10837 all-stop mode. Adjust comments.
10838 (ignore_event): New function.
10839 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
10840 references to cancel_breakpoints. Adjust to renames. Also give
10841 equal priority to all LWPs that have had events in non-stop mode.
10842 If reporting a software breakpoint event, unadjust the LWP's PC.
10843 (linux_wait): If linux_wait_1 returned an ignored event, retry.
10844 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
10846 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
10847 (resume_status_pending_p): Use thread_still_has_status_pending_p.
10848 (linux_stopped_by_watchpoint): Adjust.
10849 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
10850 * linux-low.h (enum lwp_stop_reason): New.
10851 (struct lwp_info) <stop_pc>: Adjust comment.
10852 <stopped_by_watchpoint>: Delete field.
10853 <stop_reason>: New field.
10854 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
10855 * mem-break.c (software_breakpoint_inserted_here)
10856 (hardware_breakpoint_inserted_here): New function.
10857 * mem-break.h (software_breakpoint_inserted_here)
10858 (hardware_breakpoint_inserted_here): Declare.
10859 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
10860 (cancel_breakpoints): Delete.
10861 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
10862 (upload_fast_traceframes): Remove references to
10863 cancel_breakpoints.
10865 2015-01-09 Pedro Alves <palves@redhat.com>
10867 * thread-db.c (find_new_threads_callback): Ignore thread if the
10868 kernel thread ID is -1.
10870 2015-01-09 Pedro Alves <palves@redhat.com>
10872 * linux-low.c (linux_attach_fail_reason_string): Move to
10873 nat/linux-ptrace.c, and rename.
10874 (linux_attach_lwp): Update comment.
10875 (attach_proc_task_lwp_callback): New function.
10876 (linux_attach): Adjust to rename and use
10877 linux_proc_attach_tgid_threads.
10878 (linux_attach_fail_reason_string): Delete declaration.
10880 2015-01-01 Joel Brobecker <brobecker@adacore.com>
10882 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
10883 * server.c (gdbserver_version): Likewise.
10885 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
10887 * remote-utils.c: Include ctype.h.
10888 (input_interrupt): Explicitly handle the case when the char
10889 received is the NUL byte. Improve the printing of non-ASCII
10892 2014-12-16 Joel Brobecker <brobecker@adacore.com>
10894 * linux-low.c (linux_low_filter_event): Update call to
10895 linux_enable_event_reporting following the addition of
10896 a new parameter to that function.
10898 2014-12-16 Catalin Udma <catalin.udma@freescale.com>
10901 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
10902 (AARCH64_FPCR_REGNO): Likewise.
10903 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
10904 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
10905 (aarch64_store_fpregset): Likewise.
10907 2014-12-15 Joel Brobecker <brobecker@adacore.com>
10909 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
10910 Remove FIXME comment about assumption about N.
10912 2014-12-13 Joel Brobecker <brobecker@adacore.com>
10914 * configure.ac: If large-file support is disabled in GDBserver,
10915 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
10916 * configure: Regenerate.
10918 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
10920 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
10921 warning upon ENODATA from ptrace.
10922 * linux-s390-low.c (s390_store_tdb): New.
10923 (s390_regsets): Add regset for NT_S390_TDB.
10925 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
10927 * linux-low.c (regsets_store_inferior_registers): Skip regsets
10928 without a fill_function.
10929 * linux-s390-low.c (s390_fill_last_break): Remove.
10930 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
10931 (s390_arch_setup): Use regset's size instead of fill_function for
10932 loop end condition.
10934 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
10936 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
10937 the regset's store function when ptrace returned an error.
10938 * regcache.c (get_thread_regcache): Invalidate register cache
10939 before fetching inferior's registers.
10941 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
10943 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
10944 while-loop as for-loop.
10945 (regsets_store_inferior_registers): Likewise.
10947 2014-11-28 Yao Qi <yao@codesourcery.com>
10949 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
10950 * config.in, configure: Re-generate.
10951 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
10954 2014-11-21 Yao Qi <yao@codesourcery.com>
10956 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
10957 (AC_CHECK_HEADERS): Remove malloc.h.
10958 * configure: Re-generated.
10959 * config.in: Re-generated.
10960 * server.h: Don't include alloca.h and malloc.h.
10961 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
10962 Don't include malloc.h.
10964 2014-11-17 Joel Brobecker <brobecker@adacore.com>
10966 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
10967 corresponding ERRNO check in same block.
10969 2014-11-12 Pedro Alves <palves@redhat.com>
10971 * server.c (cont_thread): Update comment.
10972 (start_inferior, attach_inferior): No longer clear cont_thread.
10973 (handle_v_cont): No longer set cont_thread.
10974 (captured_main): Clear cont_thread each time a GDB connects.
10976 2014-11-12 Pedro Alves <palves@redhat.com>
10978 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
10979 thread, and don't resume all threads if the Hc thread has exited.
10981 2014-11-12 Pedro Alves <palves@redhat.com>
10983 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
10984 the process group instead of to a specific LWP.
10986 2014-10-15 Pedro Alves <palves@redhat.com>
10989 * win32-arm-low.c (arm_set_thread_context): Remove current_event
10991 (arm_set_thread_context): Delete.
10992 (the_low_target): Adjust.
10993 * win32-i386-low.c (debug_registers_changed)
10994 (debug_registers_used): Delete.
10995 (update_debug_registers_callback): New function.
10996 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
10997 needing to update their debug registers.
10998 (win32_get_current_dr): New function.
10999 (x86_dr_low_get_addr, x86_dr_low_get_control)
11000 (x86_dr_low_get_status): Fetch the debug register from the thread
11002 (i386_initial_stuff): Adjust.
11003 (i386_get_thread_context): Remove current_event parameter. Don't
11004 clear debug_registers_changed nor copy DR values to
11006 (i386_set_thread_context): Delete.
11007 (i386_prepare_to_resume): New function.
11008 (i386_thread_added): Mark the thread as needing to update irs
11010 (the_low_target): Remove i386_set_thread_context and install
11011 i386_prepare_to_resume.
11012 * win32-low.c (win32_get_thread_context): Adjust.
11013 (win32_set_thread_context): Use SetThreadContext
11015 (win32_prepare_to_resume): New function.
11016 (win32_require_context): New function, factored out from ...
11017 (thread_rec): ... this.
11018 (continue_one_thread): Call win32_prepare_to_resume on each thread
11019 we're about to continue.
11020 (win32_resume): Call win32_prepare_to_resume on the event thread.
11021 * win32-low.h (struct win32_thread_info)
11022 <debug_registers_changed>: New field.
11023 (struct win32_target_ops): Change prototype of set_thread_context,
11024 delete set_thread_context and add prepare_to_resume.
11025 (win32_require_context): New declaration.
11027 2014-10-08 Gary Benson <gbenson@redhat.com>
11029 * server.h: Do not include common-exceptions.h.
11031 2014-10-08 Gary Benson <gbenson@redhat.com>
11033 * server.h: Do not include cleanups.h.
11035 2014-09-30 James Hogan <james.hogan@imgtec.com>
11037 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
11038 mips64-dsp-linux.c.
11040 2014-09-23 Yao Qi <yao@codesourcery.com>
11042 * linux-low.c (lp_status_maybe_breakpoint): New function.
11043 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
11044 (count_events_callback): Likewise.
11045 (select_event_lwp_callback): Likewise.
11046 (cancel_breakpoints_callback): Likewise.
11048 2014-09-19 Don Breazeal <donb@codesourcery.com>
11050 * linux-low.c (handle_extended_wait): Call
11051 linux_ptrace_get_extended_event.
11052 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
11053 linux_is_extended_waitstatus.
11055 2014-09-16 Joel Brobecker <brobecker@adacore.com>
11057 * Makefile.in (CPPFLAGS): Define.
11058 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
11059 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
11061 2014-09-16 Gary Benson <gbenson@redhat.com>
11063 * inferiors.h (current_inferior): Renamed as...
11064 (current_thread): New variable. All uses updated.
11065 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
11066 (maybe_move_out_of_jump_pad): Likewise.
11067 (cancel_breakpoint): Likewise.
11068 (linux_low_filter_event): Likewise.
11069 (wait_for_sigstop): Likewise.
11070 (linux_resume_one_lwp): Likewise.
11071 (need_step_over_p): Likewise.
11072 (start_step_over): Likewise.
11073 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
11074 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
11075 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
11076 and save_inferior as saved_thread.
11077 * regcache.c (get_thread_regcache): Renamed saved_inferior as
11079 (regcache_invalidate_thread): Likewise.
11080 * remote-utils.c (prepare_resume_reply): Likewise.
11081 * thread-db.c (thread_db_get_tls_address): Likewise.
11082 (disable_thread_event_reporting): Likewise.
11083 (remove_thread_event_breakpoints): Likewise.
11084 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
11086 * target.h (set_desired_inferior): Renamed as...
11087 (set_desired_thread): New declaration. All uses updated.
11088 * server.c (myresume): Updated comment to reference thread instead
11090 (handle_serial_event): Likewise.
11091 (handle_target_event): Likewise.
11093 2014-09-12 Tom Tromey <tromey@redhat.com>
11094 Gary Benson <gbenson@redhat.com>
11096 * regcache.h: Include common-regcache.h.
11097 (regcache_read_pc): Don't declare.
11098 * regcache.c (get_thread_regcache_for_ptid): New function.
11100 2014-09-11 Tom Tromey <tromey@redhat.com>
11101 Gary Benson <gbenson@redhat.com>
11103 * symbol.c: New file.
11104 * Makefile.in (SFILES): Add symbol.c.
11105 (OBS): Add symbol.o.
11107 2014-09-11 Gary Benson <gbenson@redhat.com>
11109 * target.c (target_stop_ptid, target_continue_ptid): New
11112 2014-09-11 Tom Tromey <tromey@redhat.com>
11113 Gary Benson <gbenson@redhat.com>
11115 * target.h: Include target/target.h.
11116 * target.c (target_read_memory, target_read_uint32)
11117 (target_write_memory): New functions.
11119 2014-09-11 Gary Benson <gbenson@redhat.com>
11121 * server.h (debug_hw_points): Don't declare.
11122 * server.c (debug_hw_points): Don't define. Replace all uses
11123 with show_debug_regs.
11124 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
11125 all uses with show_debug_regs.
11127 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
11129 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
11130 endianness into account.
11131 (ppc_supply_ptrace_register): Likewise.
11133 2014-09-03 James Hogan <james.hogan@imgtec.com>
11135 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
11136 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
11138 2014-09-03 Gary Benson <gbenson@redhat.com>
11140 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
11141 ALL_DEBUG_ADDRESS_REGISTERS.
11143 2014-09-02 Gary Benson <gbenson@redhat.com>
11145 * i386-low.h: Renamed as...
11146 * x86-low.h: New file. All type, function and variable name
11147 prefixes changed from "i386_" to "x86_". All references updated.
11148 * i386-low.c: Renamed as...
11149 * x86-low.c: New file. All type, function and variable name
11150 prefixes changed from "i386_" to "x86_". All references updated.
11152 2014-09-02 Gary Benson <gbenson@redhat.com>
11154 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
11155 (x86_linux_new_thread): Likewise.
11157 2014-08-29 Gary Benson <gbenson@redhat.com>
11159 * server.h (setjmp.h): Do not include.
11160 (toplevel): Do not declare.
11161 (common-exceptions.h): Include.
11162 (cleanups.h): Likewise.
11163 * server.c (toplevel): Do not define.
11164 (exit_code): New static global.
11165 (detach_or_kill_for_exit_cleanup): New function.
11166 (main): New function. Original main renamed to...
11167 (captured_main): New function.
11168 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
11170 2014-08-29 Gary Benson <gbenson@redhat.com>
11172 * Makefile.in (SFILES): Add common/common-exceptions.c.
11173 (OBS): Add common-exceptions.o.
11174 (common-exceptions.o): New rule.
11175 * utils.c (prepare_to_throw_exception): New function.
11177 2014-08-29 Gary Benson <gbenson@redhat.com>
11179 * config.in: Regenerate.
11180 * configure: Likewise.
11182 2014-08-29 Gary Benson <gbenson@redhat.com>
11184 * Makefile.in (SFILES): Add common/cleanups.c.
11186 (cleanups.o): New rule.
11188 2014-08-29 Gary Benson <gbenson@redhat.com>
11190 * utils.c (internal_vwarning): New function.
11192 2014-08-28 Gary Benson <gbenson@redhat.com>
11194 * utils.h (fatal): Remove declaration.
11195 * utils.c (fatal): Remove function.
11197 2014-08-28 Gary Benson <gbenson@redhat.com>
11199 * tracepoint.c (gdb_agent_init): Replace fatal with
11201 (initialize_tracepoint): Likewise.
11203 2014-08-28 Gary Benson <gbenson@redhat.com>
11205 * remote-utils.c (remote_prepare): Replace fatal with error.
11207 2014-08-28 Gary Benson <gbenson@redhat.com>
11209 * linux-low.c (linux_async): Replace fatal with warning.
11210 Tidy up and return.
11211 (linux_start_non_stop): Return -1 if linux_async failed.
11213 2014-08-28 Gary Benson <gbenson@redhat.com>
11215 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
11217 (i386_dr_low_get_addr): Remove vague comment.
11218 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
11221 2014-08-28 Gary Benson <gbenson@redhat.com>
11223 * inferiors.c (get_thread_process): Replace check with gdb_assert.
11224 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
11226 (linux_resume_one_lwp): Likewise.
11227 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
11229 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
11230 with internal_error.
11231 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
11232 (init_register_cache): Replace fatal with gdb_assert_not_reached.
11233 (find_register_by_name): Replace fatal with internal_error.
11234 (find_regno): Likewise.
11235 * tdesc.c (init_target_desc): Replace check with gdb_assert.
11236 * thread-db.c (thread_db_create_event): Likewise.
11237 (thread_db_load_search): Likewise.
11238 (try_thread_db_load_1): Likewise.
11239 * tracepoint.c (get_jump_space_head): Replace fatal with
11241 (claim_trampoline_space): Likewise.
11242 (have_fast_tracepoint_trampoline_buffer): Likewise.
11243 (cmd_qtstart): Likewise.
11244 (stop_tracing): Likewise.
11245 (fast_tracepoint_collecting): Likewise.
11246 (target_malloc): Likewise.
11247 (download_tracepoint): Likewise.
11248 (download_trace_state_variables): Replace check with gdb_assert.
11249 (upload_fast_traceframes): Replace fatal with internal_error.
11251 2014-08-19 Tom Tromey <tromey@redhat.com>
11252 Gary Benson <gbenson@redhat.com>
11254 * Makefile.in (SFILES): Add common/common-debug.c.
11255 (OBS): Add common-debug.o.
11256 (common-debug.o): New rule.
11257 * debug.h (debug_printf): Don't declare.
11258 * debug.c (debug_printf): Renamed and rewritten as...
11259 (debug_vprintf): New function.
11261 2014-08-19 Gary Benson <gbenson@redhat.com>
11263 * utils.h: Do not include print-utils.h.
11265 2014-08-19 Tom Tromey <tromey@redhat.com>
11266 Gary Benson <gbenson@redhat.com>
11268 * server.h: Add static assertion.
11269 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
11271 2014-08-19 Tom Tromey <tromey@redhat.com>
11272 Gary Benson <gbenson@redhat.com>
11274 * Makefile.in (SFILES): Add common/errors.c.
11275 (OBS): Add errors.o.
11276 (IPA_OBS): Add errors-ipa.o.
11277 (errors.o): New rule.
11278 (errors-ipa.o): Likewise.
11279 * utils.h (perror_with_name, error, warning): Don't declare.
11280 * utils.c (warning): Renamed and rewritten as...
11281 (vwarning): New function.
11282 (error): Renamed and rewritten as...
11283 (verror): New function.
11284 (internal_error): Renamed and rewritten as...
11285 (internal_verror): New function.
11287 2014-08-07 Gary Benson <gbenson@redhat.com>
11289 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
11290 * configure: Regenerate.
11291 * config.in: Likewise.
11292 * server.h: Do not include errno.h.
11293 * event-loop.c: Likewise.
11294 * hostio-errno.c: Likewise.
11295 * linux-low.c: Likewise.
11296 * remote-utils.c: Likewise.
11297 * spu-low.c: Likewise.
11298 * utils.c: Likewise.
11299 * gdbreplay.c: Unconditionally include errno.h.
11301 2014-08-07 Gary Benson <gbenson@redhat.com>
11303 * server.h: Do not include string.h.
11304 * event-loop.c: Likewise.
11305 * linux-low.c: Likewise.
11306 * regcache.c: Likewise.
11307 * remote-utils.c: Likewise.
11308 * spu-low.c: Likewise.
11309 * utils.c: Likewise.
11311 2014-08-07 Gary Benson <gbenson@redhat.com>
11313 * server.h: Do not include gdb_assert.h.
11315 2014-08-07 Gary Benson <gbenson@redhat.com>
11317 * server.h: Do not include common-utils.h.
11319 2014-08-07 Gary Benson <gbenson@redhat.com>
11321 * server.h: Do not include ptid.h.
11322 * notif.h: Likewise.
11324 2014-08-07 Gary Benson <gbenson@redhat.com>
11326 * server.h: Do not include gdb_locale.h.
11328 2014-08-07 Gary Benson <gbenson@redhat.com>
11330 * server.h: Do not include gdb/signals.h.
11331 * win32-low.c: Likewise.
11333 2014-08-07 Gary Benson <gbenson@redhat.com>
11335 * server.h: Do not include pathmax.h.
11337 2014-08-07 Gary Benson <gbenson@redhat.com>
11339 * server.h: Do not include libiberty.h.
11340 * linux-bfin-low.c: Likewise.
11342 2014-08-07 Gary Benson <gbenson@redhat.com>
11344 * server.h: Do not include ansidecl.h.
11346 2014-08-07 Gary Benson <gbenson@redhat.com>
11348 * linux-x86-low.c: Do not include stddef.h.
11349 * lynx-ppc-low.c: Likewise.
11350 * tracepoint.c: Likewise.
11352 2014-08-07 Gary Benson <gbenson@redhat.com>
11354 * server.h: Do not include stdarg.h.
11355 * nto-low.c: Likewise.
11357 2014-08-07 Gary Benson <gbenson@redhat.com>
11359 * server.h: Do not include stdlib.h.
11360 * inferiors.c: Likewise.
11361 * linux-low.c: Likewise.
11362 * regcache.c: Likewise.
11363 * spu-low.c: Likewise.
11364 * tracepoint.c: Likewise.
11365 * utils.c: Likewise.
11367 2014-08-07 Gary Benson <gbenson@redhat.com>
11369 * server.h: Do not include stdio.h.
11370 * linux-low.c: Likewise.
11371 * remote-utils.c: Likewise.
11372 * spu-low.c: Likewise.
11373 * utils.c: Likewise.
11374 * wincecompat.c: Likewise.
11376 2014-08-06 Gary Benson <gbenson@redhat.com>
11378 * regcache.c (init_register_cache): Move conditionals inside if.
11380 2014-08-06 Gary Benson <gbenson@redhat.com>
11382 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
11384 2014-07-31 Gary Benson <gbenson@redhat.com>
11386 * ax.h: Do not include server.h.
11387 * gdbthread.h: Likewise.
11388 * lynx-low.h: Likewise.
11389 * notif.h: Likewise.
11391 2014-07-30 Gary Benson <gbenson@redhat.com>
11393 * server.h: Include common-defs.h.
11394 Do not include config.h or build-gnulib-gdbserver/config.h.
11396 2014-07-30 Gary Benson <gbenson@redhat.com>
11398 * hostio-errno.c: Move server.h to top of includes list.
11399 * inferiors.c: Likewise.
11400 * linux-x86-low.c: Likewise.
11401 * notif.c: Include server.h.
11403 2014-07-24 Tom Tromey <tromey@redhat.com>
11404 Gary Benson <gbenson@redhat.com>
11406 * server.h (CORE_ADDR): Now unsigned.
11408 2014-07-16 Pedro Alves <palves@redhat.com>
11410 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
11412 2014-07-15 Pedro Alves <palves@redhat.com>
11414 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
11417 2014-07-11 Pedro Alves <palves@redhat.com>
11419 * linux-low.c (kill_wait_lwp): New function, based on
11420 kill_one_lwp_callback, but use my_waitpid directly.
11421 (kill_one_lwp_callback, linux_kill): Use it.
11423 2014-06-23 Pedro Alves <palves@redhat.com>
11425 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
11426 before setting DR0..DR3.
11428 2014-06-20 Gary Benson <gbenson@redhat.com>
11430 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
11431 * configure: Regenerated.
11432 * config.in: Likewise.
11434 2014-06-20 Gary Benson <gbenson@redhat.com>
11436 * Makefile.in (SFILES): Update locations for files moved
11437 from common to nat.
11438 (object file files): Reordered.
11440 2014-06-20 Gary Benson <gbenson@redhat.com>
11442 * i386-low.h (i386_dr_low_can_set_addr): Removed.
11443 (i386_dr_low_set_addr): Likewise.
11444 (i386_dr_low_get_addr): Likewise.
11445 (i386_dr_low_can_set_control): Likewise.
11446 (i386_dr_low_set_control): Likewise.
11447 (i386_dr_low_get_control): Likewise.
11448 (i386_dr_low_get_status): Likewise.
11449 (i386_get_debug_register_length): Likewise.
11450 * linux-x86-low.c (i386_dr_low_set_addr):
11451 Changed signature. Made static.
11452 (i386_dr_low_get_addr): Likewise.
11453 (i386_dr_low_set_control): Likewise.
11454 (i386_dr_low_get_control): Likewise.
11455 (i386_dr_low_get_status): Likewise.
11456 (i386_dr_low): New global variable.
11457 * win32-i386-low.c (i386_dr_low_set_addr):
11458 Changed signature. Made static.
11459 (i386_dr_low_get_addr): Likewise.
11460 (i386_dr_low_set_control): Likewise.
11461 (i386_dr_low_get_control): Likewise.
11462 (i386_dr_low_get_status): Likewise.
11463 (i386_dr_low): New global variable.
11465 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
11467 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
11468 * Makefile.in (AR, AR_FLAGS): Define.
11469 * configure: Regenerate.
11471 2014-06-19 Gary Benson <gbenson@redhat.com>
11473 * Makefile.in (i386-dregs.o): New rule.
11474 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
11475 * i386-low.c (target.h): Remove include.
11476 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
11477 (DR_CONTROL_SHIFT): Likewise.
11478 (DR_CONTROL_SIZE): Likewise.
11479 (DR_RW_EXECUTE): Likewise.
11480 (DR_RW_WRITE): Likewise.
11481 (DR_RW_READ): Likewise.
11482 (DR_RW_IORW): Likewise.
11483 (DR_LEN_1): Likewise.
11484 (DR_LEN_2): Likewise.
11485 (DR_LEN_4): Likewise.
11486 (DR_LEN_8): Likewise.
11487 (DR_LOCAL_ENABLE_SHIFT): Likewise.
11488 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
11489 (DR_ENABLE_SIZE): Likewise.
11490 (DR_LOCAL_SLOWDOWN): Likewise.
11491 (DR_GLOBAL_SLOWDOWN): Likewise.
11492 (DR_CONTROL_RESERVED): Likewise.
11493 (I386_DR_CONTROL_MASK): Likewise.
11494 (I386_DR_VACANT): Likewise.
11495 (I386_DR_LOCAL_ENABLE): Likewise.
11496 (I386_DR_GLOBAL_ENABLE): Likewise.
11497 (I386_DR_DISABLE): Likewise.
11498 (I386_DR_SET_RW_LEN): Likewise.
11499 (I386_DR_GET_RW_LEN): Likewise.
11500 (I386_DR_WATCH_HIT): Likewise.
11501 (i386_wp_op_t): Likewise.
11502 (i386_show_dr): Likewise.
11503 (i386_length_and_rw_bits): Likewise.
11504 (i386_insert_aligned_watchpoint): Likewise.
11505 (i386_remove_aligned_watchpoint): Likewise.
11506 (i386_handle_nonaligned_watchpoint): Likewise.
11507 i386_update_inferior_debug_regs(): Likewise.
11508 (i386_dr_insert_watchpoint): Likewise.
11509 (i386_dr_remove_watchpoint): Likewise.
11510 (i386_dr_region_ok_for_watchpoint): Likewise.
11511 (i386_dr_stopped_data_address): Likewise.
11512 (i386_dr_stopped_by_watchpoint): Likewise.
11514 2014-06-19 Gary Benson <gbenson@redhat.com>
11516 * i386-low.c (i386_dr_show): Renamed to
11517 i386_show_dr and made static. All uses updated.
11518 (i386_dr_length_and_rw_bits): Renamed to
11519 i386_length_and_rw_bits and made static.
11521 (i386_dr_insert_aligned_watchpoint): Renamed to
11522 i386_insert_aligned_watchpoint and made static.
11524 (i386_dr_remove_aligned_watchpoint): Renamed to
11525 i386_remove_aligned_watchpoint and made static.
11527 (i386_dr_update_inferior_debug_regs): Renamed to
11528 i386_update_inferior_debug_regs and made static.
11531 2014-06-18 Gary Benson <gbenson@redhat.com>
11533 * i386-low.h (i386_dr_low_can_set_addr): New macro.
11534 (i386_dr_low_can_set_control): Likewise.
11535 (i386_get_debug_register_length): Likewise.
11536 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
11537 (i386_dr_low_can_set_control): Likewise.
11538 (i386_get_debug_register_length): Likewise.
11540 2014-06-17 Gary Benson <gbenson@redhat.com>
11542 * i386-low.h (i386-dregs.h): New include.
11543 (DR_FIRSTADDR): Now in i386-dregs.h.
11544 (DR_LASTADDR): Likewise.
11545 (DR_NADDR): Likewise.
11546 (DR_STATUS): Likewise.
11547 (DR_CONTROL): Likewise.
11548 (i386_debug_reg_state): Likewise.
11549 (i386_dr_insert_watchpoint): Likewise.
11550 (i386_dr_remove_watchpoint): Likewise.
11551 (i386_dr_region_ok_for_watchpoint): Likewise.
11552 (i386_dr_stopped_data_address): Likewise.
11553 (i386_dr_stopped_by_watchpoint): Likewise.
11554 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
11556 2014-06-18 Gary Benson <gbenson@redhat.com>
11558 * i386-low.h (i386_low_insert_watchpoint): Renamed to
11559 i386_dr_insert_watchpoint.
11560 (i386_low_remove_watchpoint): Renamed to
11561 i386_dr_remove_watchpoint.
11562 (i386_low_region_ok_for_watchpoint): Renamed to
11563 i386_dr_region_ok_for_watchpoint.
11564 (i386_low_stopped_data_address): Renamed to
11565 i386_dr_stopped_data_address.
11566 (i386_low_stopped_by_watchpoint): Renamed to
11567 i386_dr_stopped_by_watchpoint.
11568 * i386-low.c (i386_show_dr): Renamed to
11569 i386_dr_show and made nonstatic. All uses updated.
11570 (i386_length_and_rw_bits): Renamed to
11571 i386_dr_length_and_rw_bits and made nonstatic.
11573 (i386_insert_aligned_watchpoint): Renamed to
11574 i386_dr_insert_aligned_watchpoint and made nonstatic.
11576 (i386_remove_aligned_watchpoint): Renamed to
11577 i386_dr_remove_aligned_watchpoint and made nonstatic.
11579 (i386_update_inferior_debug_regs): Renamed to
11580 i386_dr_update_inferior_debug_regs and made nonstatic.
11582 (i386_low_insert_watchpoint): Renamed to
11583 i386_dr_insert_watchpoint. All uses updated.
11584 (i386_low_remove_watchpoint): Renamed to
11585 i386_dr_remove_watchpoint. All uses updated.
11586 (i386_low_region_ok_for_watchpoint): Renamed to
11587 i386_dr_region_ok_for_watchpoint. All uses updated.
11588 (i386_low_stopped_data_address): Renamed to
11589 i386_dr_stopped_data_address. All uses updated.
11590 (i386_low_stopped_by_watchpoint): Renamed to
11591 i386_dr_stopped_by_watchpoint. All uses updated.
11593 2014-06-18 Gary Benson <gbenson@redhat.com>
11595 * i386-low.c (i386_dr_low_can_set_addr): New macro.
11596 (i386_dr_low_can_set_control): Likewise.
11597 (i386_insert_aligned_watchpoint): New check.
11599 2014-06-18 Gary Benson <gbenson@redhat.com>
11601 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
11604 2014-06-18 Gary Benson <gbenson@redhat.com>
11606 * i386-low.c (i386_length_and_rw_bits): Use internal_error
11607 instead of fatal and error.
11608 (i386_handle_nonaligned_watchpoint): Likewise.
11610 2014-06-18 Gary Benson <gbenson@redhat.com>
11612 * i386-low.c (i386_get_debug_register_length): New macro.
11613 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
11614 (i386_show_dr): Use debug_printf instead of fprintf. Use
11615 phex to format values.
11617 2014-06-18 Gary Benson <gbenson@redhat.com>
11619 * i386-low.h: Comment changes.
11620 * i386-low.c: Likewise.
11622 2014-06-18 Gary Benson <gbenson@redhat.com>
11624 * i386-low.c: Whitespace changes.
11626 2014-06-12 Tom Tromey <tromey@redhat.com>
11628 * utils.c (freeargv): Remove.
11630 2014-06-12 Tom Tromey <tromey@redhat.com>
11632 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
11633 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
11634 (parse_debug_format_options): Likewise.
11635 (gdbserver_usage): Likewise.
11636 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
11637 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
11638 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
11640 ($(LIBGNU)): Depend on libiberty.
11641 (all-lib): Recurse into all subdirs.
11642 (install-only): Invoke "install" target in subdirs.
11643 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
11645 * configure: Rebuild.
11646 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
11647 for vasprintf, vsnprintf, or gettimeofday.
11648 * configure.srv: Don't add safe-ctype.o or lbasename.o to
11651 2014-06-05 Joel Brobecker <brobecker@adacore.com>
11653 * development.sh: Delete.
11654 * Makefile.in (config.status): Adjust dependency on development.sh.
11655 * configure.ac: Adjust development.sh source call.
11656 * configure: Regenerate.
11658 2014-06-02 Pedro Alves <palves@redhat.com>
11660 * ax.c (gdb_free_agent_expr): New function.
11661 * ax.h (gdb_free_agent_expr): New declaration.
11662 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
11664 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
11666 (clear_breakpoint_conditions_and_commands): New function.
11667 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
11668 (clear_breakpoint_conditions_and_commands): New declaration.
11670 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11672 * linux-aarch64-low.c (asm/ptrace.h): Include.
11674 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11676 Fix TLS access for -static -pthread.
11677 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
11678 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
11679 (thread_db_load_search, try_thread_db_load_1): Initialize it.
11681 2014-05-20 Pedro Alves <palves@redhat.com>
11683 * linux-aarch64-low.c (aarch64_insert_point)
11684 (aarch64_remove_point): No longer check whether the type is
11685 supported here. Adjust to new interface.
11686 (the_low_target): Install aarch64_supports_z_point_type as
11687 supports_z_point_type method.
11688 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
11689 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
11690 instead of a Z packet char. Adjust.
11691 (arm_supports_z_point_type): New function.
11692 (arm_insert_point, arm_remove_point): Adjust to new interface.
11693 (the_low_target): Install arm_supports_z_point_type.
11694 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
11695 (cris_insert_point, cris_remove_point): Adjust to new interface.
11696 Don't check whether the type is supported here.
11697 (the_low_target): Install cris_supports_z_point_type.
11698 * linux-low.c (linux_supports_z_point_type): New function.
11699 (linux_insert_point, linux_remove_point): Adjust to new interface.
11700 * linux-low.h (struct linux_target_ops) <insert_point,
11701 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
11702 raw_breakpoint pointer parameter.
11703 <supports_z_point_type>: New method.
11704 * linux-mips-low.c (mips_supports_z_point_type): New function.
11705 (mips_insert_point, mips_remove_point): Adjust to new interface.
11706 Use mips_supports_z_point_type.
11707 (the_low_target): Install mips_supports_z_point_type.
11708 * linux-ppc-low.c (the_low_target): Install NULL as
11709 supports_z_point_type method.
11710 * linux-s390-low.c (the_low_target): Install NULL as
11711 supports_z_point_type method.
11712 * linux-sparc-low.c (the_low_target): Install NULL as
11713 supports_z_point_type method.
11714 * linux-x86-low.c (x86_supports_z_point_type): New function.
11715 (x86_insert_point): Adjust to new insert_point interface. Use
11716 insert_memory_breakpoint. Adjust to new
11717 i386_low_insert_watchpoint interface.
11718 (x86_remove_point): Adjust to remove_point interface. Use
11719 remove_memory_breakpoint. Adjust to new
11720 i386_low_remove_watchpoint interface.
11721 (the_low_target): Install x86_supports_z_point_type.
11722 * lynx-low.c (lynx_target_ops): Install NULL as
11723 supports_z_point_type callback.
11724 * nto-low.c (nto_supports_z_point_type): New.
11725 (nto_insert_point, nto_remove_point): Adjust to new interface.
11726 (nto_target_ops): Install nto_supports_z_point_type.
11727 * mem-break.c: Adjust intro comment.
11728 (struct raw_breakpoint) <raw_type, size>: New fields.
11729 <inserted>: Update comment.
11730 <shlib_disabled>: Delete field.
11731 (enum bkpt_type) <gdb_breakpoint>: Delete value.
11732 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
11733 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
11734 (raw_bkpt_type_to_target_hw_bp_type): New function.
11735 (find_enabled_raw_code_breakpoint_at): New function.
11736 (find_raw_breakpoint_at): New type and size parameters. Use them.
11737 (insert_memory_breakpoint): New function, based off
11738 set_raw_breakpoint_at.
11739 (remove_memory_breakpoint): New function.
11740 (set_raw_breakpoint_at): Reimplement.
11741 (set_breakpoint): New, based on set_breakpoint_at.
11742 (set_breakpoint_at): Reimplement.
11743 (delete_raw_breakpoint): Go through the_target->remove_point
11744 instead of assuming memory breakpoints.
11745 (find_gdb_breakpoint_at): Delete.
11746 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
11747 (find_gdb_breakpoint): New function.
11748 (set_gdb_breakpoint_at): Delete.
11749 (z_type_supported): New function.
11750 (set_gdb_breakpoint_1): New function, loosely based off
11751 set_gdb_breakpoint_at.
11752 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
11753 (delete_gdb_breakpoint_at): Delete.
11754 (delete_gdb_breakpoint_1): New function, loosely based off
11755 delete_gdb_breakpoint_at.
11756 (delete_gdb_breakpoint): New function.
11757 (clear_gdb_breakpoint_conditions): Rename to ...
11758 (clear_breakpoint_conditions): ... this. Don't handle a NULL
11760 (add_condition_to_breakpoint): Make static.
11761 (add_breakpoint_condition): Take a struct breakpoint pointer
11762 instead of an address. Adjust.
11763 (gdb_condition_true_at_breakpoint): Rename to ...
11764 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
11766 (gdb_condition_true_at_breakpoint): Reimplement.
11767 (add_breakpoint_commands): Take a struct breakpoint pointer
11768 instead of an address. Adjust.
11769 (gdb_no_commands_at_breakpoint): Rename to ...
11770 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
11771 parameter. Return true if no breakpoint was found. Change debug
11773 (gdb_no_commands_at_breakpoint): Reimplement.
11774 (run_breakpoint_commands): Rename to ...
11775 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
11776 and change return type to boolean.
11777 (run_breakpoint_commands): New function.
11778 (gdb_breakpoint_here): Also check for Z1 breakpoints.
11779 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
11780 breakpoint. Go through the_target->remove_point instead of
11781 assuming memory breakpoint.
11782 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
11783 software and hardware breakpoints.
11784 (reinsert_raw_breakpoint): Go through the_target->insert_point
11785 instead of assuming memory breakpoint.
11786 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
11787 software and hardware breakpoints.
11788 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
11789 Check both software and hardware breakpoints.
11790 (validate_inserted_breakpoint): Assert the breakpoint is a
11791 software breakpoint. Set the inserted flag to -1 instead of
11792 setting shlib_disabled.
11793 (delete_disabled_breakpoints): Adjust.
11794 (validate_breakpoints): Only validate software breakpoints.
11795 Adjust to inserted flag change.
11796 (check_mem_read, check_mem_write): Skip breakpoint types other
11797 than software breakpoints. Adjust to inserted flag change.
11798 * mem-break.h (enum raw_bkpt_type): New enum.
11799 (raw_breakpoint, struct process_info): Forward declare.
11800 (Z_packet_to_target_hw_bp_type): Delete declaration.
11801 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
11802 (set_gdb_breakpoint, delete_gdb_breakpoint)
11803 (clear_breakpoint_conditions): New declarations.
11804 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
11805 (breakpoint_inserted_here): Update comment.
11806 (add_breakpoint_condition, add_breakpoint_commands): Replace
11807 address parameter with a breakpoint pointer parameter.
11808 (gdb_breakpoint_here): Update comment.
11809 (delete_gdb_breakpoint_at): Delete.
11810 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
11811 * server.c (process_point_options): Take a struct breakpoint
11812 pointer instead of an address. Adjust.
11813 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
11814 delete_gdb_breakpoint.
11815 * spu-low.c (spu_target_ops): Install NULL as
11816 supports_z_point_type method.
11817 * target.h: Include mem-break.h.
11818 (struct target_ops) <prepare_to_access_memory>: Update comment.
11819 <supports_z_point_type>: New field.
11820 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
11821 instead of a char. Also take a raw breakpoint pointer.
11822 * win32-arm-low.c (the_low_target): Install NULL as
11823 supports_z_point_type.
11824 * win32-i386-low.c (i386_supports_z_point_type): New function.
11825 (i386_insert_point, i386_remove_point): Adjust to new interface.
11826 (the_low_target): Install i386_supports_z_point_type.
11827 * win32-low.c (win32_supports_z_point_type): New function.
11828 (win32_insert_point, win32_remove_point): Adjust to new interface.
11829 (win32_target_ops): Install win32_supports_z_point_type.
11830 * win32-low.h (struct win32_target_ops):
11831 <supports_z_point_type>: New method.
11832 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
11833 instead of a char. Also take a raw breakpoint pointer.
11835 2014-05-20 Pedro Alves <palves@redhat.com>
11837 * mem-break.h: Include break-common.h.
11838 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
11839 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
11840 (Z_packet_to_target_hw_bp_type): New declaration.
11841 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
11842 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
11843 (Z_PACKET_ACCESS_WP): Delete macros.
11844 (Z_packet_to_hw_type): Delete function.
11845 * i386-low.h: Don't include break-common.h here.
11846 (Z_packet_to_hw_type): Delete declaration.
11847 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
11848 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
11849 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
11850 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
11851 * linux-aarch64-low.c: Don't include break-common.h here.
11852 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
11853 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
11854 (Z_packet_to_target_hw_bp_type): Delete function.
11855 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
11857 (mips_insert_point, mips_remove_point): Use
11858 Z_packet_to_target_hw_bp_type.
11860 2014-05-20 Pedro Alves <palves@redhat.com>
11862 * linux-aarch64-low.c: Include break-common.h.
11863 (enum target_point_type): Delete.
11864 (Z_packet_to_point_type): Rename to ...
11865 (Z_packet_to_target_hw_bp_type): ... this, and return a
11866 target_hw_bp_type instead.
11867 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
11868 instead of an enum target_point_type.
11869 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
11871 (aarch64_dr_state_insert_one_point)
11872 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
11873 (aarch64_handle_aligned_watchpoint)
11874 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
11875 Take an enum target_hw_bp_type instead of an enum
11877 (aarch64_supports_z_point_type): New function.
11878 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
11879 use Z_packet_to_target_hw_bp_type.
11881 2014-05-20 Joel Brobecker <brobecker@adacore.com>
11883 * configure.ac: Only use -Werror by default when DEVELOPMENT
11885 * configure: Regenerate.
11887 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
11889 Fix gdbserver qGetTLSAddr for x86_64 -m32.
11890 * linux-x86-low.c (X86_64_USER_REGS): New.
11891 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
11893 2014-04-28 Yao Qi <yao@codesourcery.com>
11895 * Makefile.in (i386-avx512.c): Fix the typo of generated file
11898 2014-04-25 Pedro Alves <palves@redhat.com>
11901 * linux-low.c (linux_attach_fail_reason_string): New function.
11902 (linux_attach_lwp): Delete.
11903 (linux_attach_lwp_1): Rename to ...
11904 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
11905 argument. Remove "initial" parameter. Return int instead of
11906 void. Don't error or warn here.
11907 (linux_attach): Adjust to call linux_attach_lwp. Call error on
11908 failure to attach to the tgid. Call warning when failing to
11910 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
11911 argument. Remove "initial" parameter. Return int instead of
11912 void. Don't error or warn here.
11913 (linux_attach_fail_reason_string): New declaration.
11914 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
11915 interface change. Use linux_attach_fail_reason_string.
11917 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
11918 Walfred Tedeschi <walfred.tedeschi@intel.com>
11920 * Makefile.in: Added rules to handle new files
11921 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
11922 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
11923 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
11924 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
11925 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
11926 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
11927 x32-avx512-linux.o.
11928 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
11929 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
11930 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
11931 i386/x32-avx512.xml.
11932 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
11933 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
11934 i386/x32-avx512-linux.xml.
11935 * i387-fp.c (num_avx512_k_registers): New constant for number
11937 (num_avx512_zmmh_low_registers): New constant for number of
11938 lower ZMM registers (0-15).
11939 (num_avx512_zmmh_high_registers): New constant for number of
11940 higher ZMM registers (16-31).
11941 (num_avx512_ymmh_registers): New contant for number of higher
11942 YMM registers (ymm16-31 added by avx521 on x86_64).
11943 (num_avx512_xmm_registers): New constant for number of higher
11944 XMM registers (xmm16-31 added by AVX512 on x86_64).
11945 (struct i387_xsave): Add space for AVX512 registers.
11946 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
11947 Add code to handle AVX512 registers.
11948 (i387_xsave_to_cache): Add code to handle AVX512 registers.
11949 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
11950 prototypei from generated file.
11951 (tdesc_amd64_avx512_linux): Likewise.
11952 (init_registers_x32_avx512_linux): Likewise.
11953 (tdesc_x32_avx512_linux): Likewise.
11954 (init_registers_i386_avx512_linux): Likewise.
11955 (tdesc_i386_avx512_linux): Likewise.
11956 (x86_64_regmap): Add AVX512 registers.
11957 (x86_linux_read_description): Add code to handle AVX512 XSTATE
11959 (initialize_low_arch): Add code to initialize AVX512 registers.
11961 2014-04-23 Pedro Alves <palves@redhat.com>
11963 * mem-break.c (find_gdb_breakpoint_at): Make static.
11964 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
11966 2014-04-23 Pedro Alves <palves@redhat.com>
11968 * i386-low.c: Don't include break-common.h here.
11969 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
11970 prototype to take target_hw_bp_type as argument instead of a Z
11972 * i386-low.h: Include break-common.h here.
11973 (Z_packet_to_hw_type): Declare.
11974 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
11976 * linux-x86-low.c (x86_insert_point): Convert the packet number to
11977 a target_hw_bp_type before calling i386_low_insert_watchpoint.
11978 (x86_remove_point): Convert the packet number to a
11979 target_hw_bp_type before calling i386_low_remove_watchpoint.
11980 * win32-i386-low.c (i386_insert_point): Convert the packet number
11981 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
11982 (i386_remove_point): Convert the packet number to a
11983 target_hw_bp_type before calling i386_low_remove_watchpoint.
11985 2014-04-23 Pedro Alves <palves@redhat.com>
11987 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
11989 2014-04-10 Pedro Alves <palves@redhat.com>
11991 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
11992 Check if the condition or command is NULL before checking if the
11993 breakpoint is known. On success, return true.
11994 * mem-break.h (add_breakpoint_condition): Document return.
11995 (add_breakpoint_commands): Add describing comment.
11996 * server.c (skip_to_semicolon): New function.
11997 (process_point_options): Use it.
11999 2014-04-09 Pedro Alves <palves@redhat.com>
12001 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
12004 2014-02-27 Pedro Alves <palves@redhat.com>
12007 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
12009 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
12011 (last_thread_of_process_p): Take a PID argument instead of a
12013 (linux_wait_for_lwp): Delete.
12014 (num_lwps, check_zombie_leaders, not_stopped_callback): New
12016 (linux_low_filter_event): New function, party factored out from
12017 linux_wait_for_event.
12018 (linux_wait_for_event): Rename to ...
12019 (linux_wait_for_event_filtered): ... this. Add new filter ptid
12020 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
12021 sigsuspend. Check for zombie leaders.
12022 (linux_wait_for_event): Reimplement as wrapper around
12023 linux_wait_for_event_filtered.
12024 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
12025 a normal or signal exit is seen, it's the whole process exiting.
12026 (wait_for_sigstop): No longer a for_each_inferior callback.
12027 Rewrite on top of linux_wait_for_event_filtered.
12028 (stop_all_lwps): Call wait_for_sigstop directly.
12029 * server.c (resume, handle_target_event): Handle
12030 TARGET_WAITKIND_NO_RESUMED.
12032 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12034 * win32-low.c (psapi_get_dll_name,
12035 * win32_CreateToolhelp32Snapshot): Delete.
12036 (win32_CreateToolhelp32Snapshot, win32_Module32First)
12037 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
12039 (handle_load_dll): Add function description.
12040 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
12042 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12044 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
12046 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
12047 base address when calling win32_add_one_solib.
12048 (handle_load_dll): Delete local variable load_addr.
12049 Remove 0x1000 offset applied to DLL base address when calling
12050 win32_add_one_solib.
12051 (handle_unload_dll): Add comment.
12053 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12055 * win32-low.c (win32_add_all_dlls): Renames
12056 win32_ensure_ntdll_loaded. Rewrite function documentation.
12057 Adjust implementation to always load all DLLs.
12058 Add 0x1000 offset to DLL base address when calling
12059 win32_add_one_solib.
12060 (child_initialization_done): New static global.
12061 (do_initial_child_stuff): Set child_initialization_done to
12062 zero during child initialization, and 1 after. Replace call
12063 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
12065 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
12066 (handle_unload_dll): Add function documentation.
12067 (get_child_debug_event): Ignore load and unload DLL events
12068 during child initialization.
12070 2014-02-20 Doug Evans <dje@google.com>
12072 Remove global all_lwps.
12073 * inferiors.h (ptid_of): Move here from linux-low.h.
12074 (pid_of, lwpid_of): Ditto.
12075 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
12076 parameter is a struct thread_info * now.
12077 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
12078 directly. Pass &all_threads to find_inferior instead of &all_lwps.
12079 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
12081 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
12082 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
12083 * linux-arm-low.c (update_registers_callback): Update, "entry"
12084 parameter is a struct thread_info * now.
12085 Fetch lwpid from current_inferior directly.
12086 (arm_insert_point): Pass &all_threads to find_inferior instead of
12088 (arm_remove_point): Ditto.
12089 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
12090 (arm_prepare_to_resume): Fetch pid from thread.
12091 (arm_read_description): Fetch lwpid from current_inferior directly.
12092 * linux-low.c (all_lwps): Delete.
12093 (delete_lwp): Delete call to remove_inferior.
12094 (handle_extended_wait): Fetch lwpid from thread.
12095 (add_lwp): Don't set lwp->entry.id. Remove call to
12096 add_inferior_to_list.
12097 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
12098 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
12099 (kill_one_lwp_callback): Ditto.
12100 (linux_kill): Don't dereference NULL pointer.
12101 Fetch ptid,lwpid from thread.
12102 (get_detach_signal): Fetch ptid from thread.
12103 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
12104 Simplify call to regcache_invalidate_thread.
12105 (delete_lwp_callback): Update, "entry" parameter is a
12106 struct thread_info * now. Fetch pid from thread.
12107 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
12108 (status_pending_p_callback): Update, "entry" parameter is a
12109 struct thread_info * now. Fetch ptid from thread.
12110 (find_lwp_pid): Update, "entry" parameter is a
12111 struct thread_info * now.
12112 (linux_wait_for_lwp): Fetch pid from thread.
12113 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
12114 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
12115 (enqueue_one_deferred_signal): Fetch lwpid from thread.
12116 (dequeue_one_deferred_signal): Ditto.
12117 (cancel_breakpoint): Fetch ptid from current_inferior.
12118 (linux_wait_for_event): Pass &all_threads to find_inferior,
12119 not &all_lwps. Fetch ptid, lwpid from thread.
12120 (count_events_callback): Update, "entry" parameter is a
12121 struct thread_info * now.
12122 (select_singlestep_lwp_callback): Ditto.
12123 (select_event_lwp_callback): Ditto.
12124 (cancel_breakpoints_callback): Ditto.
12125 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
12127 (select_event_lwp): Ditto. Fetch ptid from event_thread.
12128 (unsuspend_one_lwp): Update, "entry" parameter is a
12129 struct thread_info * now.
12130 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
12132 (linux_stabilize_threads): Ditto. And for for_each_inferior.
12133 Fetch lwpid from thread, not lwp.
12134 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
12135 Pass &all_threads to find_inferior, not &all_lwps.
12136 (send_sigstop): Fetch lwpid from thread, not lwp.
12137 (send_sigstop_callback): Update, "entry" parameter is a
12138 struct thread_info * now.
12139 (suspend_and_send_sigstop_callback): Ditto.
12140 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
12141 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
12142 struct thread_info * now.
12143 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
12145 (lwp_running): Update, "entry" parameter is a
12146 struct thread_info * now.
12147 (stop_all_lwps): Fetch ptid from thread.
12148 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
12149 (linux_resume_one_lwp): Fetch lwpid from thread.
12150 (linux_set_resume_request): Update, "entry" parameter is a
12151 struct thread_info * now. Fetch pid, lwpid from thread.
12152 (resume_status_pending_p): Update, "entry" parameter is a
12153 struct thread_info * now.
12154 (need_step_over_p): Ditto. Fetch lwpid from thread.
12155 (start_step_over): Fetch lwpid from thread.
12156 (linux_resume_one_thread): Update, "entry" parameter is a
12157 struct thread_info * now. Fetch lwpid from thread.
12158 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
12159 (proceed_one_lwp): Update, "entry" parameter is a
12160 struct thread_info * now. Fetch lwpid from thread.
12161 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
12162 struct thread_info * now.
12163 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
12164 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
12165 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
12167 (regsets_store_inferior_registers): Ditto.
12168 (fetch_register, store_register): Ditto.
12169 (linux_read_memory, linux_write_memory): Ditto.
12170 (linux_request_interrupt): Ditto.
12171 (linux_read_auxv): Ditto.
12172 (linux_xfer_siginfo): Ditto.
12173 (linux_qxfer_spu): Ditto.
12174 (linux_qxfer_libraries_svr4): Ditto.
12175 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
12176 moved to inferiors.h.
12178 (get_thread_lwp): Update.
12179 (struct lwp_info): Delete member "entry". Simplify comment for
12181 (all_lwps): Delete.
12182 * linux-mips-low.c (mips_read_description): Fetch lwpid from
12183 current_inferior directly.
12184 (update_watch_registers_callback): Update, "entry" parameter is a
12185 struct thread_info * now. Fetch pid from thread.
12186 (mips_linux_prepare_to_resume): Fetch ptid from thread.
12187 (mips_insert_point): Fetch lwpid from current_inferior.
12188 Pass &all_threads to find_inferior, not &all_lwps.
12189 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
12190 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
12192 (mips_stopped_data_address): Ditto.
12193 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
12195 * linux-tile-low.c (tile_arch_setup): Ditto.
12196 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
12197 (update_debug_registers_callback): Update, "entry" parameter is a
12198 struct thread_info * now. Fetch pid from thread.
12199 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
12200 Pass &all_threads to find_inferior, not &all_lwps.
12201 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
12202 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
12203 Pass &all_threads to find_inferior, not &all_lwps.
12204 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
12205 (i386_dr_low_get_status): Ditto.
12206 (x86_linux_prepare_to_resume): Fetch ptid from thread.
12207 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
12208 (x86_linux_read_description): Ditto.
12209 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
12211 2014-02-20 Doug Evans <dje@google.com>
12213 * inferiors.c (get_first_inferior): Fix buglet.
12215 2014-02-19 Doug Evans <dje@google.com>
12217 * gdbthread.h (add_thread): Change result type to struct thread_info *.
12218 * inferiors.c (add_thread): Change result type to struct thread_info *.
12219 All callers updated.
12220 (add_lwp): Call add_thread here instead of in callers.
12221 All callers updated.
12222 * linux-low.h (get_lwp_thread): Rewrite.
12223 (struct lwp_info): New member "thread".
12225 2014-02-19 Doug Evans <dje@google.com>
12227 * linux-low.c (add_lwp): Change result to struct lwp_info *.
12228 All callers updated.
12230 2014-02-19 Doug Evans <dje@google.com>
12232 * inferiors.c (add_thread): Fix whitespace.
12234 2014-02-19 Doug Evans <dje@google.com>
12236 * dll.c (clear_dlls): Replace accessing list implemention details
12238 * gdbthread.h (get_first_thread): Declare.
12239 * inferiors.c (for_each_inferior_with_data): New function.
12240 (get_first_thread): New function.
12241 (find_thread_ptid): Simplify.
12242 (get_first_inferior): New function.
12243 (clear_list): Delete.
12244 (one_inferior_p): New function.
12245 (clear_inferior_list): New function.
12246 (clear_inferiors): Update.
12247 * inferiors.h (for_each_inferior_with_data): Declare.
12248 (clear_inferior_list): Declare.
12249 (one_inferior_p): Declare.
12250 (get_first_inferior): Declare.
12251 * linux-low.c (linux_wait_for_event): Replace accessing list
12252 implemention details with API function.
12253 * server.c (target_running): Ditto.
12254 (accumulate_file_name_length): New function.
12255 (emit_dll_description): New function.
12256 (handle_qxfer_libraries): Replace accessing list implemention
12257 details with API function.
12258 (handle_qxfer_threads_worker): New function.
12259 (handle_qxfer_threads_proper): Replace accessing list implemention
12260 details with API function.
12261 (handle_query): Ditto.
12262 (visit_actioned_threads_callback_ftype): New typedef.
12263 (visit_actioned_threads_data): New struct.
12264 (visit_actioned_threads): Rewrite to be find_inferior callback.
12265 (resume): Call find_inferior.
12266 (handle_status): Replace accessing list implemention
12267 details with API function.
12268 (process_serial_event): Replace accessing list implemention details
12270 * target.c (set_desired_inferior): Replace accessing list implemention
12271 details with API function.
12272 * tracepoint.c (same_process_p): New function.
12273 (gdb_agent_about_to_close): Replace accessing list implemention
12274 details with API function.
12275 * win32-low.c (child_delete_thread): Replace accessing list
12276 implemention details with API function.
12277 (match_dll_by_basename): New function.
12278 (dll_is_loaded_by_basename): New function.
12279 (win32_ensure_ntdll_loaded): Replace accessing list implemention
12280 details call to dll_is_loaded_by_basename.
12282 2014-02-19 Doug Evans <dje@google.com>
12284 * dll.h (struct dll_info): Add comment.
12285 * gdbthread.h (struct thread_info): Add comment.
12286 (current_ptid): Simplify.
12287 * inferiors.c (add_process): Update.
12288 (remove_process): Update.
12289 * inferiors.h (struct process_info): Rename member "head" to "entry".
12290 * linux-low.c (delete_lwp): Update.
12292 (last_thread_of_process_p): Update.
12293 (kill_one_lwp_callback, linux_kill): Update.
12294 (status_pending_p_callback): Update.
12295 (wait_for_sigstop): Update. Simplify read of ptid.
12296 (start_step_over): Update.
12297 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
12298 (get_lwp_thread): Update.
12299 (struct lwp_info): Rename member "head" to "entry".
12300 * regcache.h (inferior_list_entry): Delete.
12301 * server.c (kill_inferior_callback): Update.
12302 (detach_or_kill_inferior_callback): Update.
12303 (print_started_pid): Update.
12304 (print_attached_pid): Update.
12305 (process_serial_event): Simplify read of ptid.
12306 * thread-db.c (thread_db_create_event): Update.
12307 (thread_db_get_tls_address): Update.
12308 * win32-low.c (current_inferior_ptid): Simplify.
12310 2014-02-19 Tom Tromey <tromey@redhat.com>
12312 * target.h (struct target_ops) <supports_btrace>: Add target_ops
12314 (target_supports_btrace): Update.
12316 2014-02-14 Yao Qi <yao@codesourcery.com>
12318 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
12319 (rsp-low-ipa.o): New target.
12321 2014-02-12 Tom Tromey <tromey@redhat.com>
12323 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
12324 convert_ascii_to_int.
12325 * regcache.c (registers_to_string): Likewise.
12326 * remote-utils.c (decode_M_packet): Likewise.
12327 * server.c (process_serial_event): Likewise.
12329 2014-02-12 Tom Tromey <tromey@redhat.com>
12331 * server.c (handle_query, handle_v_run): Use hex2bin, not
12333 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
12335 2014-02-12 Tom Tromey <tromey@redhat.com>
12337 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
12338 convert_int_to_ascii.
12339 * regcache.c (registers_to_string, collect_register_as_string):
12341 * remote-utils.c (look_up_one_symbol, relocate_instruction):
12343 * server.c (process_serial_event): Likewise.
12344 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
12345 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
12347 2014-02-12 Tom Tromey <tromey@redhat.com>
12349 * remote-utils.c (look_up_one_symbol, monitor_output): Use
12350 bin2hex, not hexify.
12351 * tracepoint.c (cmd_qtstatus): Likewise.
12353 2014-02-12 Tom Tromey <tromey@redhat.com>
12355 * remote-utils.c (monitor_output): Pass explicit length to
12358 2014-02-12 Tom Tromey <tromey@redhat.com>
12360 * tracepoint.c: Include rsp-low.h.
12361 * server.c: Include rsp-low.h.
12362 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
12363 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
12365 * remote-utils.c: Include rsp-low.h.
12366 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
12367 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
12368 (convert_int_to_ascii, convert_ascii_to_int): Move to
12370 * regcache.c: Include rsp-low.h.
12371 * ax.c: Include rsp-low.h.
12372 * Makefile.in (SFILES): Add common/rsp-low.c.
12373 (OBS): Add rsp-low.o.
12374 (rsp-low.o): New target.
12376 2014-02-12 Tom Tromey <tromey@redhat.com>
12378 * utils.h (pulongest, plongest, phex_nz): Don't declare.
12379 Include print-utils.h.
12380 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12381 (plongest, thirty_two, phex_nz): Remove.
12382 * Makefile.in (SFILES): Add common/print-utils.c.
12383 (OBS): Add print-utils.o.
12384 (print-utils-ipa.o): New target.
12385 (print-utils.o): New target.
12386 (IPA_OBJS): Add print-utils-ipa.o.
12388 2014-02-06 Tom Tromey <tromey@redhat.com>
12390 * Makefile.in (SFILES): Fix indentation.
12392 2014-02-05 Doug Evans <dje@google.com>
12394 * linux-low.c (linux_wait_for_event): Improve comment.
12395 (linux_wait_1): Keep current_inferior in sync with event_child.
12397 2014-01-22 Doug Evans <dje@google.com>
12399 * gdbthread.h (gdb_id_to_thread): Delete, unused.
12401 2014-01-22 Doug Evans <dje@google.com>
12403 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
12404 * configure: Regenerate.
12405 * config.in: Regenerate.
12406 * Makefile.in (SFILES): Add debug.c.
12407 (OBS): Add debug.o.
12408 * debug.c: New file.
12409 * debug.h: New file.
12410 * linux-aarch64-low.c (*): Update all debugging printfs to use
12411 debug_printf instead of fprintf.
12412 * linux-arm-low.c (*): Ditto.
12413 * linux-cris-low.c (*): Ditto.
12414 * linux-crisv32-low.c (*): Ditto.
12415 * linux-m32r-low.c (*): Ditto.
12416 * linux-sparc-low.c (*): Ditto.
12417 * linux-x86.c (*): Ditto.
12418 * linux-low.c (*): Ditto.
12419 (linux_wait_1): Add calls to debug_enter, debug_exit.
12420 (linux_wait): Remove redundant debugging printf.
12421 (stop_all_lwps): Add calls to debug_enter, debug_exit.
12422 (linux_resume, unstop_all_lwps): Ditto.
12423 * mem-break.c (*): Update all debugging printfs to use
12424 debug_printf instead of fprintf.
12425 * remote-utils.c (*): Ditto.
12426 * thread-db.c (*): Ditto.
12427 * server.c #include <ctype.h>, "gdb_vecs.h".
12428 (debug_threads): Moved to debug.c.
12429 (*): Update all debugging printfs to use debug_printf instead of
12431 (start_inferior): Replace call to fflush with call to debug_flush.
12432 (monitor_show_help): Mention set debug-format.
12433 (parse_debug_format_options): New function.
12434 (handle_monitor_command): Handle "monitor set debug-format".
12435 (gdbserver_usage): Mention --debug-format.
12436 (main): Parse --debug-format.
12437 * server.h (debug_threads): Declaration moved to debug.h.
12438 #include "debug.h".
12439 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
12440 trace_debug_1 that uses debug_printf.
12441 (tracepoint_look_up_symbols): Update all debugging printfs to use
12442 debug_printf instead of fprintf.
12444 2014-01-20 Baruch Siach <baruch@tkos.co.il>
12446 * linux-xtensa-low.c: Include asm/ptrace.h instead of
12449 2014-01-17 Pedro Alves <palves@redhat.com>
12452 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
12453 defined after including gdb_proc_service.h.
12455 2014-01-16 Doug Evans <dje@google.com>
12457 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
12458 (match_dll): Use it.
12460 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12462 * target.h (target_ops) <read_btrace>: Change parameters and
12463 return type to allow error reporting.
12464 * server.c (handle_qxfer_btrace): Support delta reads. Pass
12465 trace reading errors on.
12466 * linux-low.c (linux_low_read_btrace): Pass trace reading
12468 (linux_low_disable_btrace): New.
12470 2014-01-15 Doug Evans <dje@google.com>
12472 * inferiors.c (thread_id_to_gdb_id): Delete.
12473 * inferiors.h (thread_id_to_gdb_id): Delete.
12475 2014-01-13 Eli Zaretskii <eliz@gnu.org>
12477 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
12478 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
12481 2014-01-08 Pedro Alves <palves@redhat.com>
12483 * server.c (handle_status): Don't discard previous queued stop
12484 replies or thread's pending status here.
12485 (main) <disconnection>: Do it here instead.
12487 2014-01-08 Pedro Alves <palves@redhat.com>
12489 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
12490 * server.c (visit_actioned_threads, handle_pending_status): New
12492 (handle_v_cont): Factor out parts to ...
12493 (resume): ... this new function. If in all-stop, and a thread
12494 being resumed has a pending status, report it without actually
12496 (myresume): Adjust to use the new 'resume' function.
12497 (clear_pending_status_callback, set_pending_status_callback)
12498 (find_status_pending_thread_callback): New functions.
12499 (handle_status): Handle the case of multiple threads having
12500 interesting statuses to report. Report threads' real last signal
12501 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
12502 with an interesting thread to report the status for, instead of
12503 always reporting the status of the first thread.
12505 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12507 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
12508 * gdbreplay.c (gdbreplay_version): Likewise.
12510 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
12512 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
12513 iov.iov_len with the real length in use.
12515 2013-12-13 Joel Brobecker <brobecker@adacore.com>
12517 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
12518 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
12519 for all targets that use win32-low.c.
12520 * win32-low.c (win32_ensure_ntdll_loaded): New function.
12521 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
12523 2013-12-13 Pedro Alves <palves@redhat.com>
12525 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
12526 if equal to TARGET_WAITKIND_LOADED.
12527 * win32-low.c (cached_status): New static global.
12528 (win32_wait): Add declaration.
12529 (do_initial_child_stuff): Flush all initial pending debug events
12530 up to the initial breakpoint.
12531 (win32_wait): If CACHED_STATUS was set, return that instead
12532 of doing a real wait. Remove the code resuming the execution
12533 of the inferior after receiving a TARGET_WAITKIND_LOADED event
12534 during the initial phase. Also remove the code changing
12535 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
12536 TARGET_WAITKIND_STOPPED.
12538 2013-12-11 Yao Qi <yao@codesourcery.com>
12540 * notif.c (handle_notif_ack): Return 0 if no notification
12543 2013-11-20 Doug Evans <dje@google.com>
12545 * linux-low.c (linux_set_resume_request): Fix comment.
12547 2013-11-20 Doug Evans <dje@google.com>
12549 * linux-low.c (resume_status_pending_p): Tweak comment.
12551 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
12553 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
12554 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
12555 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
12556 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
12557 (srv_amd64_regobj): Add amd64-mpx.o.
12558 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
12559 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
12560 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
12561 * i387-fp.c (num_pl_bnd_register) Added constant.
12562 (num_pl_bnd_cfg_registers) Added constant.
12563 (struct i387_xsave) Added reserved area and MPX fields.
12564 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
12565 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
12567 (tdesc_i386_mpx_linux): Add MPX amd64 target.
12568 (init_registers_amd64_mpx_linux): Declare new function.
12569 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
12570 (x86_64_regmap): Add MPX registers.
12571 (x86_linux_read_description): Add MPX case.
12572 (initialize_low_arch): Initialize MPX targets.
12574 2013-11-18 Tom Tromey <tromey@redhat.com>
12576 * configure: Rebuild.
12577 * configure.ac: Don't check for stdlib.h.
12578 * gdbreplay.c: Unconditionally include stdlib.h.
12580 2013-11-18 Tom Tromey <tromey@redhat.com>
12582 * config.in: Rebuild.
12583 * configure: Rebuild.
12584 * configure.ac: Don't use AC_HEADER_DIRENT.
12586 2013-11-18 Tom Tromey <tromey@redhat.com>
12588 * server.h: Don't check HAVE_STRING_H.
12589 * gdbreplay.c: Don't check HAVE_STRING_H.
12590 * configure: Rebuild.
12592 2013-11-18 Tom Tromey <tromey@redhat.com>
12594 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
12597 2013-11-08 Tom Tromey <tromey@redhat.com>
12599 * configure, config.in: Rebuild.
12600 * configure.ac: Remove unused configury.
12602 2013-11-08 Tom Tromey <tromey@redhat.com>
12604 * acinclude.m4: Include common.m4, codeset.m4.
12605 * configure, config.in: Rebuild.
12606 * configure.ac: Use GDB_AC_COMMON.
12608 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
12610 * linux-s390-low.c (HWCAP_S390_TE): New define.
12611 (s390_arch_setup): Consider the TE field in the HWCAP for
12612 determining 'have_regset_tdb'.
12614 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
12617 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
12620 2013-10-02 Pedro Alves <palves@redhat.com>
12622 * server.c (process_serial_event): Don't output "GDBserver
12623 exiting" if GDB is connected through stdio.
12624 * target.c (mywait): Likewise, be silent if GDB is connected
12627 2013-10-01 Joel Brobecker <brobecker@adacore.com>
12629 * lynx-low.c (lynx_add_threads_after_attach): New function.
12630 (lynx_attach): Remove call to add_thread. Add call to
12631 lynx_add_threads_after_attach instead.
12633 2013-09-28 Mike Frysinger <vapier@gentoo.org>
12635 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
12636 * config.in, configure: Regenerated.
12638 2013-09-18 Yao Qi <yao@codesourcery.com>
12641 * server.c (start_inferior): Clear 'resume_info'.
12643 2013-09-16 Jiong Wang <jiwang@tilera.com>
12645 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
12648 2013-09-16 Jiong Wang <jiwang@tilera.com>
12650 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
12651 linux-tile-low.o to srv_tgtobj.
12653 2013-09-16 Will Newton <will.newton@linaro.org>
12655 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
12658 2013-09-06 Pedro Alves <palves@redhat.com>
12660 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
12661 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
12662 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
12663 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
12664 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
12665 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
12667 2013-09-06 Pedro Alves <palves@redhat.com>
12669 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
12670 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
12672 2013-09-06 Pedro Alves <palves@redhat.com>
12674 * linux-amd64-ipa.c: Include tracepoint.h.
12675 * linux-i386-ipa.c: Include tracepoint.h.
12677 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
12679 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
12680 (ps_get_thread_area): New function.
12682 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
12684 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
12685 (initialize_low_arch): Call init_registers_crisv32 rather than
12686 init_register_crisv32.
12688 2013-09-05 Pedro Alves <palves@redhat.com>
12690 * server.h (handle_vFile, hostio_last_error_from_errno): Move
12692 * hostio.h: ... this new file.
12693 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
12694 win32-low.c: Include hostio.h.
12696 2013-09-05 Pedro Alves <palves@redhat.com>
12698 * server.h (gdb_client_data, handler_func, callback_handler_func)
12699 (delete_file_handler, add_file_handler, append_callback_event)
12700 (delete_callback_event, start_event_loop, initialize_event_loop):
12701 Move to event-loop.h and include it.
12702 * event-loop.h: New file.
12704 2013-09-05 Pedro Alves <palves@redhat.com>
12706 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
12707 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
12708 (loaded_dll, unloaded_dll): Move to ...
12709 * dll.h: ... this new file.
12710 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
12712 2013-09-05 Pedro Alves <palves@redhat.com>
12714 * server.h (current_process, get_thread_process, all_processes)
12715 (add_inferior_to_list, for_each_inferior, current_inferior)
12716 (remove_inferior, add_process, remove_process, find_process_pid)
12717 (have_started_inferiors_p, have_attached_inferiors_p)
12718 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
12719 (clear_inferiors, find_inferior, find_inferior_id)
12720 (inferior_target_data, set_inferior_target_data)
12721 (inferior_regcache_data, set_inferior_regcache_data): Move to
12722 inferiors.h, and include it.
12723 * inferiors.h: New file.
12725 2013-09-05 Pedro Alves <palves@redhat.com>
12727 * server.h (struct emit_ops, current_insn_ptr, emit_error):
12731 2013-09-05 Pedro Alves <palves@redhat.com>
12733 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
12735 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
12736 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
12737 (handle_tracepoint_general_set, handle_tracepoint_query)
12738 (tracepoint_finished_step, tracepoint_was_hit)
12739 (release_while_stepping_state_list, current_traceframe)
12740 (in_readonly_region, traceframe_read_mem)
12741 (fetch_traceframe_registers, traceframe_read_sdata)
12742 (traceframe_read_info, struct fast_tpoint_collect_status)
12743 (fast_tracepoint_collecting, force_unlock_trace_buffer)
12744 (handle_tracepoit_bkpts, initialize_low_tracepoint)
12745 (supply_fast_tracepoint_registers)
12746 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
12747 (ipa_tdesc, claim_trampoline_space)
12748 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
12749 (agent_mem_read, agent_get_trace_state_variable_value)
12750 (agent_set_trace_state_variable_value, agent_tsv_read)
12751 (agent_mem_read_string, get_raw_reg_func_addr)
12752 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
12753 * tracepoint.h: ... this new file.
12755 2013-09-05 Pedro Alves <palves@redhat.com>
12757 * server.h (perror_with_name, error, fatal, warning, paddress)
12758 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
12760 * utils.h: New file.
12762 2013-09-05 Pedro Alves <palves@redhat.com>
12764 * server.h (remote_debug, noack_mode, transport_is_reliable)
12765 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
12766 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
12767 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
12768 (write_enn, initialize_async_io, enable_async_io)
12769 (disable_async_io, check_remote_input_interrupt_request)
12770 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
12771 (dead_thread_notify, prepare_resume_reply)
12772 (decode_address_to_semicolon, decode_address, decode_m_packet)
12773 (decode_M_packet, decode_X_packet, decode_xfer_write)
12774 (decode_search_memory_packet, unhexify, hexify)
12775 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
12776 (look_up_one_symbol, relocate_instruction)
12777 (monitor_output): Move to remote-utils.h, and include it.
12778 * remote-utils.h: New file.
12780 2013-09-05 Pedro Alves <palves@redhat.com>
12782 * server.h (_): Delete.
12784 2013-09-02 Pedro Alves <palves@redhat.com>
12786 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
12787 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
12789 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
12791 2013-09-02 Pierre Muller <muller@sourceware.org>
12793 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
12794 or WriteProcessMemory complete successfully and handle
12795 ERROR_PARTIAL_COPY error.
12797 2013-09-02 Pedro Alves <palves@redhat.com>
12799 * server.c (gdb_read_memory): Return -1 on traceframe memory read
12800 error instead of EIO.
12802 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
12805 * linux-low.c: Include filestuff.h.
12806 (linux_create_inferior) <pid == 0>: Call close_most_fds.
12807 * lynx-low.c: Include filestuff.h.
12808 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
12809 * server.c: Include filestuff.h.
12810 (main): Call notice_open_fds.
12811 * spu-low.c: Include filestuff.h.
12812 (spu_create_inferior) <pid == 0>: Call close_most_fds.
12814 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
12816 * Makefile.in: Explain why ../target and ../nat are not
12817 listed as include file search paths.
12818 (linux-waitpid.o): New object file rule.
12819 * configure.srv (srv_native_linux_obj): New variable.
12820 Replace all occurrences of linux native object files with
12821 $srv_native_linux_obj.
12822 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
12823 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
12824 (linux_enable_event_reporting): Remove declaration.
12825 (my_waitpid): Moved to common/linux-waitpid.c.
12826 (linux_wait_for_event): Pass ptid when calling
12827 linux_enable_event_reporting.
12828 (linux_supports_tracefork_flag): Remove.
12829 (linux_enable_event_reporting): Likewise.
12830 (linux_tracefork_grandchild): Remove.
12831 (STACK_SIZE): Moved to common/linux-ptrace.c.
12832 (linux_tracefork_child): Remove.
12833 (linux_test_for_tracefork): Remove.
12834 (linux_look_up_symbols): Call linux_supports_traceclone.
12835 (initialize_low): Remove call to linux_test_for_tracefork.
12836 * linux-low.h (PTRACE_TYPE_ARG3): Move to
12837 common/linux-ptrace.h.
12838 (PTRACE_TYPE_ARG4): Likewise.
12839 Include linux-ptrace.h.
12841 2013-08-21 Pedro Alves <palves@redhat.com>
12843 * config.in: Renegerate.
12845 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
12847 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
12848 (SFILES): Remove $(srcdir)/common/target-common.c and
12849 add $(srcdir)/target/waitstatus.c.
12850 (OBS): Remove target-common.o and add waitstatus.o.
12851 (server_h): Remove $(srcdir)/../common/target-common.h and
12852 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
12853 and $(srcdir)/../target/waitstatus.h.
12854 (target-common.o): Remove.
12855 (waitstatus.o): New target object file.
12856 * target.h: Do not include target-common.h and
12857 include target/resume.h, target/wait.h and
12858 target/waitstatus.h.
12860 2013-08-13 Luis Machado <lgustavo@codesourcery.com>
12862 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
12863 to PTRACE_TYPE_ARG3.
12864 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
12865 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
12867 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
12868 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
12870 2013-07-27 Jie Zhang <jie@codesourcery.com>
12871 Daniel Jacobowitz <dan@codesourcery.com>
12872 Yao Qi <yao@codesourcery.com>
12874 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
12875 (mips-linux-watch.o): New rule.
12876 (mips_linux_watch_h): New variable.
12877 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
12879 * linux-mips-low.c: Include mips-linux-watch.h.
12880 (struct arch_process_info, struct arch_lwp_info): New.
12881 (update_watch_registers_callback): New function.
12882 (mips_linux_new_process, mips_linux_new_thread) New functions.
12883 (mips_linux_prepare_to_resume, mips_insert_point): New
12885 (mips_remove_point, mips_stopped_by_watchpoint): New
12887 (rsp_bp_type_to_target_hw_bp_type): New function.
12888 (mips_stopped_data_address): New function.
12889 (the_low_target): Add watchpoint support functions.
12891 2013-07-27 Yao Qi <yao@codesourcery.com>
12893 * i386-low.c: Include break-common.h.
12894 (enum target_hw_bp_type): Remove.
12896 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
12898 * Makefile.in (SFILES): /common/target-common.c.
12899 (OBS): Add target-common.o.
12900 (server_h): Add $(srcdir)/../common/target-common.h.
12901 (target-common.o): New target.
12902 * server.c (queue_stop_reply_callback): Free
12903 status string after use.
12904 * target.c (target_waitstatus_to_string): Remove.
12905 * target.h: Include target-common.h.
12906 (resume_kind): Likewise.
12907 (target_waitkind): Likewise.
12908 (target_waitstatus): Likewise.
12909 (TARGET_WNOHANG): Likewise.
12911 2013-07-04 Yao Qi <yao@codesourcery.com>
12913 * Makefile.in (host_alias): Use @host_noncanonical@.
12914 (target_alias): Use @target_noncanonical@.
12915 * configure.ac: Use ACX_NONCANONICAL_TARGET and
12916 ACX_NONCANONICAL_HOST.
12917 * configure: Regenerated.
12920 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
12922 * configure.ac (version_host, version_target): Set and AC_SUBST them.
12923 * configure: Rebuild.
12924 * Makefile.in (version_host, version_target): Get from configure.
12925 (version.c): Use $(version_host) and $(version_target).
12927 2013-07-03 Pedro Alves <palves@redhat.com>
12929 * Makefile.in (config.status): Depend on development.sh.
12930 * acinclude.m4: Include libmcheck.m4.
12931 * configure: Regenerate.
12933 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
12935 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
12936 attribute inside the parentheses.
12937 (winapi_DebugSetProcessKillOnExit): Ditto.
12938 (winapi_DebugBreakProcess): Ditto.
12939 (winapi_GenerateConsoleCtrlEvent): Ditto.
12941 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
12943 * notif.h (notif_event): Add a dummy member to avoid compiler
12946 2013-07-01 Pedro Alves <palves@redhat.com>
12948 * hostio.c (HOSTIO_PATH_MAX): Define.
12949 (require_filename, handle_open, handle_unlink, handle_readlink):
12952 2013-07-01 Pedro Alves <palves@redhat.com>
12954 * server.h: Include "pathmax.h".
12955 * linux-low.c: Don't include sys/param.h.
12956 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
12958 * win32-low.c: Don't include sys/param.h.
12959 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
12961 2013-07-01 Pedro Alves <palves@redhat.com>
12963 * event-loop.c: Don't check HAVE_UNISTD_H before including
12965 * gdbreplay.c: Likewise.
12966 * remote-utils.c: Likewise.
12967 * server.c: Likewise.
12968 * configure.ac: Don't check for unistd.h.
12969 * configure: Regenerate.
12971 2013-06-28 Tom Tromey <tromey@redhat.com>
12973 * Makefile.in (version.c): Use version.in, not
12976 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
12978 * configure.ac (version_host, version_target): Set and AC_SUBST them.
12979 * configure: Rebuild.
12980 * Makefile.in (version_host, version_target): Get from configure.
12981 (version.c): Use $(version_host) and $(version_target).
12983 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
12985 Fix trace-status to output user name without trailing colon.
12986 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
12988 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
12990 Fix trace-status to output proper start-time and stop-time.
12991 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
12992 output start time and stop time in hex as gdb expects.
12994 2013-06-26 Pedro Alves <pedro@codesourcery.com>
12996 * tracepoint.c (build_traceframe_info_xml): Output trace state
12997 variables present in the trace buffer.
12999 2013-06-24 Tom Tromey <tromey@redhat.com>
13001 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
13003 (version.o): Remove.
13004 * gdbreplay.c: Include version.h.
13005 (version, host_name): Don't declare.
13006 * server.h: Include version.h.
13007 (version, host_name): Don't declare.
13009 2013-06-12 Pedro Alves <palves@redhat.com>
13011 * linux-x86-low.c (linux_is_elf64): Delete global.
13012 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
13013 with local linux_pid_exe_is_elf_64_file use.
13015 2013-06-11 Pedro Alves <palves@redhat.com>
13017 * linux-low.c (regset_disabled, disable_regset): New functions.
13018 (regsets_fetch_inferior_registers)
13019 (regsets_store_inferior_registers): Use them.
13020 (initialize_regsets_info); Don't allocate the disabled_regsets
13022 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
13025 2013-06-11 Pedro Alves <palves@redhat.com>
13027 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
13030 2013-06-11 Pedro Alves <palves@redhat.com>
13032 * linux-x86-low.c (initialize_low_arch): Call
13033 init_registers_x32_avx_linux.
13035 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13037 Fix compatibility with Android Bionic.
13038 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
13041 2013-06-07 Pedro Alves <palves@redhat.com>
13044 * Makefile.in (OBS): Add tdesc.o.
13045 (IPA_OBJS): Add tdesc-ipa.o.
13046 (tdesc-ipa.o): New rule.
13047 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
13049 * linux-low.c (new_inferior): Delete.
13050 (disabled_regsets, num_regsets): Delete.
13051 (linux_add_process): Adjust to set the new per-process
13053 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
13054 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
13055 was a stop. When calling arch_setup, switch the current inferior
13056 to the thread that got an event.
13057 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
13058 (regsets_fetch_inferior_registers)
13059 (regsets_store_inferior_registers): New regsets_info parameter.
13061 (linux_register_in_regsets): New regs_info parameter. Adjust to
13063 (register_addr, fetch_register, store_register): New usrregs_info
13064 parameter. Adjust to use it.
13065 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
13066 parameter regs_info. Adjust to use it.
13067 (linux_fetch_registers): Get the current inferior's regs_info, and
13069 (linux_store_registers): Ditto.
13070 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
13071 (initialize_low): Don't initialize the target_regsets here. Call
13072 initialize_low_arch.
13073 * linux-low.h (target_regsets): Delete declaration.
13074 (struct regsets_info): New.
13075 (struct usrregs_info): New.
13076 (struct regs_info): New.
13077 (struct process_info_private) <new_inferior>: New field.
13078 (struct linux_target_ops): Delete the num_regs, regmap, and
13079 regset_bitmap fields. New field regs_info.
13080 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
13081 * i387-fp.c (num_xmm_registers): Delete.
13082 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
13083 calls to new interface.
13084 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
13085 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
13086 Infer the number of xmm registers from the regcache's target
13088 * i387-fp.h (num_xmm_registers): Delete.
13089 * inferiors.c (add_thread): Don't install the thread's regcache
13091 * proc-service.c (gregset_info): Fetch the current inferior's
13092 regs_info. Adjust to use it.
13093 * regcache.c: Include tdesc.h.
13094 (register_bytes, reg_defs, num_registers)
13095 (gdbserver_expedite_regs): Delete.
13096 (get_thread_regcache): If the thread doesn't have a regcache yet,
13097 create one, instead of aborting gdbserver.
13098 (regcache_invalidate_one): Rename to ...
13099 (regcache_invalidate_thread): ... this.
13100 (regcache_invalidate_one): New.
13101 (regcache_invalidate): Only invalidate registers of the current
13103 (init_register_cache): Add target_desc parameter, and use it.
13104 (new_register_cache): Ditto. Assert the target description has a
13105 non zero registers_size.
13106 (regcache_cpy): Add assertions. Adjust.
13107 (realloc_register_cache, set_register_cache): Delete.
13108 (registers_to_string, registers_from_string): Adjust.
13109 (find_register_by_name, find_regno, find_register_by_number)
13110 (register_cache_size): Add target_desc parameter, and use it.
13111 (free_register_cache_thread, free_register_cache_thread_one)
13112 (regcache_release, register_cache_size): New.
13113 (register_size): Add target_desc parameter, and use it.
13114 (register_data, supply_register, supply_register_zeroed)
13115 (supply_regblock, supply_register_by_name, collect_register)
13116 (collect_register_as_string, collect_register_by_name): Adjust.
13117 * regcache.h (struct target_desc): Forward declare.
13118 (struct regcache) <tdesc>: New field.
13119 (init_register_cache, new_register_cache): Add target_desc
13121 (regcache_invalidate_thread): Declare.
13122 (regcache_invalidate_one): Delete declaration.
13123 (regcache_release): Declare.
13124 (find_register_by_number, register_cache_size, register_size)
13125 (find_regno): Add target_desc parameter.
13126 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
13128 * remote-utils.c: Include tdesc.h.
13129 (outreg, prepare_resume_reply): Adjust.
13130 * server.c: Include tdesc.h.
13131 (gdbserver_xmltarget): Delete declaration.
13132 (get_features_xml, process_serial_event): Adjust.
13133 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
13135 (struct process_info) <tdesc>: New field.
13136 (ipa_tdesc): Declare.
13137 * tdesc.c: New file.
13138 * tdesc.h: New file.
13139 * tracepoint.c: Include tdesc.h.
13140 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
13141 (get_context_regcache): Adjust to pass ipa_tdesc down.
13142 (do_action_at_tracepoint): Adjust to get the register cache size
13143 from the context regcache's description.
13144 (traceframe_walk_blocks): Adjust to get the register cache size
13145 from the current trace frame's description.
13146 (traceframe_get_pc): Adjust to get current trace frame's
13147 description and pass it down.
13148 (gdb_collect): Adjust to get the register cache size from the
13150 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
13151 (gdbserver_xmltarget): Delete.
13152 (initialize_low_tracepoint): Set the ipa's target description.
13153 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
13154 (initialize_low_tracepoint): Set the ipa's target description.
13155 * linux-x86-low.c: Include tdesc.h.
13156 [__x86_64__] (is_64bit_tdesc): New.
13157 (ps_get_thread_area, x86_get_thread_area): Use it.
13158 (i386_cannot_store_register): Rename to ...
13159 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
13160 (i386_cannot_fetch_register): Rename to ...
13161 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
13162 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
13164 (target_regsets): Rename to ...
13165 (x86_regsets): ... this.
13166 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
13168 (x86_siginfo_fixup): Use is_64bit_tdesc.
13169 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
13170 (tdesc_x32_avx_linux, tdesc_x32_linux)
13171 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
13173 (x86_linux_update_xmltarget): Delete.
13174 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
13175 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
13176 (AMD64_LINUX_USER64_CS): New.
13177 (x86_linux_read_description): New, based on
13178 x86_linux_update_xmltarget.
13179 (same_process_callback): New.
13180 (x86_arch_setup_process_callback): New.
13181 (x86_linux_update_xmltarget): New.
13182 (x86_regsets_info): New.
13183 (amd64_linux_regs_info): New.
13184 (i386_linux_usrregs_info): New.
13185 (i386_linux_regs_info): New.
13186 (x86_linux_regs_info): New.
13187 (x86_arch_setup): Reimplement.
13188 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
13189 (x86_emit_ops): Ditto.
13190 (the_low_target): Adjust. Install x86_linux_regs_info,
13191 x86_cannot_fetch_register, and x86_cannot_store_register.
13192 (initialize_low_arch): New.
13193 * linux-ia64-low.c (tdesc_ia64): Declare.
13194 (ia64_fetch_register): Adjust.
13195 (ia64_usrregs_info, regs_info): New globals.
13196 (ia64_regs_info): New function.
13197 (the_low_target): Adjust.
13198 (initialize_low_arch): New function.
13199 * linux-sparc-low.c (tdesc_sparc64): Declare.
13200 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
13202 (sparc_arch_setup): New function.
13203 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
13204 (the_low_target): Adjust.
13205 (initialize_low_arch): New function.
13206 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
13207 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
13208 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
13209 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
13210 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
13211 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
13212 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
13213 (tdesc_powerpc_isa205_vsx64l): Declare.
13214 (ppc_cannot_store_register, ppc_collect_ptrace_register)
13215 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
13216 (ppc_set_pc, ppc_get_hwcap): Adjust.
13217 (ppc_usrregs_info): Forward declare.
13218 (!__powerpc64__) ppc_regmap_adjusted: New global.
13219 (ppc_arch_setup): Adjust to the current process'es target
13221 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
13222 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
13223 (ppc_store_evrregset): Adjust.
13224 (target_regsets): Rename to ...
13225 (ppc_regsets): ... this, and make static.
13226 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
13227 (ppc_regs_info): New function.
13228 (the_low_target): Adjust.
13229 (initialize_low_arch): New function.
13230 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
13231 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
13232 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
13233 (tdesc_s390x_linux64v2): Declare.
13234 (s390_collect_ptrace_register, s390_supply_ptrace_register)
13235 (s390_fill_gregset, s390_store_last_break): Adjust.
13236 (target_regsets): Rename to ...
13237 (s390_regsets): ... this, and make static.
13238 (s390_get_pc, s390_set_pc): Adjust.
13239 (s390_get_hwcap): New target_desc parameter, and use it.
13240 [__s390x__] (have_hwcap_s390_high_gprs): New global.
13241 (s390_arch_setup): Adjust to set the current process'es target
13242 description. Don't adjust the regmap.
13243 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
13244 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
13245 (regs_info_3264): New globals.
13246 (s390_regs_info): New function.
13247 (the_low_target): Adjust.
13248 (initialize_low_arch): New function.
13249 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
13250 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
13251 [__mips64] (init_registers_mips_linux)
13252 (init_registers_mips_dsp_linux): Delete defines.
13253 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
13254 (have_dsp): New global.
13255 (mips_read_description): New, based on mips_arch_setup.
13256 (mips_arch_setup): Reimplement.
13257 (get_usrregs_info): New function.
13258 (mips_cannot_fetch_register, mips_cannot_store_register)
13259 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
13260 (mips_fill_fpregset, mips_store_fpregset): Adjust.
13261 (target_regsets): Rename to ...
13262 (mips_regsets): ... this, and make static.
13263 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
13264 (dsp_regs_info, regs_info): New globals.
13265 (mips_regs_info): New function.
13266 (the_low_target): Adjust.
13267 (initialize_low_arch): New function.
13268 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
13269 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
13271 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
13272 (arm_read_description): New, with bits factored from
13274 (arm_arch_setup): Reimplement.
13275 (target_regsets): Rename to ...
13276 (arm_regsets): ... this, and make static.
13277 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
13278 (arm_regs_info): New function.
13279 (the_low_target): Adjust.
13280 (initialize_low_arch): New function.
13281 * linux-m68k-low.c (tdesc_m68k): Declare.
13282 (target_regsets): Rename to ...
13283 (m68k_regsets): ... this, and make static.
13284 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
13285 (m68k_regs_info): New function.
13286 (m68k_arch_setup): New function.
13287 (the_low_target): Adjust.
13288 (initialize_low_arch): New function.
13289 * linux-sh-low.c (tdesc_sharch): Declare.
13290 (target_regsets): Rename to ...
13291 (sh_regsets): ... this, and make static.
13292 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
13293 (sh_regs_info, sh_arch_setup): New functions.
13294 (the_low_target): Adjust.
13295 (initialize_low_arch): New function.
13296 * linux-bfin-low.c (tdesc_bfin): Declare.
13297 (bfin_arch_setup): New function.
13298 (bfin_usrregs_info, regs_info): New globals.
13299 (bfin_regs_info): New function.
13300 (the_low_target): Adjust.
13301 (initialize_low_arch): New function.
13302 * linux-cris-low.c (tdesc_cris): Declare.
13303 (cris_arch_setup): New function.
13304 (cris_usrregs_info, regs_info): New globals.
13305 (cris_regs_info): New function.
13306 (the_low_target): Adjust.
13307 (initialize_low_arch): New function.
13308 * linux-cris-low.c (tdesc_crisv32): Declare.
13309 (cris_arch_setup): New function.
13310 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
13311 (cris_regs_info): New function.
13312 (the_low_target): Adjust.
13313 (initialize_low_arch): New function.
13314 * linux-m32r-low.c (tdesc_m32r): Declare.
13315 (m32r_arch_setup): New function.
13316 (m32r_usrregs_info, regs_info): New globals.
13317 (m32r_regs_info): Adjust.
13318 (initialize_low_arch): New function.
13319 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
13320 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
13321 (tic6x_usrregs_info): Forward declare.
13322 (tic6x_read_description): New function, based on ...
13323 (tic6x_arch_setup): ... this. Reimplement.
13324 (target_regsets): Rename to ...
13325 (tic6x_regsets): ... this, and make static.
13326 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
13327 (tic6x_regs_info): New function.
13328 (the_low_target): Adjust.
13329 (initialize_low_arch): New function.
13330 * linux-xtensa-low.c (tdesc_xtensa): Declare.
13331 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
13332 (target_regsets): Rename to ...
13333 (xtensa_regsets): ... this, and make static.
13334 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
13336 (xtensa_arch_setup, xtensa_regs_info): New functions.
13337 (the_low_target): Adjust.
13338 (initialize_low_arch): New function.
13339 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
13340 (nios2_arch_setup): Set the current process'es tdesc.
13341 (target_regsets): Rename to ...
13342 (nios2_regsets): ... this.
13343 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
13344 (nios2_regs_info): New function.
13345 (the_low_target): Adjust.
13346 (initialize_low_arch): New function.
13347 * linux-aarch64-low.c (tdesc_aarch64): Declare.
13348 (aarch64_arch_setup): Set the current process'es tdesc.
13349 (target_regsets): Rename to ...
13350 (aarch64_regsets): ... this.
13351 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
13352 (aarch64_regs_info): New function.
13353 (the_low_target): Adjust.
13354 (initialize_low_arch): New function.
13355 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
13357 (target_regsets): Rename to ...
13358 (tile_regsets): ... this.
13359 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
13360 (tile_regs_info): New function.
13361 (tile_arch_setup): Set the current process'es tdesc.
13362 (the_low_target): Adjust.
13363 (initialize_low_arch): New function.
13364 * spu-low.c (tdesc_spu): Declare.
13365 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
13366 * win32-arm-low.c (tdesc_arm): Declare.
13367 (arm_arch_setup): New function.
13368 (the_low_target): Install arm_arch_setup instead of
13369 init_registers_arm.
13370 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
13371 (init_windows_x86): Rename to ...
13372 (i386_arch_setup): ... this. Set `win32_tdesc'.
13373 (the_low_target): Adjust.
13374 * win32-low.c (win32_tdesc): New global.
13375 (child_add_thread): Don't create the thread cache here.
13376 (do_initial_child_stuff): Set the new process'es tdesc.
13377 * win32-low.h (struct target_desc): Forward declare.
13378 (win32_tdesc): Declare.
13379 * lynx-i386-low.c (tdesc_i386): Declare global.
13380 (lynx_i386_arch_setup): Set `lynx_tdesc'.
13381 * lynx-low.c (lynx_tdesc): New global.
13382 (lynx_add_process): Set the new process'es tdesc.
13383 * lynx-low.h (struct target_desc): Forward declare.
13384 (lynx_tdesc): Declare global.
13385 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
13386 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
13387 * nto-low.c (nto_tdesc): New global.
13388 (do_attach): Set the new process'es tdesc.
13389 * nto-low.h (struct target_desc): Forward declare.
13390 (nto_tdesc): Declare.
13391 * nto-x86-low.c (tdesc_i386): Declare.
13392 (nto_x86_arch_setup): Set `nto_tdesc'.
13394 2013-06-04 Gary Benson <gbenson@redhat.com>
13396 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
13397 to qSupported response when appropriate.
13398 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
13399 with nonzero-length annex.
13400 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
13401 arguments supplied in annex.
13403 2013-05-31 Doug Evans <dje@google.com>
13406 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
13407 64 bits in 64-cross-32 environment.
13409 2013-05-28 Pedro Alves <palves@redhat.com>
13411 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
13412 (aarch64-without-fpu.c): Delete rule.
13413 * configure.srv (aarch64*-*-linux*): Remove references to
13414 aarch64-without-fpu.o and aarch64-without-fpu.xml.
13415 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
13418 2013-05-24 Pedro Alves <palves@redhat.com>
13420 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
13421 instead of strchr/decode_address. Error if the range isn't split
13422 with a ','. Don't assume there's be a ':' in the action.
13424 2013-05-23 Yao Qi <yao@codesourcery.com>
13425 Pedro Alves <palves@redhat.com>
13427 * linux-low.c (lwp_in_step_range): New function.
13428 (linux_wait_1): If the thread was range stepping and stopped
13429 outside the stepping range, report the stop to GDB. Otherwise,
13430 continue stepping. Add range stepping debug output.
13431 (linux_set_resume_request): Copy the step range from the resume
13432 request to the lwp.
13433 (linux_supports_range_stepping): New.
13434 (linux_target_ops) <supports_range_stepping>: Set to
13435 linux_supports_range_stepping.
13436 * linux-low.h (struct linux_target_ops)
13437 <supports_range_stepping>: New field.
13438 (struct lwp_info) <step_range_start, step_range_end>: New fields.
13439 * linux-x86-low.c (x86_supports_range_stepping): New.
13440 (the_low_target) <supports_range_stepping>: Set to
13441 x86_supports_range_stepping.
13442 * server.c (handle_v_cont): Handle 'r' action.
13443 (handle_v_requests): Append ";r" if the target supports range
13445 * target.h (struct thread_resume) <step_range_start,
13446 step_range_end>: New fields.
13447 (struct target_ops) <supports_range_stepping>:
13449 (target_supports_range_stepping): New macro.
13451 2013-05-17 Joel Brobecker <brobecker@adacore.com>
13453 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
13454 confusion in comment.
13456 2013-05-17 Joel Brobecker <brobecker@adacore.com>
13458 * lynx-low.c (struct process_info_private): New type.
13459 (lynx_add_process): New function.
13460 (lynx_create_inferior, lynx_attach): Replace calls to
13461 add_process by calls to lynx_add_process.
13462 (lynx_resume): If PTID is null, then try using
13463 current_process()->private->last_wait_event_ptid.
13465 (lynx_clear_inferiors): Delete. The contents of that function
13466 has been inlined in lynx_mourn;
13467 (lynx_wait_1): Save the ptid in the process's private data.
13468 (lynx_mourn): Free the process' private data. Replace call
13469 to lynx_clear_inferiors by call to clear_inferiors.
13471 2013-05-17 Yao Qi <yao@codesourcery.com>
13473 * i386-low.c (i386_length_and_rw_bits): Move the comment to
13476 2013-05-16 Luis Machado <lgustavo@codesourcery.com>
13478 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
13479 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
13480 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
13481 PT_TEXT_END_ADDR guards. Update comments.
13482 (linux_target_op) <read_offsets>: Conditionally define to
13483 linux_read_offsets if the target is UCLIBC and if it defines
13484 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
13486 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
13487 Andrew Jenner <andrew@codesourcery.com>
13489 * Makefile.in (SFILES): Add linux-nios2-low.c.
13490 (clean): Add action to delete nios2-linux.c.
13491 (nios2-linux.c): New rule.
13492 * configure.srv: Add nios2*-*-linux*.
13493 * linux-nios2-low.c: New.
13495 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
13497 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
13499 2013-04-25 Hui Zhu <hui@codesourcery.com>
13502 * ax.c (ax_printf): Add fflush.
13504 2013-04-22 Tom Tromey <tromey@redhat.com>
13506 * Makefile.in (SFILES): Add filestuff.c.
13507 (OBS): Add filestuff.o.
13508 (filestuff.o): New target.
13509 * config.in, configure: Rebuild.
13510 * configure.ac: Check for fdwalk, pipe2.
13512 2013-04-17 Pedro Alves <palves@redhat.com>
13514 * configure.ac (USE_THREAD_DB): Delete variable.
13515 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
13516 Don't AC_SUBST USE_THREAD_DB.
13517 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
13518 * config.in, configure: Regenerate.
13520 2013-04-16 Pedro Alves <palves@redhat.com>
13522 * linux-low.h (struct lwp_info) <thread_known>: Move under
13523 the USE_THREAD_DB #ifdef.
13525 2013-04-16 Pedro Alves <palves@redhat.com>
13527 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
13528 (linux-low.o): Delete rule.
13529 * linux-low.h: Always include "gdb_thread_db.h" instead of
13530 conditionally including thread_db.h.
13531 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
13534 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
13536 * Makefile.in (install-only): Fix make install regression.
13538 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
13540 Convert man pages to texinfo, new gdbinit.5 texinfo page.
13541 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
13543 * gdbserver.1: Remove.
13545 2013-03-22 Pedro Alves <palves@redhat.com>
13547 * linux-low.c (handle_extended_wait): Don't call
13548 linux_enable_event_reporting.
13550 2013-03-15 Tony Theodore <tonyt@logyst.com>
13553 * Makefile.in (SHELL): Use @SHELL@.
13555 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
13557 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
13560 2013-03-13 Joel Brobecker <brobecker@adacore.com>
13562 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
13563 Remove extraneous NULL element.
13565 2013-03-13 Yao Qi <yao@codesourcery.com>
13567 * tracepoint.c (traceframe_read_tsv): Look for the last matched
13568 'V' block in trace frame.
13570 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
13572 * target.h (struct target_ops): Add btrace ops.
13573 (target_supports_btrace): New macro.
13574 (target_enable_btrace): New macro.
13575 (target_disable_btrace): New macro.
13576 (target_read_btrace): New macro.
13577 * gdbthread.h (struct thread_info): Add btrace field.
13578 * server.c: Include btrace-common.h.
13579 (handle_btrace_general_set): New function.
13580 (handle_btrace_enable): New function.
13581 (handle_btrace_disable): New function.
13582 (handle_general_set): Call handle_btrace_general_set.
13583 (handle_qxfer_btrace): New function.
13584 (struct qxfer qxfer_packets[]): Add btrace entry.
13585 * inferiors.c (remove_thread): Disable btrace.
13586 * linux-low: Include linux-btrace.h.
13587 (linux_low_enable_btrace): New function.
13588 (linux_low_read_btrace): New function.
13589 (linux_target_ops): Add btrace ops.
13590 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
13591 Add srv_linux_btrace=yes.
13592 (x86_64-*-linux*): Add linux-btrace.o.
13593 Add srv_linux_btrace=yes.
13594 * configure.ac: Define HAVE_LINUX_BTRACE.
13595 * config.in: Regenerated.
13596 * configure: Regenerated.
13598 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
13600 * server.c (handle_qxfer): Preserve error message if -3 is
13602 (qxfer): Document the -3 return value.
13604 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
13606 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
13607 (linux_btrace_h): New variable.
13608 (linux-btrace.o): New rule.
13610 2013-03-08 Stan Shebs <stan@codesourcery.com>
13611 Hafiz Abid Qadeer <abidh@codesourcery.com>
13613 * tracepoint.c (trace_buffer_size): New global.
13614 (DEFAULT_TRACE_BUFFER_SIZE): New define.
13615 (init_trace_buffer): Change to one-argument function. Allocate
13616 trace buffer memory.
13617 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
13618 handle QTBuffer:size packet.
13619 (cmd_bigqtbuffer_size): New function.
13620 (initialize_tracepoint): Call init_trace_buffer with
13621 DEFAULT_TRACE_BUFFER_SIZE.
13622 * server.c (handle_query): Add QTBuffer:size in the
13625 2013-03-07 Yao Qi <yao@codesourcery.com>
13627 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
13628 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
13630 (cmd_qtsp): Adjust condition. Do post increment.
13631 Set cur_action and cur_step_action back to 0.
13633 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
13636 * linux-low.c (linux_write_memory): Return early success if LEN is
13639 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
13641 * configure.srv: Add x86_64-*-cygwin* as target.
13643 2013-02-28 Tom Tromey <tromey@redhat.com>
13645 * configure.ac: Invoke AC_SYS_LARGEFILE.
13646 * configure, config.in: Rebuild.
13648 2013-02-28 Corinna Vinschen <vinschen@redhat.com>
13650 * win32-low.c: Throughout, fix format strings and casts of
13651 printf-like functions to avoid type related warnings on all
13653 (get_child_debug_event): Print dwDebugEventCode as hex since
13654 that's how it's usually documented.
13656 2013-02-28 Yao Qi <yao@codesourcery.com>
13658 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
13661 2013-02-27 Jiong Wang <jiwang@tilera.com>
13663 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
13664 (reg-tilegx32.c): New rule.
13665 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
13666 * linux-tile-low.c (tile_arch_setup): New function. Invoke
13667 different register info initializer according to elf class.
13668 (init_registers_tilgx32): New function. The tilegx32 register info
13670 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
13671 (tile_store_gregset): Likewise.
13673 2013-02-27 Yao Qi <yao@codesourcery.com>
13675 * server.c (process_point_options): Print debug message when
13676 debug_threads is true.
13678 2013-02-26 Yao Qi <yao@codesourcery.com>
13680 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
13682 2013-02-19 Pedro Alves <palves@redhat.com>
13683 Kai Tietz <ktietz@redhat.com>
13687 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
13688 instead of strtoul to extract address from packet.
13689 (process_serial_event) <'z'>: Likewise.
13691 2013-02-18 Yao Qi <yao@codesourcery.com>
13693 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
13695 2013-02-14 Pedro Alves <palves@redhat.com>
13699 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
13700 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
13702 2013-02-14 Pedro Alves <palves@redhat.com>
13704 * tracepoint.c (cmd_qtdpsrc): Use savestring.
13706 2013-02-14 Pedro Alves <palves@redhat.com>
13708 * tracepoint.c (save_string): Delete.
13709 (add_tracepoint_action): Use savestring instead of save_string.
13711 2013-02-12 Pedro Alves <palves@redhat.com>
13713 * linux-xtensa-low.c: Ditto.
13714 * xtensa-xtregs.c: Ditto.
13716 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13718 * thread-db.c (thread_db_get_tls_address): NULL pointer check
13721 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
13723 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
13724 aarch64_num_wp_regs and aarch64_num_bp_regs to
13725 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
13727 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
13729 * linux-aarch64-low.c (ps_get_thread_area): Replace
13730 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
13732 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
13733 Marcus Shawcroft <marcus.shawcroft@arm.com>
13734 Nigel Stephens <nigel.stephens@arm.com>
13735 Yufeng Zhang <yufeng.zhang@arm.com>
13737 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
13738 (aarch64.c, aarch64-without-fpu.c): New targets.
13739 * configure.srv (aarch64*-*-linux*): New.
13740 * linux-aarch64-low.c: New file.
13742 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
13744 * linux-low.c (handle_extended_wait, linux_create_inferior)
13745 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
13746 (dequeue_one_deferred_signal, linux_resume_one_thread)
13747 (fetch_register, linux_write_memory, linux_enable_event_reporting)
13748 (linux_tracefork_grandchild, linux_test_for_tracefork)
13749 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
13750 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
13751 where the argument is 0.
13753 2013-01-25 Yao Qi <yao@codesourcery.com>
13755 * event-loop.c: Include "queue.h".
13756 (gdb_event_p): New typedef.
13757 (struct gdb_event) <next_event>: Remove.
13758 (event_queue): Change to QUEUE(gdb_event_p).
13759 (async_queue_event): Remove.
13760 (gdb_event_xfree): New.
13761 (initialize_event_loop): New.
13762 (process_event): Use API from QUEUE.
13763 (wait_for_event): Likewise.
13764 * server.c (main): Call initialize_event_loop.
13765 * server.h (initialize_event_loop): Declare.
13767 2013-01-18 Yao Qi <yao@codesourcery.com>
13769 * ax.h (struct eval_agent_expr_context): New.
13770 (gdb_eval_agent_expr): Update declaration.
13771 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
13772 TFRAME. Add new argument CTX.
13773 * server.h (struct eval_agent_expr_context): Declare.
13774 (agent_mem_read, agent_tsv_read): Update declaration.
13775 (agent_mem_read_string): Likewise.
13776 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
13777 (add_traceframe_block): Add new argument TPOINT.
13778 Increase TPOINT->traceframe_usage.
13779 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
13780 eval_tracepoint_agent_expr.
13781 (condition_true_at_tracepoint): Likewise.
13782 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
13783 (agent_mem_read_string, agent_tsv_read): Likewise.
13785 2013-01-16 Yao Qi <yao@codesourcery.com>
13787 * linux-low.c (linux_resume_one_lwp): Don't check
13788 'lwp->bp_reinsert != 0'.
13790 2013-01-07 Joel Brobecker <brobecker@adacore.com>
13791 Pedro Alves <palves@redhat.com>
13793 * lynx-low.c (ptrace_request_to_str): Define a temporary
13794 macro and use it to simplify this function's implementation.
13796 2013-01-07 Joel Brobecker <brobecker@adacore.com>
13798 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
13801 2013-01-07 Joel Brobecker <brobecker@adacore.com>
13803 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
13805 2013-01-07 Joel Brobecker <brobecker@adacore.com>
13807 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
13809 2013-01-07 Joel Brobecker <brobecker@adacore.com>
13811 * lynx-low.c (lynx_resume): Use the resume_info parameter
13812 to determine the ptid for the lynx_ptrace call, unless
13813 it is equal to minus_one_ptid, in which case we use the
13814 ptid of the current_inferior.
13815 (lynx_wait_1): After having received a thread create/exit
13816 event, resume the inferior's execution using the signaling
13817 thread's ptid, rather than the old ptid.
13819 2013-01-07 Joel Brobecker <brobecker@adacore.com>
13821 * lynx-low.c (lynx_resume): Delete variable ret.
13823 2013-01-01 Joel Brobecker <brobecker@adacore.com>
13825 * gdbreplay.c (gdbreplay_version): Update copyright year.
13826 * server.c (gdbserver_version): Likewise.
13828 2012-12-17 Joel Brobecker <brobecker@adacore.com>
13830 * lynx-low.c (lynx_wait_1): Add debug trace before adding
13833 2012-12-17 Joel Brobecker <brobecker@adacore.com>
13835 * lynx-low.c (ptrace_request_to_str): Add handling for
13836 PTRACE_GETTRACESIG.
13838 2012-12-17 Joel Brobecker <brobecker@adacore.com>
13840 * lynx-low.c (lynx_attach): Delete variable new_process.
13842 2012-12-17 Joel Brobecker <brobecker@adacore.com>
13844 * lynx-low.c (lynx_create_inferior): Delete variable
13847 2012-12-17 Joel Brobecker <brobecker@adacore.com>
13849 * lynx-low.c (ptrace_request_to_str): Do not handle
13850 PTRACE_GETTHREADLIST if this macro does not exist.
13852 2012-12-15 Yao Qi <yao@codesourcery.com>
13854 * Makefile.in (OBS): Add notif.o.
13855 * notif.c, notif.h: New.
13856 * server.c: Include "notif.h".
13857 (struct vstop_notif) <next>: Remove.
13859 (queue_stop_reply): Update.
13860 (push_event, send_next_stop_reply): Remove.
13861 (discard_queued_stop_replies): Update.
13862 (notif_stop): New variable.
13863 (handle_v_stopped): Remove.
13864 (handle_v_requests): Don't call handle_v_stopped. Call
13865 handle_ack_notif instead.
13866 (queue_stop_reply_callback): Call notif_event_enque instead
13867 of queue_stop_reply.
13868 (handle_status): Don't call send_next_stop_reply, call
13869 notif_write_event instead.
13870 (kill_inferior_callback): Likewise.
13871 (detach_or_kill_inferior_callback): Likewise.
13872 (main): Call initialize_notif.
13873 (process_serial_event): Call QUEUE_is_empty.
13874 (handle_target_event): Call notif_push instead of push event.
13875 * server.h (push_event): Remove declaration.
13877 2012-12-10 Tom Tromey <tromey@redhat.com>
13879 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
13880 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
13883 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
13884 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
13885 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
13886 (amd64-linux-ipa.o, ax.o): Rewrite.
13887 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
13888 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
13889 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
13890 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
13891 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
13892 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
13893 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
13894 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
13895 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
13896 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
13897 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
13898 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
13899 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
13900 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
13901 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
13902 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
13903 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
13904 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
13905 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
13906 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
13907 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
13908 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
13909 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
13910 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
13911 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
13912 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
13913 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
13914 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
13915 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
13916 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
13917 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
13918 (reg-tilegx.o): Remove.
13919 (all_object_files): New macro.
13920 Include .deps files.
13921 * aclocal.m4, configure: Rebuild.
13922 * acinclude.m4: Include depstand.m4, lead-dot.m4.
13923 * configure.ac: Invoke ZW_CREATE_DEPDIR,
13924 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
13926 2012-12-05 Tom Tromey <tromey@redhat.com>
13929 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
13931 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
13933 * configure.ac: Check for linux/perf_event.h.
13934 * config.in: Regenerated.
13935 * configure: Regenerated.
13937 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
13939 * hostio.c (handle_readlink): Decrease buffer size
13940 parameter passed to readlink by one byte.
13942 2012-11-26 Yao Qi <yao@codesourcery.com>
13944 * configure.ac (build_warnings): Append '-Wempty-body'.
13945 * configure: Regenerated.
13946 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
13949 2012-11-15 Pierre Muller <muller@sourceware.org>
13951 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
13952 * config.in: Regenerate.
13953 * configure: Regenerate.
13954 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
13955 Use "gdb_wait.h" header instead of <sys/wait.h> header.
13956 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
13957 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
13959 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
13960 instead of <sys/wait.h> header.
13961 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
13963 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
13965 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
13966 (various make rules): Remove -DGDBSERVER
13968 2012-11-09 Yao Qi <yao@codesourcery.com>
13970 * spu-low.c (current_ptid): Move it to ..
13971 * gdbthread.h: ... here. New.
13972 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
13973 * server.c (myresume, process_serial_event): Likewise.
13974 * thread-db.c (thread_db_find_new_threads): Likewise.
13975 * tracepoint.c (run_inferior_command): Likewise.
13977 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
13979 * server.c (handle_search_memory_1): Include access length in
13982 2012-09-05 Michael Brandt <michael.brandt@axis.com>
13984 * linux-crisv32-low.c: Fix compile errors.
13986 2012-09-04 Yao Qi <yao@codesourcery.com>
13988 * tracepoint.c (cmd_qtsv): Adjust debug message.
13989 Don't check CUR_TPOINT.
13991 2012-08-28 Yao Qi <yao@codesourcery.com>
13993 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
13994 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
13995 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
13996 Remove declarations of xmalloc, xreallloc, xstrdup and
13998 * Makefile.in (libiberty_h): New.
13999 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
14000 (linux-bfin-low.o): Append dependency 'libiberty.h'.
14002 2012-08-23 Yao Qi <yao@codesourcery.com>
14004 * server.h: Remove declaration of 'xsnprintf'.
14006 2012-08-22 Keith Seitz <keiths@redhat.com>
14008 * server.h: Include build-gnulib-gbserver/config.h.
14009 * gdbreplay.c: Likewise.
14011 2012-08-08 Doug Evans <dje@google.com>
14013 * Makefile.in (SFILES): Add gdb_vecs.c.
14014 (OBS): Add gdb_vecs.o.
14015 (gdb_vecs_h, host_defs_h): New variables.
14016 (thread-db.o): Add $(gdb_vecs_h) dependency.
14017 (gdb_vecs.o): New rule.
14018 * thread-db.c: #include "gdb_vecs.h".
14019 (thread_db_load_search): Use a vector to iterate over path elements.
14020 Handle text appearing after "$pdir".
14022 * configure.ac: Add check for strstr.
14023 * config.in: Regenerate.
14024 * configure: Regenerate.
14026 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
14028 * hostio.c (handle_pread): If pread fails, fall back to attempting
14030 (handle_pwrite): Likewise for pwrite.
14032 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
14034 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
14035 between unsupported TYPE and unimplementable ADDR/LEN combination.
14036 (arm_insert_point): Act on new return value.
14038 2012-07-31 Pedro Alves <palves@redhat.com>
14040 * server.c (process_point_options): Only skip tokens if we find
14041 one that is unrecognized. Don't treat 'X' specially while
14042 skipping unrecognized tokens.
14044 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
14046 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
14047 to 4-byte-align HW breakpoint addresses for Thumb.
14049 2012-07-27 Yao Qi <yao@codesourcery.com>
14053 * server.h: Declare gdb_agent_about_to_close.
14054 * target.c (kill_inferior): Include "agent.h".
14055 New. Send command 'kill'.
14056 * target.h (kill_inferior): Removed macro.
14057 * tracepoint.c (gdb_agent_about_to_close): New.
14058 (gdb_agent_helper_thread): Handle command 'close'.
14059 Wait endlessly until the inferior stops.
14060 Install gdb_agent_remove_socket to atexit hook.
14061 (agent_socket_name): New static variable.
14062 (gdb_agent_socket_init): Replace local variable 'name' with
14063 'agent_socket_name'.
14064 (gdb_agent_remove_socket): New.
14066 2012-07-27 Yao Qi <yao@codesourcery.com>
14068 * server.c (process_point_options): Stop at 'X' when parsing.
14070 2012-07-19 Michael Eager <eager@eagercon.com>
14072 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
14074 * linux-x86-low.c (x86_insert_point, x86_remove_point):
14075 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
14076 hardware breakpoint.
14078 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14080 * gdbserver/linux-low.c (initialize_low): Call
14081 linux_ptrace_init_warnings.
14083 2012-07-02 Doug Evans <dje@google.com>
14085 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
14088 2012-07-02 Stan Shebs <stan@codesourcery.com>
14090 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
14091 (ax.o): Add it to build rule.
14093 (OBS): Add format.o.
14094 (IPA_OBS): Add format.o.
14095 * server.c (handle_query): Claim support for breakpoint commands.
14096 (process_point_options): Add command case.
14097 (process_serial_event): Leave running if there are printfs in
14099 * mem-break.h (any_persistent_commands): Declare.
14100 (add_breakpoint_commands): Declare.
14101 (gdb_no_commands_at_breakpoint): Declare.
14102 (run_breakpoint_commands): Declare.
14103 * mem-break.c (struct point_command_list): New struct.
14104 (struct breakpoint): New field command_list.
14105 (any_persistent_commands): New function.
14106 (add_commands_to_breakpoint): New function.
14107 (add_breakpoint_commands): New function.
14108 (gdb_no_commands_at_breakpoint): New function.
14109 (run_breakpoint_commands): New function.
14110 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
14112 * ax.c: Include format.h.
14113 (ax_printf): New function.
14114 (gdb_eval_agent_expr): Add printf opcode.
14116 2012-06-13 Yao Qi <yao@codesourcery.com>
14118 * server.c (start_inferior): Remove duplicated writes to fields
14119 'last_resume_kind' and 'last_status' of 'current_inferior'.
14121 2012-06-12 Yao Qi <yao@codesourcery.com>
14122 Pedro Alves <palves@redhat.com>
14124 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
14126 * server.c (handle_v_cont): Extend comment.
14128 2012-06-11 Yao Qi <yao@codesourcery.com>
14130 * linux-low.c (linux_attach): Add 'static'.
14132 2012-06-06 Yao Qi <yao@codesourcery.com>
14134 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
14136 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
14138 Fix gcc -flto compilation warning.
14139 * server.c (main): Make variable multi_mode and attach volatile.
14141 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14143 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
14144 if the platform doesn't know about it.
14146 2012-05-30 Jeff Kenton <jkenton@tilera.com>
14148 * Makefile.in (SFILES): Add linux-tile-low.c.
14149 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
14150 * configure.srv: Handle tilegx-*-linux*.
14151 * linux-tile-low.c: New file.
14153 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14155 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
14157 2012-05-24 Pedro Alves <palves@redhat.com>
14161 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
14163 2012-05-24 Pedro Alves <palves@redhat.com>
14167 Replace target_signal with gdb_signal throughout.
14169 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
14171 * linux-low.c (linux_store_registers): Avoid the copying sequence
14172 when no data has been retrieved by ptrace.
14174 2012-05-22 Will Deacon <will.deacon@arm.com>
14176 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
14177 Include asm/ptrace.h.
14178 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
14181 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
14183 * linux-low.c (linux_store_registers): Don't re-retrieve data
14184 with ptrace that has already been obtained from /proc. Always
14185 copy any data retrieved with ptrace to the buffer supplied.
14187 2012-05-11 Yao Qi <yao@codesourcery.com>
14188 Pedro Alves <palves@redhat.com>
14190 * linux-low.c (enum stopping_threads_kind): New.
14191 (stopping_threads): Change type to `enum stopping_threads_kind'.
14192 (handle_extended_wait): If stopping and suspending threads, leave
14193 the new_lwp suspended too.
14194 (linux_wait_for_event): Adjust.
14195 (stop_all_lwps): Set `stopping_threads' to
14196 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
14197 whether we're suspending threads or just stopping them. Assert no
14200 2012-04-29 Yao Qi <yao@codesourcery.com>
14202 * server.h: Move some code to ...
14203 * gdbthread.h: ... here. New.
14204 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
14205 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
14206 (nto-low.o, win32-low.o): Likewise.
14207 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
14208 * regcache.c, remote-utils.c, server.c: Likewise.
14209 * target.c, tracepoint.c, win32-low.c: Likewise.
14211 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14213 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
14214 (PTRACE_ARG4_TYPE): Likewise.
14215 (PTRACE_XFER_TYPE): Likewise.
14216 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
14217 ptrace to PTRACE_ARG3_TYPE.
14218 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
14219 (PTRACE_ARG4_TYPE): Likewise.
14220 (PTRACE_XFER_TYPE): Likewise.
14221 (linux_detach_one_lwp): Cast fourth argument of
14222 ptrace to long then PTRACE_ARG4_TYPE.
14223 (regsets_fetch_inferior_registers): Cast third argument of
14224 ptrace to long then PTRACE_ARG3_TYPE.
14225 (regsets_store_inferior_registers): Likewise.
14227 2012-04-20 Pedro Alves <palves@redhat.com>
14229 * configure: Regenerate.
14231 2012-04-19 Pedro Alves <palves@redhat.com>
14233 * Makefile.in (GNULIB_BUILDDIR): New.
14234 (LIBGNU, INCGNU, GNULIB_H): Adjust.
14235 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
14236 (all, install-only, uninstall, clean-info, all-lib, clean): No
14237 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
14238 (maintainer-clean realclean distclean): Use subdir_do.
14240 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
14241 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
14242 * acinclude.m4: Include acx_configure_dir.m4.
14243 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
14244 calls. Call AC_PROG_RANLIB. Configure gnulib using
14247 (GNULIB_STDINT_H): Adjust.
14248 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
14249 * gdbreplay.c: Include build-gnulib/config.h.
14250 * server.h: Likewise.
14251 * aclocal.m4: Regenerate.
14252 * config.in: Regenerate.
14253 * configure: Regenerate.
14255 2012-04-19 Pedro Alves <palves@redhat.com>
14257 * Makefile.in (LIBGNU, INCGNU): Adjust.
14258 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
14259 (all, install-only, uninstall, clean-info, all-lib, clean)
14260 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
14261 * configure.ac: Adjust AC_OUTPUT output.
14262 * aclocal.m4: Regenerate.
14263 * configure: Regenerate.
14265 2012-04-19 Pedro Alves <palves@redhat.com>
14267 * Makefile.in (generated_files): New.
14268 (server_h): Remove the explicit dependency on config.h, and depend
14269 on $generated_files.
14271 2012-04-19 Pedro Alves <palves@redhat.com>
14273 * Makefile.in (INCGNU): Add -Ignulib.
14275 2012-04-19 Pedro Alves <palves@redhat.com>
14277 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
14278 (INCGNU): ... this, and spell out -I here.
14279 (GNULIB_LIB): Rename to ...
14280 (LIBGNU): ... this.
14281 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
14283 2012-04-19 Pedro Alves <palves@redhat.com>
14285 * config.in: Regenerate.
14287 2012-04-19 Pedro Alves <palves@redhat.com>
14289 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
14290 * server.h (memmem): Remove declaration.
14291 * config.in: Regenerate.
14292 * configure: Regenerate.
14294 2012-04-19 Yao Qi <yao@codesourcery.com>
14296 * Makefile.in (SFILES): Add common/vec.c.
14300 2012-04-19 Yao Qi <yao@codesourcery.com>
14302 * remote-utils.c (prepare_resume_reply): Replace with macro
14303 target_core_of_thread.
14304 * server.c (handle_qxfer_threads_proper): Likewise.
14305 * target.h (traget_core_of_thread): New macro.
14307 2012-04-18 Pedro Alves <palves@redhat.com>
14309 * aclocal.m4: Regenerate.
14310 * configure: Regenerate.
14312 2012-04-16 Yao Qi <yao@codesourcery.com>
14314 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
14315 duplicated on address.
14317 2012-04-16 Yao Qi <yao@codesourcery.com>
14319 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
14320 (struct tracepoint_action_ops) <send>: New field.
14321 (m_tracepoint_action_send, r_tracepoint_action_send): New.
14322 (agent_expr_send, x_tracepoint_action_send): New.
14323 (l_tracepoint_action_send): New.
14324 (cmd_qtdp): Download and install tracepoint
14325 according to `use_agent'.
14326 (run_inferior_command): Add one more parameter `len'.
14328 (tracepoint_send_agent): New.
14329 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
14331 2012-04-16 Yao Qi <yao@codesourcery.com>
14333 * tracepoint.c (download_tracepoints): Moved to ...
14334 (cmd_qtstart): ... here.
14336 2012-04-14 Yao Qi <yao@codesourcery.com>
14338 * tracepoint.c: Include inttypes.h.
14339 (struct collect_memory_action): Use sized types.
14340 (struct tracepoint): Likewise.
14341 (cmd_qtdp, stop_tracing): Update print specifiers.
14342 (cmd_qtp, response_tracepoint): Likewise.
14343 (collect_data_at_tracepoint): Likewise.
14344 (collect_data_at_step): Likewise.
14346 2012-04-14 Yao Qi <yao@codesourcery.com>
14348 Import gnulib module inttypes.
14349 * aclocal.m4, config.in, configure: Regenerated.
14351 2012-04-14 Yao Qi <yao@codesourcery.com>
14353 * Makefile.in (maintainer-clean, realclean, distclean): Remove
14354 Makefile and config.status at last.
14356 2012-04-13 Yao Qi <yao@codesourcery.com>
14358 * tracepoint.c: Include stdint.h unconditionally.
14360 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14362 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
14363 on BFD_HAVE_SYS_PROCFS_TYPE.
14364 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
14365 * configure: Regenerate.
14366 * config.in: Likewise.
14368 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
14370 * Makefile.in (clean): Also remove x32.c x32-linux.c
14371 x32-avx.c x32-avx-linux.c.
14372 (x32.o): New target.
14374 (x32-linux.o): Likewise.
14375 (x32-linux.c): Likewise.
14376 (x32-avx.o): Likewise.
14377 (x32-avx.c): Likewise.
14378 (x32-avx-linux.o): Likewise.
14379 (x32-avx-linux.c): Likewise.
14381 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
14382 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
14383 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
14384 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
14385 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
14386 i386/x32-avx-linux.xml.
14388 * linux-x86-low.c (init_registers_x32_linux): New prototype.
14389 (init_registers_x32_avx_linux): Likwise.
14390 (x86_linux_update_xmltarget): Call init_registers_x32_linux
14391 or init_registers_x32_avx_linux if linux_is_elf64 is false.
14393 2012-04-13 Pedro Alves <palves@redhat.com>
14395 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
14396 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
14397 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
14398 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
14401 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
14403 * linux-x86-low.c (compat_x32_clock_t): New.
14404 (compat_x32_siginfo_t): Likewise.
14405 (compat_x32_siginfo_from_siginfo): Likewise.
14406 (siginfo_from_compat_x32_siginfo): Likewise.
14407 (linux_is_elf64): Likewise.
14408 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
14409 and siginfo_from_compat_x32_siginfo for x32.
14410 (x86_arch_setup): Set linux_is_elf64.
14412 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
14415 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
14417 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
14418 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
14419 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
14420 compatible with process.
14422 2012-04-12 Yao Qi <yao@codesourcery.com>
14424 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
14425 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
14426 (install-only, install-info, clean): Handle sub dir gnulib.
14427 (all-lib, am--refresh): New targets.
14428 (memmem.o): Remove target.
14429 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
14430 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
14431 (AC_REPLACE_FUNCS): Remove memmem.
14432 Invoke gl_INIT and AM_INIT_AUTOMAKE.
14433 (AC_OUTPUT): Generate Makefile in gnulib/.
14434 * aclocal.m4, config.in, configure: Regenerated.
14436 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
14438 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
14440 2012-04-05 Pedro Alves <palves@redhat.com>
14442 -Werror=strict-aliasing
14444 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
14447 2012-04-04 Pedro Alves <palves@redhat.com>
14449 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
14450 (sparc_store_gregset_from_stack, sparc_store_gregset)
14451 (sparc_breakpoint_at): Fix formatting.
14453 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14455 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
14457 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
14458 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
14459 * config.in: Regenerate.
14460 * configure: Likewise.
14462 2012-03-29 Pedro Alves <palves@redhat.com>
14464 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
14465 Correct ptrace arguments.
14467 2012-03-28 Pedro Alves <palves@redhat.com>
14469 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
14470 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
14471 (IA64_FR1_REGNUM): New defines.
14472 (ia64_fetch_register): New.
14473 (the_low_target): Install it.
14474 * linux-low.h (struct linux_target_ops) <fetch_register>: New
14476 * linux-low.c (linux_fetch_registers): Try the
14477 the_low_target.fetch_register hook first.
14479 * linux-arm-low.c (the_low_target): Adjust.
14480 * linux-bfin-low.c (the_low_target): Adjust.
14481 * linux-cris-low.c (the_low_target): Adjust.
14482 * linux-crisv32-low.c (the_low_target): Adjust.
14483 * linux-m32r-low.c (the_low_target): Adjust.
14484 * linux-m68k-low.c (the_low_target): Adjust.
14485 * linux-mips-low.c (the_low_target): Adjust.
14486 * linux-ppc-low.c (the_low_target): Adjust.
14487 * linux-s390-low.c (the_low_target): Adjust.
14488 * linux-sh-low.c (the_low_target): Adjust.
14489 * linux-sparc-low.c (the_low_target): Adjust.
14490 * linux-tic6x-low.c (the_low_target): Adjust.
14491 * linux-x86-low.c (the_low_target): Adjust.
14492 * linux-xtensa-low.c (the_low_target): Adjust.
14494 2012-03-26 Pedro Alves <palves@redhat.com>
14496 * server.c (handle_qxfer_libraries): Don't bail early if
14497 the_target->qxfer_libraries_svr4 is not NULL.
14499 2012-03-26 Pedro Alves <palves@redhat.com>
14501 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
14503 2012-03-23 Pedro Alves <palves@redhat.com>
14505 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
14506 "library-list-svr4" element's start tag when the the DSO list is
14509 2012-03-23 Pedro Alves <palves@redhat.com>
14511 * linux-low.c (read_one_ptr): Read the inferior's pointer through
14512 a variable whose type size is the same as the inferior's pointer
14515 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
14517 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
14519 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
14520 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
14521 * linux-low.h: Include <signal.h>.
14522 (struct siginfo): Remove forward declaration.
14523 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
14526 2012-03-21 Mike Frysinger <vapier@gentoo.org>
14528 * .gitignore: Ignore more files.
14530 2012-03-19 Pedro Alves <palves@redhat.com>
14531 Jan Kratochvil <jan.kratochvil@redhat.com>
14533 * server.c (cont_thread, general_thread): Add describing comments.
14534 (start_inferior): Clear `cont_thread'.
14535 (handle_v_cont): Don't set `cont_thread' if resuming all threads
14538 2012-03-15 Yao Qi <yao@codesourcery.com>
14540 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
14542 (cmd_qtdp): ... here.
14544 2012-03-15 Yao Qi <yao@codesourcery.com>
14546 * tracepoint.c (struct tracepoint_action_ops): New.
14547 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
14548 (m_tracepoint_action_download): New.
14549 (r_tracepoint_action_download): New.
14550 (x_tracepoint_action_download): New.
14551 (l_tracepoint_action_download): New.
14552 (add_tracepoint_action): Install `action->ops' according type.
14553 (download_tracepoint_1): Move code `download' function pointer
14554 of various tracepoint_action_ops.
14556 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14558 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
14559 linux_ptrace_attach_warnings.
14561 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14563 * Makefile.in (linux-ptrace.o): New.
14564 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
14565 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
14566 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
14567 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
14568 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
14570 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
14572 2012-03-08 Yao Qi <yao@codesourcery.com>
14573 Pedro Alves <palves@redhat.com>
14575 Fix PR server/13392.
14576 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
14577 offset of JMP insn.
14578 * tracepoint.c (remove_tracepoint): New.
14579 (cmd_qtdp): Call remove_tracepoint when failed to install.
14581 2012-03-07 Pedro Alves <palves@redhat.com>
14583 * linux-low.c (get_detach_signal): New.
14584 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
14585 Pass on pending signals to PTRACE_DETACH. Check the result of the
14587 * server.c (program_signals, program_signals_p): New.
14588 (handle_general_set): Handle QProgramSignals.
14589 * server.h (program_signals, program_signals_p): Declare.
14591 2012-03-05 Pedro Alves <palves@redhat.com>
14592 Jan Kratochvil <jan.kratochvil@redhat.com>
14594 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
14597 2012-03-03 Yao Qi <yao@codesourcery.com>
14599 * tracepoint.c (tracepoint_look_up_symbols): Update call to
14600 agent_look_up_symbols.
14602 2012-03-03 Yao Qi <yao@codesourcery.com>
14604 * Makefile.in (linux-low.o): Keep dependence on agent.h.
14605 (linux-x86-low.o): Likewise.
14606 * server.h: Remove in_process_agent_loaded.
14607 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
14611 2012-03-03 Yao Qi <yao@codesourcery.com>
14613 * tracepoint.c (gdb_agent_capability): New global.
14614 (in_process_agent_loaded_ust): Renamed to
14615 `in_process_agent_supports_ust'.
14617 (in_process_agent_supports_ust): Call agent_capability_check.
14618 (clear_installed_tracepoints): Assert that agent supports
14621 2012-03-03 Yao Qi <yao@codesourcery.com>
14623 * linux-low.c (linux_supports_agent): New.
14624 (linux_target_ops): Initialize field `supports_agent' with
14625 linux_supports_agent.
14626 * target.h (struct target_ops) <supports_agent>: New.
14627 (target_supports_agent): New macro.
14628 * server.c (handle_general_set): Handle packet 'QAgent'.
14629 (handle_query): Send `QAgent+'.
14630 * Makefile.in (server.o): Depends on agent.h.
14632 2012-03-03 Yao Qi <yao@codesourcery.com>
14634 * Makefile.in (OBS): Add agent.o.
14635 Add new rule for agent.o.
14636 Track dependence of tracepoint.c on agent.h.
14637 * tracepoint.c (run_inferior_command_1):
14638 (run_inferior_command): Call agent_run_command.
14639 (gdb_ust_connect_sync_socket): Deleted. Move it to
14641 (resume_thread, stop_thread): Likewise.
14642 (gdb_ust_socket_init): Renamed to ...
14643 (gdb_agent_socket_init): ... New.
14644 (gdb_ust_thread): Renamed to ...
14645 (gdb_agent_helper_thread): ... New.
14646 (gdb_ust_init): Move some code to ...
14647 (gdb_agent_init): ... here. New.
14648 [HAVE_UST]: Call gdb_ust_init.
14649 (initialize_tracepoint_ftlib): Call gdb_agent_init.
14650 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
14651 * config.in, configure: Regenerated.
14653 2012-03-02 Pedro Alves <palves@redhat.com>
14655 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
14656 * linux-low.c (struct simple_pid_list): New.
14657 (stopped_pids): New a struct simple_pid_list pointer.
14658 (add_to_pid_list, pull_pid_from_list): New.
14659 (handle_extended_wait): Don't assume the first signal new children
14660 report is SIGSTOP. Adjust call to pull_pid_from_list.
14661 (linux_wait_for_lwp): Adjust.
14663 2012-03-02 Yao Qi <yao@codesourcery.com>
14665 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
14668 2012-03-02 Yao Qi <yao@codesourcery.com>
14670 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
14671 `stop_pc' and `tpoint'. Update caller.
14673 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
14675 * linux-low.h (linux_target_ops): Add regset_bitmap member.
14676 * linux-low.c (use_linux_regsets): New macro.
14677 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
14678 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
14679 (linux_register_in_regsets): New function.
14680 (usr_fetch_inferior_registers): Skip registers covered by
14682 (usr_store_inferior_registers): Likewise.
14683 (usr_fetch_inferior_registers): New macro.
14684 (usr_store_inferior_registers): Likewise.
14685 (linux_fetch_registers): Handle mixed regset/non-regset targets.
14686 (linux_store_registers): Likewise.
14687 * linux-mips-low.c (init_registers_mips_dsp_linux): New
14689 (init_registers_mips64_dsp_linux): Likewise.
14690 (init_registers_mips_linux): New macro.
14691 (init_registers_mips_dsp_linux): Likewise.
14692 (mips_dsp_num_regs): Likewise.
14693 (DSP_BASE, DSP_CONTROL): New fallback macros.
14694 (mips_base_regs): New macro.
14695 (mips_regmap): Use it. Fix the size.
14696 (mips_dsp_regmap): New variable.
14697 (mips_dsp_regset_bitmap): Likewise.
14698 (mips_arch_setup): New function.
14699 (mips_cannot_fetch_register): Use the_low_target.regmap rather
14701 (mips_cannot_store_register): Likewise.
14702 (the_low_target): Update .arch_setup, .num_regs and .regmap
14703 initializers. Add .regset_bitmap initializer.
14704 * linux-arm-low.c (the_low_target): Add .regset_bitmap
14706 * linux-bfin-low.c (the_low_target): Likewise.
14707 * linux-cris-low.c (the_low_target): Likewise.
14708 * linux-crisv32-low.c (the_low_target): Likewise.
14709 * linux-ia64-low.c (the_low_target): Likewise.
14710 * linux-m32r-low.c (the_low_target): Likewise.
14711 * linux-m68k-low.c (the_low_target): Likewise.
14712 * linux-ppc-low.c (the_low_target): Likewise.
14713 * linux-s390-low.c (the_low_target): Likewise.
14714 * linux-sh-low.c (the_low_target): Likewise.
14715 * linux-sparc-low.c (the_low_target): Likewise.
14716 * linux-tic6x-low.c (the_low_target): Likewise.
14717 * linux-x86-low.c (the_low_target): Likewise.
14718 * linux-xtensa-low.c (the_low_target): Likewise.
14719 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
14720 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
14721 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
14723 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
14724 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
14726 2012-02-29 Yao Qi <yao@codesourcery.com>
14727 Pedro Alves <palves@redhat.com>
14729 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
14730 `step_over_finished' is true.
14732 2012-02-27 Pedro Alves <palves@redhat.com>
14734 * linux-low.c (pid_is_stopped): Delete, moved to common/.
14735 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
14737 2012-02-27 Pedro Alves <palves@redhat.com>
14740 * linux-low.c (pid_is_stopped): New.
14741 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
14743 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
14745 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
14748 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
14750 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
14752 2012-02-24 Luis Machado <lgustavo@codesourcery>
14754 * server.c (handle_query): Advertise support for target-side
14755 breakpoint condition evaluation.
14756 (process_point_options): New function.
14757 (process_serial_event): When inserting a breakpoint, check for
14758 a target-side condition that should be evaluated.
14760 * mem-break.c: Include regcache.h and ax.h.
14761 (point_cond_list_t): New data structure.
14762 (breakpoint) <cond_list>: New field.
14763 (find_gdb_breakpoint_at): Make non-static.
14764 (delete_gdb_breakpoint_at): Clear any target-side
14766 (clear_gdb_breakpoint_conditions): New function.
14767 (add_condition_to_breakpoint): Likewise.
14768 (add_breakpoint_condition): Likewise.
14769 (gdb_condition_true_at_breakpoint): Likewise.
14770 (gdb_breakpoint_here): Return result directly instead
14771 of going through a local variable.
14773 * mem-break.h (find_gdb_breakpoint_at): New prototype.
14774 (clear_gdb_breakpoint_conditions): Likewise.
14775 (add_breakpoint_condition): Likewise.
14776 (gdb_condition_true_at_breakpoint): Likewise.
14778 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
14779 (need_step_over_p): Take target-side breakpoint condition into
14782 2012-02-24 Luis Machado <lgustavo@codesourcery>
14784 * server.h: Include tracepoint.h.
14785 (agent_mem_read, agent_get_trace_state_variable_value,
14786 agent_set_trace_state_variable_value,
14787 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
14788 get_set_tsv_func_addr): New prototypes.
14790 * ax.h: New include file.
14791 * ax.c: New source file.
14793 * tracepoint.c: Include ax.h.
14794 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
14795 agent_expr, eval_result_type): Move to ax.h.
14796 (parse_agent_expr): Rename to ...
14797 (gdb_parse_agent_expr): ... this, make it non-static and move
14799 (unparse_agent_expr) Rename to ...
14800 (gdb_unparse_agent_expr): ... this, make it non-static and move
14802 (eval_agent_expr): Rename to ...
14803 (eval_tracepoint_agent_expr): ... this.
14804 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
14805 forward declarations.
14806 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
14807 (agent_get_trace_state_variable_value): New function.
14808 (agent_set_trace_state_variable_value): New function.
14809 (cmd_qtdp): Call gdb_parse_agent_expr (...).
14810 (response_tracepoint): Call gdb_unparse_agent_expr (...).
14811 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
14812 (condition_true_at_tracepoint): Likewise.
14813 (parse_agent_expr): Rename to ...
14814 (gdb_parse_agent_expr): ... this and move to ax.c.
14815 (unparse_agent_expr): Rename to ...
14816 (gdb_unparse_agent_expr): ... this and move to ax.c.
14817 (gdb_agent_op_name): Move to ax.c.
14818 (eval_agent_expr): Rename to ...
14819 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
14821 (eval_tracepoint_agent_expr): New function.
14822 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
14824 (current_insn_ptr, emit_error, struct bytecode_address): Move to
14826 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
14827 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
14828 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
14829 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
14830 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
14831 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
14832 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
14833 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
14834 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
14835 (compile_bytecodes): Remove forward declaration.
14836 (is_goto_target): Move to ax.c.
14837 (compile_bytecodes): Move to ax.c and call
14838 agent_get_trace_state_variable_value (...) and
14839 agent_set_trace_state_variable_value (...).
14841 * Makefile.in: Update ax.c and IPA dependencies.
14843 2012-02-24 Pedro Alves <palves@redhat.com>
14845 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
14846 (cmd_bigqtbuffer_circular): ... this. Only handle
14847 'QTBuffer:circular:'.
14848 (handle_tracepoint_general_set): Adjust.
14850 2012-02-16 Yao Qi <yao@codesourcery.com>
14852 * inferiors.c: Move code to ...
14853 * dll.c: .... here. New.
14854 * server.h: Declare clear_dlls.
14855 * Makefile.in (SFILES): Add dll.c.
14859 2012-02-11 Yao Qi <yao@codesourcery.com>
14861 * server.c: (handle_monitor_command): Add a new parameter
14863 (handle_query): Update caller.
14865 2012-02-09 Joel Brobecker <brobecker@adacore.com>
14867 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
14868 * configure, config.in: Regenerate.
14869 * hostio.c: Provide an alternate implementation if HAVE_READLINK
14872 2012-02-02 Pedro Alves <palves@redhat.com>
14874 Try SIGKILL first, then PTRACE_KILL.
14875 * linux-low.c (linux_kill_one_lwp): New.
14876 (linux_kill_one_lwp): Rename to ...
14877 (kill_one_lwp_callback): ... this. Use the new
14878 linux_kill_one_lwp.
14880 2012-02-02 Pedro Alves <palves@redhat.com>
14882 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
14885 2012-01-27 Pedro Alves <palves@redhat.com>
14887 * linux-low.c (linux_child_pid_to_exec_file): Delete.
14888 (elf_64_file_p): Make static.
14889 (linux_pid_exe_is_elf_64_file): New.
14890 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
14891 Delete declarations.
14892 (linux_pid_exe_is_elf_64_file): Declare.
14893 * linux-x86-low.c (x86_arch_setup): Use
14894 linux_pid_exe_is_elf_64_file.
14896 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
14898 * linux-low.c (linux_wait_for_event_1): Rename to ...
14899 (linux_wait_for_event): ... here and merge it with former
14900 linux_wait_for_event - new variable wait_ptid, use it.
14901 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
14903 2012-01-23 Pedro Alves <palves@redhat.com>
14905 * server.c (main): Avoid yet another case of infinite loop while
14906 detaching/killing after a longjmp.
14908 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
14911 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
14913 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
14915 * hostio.c (handle_readlink): New function.
14916 (handle_vFile): Call it to handle "vFile:readlink" packets.
14918 2012-01-20 Pedro Alves <palves@redhat.com>
14919 Ulrich Weigand <ulrich.weigand@linaro.org>
14921 * server.c (handle_v_requests): Only support vAttach and vRun to
14922 start multiple processes when in extended protocol mode.
14924 2012-01-17 Pedro Alves <palves@redhat.com>
14926 * tracepoint.c (initialize_tracepoint): Use mmap instead of
14927 memalign plus mprotect to allocate the scratch buffer.
14929 2012-01-13 Pedro Alves <palves@redhat.com>
14931 * server.c (attach_inferior): Clear `cont_thread'.
14933 2012-01-13 Pedro Alves <palves@redhat.com>
14935 * server.c (main): Avoid infinite loop while detaching/killing
14938 2012-01-09 Doug Evans <dje@google.com>
14940 * server.c (start_inferior): Set last_ptid in --wrapper case.
14942 2012-01-06 Yao Qi <yao@codesourcery.com>
14944 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
14946 [IN_PROCESS_AGENT] (debug_agent): New global variable.
14948 2012-01-04 Yao Qi <yao@codesourcery.com>
14950 * tracepoint.c (cmd_qtdp): Print debug message
14951 for static tracepoint.
14953 2012-01-04 Yao Qi <yao@codesourcery.com>
14955 * tracepoint.c (trace_vdebug): Differentiate debug message
14956 between gdbserver and IPA.
14958 2012-01-03 Yao Qi <yao@codesourcery.com>
14960 * tracepoint.c (tracepoint_was_hit): Don't collect for
14963 2012-01-02 Joel Brobecker <brobecker@adacore.com>
14965 * terminal.h: Reformat copyright header.
14967 2012-01-02 Joel Brobecker <brobecker@adacore.com>
14969 * server.c (gdbserver_version): Update copyright year.
14970 * gdbreplay.c (gdbreplay_version): Likewise.
14972 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
14974 * linux-low.c (linux_create_inferior): Put empty if clause for write.
14977 2011-12-18 Hui Zhu <teawater@gmail.com>
14978 * linux-low.c (linux_create_inferior): Save return value to ret.
14980 2011-12-18 Hui Zhu <teawater@gmail.com>
14982 * linux-low.c (linux_create_inferior): Save return value to ret.
14984 2011-12-16 Doug Evans <dje@google.com>
14986 * linux-low.c (linux_create_inferior): If stdio connection,
14987 redirect stdin from /dev/null, stdout to stderr.
14988 * remote-utils.c (remote_is_stdio): New static global.
14989 (remote_connection_is_stdio): New function.
14990 (remote_prepare): Handle stdio connection.
14991 (remote_open): Ditto.
14992 (remote_close): Don't close stdin for stdio connections.
14993 (read_prim,write_prim): New functions. Replace all calls to
14994 read/write to these.
14995 * server.c (main): Watch for "-" argument. Move call to
14996 remote_prepare before start_inferior.
14997 * server.h (STDIO_CONNECTION_NAME): New macro.
14998 (remote_connection_is_stdio): Declare.
15000 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
15001 in debugging output.
15003 2011-12-15 Yao Qi <yao@codesourcery.com>
15005 * tracepoint.c: Include sys/syscall.h.
15006 (gdb_ust_thread): Remove preprocessor conditional.
15008 2011-12-14 Pedro Alves <pedro@codesourcery.com>
15010 * linux-low.c (linux_detach_one_lwp): Call
15011 the_low_target.prepare_to_resume before detaching.
15013 2011-12-14 Yao Qi <yao@codesourcery.com>
15015 * tracepoint.c (gdb_ust_thread): Don't ignore return value
15018 2011-12-14 Yao Qi <yao@codesourcery.com>
15020 * i386-low.c (i386_low_stopped_data_address): Initialize local
15021 variable `control'.
15023 2011-12-13 Pedro Alves <pedro@codesourcery.com>
15027 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
15028 DR_CONTROL unless necessary. Extend comments.
15029 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
15030 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
15032 2011-12-13 Yao Qi <yao@codesourcery.com>
15034 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
15036 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
15038 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
15040 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
15041 Print new debug message for such case.
15043 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
15045 Fix overlapping memcpy.
15046 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
15047 the read_inferior_memory transfer.
15048 (delete_fast_tracepoint_jump): New variable buf. Use it for the
15049 write_inferior_memory transfer.
15050 (set_fast_tracepoint_jump): New variable buf. Use it for the
15051 read_inferior_memory and write_inferior_memory transfers.
15052 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
15053 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
15054 Use it for the write_inferior_memory transfer.
15055 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
15058 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15060 * linux-low.c (fetch_register, store_register): Make code
15061 consistent, fix formatting.
15063 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15065 * linux-low.c (usr_store_inferior_registers): Factor out code
15066 to handle individual registers into...
15067 (store_register): ... this new function.
15069 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
15071 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
15072 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
15073 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
15074 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
15075 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
15076 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
15077 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
15078 (srv_xmlfiles): Add new XML files.
15080 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
15082 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
15083 (init_registers_s390_linux32v1): Add prototype.
15084 (init_registers_s390_linux32v2): Likewise.
15085 (init_registers_s390_linux64v1): Likewise.
15086 (init_registers_s390_linux64v2): Likewise.
15087 (init_registers_s390x_linux64v1): Likewise.
15088 (init_registers_s390x_linux64v2): Likewise.
15089 (s390_num_regs): Increment to 52.
15090 (s390_regmap): Add orig_r2 register.
15091 (s390_num_regs_3264): Increment to 68.
15092 (s390_regmap_3264): Add orig_r2 register.
15093 (s390_collect_ptrace_register): Handle orig_r2 register.
15094 (s390_supply_ptrace_register): Likewise.
15095 (s390_fill_last_break): New function.
15096 (s390_store_last_break): Likewise.
15097 (s390_fill_system_call): New function.
15098 (s390_store_system_call): Likewise.
15099 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
15101 (s390_check_regset): New function.
15102 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
15103 NT_S390_SYSTEM_CALL regsets and use appropriate description.
15104 Update target_regsets for available register sets.
15106 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
15107 Jan Kratochvil <jan.kratochvil@redhat.com>
15109 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
15110 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
15112 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
15113 * linux-low.h (struct process_info_private): New member r_debug.
15114 * server.c (handle_qxfer_libraries): Call
15115 the_target->qxfer_libraries_svr4.
15116 (handle_qxfer_libraries_svr4): New function.
15117 (qxfer_packets): New entry "libraries-svr4".
15118 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
15119 * target.h (struct target_ops): New member qxfer_libraries_svr4.
15120 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
15121 PACKET_qXfer_libraries_svr4.
15123 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
15125 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
15126 PSW address/mask between 8-byte and 16-byte formats.
15127 (s390_supply_ptrace_register): Likewise.
15128 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
15129 basic addressing mode bit.
15131 2011-11-24 Stan Shebs <stan@codesourcery.com>
15133 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
15135 2011-11-17 Stan Shebs <stan@codesourcery.com>
15137 * tracepoint.c (struct tracepoint): New field traceframe_usage.
15138 (tracing_start_time): New global.
15139 (tracing_stop_time): New global.
15140 (tracing_user_name): New global.
15141 (tracing_notes): New global.
15142 (tracing_stop_note): New global.
15143 (cmd_qtstart): Set traceframe_usage, start_time.
15144 (stop_tracing): Set stop_time.
15145 (cmd_qtstatus): Report additional status.
15146 (cmd_qtp): New function.
15147 (handle_tracepoint_query): Call it.
15148 (cmd_qtnotes): New function.
15149 (handle_tracepoint_general_set): Call it.
15150 (get_timestamp): Rename from tsv_get_timestamp.
15152 2011-11-14 Stan Shebs <stan@codesourcery.com>
15153 Kwok Cheung Yeung <kcy@codesourcery.com>
15155 * linux-x86-low.c (small_jump_insn): New.
15156 (i386_install_fast_tracepoint_jump_pad): Add arguments for
15157 trampoline and error message, build a trampoline and issue a small
15158 jump instruction to it.
15159 (x86_install_fast_tracepoint_jump_pad): Add arguments for
15160 trampoline and error message.
15161 (x86_get_min_fast_tracepoint_insn_len): New.
15162 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
15163 * linux-low.h (struct linux_target_ops): Add arguments to
15164 install_fast_tracepoint_jump_pad operation, add new operation.
15165 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
15167 (linux_get_min_fast_tracepoint_insn_len): New function.
15168 (linux_target_op): Add new operation.
15169 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
15170 (gdb_trampoline_buffer_end): Ditto.
15171 (gdb_trampoline_buffer_error): Ditto.
15172 (struct ipa_sym_addresses): Add fields for new IPA variables.
15173 (symbol_list): Add entries for new IPA variables.
15174 (struct tracepoint): Add fields to hold the address range of the
15175 trampoline used by the tracepoint.
15176 (trampoline_buffer_head): New static variable.
15177 (trampoline_buffer_tail): Ditto.
15178 (claim_trampoline_space): New function.
15179 (have_fast_tracepoint_trampoline_buffer): New function.
15180 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
15182 (install_fast_tracepoint): Ditto, also add error buffer argument.
15183 (cmd_qtminftpilen): New function.
15184 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
15185 (fast_tracepoint_from_trampoline_address): New function.
15186 (fast_tracepoint_collecting): Handle trampoline as part of jump
15188 (set_trampoline_buffer_space): New function.
15189 (initialize_tracepoint): Initialize new IPA variables.
15190 * target.h (struct target_ops): Add arguments to
15191 install_fast_tracepoint_jump_pad operation, add new
15192 get_min_fast_tracepoint_insn_len operation.
15193 (target_get_min_fast_tracepoint_insn_len): New.
15194 (install_fast_tracepoint_jump_pad): Add arguments.
15195 * server.h (IPA_BUFSIZ): Define.
15196 * linux-i386-ipa.c: Include extra header files.
15197 (initialize_fast_tracepoint_trampoline_buffer): New function.
15198 (initialize_low_tracepoint): Call it.
15199 * server.h (set_trampoline_buffer_space): Declare.
15200 (claim_trampoline_space): Ditto.
15201 (have_fast_tracepoint_trampoline_buffer): Ditto.
15203 2011-11-14 Yao Qi <yao@codesourcery.com>
15205 * server.c (handle_query): Handle InstallInTrace for qSupported.
15206 * tracepoint.c (add_tracepoint): Sort list.
15207 (install_tracepoint, download_tracepoint): New.
15208 (cmd_qtdp): Call them to install and download tracepoints.
15209 (sort_tracepoints): Removed.
15210 (cmd_qtstart): Update.
15212 2011-11-14 Yao Qi <yao@codesourcery.com>
15214 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
15215 * mem-break.h: Declare.
15216 * tracepoint.c (cmd_qtstart): Move some code to ...
15217 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
15219 (download_tracepoints): Move some code to ...
15220 (download_tracepoint_1): ... here. New.
15222 2011-11-08 Yao Qi <yao@codesourcery.com>
15224 * remote-utils.c (relocate_instruction): A comment fix.
15226 2011-11-07 Joel Brobecker <brobecker@adacore.com>
15228 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
15229 (i386_dr_low_get_control, i386_dr_low_get_status): Use
15230 dr_status_mirror and dr_control_mirror from debug_reg_state.
15231 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
15232 (i386_initial_stuff): Remove use of deleted globals.
15233 (i386_get_thread_context, i386_set_thread_context,
15234 i386_thread_added): Use dr_status_mirror and dr_control_mirror
15235 from debug_reg_state.
15237 2011-11-05 Yao Qi <yao@codesourcery.com>
15239 * tracepoint.c (gdb_collect): Loop over tracepoints of same
15240 address as TPOINT's.
15242 2011-11-02 Stan Shebs <stan@codesourcery.com>
15244 * tracepoint.c (agent_mem_read_string): New function.
15245 (eval_agent_expr): Call it for tracenz.
15246 * server.c (handle_query): Report support for tracenz.
15248 2011-11-02 Yao Qi <yao@codesourcery.com>
15250 * tracepoint.c (cmd_qtstart): Remove unused local variables.
15252 2011-11-02 Yao Qi <yao@codesourcery.com>
15254 * target.h: Fix a typo in comment.
15256 2011-10-31 Pedro Alves <pedro@codesourcery.com>
15258 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
15259 clobber the breakpoints' shadows with fast tracepoint jumps.
15260 * mem-break.h (check_mem_write): Add `myaddr' parameter.
15261 * target.c (write_inferior_memory): Also pass MYADDR down to
15264 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
15266 * configure.ac: Check support for personality routine.
15267 * configure: Regenerate.
15268 * config.in: Likewise.
15269 * linux-low.c: Include <sys/personality.h>.
15270 Define ADDR_NO_RANDOMIZE if necessary.
15271 (linux_create_inferior): Disable address space randomization when
15272 forking inferior, if requested.
15273 (linux_supports_disable_randomization): New function.
15274 (linux_target_ops): Install it.
15275 * server.h (disable_randomization): Declare.
15276 * server.c (disable_randomization): New global variable.
15277 (handle_general_set): Handle QDisableRandomization.
15278 (handle_query): Likewise for qSupported.
15279 (main): Support --disable-randomization and --no-disable-randomization
15280 command line arguments.
15281 * target.h (struct target_ops): Add supports_disable_randomization.
15282 (target_supports_disable_randomization): New macro.
15284 2011-09-29 Mike Frysinger <vapier@gentoo.org>
15286 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
15288 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
15289 [!PT_GETDSBT] (target_loadmap): New definition.
15290 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
15291 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
15292 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
15293 and PT_GETDSBT to LINUX_LOADMAP.
15294 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
15295 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
15297 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
15299 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
15300 (arm_linux_hwbp_cap): New static variable.
15301 (arm_linux_get_hwbp_cap): Replace by ...
15302 (arm_linux_init_hwbp_cap): ... this new function.
15303 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
15304 (arm_linux_get_hw_watchpoint_count): Likewise.
15305 (arm_linux_get_hw_watchpoint_max_length): Likewise.
15306 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
15307 (arm_prepare_to_resume): Use perror_with_name instead of error.
15309 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
15311 * linux-arm-low.c: Include <signal.h>.
15312 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
15313 (struct arm_linux_hwbp_cap): New data type.
15314 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
15315 (struct arm_linux_hw_breakpoint): New data type.
15316 (MAX_BPTS, MAX_WPTS): Define.
15317 (struct arch_process_info, struct arch_lwp_info): New data types.
15318 (arm_linux_get_hwbp_cap): New function.
15319 (arm_linux_get_hw_breakpoint_count): Likewise.
15320 (arm_linux_get_hw_watchpoint_count): Likewise.
15321 (arm_linux_get_hw_watchpoint_max_length): Likewise.
15322 (arm_hwbp_control_initialize): Likewise.
15323 (arm_hwbp_control_is_enabled): Likewise.
15324 (arm_hwbp_control_is_initialized): Likewise.
15325 (arm_hwbp_control_disable): Likewise.
15326 (arm_linux_hw_breakpoint_equal): Likewise.
15327 (arm_linux_hw_point_initialize): Likewise.
15328 (struct update_registers_data): New data structure.
15329 (update_registers_callback: New function.
15330 (arm_insert_point): Likewise.
15331 (arm_remove_point): Likewise.
15332 (arm_stopped_by_watchpoint): Likewise.
15333 (arm_stopped_data_address): Likewise.
15334 (arm_new_process): Likewise.
15335 (arm_new_thread): Likewise.
15336 (arm_prepare_to_resume): Likewise.
15337 (the_low_target): Register arm_insert_point, arm_remove_point,
15338 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
15339 arm_new_thread, and arm_prepare_to_resume.
15341 2011-09-15 Stan Shebs <stan@codesourcery.com>
15343 * server.h (struct emit_ops): Add compare-goto fields.
15344 * tracepoint.c (gdb_agent_op_sizes): New table.
15345 (emit_eq_goto): New function.
15346 (emit_ne_goto): New function.
15347 (emit_lt_goto): New function.
15348 (emit_le_goto): New function.
15349 (emit_gt_goto): New function.
15350 (emit_ge_goto): New function.
15351 (is_goto_target): New function.
15352 (compile_bytecodes): Recognize special cases of compare-goto
15353 combinations and call specialized emitters for them.
15354 * linux-x86-low.c (amd64_emit_eq_goto): New function.
15355 (amd64_emit_ne_goto): New function.
15356 (amd64_emit_lt_goto): New function.
15357 (amd64_emit_le_goto): New function.
15358 (amd64_emit_gt_goto): New function.
15359 (amd64_emit_ge_goto): New function.
15360 (amd64_emit_ops): Add the new functions.
15361 (i386_emit_eq_goto): New function.
15362 (i386_emit_ne_goto): New function.
15363 (i386_emit_lt_goto): New function.
15364 (i386_emit_le_goto): New function.
15365 (i386_emit_gt_goto): New function.
15366 (i386_emit_ge_goto): New function.
15367 (i386_emit_ops): Add the new functions.
15369 2011-09-08 Stan Shebs <stan@codesourcery.com>
15371 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
15372 (i386_emit_epilogue): Restore %ebx.
15374 2011-08-31 Jie Zhang <jzhang918@gmail.com>
15376 * server.c (step_thread): Remove definition.
15377 (process_serial_event): Don't handle Hs.
15378 * server.h (step_thread): Remove declaration.
15379 * target.c (set_desired_inferior): Remove use of step_thread.
15381 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
15383 * linux-low.c: Include linux-procfs.h.
15384 (linux_attach_lwp_1): Update comments.
15385 (linux_attach): Scan for existing threads when attaching to a
15386 process that is the tgid.
15387 * Makefile.in: Update dependencies.
15389 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
15391 * configure.srv: Add linux-procfs.o dependencies.
15393 2011-08-14 Yao Qi <yao@codesourcery.com>
15395 * target.h (struct target_ops): Fix indent.
15396 * win32-low.c (win32_target_ops): Fix comment.
15398 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
15399 Yao Qi <yao@codesourcery.com>
15401 * Makefile.in (clean): Remove tic6x-*.c files.
15402 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
15403 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
15404 (tic6x-c64xp-linux.c): Likewise.
15405 * configure.srv: Add support for tic6x-*-uclinux.
15406 * linux-tic6x-low.c: New.
15407 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
15409 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
15410 Yao Qi <yao@codesourcery.com>
15412 * target.h (struct target_ops): Add read_loadmap.
15413 * linux-low.c (struct target_loadseg): New type.
15414 (struct target_loadmap): New type.
15415 (linux_read_loadmap): New function.
15416 (linux_target_ops): Add linux_read_loadmap.
15417 * server.c (handle_query): Support qXfer:fdpic:read packet.
15418 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
15421 2011-08-05 Eli Zaretskii <eliz@gnu.org>
15423 * win32-low.c: Include <stdint.h>.
15425 2011-07-22 Pedro Alves <pedro@codesourcery.com>
15427 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
15428 to the inferior here.
15429 (i386_remove_aligned_watchpoint): Ditto.
15430 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
15431 fit part of the watchpoint in the debug registers.
15432 (i386_update_inferior_debug_regs): New.
15433 (i386_low_insert_watchpoint): Work on a local mirror of the debug
15434 registers, and only update the inferior on success.
15435 (i386_low_remove_watchpoint): Ditto.
15437 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
15439 * linux-low.c (compare_ints, unique, list_threads, show_process,
15440 linux_core_of_thread): Delete.
15441 (linux_target_ops): Change linux_core_of_thread to
15442 linux_common_core_of_thread.
15443 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
15444 * utils.c (malloc_failure): Change type of argument.
15445 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
15446 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
15447 common/linux-osdata.c, common/ptid.c and common/buffer.c.
15448 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
15449 (IPA_OBJS): Add common-utils-ipa.o.
15450 (ptid_h, linux_osdata_h): New macros.
15451 (server_h): Add common/common-utils.h, common/xml-utils.h,
15452 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
15454 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
15455 ptid.o, buffer.o): New rules.
15456 (linux-low.o): Add common/linux-osdata.h as a dependency.
15457 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
15458 * configure.ac: Add AC_HEADER_DIRENT check.
15459 * config.in: Regenerate.
15460 * configure: Regenerate.
15461 * remote-utils.c (xml_escape_text): Delete.
15462 (buffer_grow, buffer_free, buffer_init, buffer_finish,
15463 buffer_xml_printf): Move to common/buffer.c.
15464 * server.c (main): Remove call to initialize_inferiors.
15465 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
15466 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
15467 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
15468 internal_error, gdb_assert, gdb_assert_fail): Delete.
15469 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
15470 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
15472 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
15473 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
15474 initialize_inferiors): Delete.
15476 2011-07-20 Pedro Alves <pedro@codesourcery.com>
15478 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
15481 2011-05-31 Pedro Alves <pedro@codesourcery.com>
15483 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
15485 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
15487 2011-05-26 Yao Qi <yao@codesourcery.com>
15489 * Makefile.in (thread-db.o): Track dependence to
15490 common/gdb_thread_db.h.
15491 * thread-db.c: include gdb_thread_db.h from right place.
15493 2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
15495 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
15496 __FILE__ and __LINE__ to internal_error.
15498 2011-05-13 Doug Evans <dje@google.com>
15500 * thread-db.c (try_thread_db_load_from_sdir): New function.
15501 (try_thread_db_load_from_dir): New function.
15502 (thread_db_load_search): Handle $sdir, ignore $pdir.
15503 Remove trying of system directories if search of
15504 libthread-db-search-path fails, that is now done via $sdir.
15506 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
15508 * server.c (handle_query): Add EnableDisableTracepoints to the list
15509 of supported features.
15510 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
15512 (cmd_qtenable_disable): New.
15513 (cmd_qtstart): Install tracepoints even if disabled.
15514 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
15515 receiving a QTEnable or QTDisable packet.
15516 (gdb_collect): Skip data collection if fast tracepoint is disabled.
15517 (ust_marker_to_static_tracepoint): Do not ignore disabled static
15519 (gdb_probe): Skip data collection if static tracepoint is disabled.
15521 2011-05-10 Doug Evans <dje@google.com>
15523 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
15525 2011-05-04 Doug Evans <dje@google.com>
15527 * linux-low.c (linux_join): Skip process lookup.
15528 * spu-low.c (spu_join): Ditto.
15529 * server.c (join_inferiors_callback): Delete.
15530 (process_serial_event): For 'D' packet (detach) call join_inferior
15533 2011-05-04 Joseph Myers <joseph@codesourcery.com>
15535 * README: Don't mention xscale*-*-linux*.
15536 * configure.srv (xscale*-*-linux*): Don't handle target.
15538 2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
15540 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
15542 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
15543 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
15544 (i386_emit_void_call_2): Likewise.
15546 2011-04-26 Yao Qi <yao@codesourcery.com>
15548 * linux-low.c: Move common macros to linux-ptrace.h.
15549 Include linux-ptrace.h.
15550 * Makefile.in (linux_ptrace_h): New.
15551 (linux-low.o): Depends on linux-ptrace.h.
15553 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
15555 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
15556 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
15557 (remote_prepare): New function with most of the TCP code from ...
15558 (remote_open): ... here. Detect PORT here unconditionally. Move also
15559 setting transport_is_reliable.
15560 * server.c (run_once): New variable.
15561 (gdbserver_usage): Document it.
15562 (main): Set run_once for `--once'. Call remote_prepare. Exit after
15563 the first run if RUN_ONCE.
15564 * server.h (run_once, remote_prepare): New declarations.
15566 2011-04-19 Tom Tromey <tromey@redhat.com>
15568 * win32-low.c (handle_load_dll): Remove duplicate "the".
15570 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
15572 Remove support for old Cygwin 1.5 versions.
15573 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
15574 function to avoid warning.
15575 (win32_add_one_solib): Use cygwin_conv_path function to avoid
15578 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
15580 * gdbserver/server.h (Macro _): Define it if not available.
15582 2011-03-14 Michael Snyder <msnyder@vmware.com>
15584 * hostio.c (handle_close): Remove unnecessary null test.
15586 2011-03-10 Joel Brobecker <brobecker@adacore.com>
15588 * Makefile.in (maintainer-clean realclean distclean): Remove
15589 "make ... subdir_do" command.
15591 2011-03-10 Michael Snyder <msnyder@vmware.com>
15593 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
15595 * server.c (handle_v_run): Free alloced buffer on early return.
15597 2011-03-09 Yao Qi <yao@codesourcery.com>
15600 2011-03-04 Yao Qi <yao@codesourcery.com>
15602 * Makefile.in: Remove GNU make feature --directory.
15604 2011-03-05 Yao Qi <yao@codesourcery.com>
15606 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
15607 (subdir_do): New make target. Copied from gdb/Makefile.
15608 (maintainer-clean, realclean, distclean, clean): Call corresponding
15609 make targets in common/Makefile.
15611 2011-02-11 Yao Qi <yao@codesourcery.com>
15613 * configure.ac: Call AC_PROG_RANLIB.
15614 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
15615 * configure: Regenerate.
15617 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
15619 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
15621 2011-03-06 Yao Qi <yao@codesourcery.com>
15623 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
15625 2011-03-05 Yao Qi <yao@codesourcery.com>
15627 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
15628 (subdir_do): New make target. Copied from gdb/Makefile.
15629 (maintainer-clean, realclean, distclean, clean): Call corresponding
15630 make targets in common/Makefile.
15632 2011-03-04 Yao Qi <yao@codesourcery.com>
15634 * Makefile.in: Remove GNU make feature --directory.
15636 2011-03-04 Michael Snyder <msnyder@vmware.com>
15638 * server.c (queue_stop_reply): Call xmalloc not malloc.
15640 2011-03-02 Michael Snyder <msnyder@vmware.com>
15642 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
15644 2011-02-28 Michael Snyder <msnyder@vmware.com>
15646 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
15647 (cmd_qtframe): Ditto.
15648 (cmd_qtbuffer): Ditto.
15649 (cmd_bigqtbuffer): Ditto.
15651 * utils.c (decimal2str): Initialize 'width' to nine, then
15652 don't mess with it.
15654 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
15656 * hostio.c (require_data): Free *data, not data.
15658 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15660 * hostio.c (require_data): Use free, not xfree.
15662 2011-02-27 Michael Snyder <msnyder@vmware.com>
15664 * server.c (handle_query): Discard unused value.
15666 * hostio.c (require_data): Free malloc memory before returning
15669 2011-02-26 Michael Snyder <msnyder@vmware.com>
15671 * linux-low.c (list_threads): Call closedir for dirent.
15673 2011-02-27 Michael Snyder <msnyder@vmware.com>
15675 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
15676 a case statement falls through.
15678 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
15680 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
15683 2011-02-26 Michael Snyder <msnyder@vmware.com>
15685 * utils.c (decimal2str): Eliminate dead code and dead param.
15686 (pulongest): Drop dead param from call to decimal2str.
15689 2011-02-24 Joel Brobecker <brobecker@adacore.com>
15691 Revert the following patch (not approved yet):
15692 2011-02-21 Hui Zhu <teawater@gmail.com>
15693 * tracepoint.c (tp_printf): New function.
15694 (eval_agent_expr): Handle gdb_agent_op_printf.
15696 2011-02-21 Hui Zhu <teawater@gmail.com>
15698 * tracepoint.c (tp_printf): New function.
15699 (eval_agent_expr): Handle gdb_agent_op_printf.
15701 2011-02-18 Tom Tromey <tromey@redhat.com>
15703 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
15704 (tracepoint.o): Likewise.
15705 * tracepoint.c (enum gdb_agent_op): Use ax.def.
15706 (gdb_agent_op_names): Likewise.
15708 2011-02-18 Tom Tromey <tromey@redhat.com>
15710 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
15711 gdb_agent_op_rot>: New constants.
15712 (gdb_agent_op_names): Add pick and roll.
15713 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
15716 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
15718 * aclocal.m4: Regenerated with aclocal-1.11.1.
15720 2011-02-14 Pedro Alves <pedro@codesourcery.com>
15722 * server.c (handle_qxfer_traceframe_info): New.
15723 (qxfer_packets): Register "traceframe-info".
15724 (handle_query): Report support for qXfer:traceframe-info:read+.
15725 * tracepoint.c (match_blocktype): New.
15726 (traceframe_find_block_type): Rename to ...
15727 (traceframe_walk_blocks): ... this. Add callback filter argument,
15729 (traceframe_find_block_type): New, reimplemented on top of
15730 traceframe_walk_blocks.
15731 (build_traceframe_info_xml): New.
15732 (traceframe_read_info): New.
15733 * server.h (traceframe_read_info): Declare.
15735 2011-02-11 Yao Qi <yao@codesourcery.com>
15737 * configure.ac: Call AC_PROG_RANLIB.
15738 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
15739 * configure: Regenerate.
15741 2011-02-07 Pedro Alves <pedro@codesourcery.com>
15743 * server.c (gdb_read_memory): Change return semantics to allow
15745 (handle_search_memory_1): Adjust.
15746 (process_serial_event) <'m' packet>: Handle partial transfers.
15747 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
15749 2011-01-28 Pedro Alves <pedro@codesourcery.com>
15751 * regcache.c (init_register_cache): Initialize
15752 regcache->register_status.
15753 (free_register_cache): Release regcache->register_status.
15754 (regcache_cpy): Copy register_status.
15755 (registers_to_string): Print 'x's for unavailable registers.
15756 (supply_register): Mark the register's status valid or
15757 unavailable, depending on whether a buffer was passed in or not.
15758 (supply_register_zeroed): New.
15759 (supply_regblock): Mark the registers' status valid or
15760 unavailable, depending on whether a buffer was passed in or not.
15761 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
15762 (struct regcache): New `register_status' field.
15763 (supply_register_zeroed): Declare.
15764 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
15765 supply_register_zeroed, rather than passing a NULL buffer to
15767 * tracepoint.c (fetch_traceframe_registers): Update comment.
15769 2011-01-28 Pedro Alves <pedro@codesourcery.com>
15771 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
15774 2011-01-25 Pedro Alves <pedro@codesourcery.com>
15776 * server.h (decode_xfer_write): Change prototype.
15777 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
15778 and don't extract the annex here.
15779 * server.c (decode_xfer_read): Remove `annex' parameter,
15780 and don't extract the annex here.
15781 (decode_xfer): New.
15782 (struct qxfer): New.
15783 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
15784 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
15785 (handle_qxfer_statictrace): New functions, abstracted out from
15786 handle_query, and made to use the struct qxfer interface.
15787 (handle_threads_qxfer_proper): Rename to ...
15788 (handle_qxfer_threads_proper): ... this.
15789 (handle_threads_qxfer): Rename to ...
15790 (handle_qxfer_threads): ... this. Adjust.
15791 (qxfer_packets): New array.
15792 (handle_qxfer): New function.
15793 (handle_query): Use handle_qxfer.
15795 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
15797 * gdbreplay.c: Shorten lines of >= 80 columns.
15798 * linux-low.c: Ditto.
15799 * linux-ppc-low.c: Ditto.
15800 * linux-s390-low.c: Ditto.
15801 * linux-sparc-low.c: Ditto.
15802 * linux-x86-low.c: Ditto.
15803 * linux-xtensa-low.c: Ditto.
15804 * mem-break.c: Ditto.
15805 * nto-low.c: Ditto.
15806 * regcache.h: Ditto.
15807 * remote-utils.c: Ditto.
15810 * thread-db.c: Ditto.
15811 * tracepoint.c: Ditto.
15813 * win32-low.h: Ditto.
15815 2011-01-05 Joel Brobecker <brobecker@adacore.com>
15817 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
15820 2011-01-01 Joel Brobecker <brobecker@adacore.com>
15822 * server.c (gdbserver_version): Update copyright year in version
15824 * gdbreplay.c (gdbreplay_version): Ditto.
15826 2010-12-29 Jie Zhang <jie.zhang@analog.com>
15828 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
15829 * linux-bfin-low.c: New file.
15830 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
15831 PT_DATA_ADDR for BFIN targets.
15832 * Makefile.in (SFILES): Add linux-bfin-low.c.
15833 (clean): Remove reg-bfin.c.
15834 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
15835 * README: Mention supported Blackfin targets.
15837 2010-12-23 Mike Frysinger <vapier@gentoo.org>
15839 * .gitignore: New file.
15841 2010-11-16 Mike Frysinger <vapier@gentoo.org>
15843 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
15845 2010-10-22 Jie Zhang <jie@codesourcery.com>
15847 * Makefile.in: Add FLAGS_TO_PASS variable.
15848 (install): Remove dependency of install-only and recursively
15849 invoke make for install-only.
15851 2010-10-04 Doug Evans <dje@google.com>
15853 * Makefile.in (uninstall): Use $(DESTDIR).
15855 2010-09-24 Pedro Alves <pedro@codesourcery.com>
15859 * linux-x86-low.c (compat_siginfo_from_siginfo)
15860 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
15861 si_code is < 0. Check for si_code == SI_TIMER before checking for
15864 2010-09-13 Joel Brobecker <brobecker@adacore.com>
15866 * lynx-i386-low.c: New file.
15867 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
15869 2010-09-13 Joel Brobecker <brobecker@adacore.com>
15871 * lynx-low.c (ptrace_request_to_str): Remove handling for
15872 request values that have been removed in LynxOS 5.x.
15874 2010-09-13 Joel Brobecker <brobecker@adacore.com>
15876 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
15879 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
15881 * configure.ac: Add --enable-inprocess-agent option.
15882 * configure: Rebuilt.
15884 2010-09-06 Yao Qi <yao@codesourcery.com>
15886 * linux-low.c (linux_kill): Remove unused variable.
15887 (linux_stabilize_threads): Likewise.
15888 * server.c (start_inferior): Likewise.
15889 (queue_stop_reply_callback): Likewise.
15890 * tracepoint.c (do_action_at_tracepoint): Likewise.
15892 2010-09-06 Yao Qi <yao@codesourcery.com>
15894 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
15897 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
15899 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
15901 2010-09-06 Pedro Alves <pedro@codesourcery.com>
15903 * Makefile.in (install-only): Replace $IPA_DEPFILES with
15906 2010-09-01 Joel Brobecker <brobecker@adacore.com>
15908 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
15909 gdbserver/lynx-ppc-low.c: New files.
15910 * Makefile.in (lynx_low_h): New variable.
15911 (lynx-low.o, lynx-ppc-low.o): New rules.
15912 * configure.ac: On LynxOS, link with -lnetinet.
15913 * configure.srv: Add handling of powerpc-*-lynxos* targets.
15914 * configure: regenerate.
15916 2010-09-01 Joel Brobecker <brobecker@adacore.com>
15918 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
15919 * configure.ac: Add check for vasprintf and vsnprintf.
15920 * configure, config.in: Regenerate.
15921 * server.h (vasprintf, vsnprintf): Add conditional declarations.
15923 2010-09-01 Joel Brobecker <brobecker@adacore.com>
15925 * gdbreplay.c: Move include of alloca.h up, next to include of
15927 * server.h: Add include of malloc.h.
15928 * mem-break.c: Remove include of malloc.h.
15929 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
15931 2010-09-01 Joel Brobecker <brobecker@adacore.com>
15933 * Makefile.in (memmem.o): Build with -Wno-error.
15935 2010-09-01 Joel Brobecker <brobecker@adacore.com>
15937 * utils.c (xsnprintf): Make non-static.
15938 * server.h: Add xsnprintf declaration.
15939 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
15940 replace calls to snprintf by calls to xsnprintf throughout.
15942 2010-09-01 Joel Brobecker <brobecker@adacore.com>
15944 * configure.ac: Add configure check for alloca.
15945 * configure, config.in: Regenerate.
15946 * server.h: Include alloca.h if it exists.
15947 * gdbreplay.c: Include alloca.h if it exists.
15949 2010-08-28 Pedro Alves <pedro@codesourcery.com>
15951 * linux-low.c (__SIGRTMIN): Define if not already defined.
15952 (linux_create_inferior): Check for __ANDROID__ rather than
15954 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
15955 are already deferred.
15956 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
15957 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
15958 stopped and already has a pending signal to report.
15959 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
15960 a pending signal to report or is moving out of a jump pad.
15961 (linux_init_signals): Check for __ANDROID__ rather than
15964 2010-08-28 Pedro Alves <pedro@codesourcery.com>
15966 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
15967 debug_threads check. Avoid a linear search when not doing debug
15970 2010-08-27 Pedro Alves <pedro@codesourcery.com>
15972 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
15973 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
15974 (struct file_handler) <fd>: Change type to gdb_fildes_t.
15975 (process_event): Change local fd's type to gdb_fildes_t.
15976 (create_file_handler): Adjust prototype.
15977 (delete_file_handler): Adjust prototype.
15978 (handle_file_event): Adjust prototype. Use pfildes.
15979 (create_file_event): Adjsut prototype.
15980 * remote-utils.c (remote_desc, listen_desc): Change type to
15982 * server.h: New gdb_fildes_t typedef.
15983 [USE_WIN32API]: Include winsock2.h.
15984 (delete_file_handler, add_file_handler): Adjust prototypes.
15985 (pfildes): Declare.
15986 * utils.c (pfildes): New.
15988 2010-08-27 Pedro Alves <pedro@codesourcery.com>
15990 * configure.ac (build_warnings): Add -Wno-char-subscripts.
15991 * configure: Regenerate.
15993 2010-08-27 Pedro Alves <pedro@codesourcery.com>
15995 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
15996 (linux_done_accessing_memory): ... this.
15997 (linux_target_ops): Adjust.
15998 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
15999 * nto-low.c (nto_target_ops): Adjust comment.
16000 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
16001 * spu-low.c (spu_target_ops): Adjust comment.
16002 * target.h (target_ops): Rename unprepare_to_access_memory field
16003 to done_accessing_memory.
16004 (unprepare_to_access_memory): Rename to ...
16005 (done_accessing_memory): ... this.
16007 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16009 * linux-low.c (linux_prepare_to_access_memory): New.
16010 (linux_unprepare_to_access_memory): New.
16011 (linux_target_ops): Install them.
16012 * server.c (read_memory): Rename to ...
16013 (gdb_read_memory): ... this. Use
16014 prepare_to_access_memory/prepare_to_access_memory.
16015 (write_memory): Rename to ...
16016 (gdb_write_memory): ... this. Use
16017 prepare_to_access_memory/prepare_to_access_memory.
16018 (handle_search_memory_1): Adjust.
16019 (process_serial_event): Adjust.
16020 * target.h (struct target_ops): New fields
16021 prepare_to_access_memory and unprepare_to_access_memory.
16022 (prepare_to_access_memory, unprepare_to_access_memory): New.
16023 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
16024 prepare_to_access_memory/prepare_to_access_memory.
16025 * nto-low.c (nto_target_ops): Adjust.
16026 * spu-low.c (spu_target_ops): Adjust.
16027 * win32-low.c (win32_target_ops): Adjust.
16029 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16031 * Makefile.in (WARN_CFLAGS): Get it from configure.
16032 (WERROR_CFLAGS): New.
16033 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
16034 * configure.ac: Introduce --enable-werror, which adds -Werror to
16035 the compiler command line. Enabled by default. Disable with
16036 --disable-werror. Add -Wdeclaration-after-statement
16037 Wpointer-arith and -Wformat-nonliteral to warning flags.
16038 * configure: Regenerate.
16040 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16042 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
16044 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16046 * gdbreplay.c (remote_error): New.
16048 (expect): Use gdbchar. Check for error reading from GDB.
16049 Clarify sync error output.
16050 (play): Check for errors writing to GDB.
16051 * linux-low.c (sigchld_handler): Really ignore `write' errors.
16052 * remote-utils.c (getpkt): Check for errors writing to the remote
16055 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16057 * linux-low.c (linux_wait_1): Move non-debugging code out of
16058 `debug_threads' control.
16060 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16062 * linux-low.c (linux_wait_1): Don't set last_status here.
16063 * server.c (push_event, queue_stop_reply_callback): Assert we're
16064 not pushing a TARGET_WAITKIND_IGNORE event.
16065 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
16066 (myresume, handle_target_event): Set the thread's last_resume_kind
16067 and last_status from the target returned status.
16069 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16073 * linux-x86-low.c (update_debug_registers_callback): New.
16074 (i386_dr_low_set_addr): Use it.
16075 (i386_dr_low_get_addr): New.
16076 (i386_dr_low_set_control): Use update_debug_registers_callback.
16077 (i386_dr_low_get_control): New.
16078 (i386_dr_low_get_status): Adjust.
16079 * linux-low.c (linux_stop_lwp): New.
16080 * linux-low.h (linux_stop_lwp): Declare.
16082 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
16083 argument instead of a i386_debug_reg_state.
16084 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
16085 a i386_debug_reg_state.
16086 (i386_insert_aligned_watchpoint): Adjust.
16087 (i386_remove_aligned_watchpoint): Adjust.
16088 (i386_low_stopped_data_address): Read the debug registers from the
16089 inferior instead of from the mirrors.
16090 * i386-low.h (struct i386_debug_reg_state): Extend comment.
16091 (i386_dr_low_get_addr): Declare.
16092 (i386_dr_low_get_control): Declare.
16093 (i386_dr_low_get_status): Change prototype.
16095 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
16096 (i386_dr_low_get_addr): New.
16097 (i386_dr_low_get_control): New.
16098 (i386_dr_low_get_status): Adjust prototype. Return
16100 (i386_initial_stuff): Clear dr_status_mirror and
16102 (i386_get_thread_context): Adjust.
16103 (i386_set_thread_context): Adjust.
16104 (i386_thread_added): Adjust.
16106 2010-08-24 Pedro Alves <pedro@codesourcery.com>
16108 * linux-low.h (linux_thread_area): Delete declaration.
16110 2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
16112 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
16113 after its termination.
16115 2010-08-09 Pedro Alves <pedro@codesourcery.com>
16117 * linux-low.c (gdb_wants_lwp_stopped): Delete.
16118 (gdb_wants_all_stopped): Delete.
16119 (linux_wait_1): Don't call them.
16120 * server.c (handle_v_cont): Tag all threads as want-stopped.
16121 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
16122 stopped as "client-wants-stopped".
16124 2010-07-31 Pedro Alves <pedro@codesourcery.com>
16126 * Makefile.in (signals_h): New.
16127 (server_h): Depend on it.
16128 (server.o): Don't depend on $(signals_def).
16129 (signals.o): Depend on $(signals_def).
16131 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
16133 * Makefile.in (signals_def): New.
16134 (server_h): Append include/gdb/signals.h and signals_def.
16135 (server.o): Append signals_def.
16137 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
16139 * server.c (handle_target_event): Use target_signal_to_host for
16140 resume_info.sig initialization.
16141 * target.h (struct thread_resume) <sig>: New comment.
16143 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
16145 * server.c (handle_query): strcpy() the returned string from paddress()
16146 instead of sprintf().
16147 * utils.c (paddress): Return phex_nz().
16149 2010-07-07 Joel Brobecker <brobecker@adacore.com>
16151 * server.c (handle_v_cont): Call mourn_inferior if process
16153 (myresume): Likewise.
16155 2010-07-01 Pedro Alves <pedro@codesourcery.com>
16157 Static tracepoints, and integration with UST.
16159 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
16160 * mem-break.c (uninsert_all_breakpoints)
16161 (reinsert_all_breakpoints): New.
16162 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
16163 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
16164 (gdb_agent_ust_loaded, helper_thread_id)
16165 (gdb_agent_helper_thread_id): New macros.
16166 (struct ipa_sym_addresses): Add addr_ust_loaded,
16167 addr_helper_thread_id, addr_cmd_buf.
16168 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
16169 (in_process_agent_loaded_ust): New.
16170 (write_e_ust_not_loaded): New.
16171 (maybe_write_ipa_ust_not_loaded): New.
16172 (struct collect_static_trace_data_action): New.
16173 (enum tracepoint_type) <static_tracepoint>: New.
16174 (struct tracepoint) <handle>: Mention static tracepoints.
16175 (struct static_tracepoint_ctx): New.
16176 (CMD_BUF_SIZE): New.
16177 (add_tracepoint_action): Handle static tracepoint actions.
16178 (unprobe_marker_at): New.
16179 (clear_installed_tracepoints): Handle static tracepoints.
16180 (cmd_qtdp): Handle static tracepoints.
16181 (probe_marker_at): New.
16182 (cmd_qtstart): Handle static tracepoints.
16183 (response_tracepoint): Handle static tracepoints.
16184 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
16185 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
16186 (get_context_regcache): Handle static tracepoints.
16187 (do_action_at_tracepoint): Handle static tracepoint actions.
16188 (traceframe_find_block_type): Handle static trace data blocks.
16189 (traceframe_read_sdata): New.
16190 (download_tracepoints): Download static tracepoint actions.
16191 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
16192 (GDB_PROBE_NAME): New.
16194 (GET_UST_SYM): New.
16197 (ust_marker_to_static_tracepoint): New.
16199 (collect_ust_data_at_tracepoint): New.
16200 (gdb_ust_probe): New.
16201 (UNIX_PATH_MAX, SOCK_DIR): New.
16202 (gdb_ust_connect_sync_socket): New.
16203 (resume_thread, stop_thread): New.
16204 (run_inferior_command): New.
16205 (init_named_socket): New.
16206 (gdb_ust_socket_init): New.
16207 (cstr_to_hexstr): New.
16209 (first_marker, next_marker): New.
16210 (response_ust_marker): New.
16211 (cmd_qtfstm, cmd_qtsstm): New.
16212 (unprobe_marker_at, probe_marker_at): New.
16213 (cmd_qtstmat, gdb_ust_thread): New.
16214 (gdb_ust_init): New.
16215 (initialize_tracepoint_ftlib): Call gdb_ust_init.
16216 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
16217 (ST_REGENTRY): New.
16218 (x86_64_st_collect_regmap): New.
16219 (X86_64_NUM_ST_COLLECT_GREGS): New.
16220 (AMD64_RIP_REGNUM): New.
16221 (supply_static_tracepoint_registers): New.
16222 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
16223 (ST_REGENTRY): New.
16224 (i386_st_collect_regmap): New.
16225 (i386_NUM_ST_COLLECT_GREGS): New.
16226 (supply_static_tracepoint_registers): New.
16227 * server.c (handle_query): Handle qXfer:statictrace:read.
16228 <qSupported>: Report support for StaticTracepoints, and
16229 qXfer:statictrace:read features.
16230 * server.h (traceframe_read_sdata)
16231 (supply_static_tracepoint_registers): Declare.
16232 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
16233 (unpack_varlen_hex): Include in IPA build.
16234 * Makefile.in (ustlibs, ustinc): New.
16235 (IPA_OBJS): Add remote-utils-ipa.o.
16236 ($(IPA_LIB)): Link -ldl and -lpthread.
16238 (IPAGENT_CFLAGS): Add UST_CFLAGS.
16239 * config.in, configure: Regenerate.
16241 2010-06-20 Ian Lance Taylor <iant@google.com>
16242 Pedro Alves <pedro@codesourcery.com>
16244 * linux-x86-low.c (always_true): Delete.
16245 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
16246 trying to fool the compiler with always_true.
16248 2010-06-20 Pedro Alves <pedro@codesourcery.com>
16250 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
16251 conditions in gdbserver.
16253 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
16255 * spu-low.c (spu_read_memory): Wrap around local store limit.
16256 (spu_write_memory): Likewise.
16258 2010-06-15 Pedro Alves <pedro@codesourcery.com>
16260 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
16261 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
16263 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
16265 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
16266 uses with LONGEST uses.
16268 2010-06-14 Stan Shebs <stan@codesourcery.com>
16269 Pedro Alves <pedro@codesourcery.com>
16273 * linux-x86-low.c: Include limits.h.
16275 (always_true): New.
16278 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
16279 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
16280 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
16281 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
16282 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
16283 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
16284 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
16285 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
16286 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
16287 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
16288 (amd64_emit_void_call_2): New.
16289 (amd64_emit_ops): New.
16290 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
16291 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
16292 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
16293 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
16294 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
16295 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
16296 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
16297 (i386_emit_call, i386_emit_reg, i386_emit_pop)
16298 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
16299 (i386_emit_stack_adjust, i386_emit_int_call_1)
16300 (i386_emit_void_call_2): New.
16301 (i386_emit_ops): New.
16302 (x86_emit_ops): New.
16303 (the_low_target): Install x86_emit_ops.
16304 * server.h (struct emit_ops): New.
16305 (get_raw_reg_func_addr): Declare.
16306 (current_insn_ptr, emit_error): Declare.
16307 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
16308 (set_trace_state_variable_value): New defines.
16309 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
16310 addr_get_trace_state_variable_value and
16311 addr_set_trace_state_variable_value.
16312 (symbol_list): New fields for get_raw_reg,
16313 get_trace_state_variable_value and set_trace_state_variable_value.
16314 (condfn): New typedef.
16315 (struct tracepoint): New field `compiled_cond'.
16316 (do_action_at_tracepoint): Clear compiled_cond.
16317 (get_trace_state_variable_value, set_trace_state_variable_value):
16319 (condition_true_at_tracepoint): If there's a compiled condition,
16321 (current_insn_ptr, emit_error): New globals.
16322 (struct bytecode_address): New.
16323 (get_raw_reg_func_addr): New.
16324 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
16325 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
16326 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
16327 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
16328 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
16329 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
16330 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
16331 (compile_tracepoint_condition, compile_bytecodes): New.
16332 * target.h (emit_ops): Forward declare.
16333 (struct target_ops): New field emit_ops.
16334 (target_emit_ops): New.
16335 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
16336 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
16337 * linux-low.c (linux_emit_ops): New.
16338 (linux_target_ops): Install it.
16339 * linux-low.h (struct linux_target_ops): New field emit_ops.
16341 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
16343 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
16344 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
16346 2010-06-01 Pedro Alves <pedro@codesourcery.com>
16347 Stan Shebs <stan@codesourcery.com>
16349 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
16350 (all): Depend on $(extra_libraries).
16351 (install-only): Install the IPA.
16352 (IPA_OBJS, IPA_LIB): New.
16353 (clean): Remove the IPA lib.
16354 (IPAGENT_CFLAGS): New.
16355 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
16356 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
16357 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
16358 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
16359 * configure.ac: Check for atomic builtins support in the compiler.
16360 (IPA_DEPFILES, extra_libraries): Define.
16361 * configure.srv (ipa_obj): Add description.
16362 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
16363 (i[34567]86-*-linux*): Set ipa_obj.
16364 (x86_64-*-linux*): Set ipa_obj.
16365 * linux-low.c (stabilizing_threads): New.
16366 (supports_fast_tracepoints): New.
16367 (linux_detach): Stabilize threads before detaching.
16368 (handle_tracepoints): Handle internal tracing breakpoints. Assert
16369 the lwp is either not stabilizing, or is moving out of a jump pad.
16370 (linux_fast_tracepoint_collecting): New.
16371 (maybe_move_out_of_jump_pad): New.
16372 (enqueue_one_deferred_signal): New.
16373 (dequeue_one_deferred_signal): New.
16374 (linux_wait_for_event_1): If moving out of a jump pad, defer
16375 pending signals to later.
16376 (linux_stabilize_threads): New.
16377 (linux_wait_1): Check if threads need moving out of jump pads, and
16379 (stuck_in_jump_pad_callback): New.
16380 (move_out_of_jump_pad_callback): New.
16381 (lwp_running): New.
16382 (linux_resume_one_lwp): Handle moving out of jump pads.
16383 (linux_set_resume_request): Dequeue deferred signals.
16384 (need_step_over_p): Also step over fast tracepoint jumps.
16385 (start_step_over): Also uninsert fast tracepoint jumps.
16386 (finish_step_over): Also reinsert fast tracepoint jumps.
16387 (linux_install_fast_tracepoint_jump): New.
16388 (linux_target_ops): Install linux_stabilize_threads and
16389 linux_install_fast_tracepoint_jump_pad.
16390 * linux-low.h (linux_target_ops) <get_thread_area,
16391 install_fast_tracepoint_jump_pad>: New fields.
16392 (struct lwp_info) <collecting_fast_tracepoint,
16393 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
16394 (linux_get_thread_area): Declare.
16395 * linux-x86-low.c (jump_insn): New.
16396 (x86_get_thread_area): New.
16397 (append_insns): New.
16398 (push_opcode): New.
16399 (amd64_install_fast_tracepoint_jump_pad): New.
16400 (i386_install_fast_tracepoint_jump_pad): New.
16401 (x86_install_fast_tracepoint_jump_pad): New.
16402 (the_low_target): Install x86_get_thread_area and
16403 x86_install_fast_tracepoint_jump_pad.
16404 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
16405 (struct fast_tracepoint_jump): New.
16406 (fast_tracepoint_jump_insn): New.
16407 (fast_tracepoint_jump_shadow): New.
16408 (find_fast_tracepoint_jump_at): New.
16409 (fast_tracepoint_jump_here): New.
16410 (delete_fast_tracepoint_jump): New.
16411 (set_fast_tracepoint_jump): New.
16412 (uninsert_fast_tracepoint_jumps_at): New.
16413 (reinsert_fast_tracepoint_jumps_at): New.
16414 (set_breakpoint_at): Use write_inferior_memory.
16415 (uninsert_raw_breakpoint): Use write_inferior_memory.
16416 (check_mem_read): Mask out fast tracepoint jumps.
16417 (check_mem_write): Mask out fast tracepoint jumps.
16418 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
16419 (set_fast_tracepoint_jump): Declare.
16420 (delete_fast_tracepoint_jump)
16421 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
16422 (reinsert_fast_tracepoint_jumps_at): Declare.
16423 * regcache.c: Don't compile many functions when building the
16424 in-process agent library.
16425 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
16426 the register buffer in the heap.
16427 (free_register_cache): If the register buffer isn't owned by the
16428 regcache, don't free it.
16429 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
16430 pre-existing register caches.
16431 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
16433 (convert_ascii_to_int): : Constify `from' parameter type.
16434 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
16435 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
16436 the needed buffer in-place.
16437 (relocate_instruction): New.
16438 * server.c (handle_query) <qSymbols>: If the target supports
16439 tracepoints, give it a chance of looking up symbols. Report
16440 support for fast tracepoints.
16441 (handle_status): Stabilize threads.
16442 (process_serial_event): Adjust.
16443 * server.h (struct fast_tracepoint_jump): Forward declare.
16444 (struct process_info) <fast_tracepoint_jumps>: New field.
16445 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
16446 (decode_X_packet, decode_M_packet): Adjust.
16447 (relocate_instruction): Declare.
16448 (in_process_agent_loaded): Declare.
16449 (tracepoint_look_up_symbols): Declare.
16450 (struct fast_tpoint_collect_status): Declare.
16451 (fast_tracepoint_collecting): Declare.
16452 (force_unlock_trace_buffer): Declare.
16453 (handle_tracepoint_bkpts): Declare.
16454 (initialize_low_tracepoint)
16455 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
16456 * target.h (struct target_ops) <stabilize_threads,
16457 install_fast_tracepoint_jump_pad>: New fields.
16458 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
16459 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
16460 [HAVE_STDINT_H]: Include stdint.h.
16461 (trace_debug_1): Rename to ...
16462 (trace_vdebug): ... this.
16463 (trace_debug): Rename to ...
16464 (trace_debug_1): ... this. Add `level' parameter.
16465 (trace_debug): New.
16466 (ATTR_USED, ATTR_NOINLINE): New.
16467 (IP_AGENT_EXPORT): New.
16468 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
16469 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
16470 (about_to_request_buffer_space, trace_buffer_is_full)
16471 (stopping_tracepoint, expr_eval_result, error_tracepoint)
16472 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
16473 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
16474 (traceframe_write_count, traceframes_created)
16475 (trace_state_variables)
16476 New renaming defines.
16477 (struct ipa_sym_addresses): New.
16478 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
16479 (symbol_list): New.
16480 (ipa_sym_addrs): New.
16481 (all_tracepoint_symbols_looked_up): New.
16482 (in_process_agent_loaded): New.
16483 (write_e_ipa_not_loaded): New.
16484 (maybe_write_ipa_not_loaded): New.
16485 (tracepoint_look_up_symbols): New.
16486 (debug_threads) [IN_PROCESS_AGENT]: New.
16487 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
16488 (UNKNOWN_SIDE_EFFECTS): New.
16489 (stop_tracing): New.
16490 (flush_trace_buffer): New.
16491 (stop_tracing_bkpt): New.
16492 (flush_trace_buffer_bkpt): New.
16493 (read_inferior_integer): New.
16494 (read_inferior_uinteger): New.
16495 (read_inferior_data_pointer): New.
16496 (write_inferior_data_pointer): New.
16497 (write_inferior_integer): New.
16498 (write_inferior_uinteger): New.
16499 (struct collect_static_trace_data_action): Delete.
16500 (enum tracepoint_type): New.
16501 (struct tracepoint) <type>: New field `type'.
16502 <actions_str, step_actions, step_actions_str>: Only include in
16504 <orig_size, obj_addr_on_target, adjusted_insn_addr>
16505 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
16506 (tracepoints): Use IP_AGENT_EXPORT.
16507 (last_tracepoint): Don't include in the IPA.
16508 (stopping_tracepoint): Use IP_AGENT_EXPORT.
16509 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
16510 (alloced_trace_state_variables): New.
16511 (trace_state_variables): Use IP_AGENT_EXPORT.
16512 (traceframe_t): Delete unused variable.
16513 (circular_trace_buffer): Don't include in the IPA.
16514 (trace_buffer_start): Delete.
16515 (struct trace_buffer_control): New.
16516 (trace_buffer_free): Delete.
16517 (struct ipa_trace_buffer_control): New.
16518 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
16519 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
16521 (trace_buffer_ctrl): New.
16522 (TRACE_BUFFER_CTRL_CURR): New.
16523 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
16524 Reimplement as macros.
16525 (trace_buffer_wrap): Delete.
16526 (traceframe_write_count, traceframe_read_count)
16527 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
16528 (struct tracepoint_hit_ctx) <type>: New field.
16529 (struct fast_tracepoint_ctx): New.
16530 (memory_barrier): New.
16532 (record_tracepoint_error): Update atomically in the IPA.
16533 (clear_inferior_trace_buffer): New.
16534 (about_to_request_buffer_space): New.
16535 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
16536 updating the same buffer.
16537 (add_tracepoint): Default the tracepoint's type to trap
16538 tracepoint, and orig_size to -1.
16539 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
16540 internal variables.
16541 (create_trace_state_variable): New parameter `gdb'. Handle it.
16542 (clear_installed_tracepoints): Clear fast tracepoint jumps.
16543 (cmd_qtdp): Handle fast tracepoints.
16544 (cmd_qtdv): Adjust.
16545 (max_jump_pad_size): New.
16546 (gdb_jump_pad_head): New.
16547 (get_jump_space_head): New.
16548 (claim_jump_space): New.
16549 (sort_tracepoints): New.
16550 (MAX_JUMP_SIZE): New.
16551 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
16553 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
16554 support. Upload fast traceframes, and delete internal IPA
16556 (stop_tracing_handler): New.
16557 (flush_trace_buffer_handler): New.
16558 (cmd_qtstop): Upload fast tracepoints.
16559 (response_tracepoint): Handle fast tracepoints.
16560 (tracepoint_finished_step): Upload fast traceframes. Set the
16561 tracepoint hit context's tracepoint type.
16562 (handle_tracepoint_bkpts): New.
16563 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
16564 type. Add comment about fast tracepoints.
16565 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
16566 non-existing action_str field.
16567 (get_context_regcache): Handle fast tracepoints.
16568 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
16570 (fast_tracepoint_from_jump_pad_address): New.
16571 (fast_tracepoint_from_ipa_tpoint_address): New.
16572 (collecting_t): New.
16573 (force_unlock_trace_buffer): New.
16574 (fast_tracepoint_collecting): New.
16576 (gdb_collect): New.
16577 (write_inferior_data_ptr): New.
16578 (target_tp_heap): New.
16579 (target_malloc): New.
16580 (download_agent_expr): New.
16582 (download_tracepoints): New.
16583 (download_trace_state_variables): New.
16584 (upload_fast_traceframes): New.
16585 (IPA_FIRST_TRACEFRAME): New.
16586 (IPA_NEXT_TRACEFRAME_1): New.
16587 (IPA_NEXT_TRACEFRAME): New.
16588 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
16589 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
16590 (gdb_jump_pad_buffer_end): New.
16591 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
16592 (initialize_tracepoint): Adjust.
16593 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
16594 buffer. Initialize the low module.
16595 * utils.c (PREFIX, TOOLNAME): New.
16596 (malloc_failure): Use PREFIX.
16597 (error): In the IPA, an error causes an exit.
16598 (fatal, warning): Use PREFIX.
16599 (internal_error): Use TOOLNAME.
16600 (NUMCELLS): Increase to 10.
16601 * configure, config.in: Regenerate.
16603 2010-06-01 Pedro Alves <pedro@codesourcery.com>
16605 * server.c (handle_query) <qSupported>: Do two passes over the
16606 qSupported string to avoid nesting strtok.
16608 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16610 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
16612 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
16613 -Wl,--dynamic-list.
16614 * configure: Regenerate.
16615 * proc-service.list: New.
16617 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16619 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
16622 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
16624 * gdbreplay.c (remote_open): Check error return from socket() call by
16625 its equality to -1 not by it being negative.
16626 * remote-utils.c (remote_open): Likewise.
16628 2010-05-23 Pedro Alves <pedro@codesourcery.com>
16630 * config.h: Regenerate.
16632 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
16634 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
16635 doesn't provide PTRACE_GET_THREAD_AREA.
16637 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
16639 * linux-m68k-low.c: Include <asm/ptrace.h>
16640 (ps_get_thread_area): Implement.
16642 2010-05-03 Doug Evans <dje@google.com>
16644 * event-loop.c (struct callback_event): New struct.
16645 (callback_list): New global.
16646 (append_callback_event, delete_callback_event): New functions.
16647 (process_callback): New function.
16648 (start_event_loop): Call it.
16649 * remote-utils.c (NOT_SCHEDULED): Define.
16650 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
16651 moved out of readchar.
16652 (readchar): Rewrite. Call reschedule before returning.
16653 (reset_readchar): New function.
16654 (remote_close): Call it.
16655 (process_remaining, reschedule): New functions.
16656 * server.h (callback_handler_func): New typedef.
16657 (append_callback_event, delete_callback_event): Declare.
16659 2010-05-03 Pedro Alves <pedro@codesourcery.com>
16661 * proc-service.c (ps_pglobal_lookup): Use
16662 thread_db_look_up_one_symbol.
16663 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
16664 parameter. Use it instead of all_symbols_looked_up.
16665 * server.h (struct process_info) <all_symbols_looked_up>: Delete
16667 (all_symbols_looked_up): Don't declare.
16668 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
16669 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
16671 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
16672 Set all_symbols_looked_up here.
16673 (thread_db_look_up_one_symbol): New.
16674 (thread_db_get_tls_address): Adjust.
16675 (thread_db_load_search, try_thread_db_load_1): Always allocate the
16676 thread_db object on the heap, and tentatively set it in the
16678 (thread_db_init): Don't set all_symbols_looked_up here.
16679 * linux-low.h (thread_db_look_up_one_symbol): Declare.
16681 2010-05-03 Pedro Alves <pedro@codesourcery.com>
16683 * linux-low.c (linux_kill, linux_detach): Adjust.
16684 (status_pending_p_callback): Remove redundant statement. Check
16685 for !TARGET_WAITIKIND_IGNORE, instead of
16686 TARGET_WAITKIND_STOPPED.
16687 (handle_tracepoints): Make sure LWP is locked. Adjust.
16688 (linux_wait_for_event_1): Adjust.
16689 (linux_cancel_breakpoints): New.
16690 (unsuspend_one_lwp): New.
16691 (unsuspend_all_lwps): New.
16692 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
16693 (send_sigstop_callback): Change return type to int, add new
16694 `except' parameter and handle it.
16695 (suspend_and_send_sigstop_callback): New.
16696 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
16697 pass them down. If SUSPEND, also increment the lwp's suspend
16699 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
16700 (need_step_over_p): Don't consider suspended LWPs.
16701 (start_step_over): Adjust.
16702 (proceed_one_lwp): Change return type to int, add new `except'
16703 parameter and handle it.
16704 (unsuspend_and_proceed_one_lwp): New.
16705 (proceed_all_lwps): Use find_inferior instead of
16707 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
16708 also decrement the suspend count of LWPs. Pass `except' down,
16709 instead of hacking its suspend count.
16710 (linux_pause_all): Add `freeze' parameter. Adjust.
16711 (linux_unpause_all): New.
16712 (linux_target_ops): Install linux_unpause_all.
16713 * server.c (handle_status): Adjust.
16714 * target.h (struct target_ops): New fields `unpause_all' and
16715 `cancel_breakpoints'. Add new parameter to `pause_all'.
16716 (pause_all): Add new `freeze' parameter.
16717 (unpause_all): New.
16718 (cancel_breakpoints): New.
16719 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
16720 cancel breakpoints.
16721 (cmd_qtstart): Pause threads.
16722 (stop_tracing): Pause threads, and cancel breakpoints.
16723 * win32-low.c (win32_target_ops): Adjust.
16725 2010-05-03 Pedro Alves <pedro@codesourcery.com>
16727 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
16728 the inferior right away from here...
16729 (linux_wait_1): ... to here, and adjust to check the thread's
16730 last_resume_kind instead of the lwp's step or stop_expected flags.
16732 2010-05-02 Pedro Alves <pedro@codesourcery.com>
16734 * README: Use consistent `GDB' and `GDBserver' spellings.
16736 2010-05-02 Pedro Alves <pedro@codesourcery.com>
16738 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
16739 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
16740 (linux_detach_one_lwp): Assume the lwp is stopped.
16741 (any_thread_of): Delete.
16742 (linux_detach): Stop all lwps here. Don't blindly delete all
16744 (delete_lwp_callback): New.
16745 (linux_mourn): Delete all lwps of the process that is gone.
16746 (linux_wait_1): Don't delete the last lwp of the process here.
16747 * mem-break.h (mark_breakpoints_out): Declare.
16748 * mem-break.c (mark_breakpoints_out): New.
16749 (free_all_breakpoints): Use it.
16750 * server.c (handle_target_event): If the process is gone, mark
16752 * thread-db.c (struct thread_db) <create_bp>: New field.
16753 (thread_db_enable_reporting): Fix prototype. Store a thread event
16754 breakpoint reference in the thread_db struct.
16755 (thread_db_load_search): Clear the thread_db object.
16756 (try_thread_db_load_1): Ditto.
16757 (switch_to_process): New.
16758 (disable_thread_event_reporting): Use it.
16759 (remove_thread_event_breakpoints): New.
16760 (thread_db_detach, thread_db_mourn): Use it.
16762 2010-05-01 Pedro Alves <pedro@codesourcery.com>
16764 * linux-low.c (linux_enable_event_reporting): New.
16765 (linux_wait_for_event_1, handle_extended_wait): Use it.
16767 2010-04-30 Pedro Alves <pedro@codesourcery.com>
16769 * linux-low.c (linux_kill_one_lwp, linux_kill)
16770 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
16771 (send_sigstop): Take an lwp_info as parameter instead. Queue a
16772 SIGSTOP even if the LWP is stopped.
16773 (send_sigstop_callback): New.
16774 (stop_all_lwps): Use send_sigstop_callback instead.
16775 (linux_resume_one_thread): Adjust.
16776 (proceed_one_lwp): Still proceed an LWP that the client has
16777 requested to stop, if we haven't reported it as stopped yet. Make
16778 sure that LWPs the client want stopped, have a pending SIGSTOP.
16780 2010-04-26 Doug Evans <dje@google.com>
16782 * server.c (handle_general_set): Make static.
16784 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
16785 Print received char after testing for error/eof instead of before.
16786 (input_interrupt): Tweak comment.
16788 2010-04-23 Doug Evans <dje@google.com>
16790 * server.c (start_inferior): Print inferior argv if --debug.
16792 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
16794 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
16795 * nto-x86-low.c: Include server.h
16797 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
16799 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
16800 be consistent with other sources of this directory.
16801 (init_registers_amd64): Correct name of source file of this function
16804 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
16806 * configure.srv (x86_64-*-mingw*): New configuration for Windows
16807 64-bit executables.
16809 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
16811 * win32-i386-low.c: Add 64-bit support.
16812 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
16813 (init_registers_amd64): Declare.
16814 (mappings): Add 64-bit version of array.
16815 (init_windows_x86): New function.
16816 (the_low_target): Change init_arch field to init_windows_x86.
16818 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
16820 * win32-low.c: Adapt to support also 64-bit architecture.
16821 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
16822 (get_image_name): Use SIZE_T type for local variable `done'.
16823 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
16824 (toolhelp_get_dll_name): Idem.
16825 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
16826 Use uintptr_t typecast to avoid warning.
16827 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
16828 (handle_exception): Use phex_nz to avoid warning.
16829 (win32_wait): Remove unused local variable `process'.
16831 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
16833 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
16836 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
16838 * configure.ac: Use `ws2_32' library for srv_mingw.
16839 * configure: Regenerate.
16840 * gdbreplay.c: Include winsock2.h instead of winsock.h.
16841 * remote-utils.c: Likewise.
16843 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
16845 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
16846 if __x86_64__ is defined.
16848 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
16850 * configure: Regenerate.
16852 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
16854 * server.c (handle_query): Handle 'qGetTIBAddr' query.
16855 * target.h (target_ops): New get_tib_address field.
16856 * win32-low.h (win32_thread_info): Add thread_local_base field.
16857 * win32-low.c (child_add_thread): Add tlb argument.
16858 Set thread_local_base field to TLB.
16859 (get_child_debug_event): Adapt to child_add_thread change.
16860 (win32_get_tib_address): New function.
16861 (win32_target_ops): Set get_tib_address field to
16862 win32_get_tib_address.
16863 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
16865 2010-04-12 Pedro Alves <pedro@codesourcery.com>
16867 * linux-low.c (linux_mourn): Also remove the process.
16868 * server.c (handle_target_event): Don't remove the process here.
16869 * nto-low.c (nto_mourn): New.
16870 (nto_target_ops): Install it.
16871 * spu-low.c (spu_mourn): New.
16872 (spu_target_ops): Install it.
16873 * win32-low.c (win32_mourn): New.
16874 (win32_target_ops): Install it.
16876 2010-04-12 Pedro Alves <pedro@codesourcery.com>
16878 * server.h (buffer_xml_printf): Remove redundant `;'.
16880 2010-04-12 Pedro Alves <pedro@codesourcery.com>
16882 * regcache.c (set_register_cache): Invalidate regcaches before
16883 changing the register cache layout.
16884 (regcache_invalidate_one): Allow a NULL regcache.
16885 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
16886 regcaches before changing the register cache layout or the target
16889 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
16891 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
16892 variable warning on Linux/x86-64.
16894 2010-04-11 Pedro Alves <pedro@codesourcery.com>
16896 GDBserver disconnected tracing support.
16898 * linux-low.c (linux_remove_process): Delete.
16899 (add_lwp): Don't set last_resume_kind here.
16900 (linux_kill): Use `mourn'.
16901 (linux_detach): Use `thread_db_detach', and `mourn'.
16902 (linux_mourn): New.
16903 (linux_attach_lwp_1): Adjust comment.
16904 (linux_attach): last_resume_kind moved the thread_info; adjust.
16905 (status_pending_p_callback): Adjust.
16906 (linux_wait_for_event_1): Adjust.
16907 (count_events_callback, select_singlestep_lwp_callback)
16908 (select_event_lwp_callback, cancel_breakpoints_callback)
16909 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
16910 (proceed_one_lwp): Adjust.
16911 (linux_async): Add debug output.
16912 (linux_thread_stopped): New.
16913 (linux_pause_all): New.
16914 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
16916 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
16917 (thread_db_free): Delete declaration.
16918 (thread_db_detach, thread_db_mourn): Declare.
16919 * thread-db.c (thread_db_init): Use thread_db_mourn.
16920 (thread_db_free): Delete, split in two.
16921 (disable_thread_event_reporting): New.
16922 (thread_db_detach): New.
16923 (thread_db_mourn): New.
16925 * server.h (struct thread_info) <last_resume_kind>: New field.
16926 <attached>: Add comment.
16927 <gdb_detached>: New field.
16928 (handler_func): Change return type to int.
16929 (handle_serial_event, handle_target_event): Ditto.
16930 (gdb_connected): Declare.
16932 (disconnected_tracing): Declare.
16933 (stop_tracing): Declare.
16935 * server.c (handle_query) <qSupported>: Report support for
16936 disconnected tracing.
16937 (queue_stop_reply_callback): Account for running threads.
16938 (gdb_wants_thread_stopped): New.
16939 (gdb_wants_all_threads_stopped): New.
16940 (gdb_reattached_process): New.
16941 (handle_status): Clear the `gdb_detached' flag of all processes.
16942 In all-stop, stop all threads.
16943 (main): Be sure to leave tfind mode. Handle disconnected tracing.
16944 (process_serial_event): If the remote connection breaks, or if an
16945 exit was forced with "monitor exit", force an event loop exit.
16946 Handle disconnected tracing on detach.
16947 (handle_serial_event): Adjust.
16948 (handle_target_event): If GDB isn't connected, forward events back
16949 to the inferior, unless the last process exited, in which case,
16950 exit gdbserver. Adjust interface.
16952 * remote-utils.c (remote_open): Don't block in accept. Instead
16953 register an event loop source on the listen socket file
16954 descriptor. Refactor bits into ...
16955 (listen_desc): ... this new global.
16956 (gdb_connected): ... this new function.
16957 (enable_async_notification): ... this new function.
16958 (handle_accept_event): ... this new function.
16959 (remote_close): Clear remote_desc.
16961 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
16963 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
16965 (mourn_inferior): Define.
16966 (target_process_qsupported): Avoid the dangling else problem.
16967 (thread_stopped): Define.
16968 (pause_all): Define.
16969 (target_waitstatus_to_string): Declare.
16970 * target.c (target_waitstatus_to_string): New.
16972 * tracepoint.c (tracing): Make extern.
16973 (disconnected_tracing): New.
16974 (stop_tracing): Make extern. Handle tracing stops due to GDB
16976 (cmd_qtdisconnected): New.
16977 (cmd_qtstatus): Report disconnected tracing status in trace reply.
16978 (handle_tracepoint_general_set): Handle QTDisconnected.
16980 * event-loop.c (event_handler_func): Change return type to int.
16981 (process_event): Bail out if the event handler wants the event
16983 (handle_file_event): Ditto.
16984 (start_event_loop): Bail out if the event handler wants the event
16987 * nto-low.c (nto_target_ops): Adjust.
16988 * spu-low.c (spu_wait): Don't remove the process here.
16989 (spu_target_ops): Adjust.
16990 * win32-low.c (win32_wait): Don't remove the process here.
16991 (win32_target_ops): Adjust.
16993 2010-04-11 Pedro Alves <pedro@codesourcery.com>
16995 * regcache.c (realloc_register_cache): Invalidate inferior's
16996 regcache before recreating it.
16998 2010-04-09 Pedro Alves <pedro@codesourcery.com>
17000 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
17002 2010-04-09 Stan Shebs <stan@codesourcery.com>
17003 Pedro Alves <pedro@codesourcery.com>
17005 * server.h (LONGEST): New.
17006 (struct thread_info) <while_stepping>: New field.
17007 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
17009 (initialize_tracepoint, handle_tracepoint_general_set)
17010 (handle_tracepoint_query, tracepoint_finished_step)
17011 (tracepoint_was_hit, release_while_stepping_state_list):
17012 (current_traceframe): Declare.
17013 * server.c (handle_general_set): Handle tracepoint packets.
17014 (read_memory): New.
17015 (write_memory): New.
17016 (handle_search_memory_1): Use read_memory.
17017 (handle_query): Report support for conditional tracepoints, trace
17018 state variables, and tracepoint sources. Handle tracepoint
17020 (main): Initialize the tracepoints module.
17021 (process_serial_event): Handle traceframe reads/writes.
17023 * linux-low.c (handle_tracepoints): New.
17024 (linux_wait_1): Call it.
17025 (linux_resume_one_lwp): Handle while-stepping.
17026 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
17027 (linux_target_ops): Install them.
17028 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
17030 * linux-x86-low.c (x86_supports_tracepoints): New.
17031 (the_low_target). Install it.
17033 * mem-break.h (delete_breakpoint): Declare.
17034 * mem-break.c (delete_breakpoint): Make external.
17036 * target.h (struct target_ops): Add `supports_tracepoints',
17037 `read_pc', and `write_pc' fields.
17038 (target_supports_tracepoints): Define.
17039 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
17042 * regcache.h (struct regcache) <registers_owned>: New field.
17043 (init_register_cache, regcache_cpy): Declare.
17044 (regcache_read_pc, regcache_write_pc): Declare.
17045 (register_cache_size): Declare.
17046 (supply_regblock): Declare.
17047 * regcache.c (init_register_cache): New.
17048 (new_register_cache): Use it.
17049 (regcache_cpy): New.
17050 (register_cache_size): New.
17051 (supply_regblock): New.
17052 (regcache_read_pc, regcache_write_pc): New.
17054 * tracepoint.c: New.
17056 * Makefile.in (OBS): Add tracepoint.o.
17057 (tracepoint.o): New rule.
17059 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
17061 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
17063 (i386-mmx.c): Likewise.
17064 (i386-mmx-linux.o): Likewise.
17065 (i386-mmx-linux.c): Likewise.
17067 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
17068 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
17069 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
17070 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
17072 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
17073 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
17074 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
17076 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
17078 * Makefile.in (clean): Updated.
17080 (i386-avx.c): Likewise.
17081 (i386-avx-linux.o): Likewise.
17082 (i386-avx-linux.c): Likewise.
17083 (amd64-avx.o): Likewise.
17084 (amd64-avx.c): Likewise.
17085 (amd64-avx-linux.o): Likewise.
17086 (amd64-avx-linux.c): Likewise.
17088 * configure.srv (srv_i386_regobj): Add i386-avx.o.
17089 (srv_i386_linux_regobj): Add i386-avx-linux.o.
17090 (srv_amd64_regobj): Add amd64-avx.o.
17091 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
17092 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
17093 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
17094 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
17095 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
17096 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
17097 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
17099 * i387-fp.c: Include "i386-xstate.h".
17101 (i387_cache_to_xsave): Likewise.
17102 (i387_xsave_to_cache): Likewise.
17103 (x86_xcr0): Likewise.
17105 * i387-fp.h (i387_cache_to_xsave): Likewise.
17106 (i387_xsave_to_cache): Likewise.
17107 (x86_xcr0): Likewise.
17109 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
17110 * linux-crisv32-low.c (target_regsets): Likewise.
17111 * linux-m68k-low.c (target_regsets): Likewise.
17112 * linux-mips-low.c (target_regsets): Likewise.
17113 * linux-ppc-low.c (target_regsets): Likewise.
17114 * linux-s390-low.c (target_regsets): Likewise.
17115 * linux-sh-low.c (target_regsets): Likewise.
17116 * linux-sparc-low.c (target_regsets): Likewise.
17117 * linux-xtensa-low.c (target_regsets): Likewise.
17119 * linux-low.c: Include <sys/uio.h>.
17120 (regsets_fetch_inferior_registers): Support nt_type.
17121 (regsets_store_inferior_registers): Likewise.
17122 (linux_process_qsupported): New.
17123 (linux_target_ops): Add linux_process_qsupported.
17125 * linux-low.h (regset_info): Add nt_type.
17126 (linux_target_ops): Add process_qsupported.
17128 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
17130 (init_registers_i386_avx_linux): New.
17131 (init_registers_amd64_avx_linux): Likewise.
17132 (xmltarget_i386_linux_no_xml): Likewise.
17133 (xmltarget_amd64_linux_no_xml): Likewise.
17134 (PTRACE_GETREGSET): Likewise.
17135 (PTRACE_SETREGSET): Likewise.
17136 (x86_fill_xstateregset): Likewise.
17137 (x86_store_xstateregset): Likewise.
17138 (use_xml): Likewise.
17139 (x86_linux_update_xmltarget): Likewise.
17140 (x86_linux_process_qsupported): Likewise.
17141 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
17142 (x86_arch_setup): Don't call init_registers_amd64_linux nor
17143 init_registers_i386_linux here. Call
17144 x86_linux_update_xmltarget.
17145 (the_low_target): Add x86_linux_process_qsupported.
17147 * server.c (handle_query): Call target_process_qsupported.
17149 * target.h (target_ops): Add process_qsupported.
17150 (target_process_qsupported): New.
17152 2010-04-03 Pedro Alves <pedro@codesourcery.com>
17154 * inferiors.c (add_thread): Set last_status kind to
17155 TARGET_WAITKIND_IGNORE.
17156 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
17157 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
17158 (linux_wait_1): Move `thread' local definition to block that uses
17159 it. Don't NULL initialize `event_child'.
17160 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
17161 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
17162 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
17164 2010-04-01 Pedro Alves <pedro@codesourcery.com>
17166 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
17167 an extended waitstatus, or by a watchpoint.
17168 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
17169 thread was stepping or has been stopped by a watchpoint.
17171 2010-04-01 Pedro Alves <pedro@codesourcery.com>
17173 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
17174 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
17175 of another, then delete the previous, and validate all
17177 (validate_inserted_breakpoint): New.
17178 (delete_disabled_breakpoints): New.
17179 (validate_breakpoints): New.
17180 (check_mem_read): Validate breakpoints before trusting their
17181 shadow. Delete disabled breakpoints.
17182 (check_mem_write): Validate breakpoints before trusting they
17183 should be inserted. Delete disabled breakpoints.
17184 * mem-break.h (validate_breakpoints):
17185 * server.c (handle_query): Validate breakpoints when we see a
17188 2010-04-01 Pedro Alves <pedro@codesourcery.com>
17190 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
17191 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
17192 if we could tell there's a GDB breakpoint at stop_pc.
17193 (need_step_over_p): Don't do a step over if we find a GDB
17194 breakpoint at the resume PC.
17196 * mem-break.c (struct raw_breakpoint): New.
17197 (enum bkpt_type): New type `gdb_breakpoint'.
17198 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
17199 fields. New field `raw'.
17200 (find_raw_breakpoint_at): New.
17201 (set_raw_breakpoint_at): Handle refcounting. Create a raw
17202 breakpoint instead.
17203 (set_breakpoint_at): Adjust.
17204 (delete_raw_breakpoint): New.
17205 (release_breakpoint): New.
17206 (delete_breakpoint): Rename to...
17207 (delete_breakpoint_1): ... this. Add proc parameter. Use
17208 release_breakpoint. Return ENOENT.
17209 (delete_breakpoint): Reimplement.
17210 (find_breakpoint_at): Delete.
17211 (find_gdb_breakpoint_at): New.
17212 (delete_breakpoint_at): Delete.
17213 (set_gdb_breakpoint_at): New.
17214 (delete_gdb_breakpoint_at): New.
17215 (gdb_breakpoint_here): New.
17216 (set_reinsert_breakpoint): Use release_breakpoint.
17217 (uninsert_breakpoint): Rename to ...
17218 (uninsert_raw_breakpoint): ... this.
17219 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
17220 (reinsert_raw_breakpoint): Change parameter type to
17222 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
17224 (check_breakpoints): Adjust. Use release_breakpoint.
17225 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
17226 (breakpoint_inserted_here): Ditto.
17227 (check_mem_read): Adjust to iterate over raw breakpoints instead.
17228 Don't trust the breakpoint's shadow if it is not inserted.
17229 (check_mem_write): Adjust to iterate over raw breakpoints instead.
17230 (delete_all_breakpoints): Adjust.
17231 (free_all_breakpoints): Mark all breakpoints as uninserted, and
17232 use delete_breakpoint_1.
17234 * mem-break.h (breakpoints_supported): Delete declaration.
17235 (set_gdb_breakpoint_at): Declare.
17236 (gdb_breakpoint_here): Declare.
17237 (delete_breakpoint_at): Delete.
17238 (delete_gdb_breakpoint_at): Declare.
17240 * server.h (struct raw_breakpoint): Forward declare.
17241 (struct process_info): New field `raw_breakpoints'.
17243 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
17246 2010-03-24 Pedro Alves <pedro@codesourcery.com>
17248 * linux-low.c (status_pending_p_callback): Fix comment.
17249 (linux_wait_for_event_1): Move most of the internal breakpoint
17250 handling from here...
17251 (linux_wait_1): ... to here.
17252 (count_events_callback): New.
17253 (select_singlestep_lwp_callback): New.
17254 (select_event_lwp_callback): New.
17255 (cancel_breakpoints_callback): New.
17256 (select_event_lwp): New.
17257 (linux_wait_1): Simplify internal breakpoint handling. Give equal
17258 priority to all LWPs that have had events that should be reported
17259 to the client. Cancel breakpoints when about to reporting the
17260 event to the client, not while stopping lwps. No longer cancel
17261 finished single-steps here.
17262 (cancel_finished_single_step): Delete.
17263 (cancel_finished_single_steps): Delete.
17265 2010-03-24 Pedro Alves <pedro@codesourcery.com>
17267 * mem-break.c (enum bkpt_type): New.
17268 (struct breakpoint): New field `type'.
17269 (set_breakpoint_at): Change return type to struct breakpoint
17270 pointer. Set type to `other_breakpoint' by default.
17271 (delete_breakpoint): Rewrite, supporting more than one breakpoint
17272 in the breakpoint list.
17273 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
17274 (reinsert_breakpoint): Rename to ...
17275 (reinsert_raw_breakpoint): ... this.
17276 (reinsert_breakpoints_at): Adjust.
17277 * mem-break.h (struct breakpoint): Declare.
17278 (set_breakpoint_at): Change return type to struct breakpoint
17281 2010-03-24 Pedro Alves <pedro@codesourcery.com>
17283 * server.c (handle_query): Assign, not compare.
17285 2010-03-24 Pedro Alves <pedro@codesourcery.com>
17287 Teach linux gdbserver to step-over-breakpoints.
17289 * linux-low.c (can_hardware_single_step): New.
17290 (supports_breakpoints): New.
17291 (handle_extended_wait): If stopping threads, read the stop pc of
17292 the new cloned LWP.
17294 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
17295 low target doesn't support retrieving the PC.
17296 (add_lwp): Set last_resume_kind to resume_continue.
17297 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
17298 (linux_attach): Don't clear stop_expected. Set the lwp's
17299 last_resume_kind to resume_stop.
17300 (linux_detach_one_lwp): Don't check for removed breakpoints.
17301 (check_removed_breakpoint): Delete.
17302 (status_pending_p): Rename to ...
17303 (status_pending_p_callback): ... this. Don't check for removed
17304 breakpoints. Don't consider threads that are stopped from GDB's
17306 (linux_wait_for_lwp): Always read the stop_pc here.
17307 (cancel_breakpoint): New.
17308 (step_over_bkpt): New global.
17309 (linux_wait_for_event_1): Implement stepping over breakpoints.
17310 (gdb_wants_lwp_stopped): New.
17311 (gdb_wants_all_stopped): New.
17312 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
17313 single-step traps here. Store the thread's last reported target
17315 (send_sigstop): Don't clear stop_expected. Always set it,
17317 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
17318 (cancel_finished_single_step): New.
17319 (cancel_finished_single_steps): New.
17320 (wait_for_sigstop): Don't cancel finished single-step traps here.
17321 (linux_resume_one_lwp): Don't check for removed breakpoints.
17322 Don't set `step' on non-hardware step archs.
17323 (linux_set_resume_request): Ignore resume_stop requests if already
17324 stopping or stopped. Set the lwp's last_resume_kind.
17325 (resume_status_pending_p): Don't check for removed breakpoints.
17326 (need_step_over_p): New.
17327 (start_step_over): New.
17328 (finish_step_over): New.
17329 (linux_resume_one_thread): Always queue a sigstop for resume_stop
17330 requests. Clear the thread's last reported target waitstatus.
17331 Don't use the `suspended' flag. Don't consider pending breakpoints.
17332 (linux_resume): Start a step-over if necessary.
17333 (proceed_one_lwp): New.
17334 (proceed_all_lwps): New.
17335 (unstop_all_lwps): New.
17336 * linux-low.h (struct lwp_info): Rewrite comment for the
17337 `suspended' flag. Add the `stop_pc' field. Delete the
17338 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
17339 Add `'last_resume_kind' and `need_step_over' fields.
17340 * inferiors.c (struct thread_info): Delete, moved elsewhere.
17341 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
17342 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
17343 (set_raw_breakpoint_at): New.
17344 (set_breakpoint_at): Rewrite to use it.
17345 (reinsert_breakpoint_handler): Delete.
17346 (set_reinsert_breakpoint): New.
17347 (reinsert_breakpoint_by_bp): Delete.
17348 (delete_reinsert_breakpoints): New.
17349 (uninsert_breakpoint): Rewrite.
17350 (uninsert_breakpoints_at): New.
17351 (reinsert_breakpoint): Rewrite.
17352 (reinsert_breakpoints_at): New.
17353 (check_breakpoints): Rewrite.
17354 (breakpoint_here): New.
17355 (breakpoint_inserted_here): New.
17356 (check_mem_read): Adjust.
17357 * mem-break.h (breakpoints_supported, breakpoint_here)
17358 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
17359 (reinsert_breakpoint_by_bp): Delete declaration.
17360 (delete_reinsert_breakpoints): Declare.
17361 (reinsert_breakpoint): Delete declaration.
17362 (reinsert_breakpoints_at): Declare.
17363 (uninsert_breakpoint): Delete declaration.
17364 (uninsert_breakpoints_at): Declare.
17365 (check_breakpoints): Adjust prototype.
17366 * server.h: Adjust include order.
17367 (struct thread_info): Declare here. Add a `last_status' field.
17369 2010-03-23 Michael Snyder <msnyder@vmware.com>
17371 * server.c (crc32): New function.
17372 (handle_query): Add handling for 'qCRC:' request.
17374 2010-03-23 Pedro Alves <pedro@codesourcery.com>
17376 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
17377 lwp had been stopped by a watchpoint.
17379 2010-03-16 Pedro Alves <pedro@codesourcery.com>
17381 * server.h (internal_error): Declare.
17382 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
17383 * utils.c (internal_error): New function.
17385 2010-03-15 Andreas Schwab <schwab@redhat.com>
17387 * configure.srv: Fix typo setting srv_regobj.
17389 2010-03-15 Pedro Alves <pedro@codesourcery.com>
17391 * linux-low.c (fetch_register): Avoid passing a non string literal
17393 (usr_store_inferior_registers): Ditto.
17395 2010-03-14 Pedro Alves <pedro@codesourcery.com>
17397 * linux-low.c (linux_write_memory): Bail out early if peeking
17400 2010-03-14 Pedro Alves <pedro@codesourcery.com>
17402 * linux-low.h (struct lwp_info): New fields
17403 `stopped_by_watchpoint' and `stopped_data_address'.
17404 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
17405 here, and cache them in the lwp object.
17406 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
17408 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
17410 (linux_stopped_by_watchpoint): Rewrite.
17411 (linux_stopped_data_address): Rewrite.
17413 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
17415 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
17416 switching the current inferior, not before.
17418 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
17420 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
17421 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
17422 i386-linux.c and amd64-linux.c.
17423 (reg-i386.o): Removed.
17424 (reg-i386.c): Likewise.
17425 (reg-i386-linux.o): Likewise.
17426 (reg-i386-linux.c): Likewise.
17427 (reg-x86-64.o): Likewise.
17428 (reg-x86-64.c): Likewise.
17429 (reg-x86-64-linux.o): Likewise.
17430 (reg-x86-64-linux.c): Likewise.
17432 (i386.c): Likewise.
17433 (i386-linux.o): Likewise.
17434 (i386-linux.c): Likewise.
17435 (amd64.o): Likewise.
17436 (amd64.c): Likewise.
17437 (amd64-linux.o): Likewise.
17438 (amd64-linux.c): Likewise.
17440 * configure.srv (srv_i386_regobj): New.
17441 (srv_i386_linux_regobj): Likewise.
17442 (srv_amd64_regobj): Likewise.
17443 (srv_amd64_linux_regobj): Likewise.
17444 (srv_i386_32bit_xmlfiles): Likewise.
17445 (srv_i386_64bit_xmlfiles): Likewise.
17446 (srv_i386_xmlfiles): Likewise.
17447 (srv_amd64_xmlfiles): Likewise.
17448 (srv_i386_linux_xmlfiles): Likewise.
17449 (srv_amd64_linux_xmlfiles): Likewise.
17450 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
17451 srv_xmlfiles to $srv_i386_xmlfiles.
17452 (i[34567]86-*-mingw32ce*): Likewise.
17453 (i[34567]86-*-mingw*): Likewise.
17454 (i[34567]86-*-nto*): Likewise.
17455 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
17456 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
17457 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
17458 (x86_64-*-linux*): Likewise.
17460 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
17461 (init_registers_amd64_linux): New.
17462 (x86_arch_setup): Replace init_registers_x86_64_linux with
17463 init_registers_amd64_linux.
17465 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
17467 * configure.ac: Check for libdl. If it is not available link against
17468 static libthread_db.
17469 * configure: Regenerate.
17471 2010-02-22 Pedro Alves <pedro@codesourcery.com>
17475 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
17476 handing a read watchpoint.
17477 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
17479 2010-02-12 Doug Evans <dje@google.com>
17481 * linux-low.c (linux_supports_tracefork_flag): Document.
17482 (linux_look_up_symbols): Add comment.
17484 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
17486 * regcache.c (supply_register): Clear regcache if buf is NULL.
17488 2010-02-02 Nicolas Roche <roche@sourceware.org>
17489 Joel Brobecker <brobecker@adacore.com>
17491 * inferiors.c (find_inferior): Add function documentation.
17492 (unloaded_dll): Handle the case where the unloaded dll has not
17493 been previously registered in the dll list.
17495 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
17497 * linux-arm-low.c (thumb_breakpoint_len): Delete.
17498 (thumb2_breakpoint): New.
17499 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
17501 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
17503 * linux-low.c (get_stop_pc): Check for SIGTRAP.
17504 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
17507 2010-01-21 Pedro Alves <pedro@codesourcery.com>
17509 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
17511 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
17513 * linux-s390-low.c (s390_collect_ptrace_register)
17514 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
17516 2010-01-21 Doug Evans <dje@google.com>
17518 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
17519 (PTRACE_ARG4_TYPE): New macro.
17520 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
17521 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
17522 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
17523 (usr_store_inferior_registers): Ditto.
17524 (linux_read_memory, linux_write_memory): Ditto.
17525 (linux_test_for_tracefork): Ditto.
17527 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
17528 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
17530 2010-01-21 Pedro Alves <pedro@codesourcery.com>
17532 * proc-service.c (ps_lgetregs): Don't refetch registers from the
17535 2010-01-21 Pedro Alves <pedro@codesourcery.com>
17537 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
17538 prototype to take a regcache. Adjust.
17540 2010-01-20 Pedro Alves <pedro@codesourcery.com>
17542 * regcache.h (struct thread_info): Forward declare.
17543 (struct regcache): New.
17544 (new_register_cache): Adjust prototype.
17545 (get_thread_regcache): Declare.
17546 (free_register_cache): Adjust prototype.
17547 (registers_to_string, registers_from_string): Ditto.
17548 (supply_register, supply_register_by_name, collect_register)
17549 (collect_register_as_string, collect_register_by_name): Ditto.
17550 * regcache.c (struct inferior_regcache_data): Delete.
17551 (get_regcache): Rename to ...
17552 (get_thread_regcache): ... this. Adjust. Switch inferior before
17553 fetching registers.
17554 (regcache_invalidate_one): Adjust.
17555 (regcache_invalidate): Fix prototype.
17556 (new_register_cache): Return the new register cache.
17557 (free_register_cache): Change prototype.
17558 (realloc_register_cache): Adjust.
17559 (registers_to_string): Change prototype to take a regcache. Adjust.
17560 (registers_from_string): Ditto.
17561 (register_data): Ditto.
17562 (supply_register): Ditto.
17563 (supply_register_by_name): Ditto.
17564 (collect_register): Ditto.
17565 (collect_register_as_string): Ditto.
17566 (collect_register_by_name): Ditto.
17567 * server.c (process_serial_event): Adjust.
17568 * linux-low.h (regset_fill_func, regset_store_func): Change
17570 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
17572 * linux-low.c (get_stop_pc): Adjust.
17573 (check_removed_breakpoint): Adjust.
17574 (linux_wait_for_event): Adjust.
17575 (linux_resume_one_lwp): Adjust.
17576 (fetch_register): Add regcache parameter. Adjust.
17577 (usr_store_inferior_registers): Ditto.
17578 (regsets_fetch_inferior_registers): Ditto.
17579 (regsets_store_inferior_registers): Ditto.
17580 (linux_fetch_registers, linux_store_registers): Ditto.
17581 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
17583 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
17585 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
17586 prototype to take a regcache.
17587 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
17588 * remote-utils.c (convert_ascii_to_int, outreg)
17589 (prepare_resume_reply): Change prototype to take a regcache.
17591 * target.h (struct target_ops) <fetch_registers, store_registers>:
17592 Change prototype to take a regcache.
17593 (fetch_inferior_registers, store_inferior_registers): Change
17594 prototype to take a regcache. Adjust.
17595 * proc-service.c (ps_lgetregs): Adjust.
17596 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
17597 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
17598 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
17599 take a regcache. Adjust.
17600 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
17601 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
17602 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
17603 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
17604 * linux-cris-low.c (cris_get_pc, cris_set_pc)
17605 (cris_cannot_fetch_register):
17606 (cris_breakpoint_at): Change prototype to take a regcache.
17608 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
17609 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
17610 to take a regcache. Adjust.
17611 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
17613 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
17614 take a regcache. Adjust.
17615 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
17616 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
17617 (m68k_set_pc): Change prototype to take a regcache. Adjust.
17618 * linux-mips-low.c (mips_get_pc):
17619 (mips_set_pc): Change prototype to take a regcache. Adjust.
17620 (mips_reinsert_addr): Adjust.
17621 (mips_collect_register): Change prototype to take a regcache.
17623 (mips_supply_register):
17624 (mips_collect_register_32bit, mips_supply_register_32bit)
17625 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
17626 (mips_store_fpregset): Ditto.
17627 * linux-ppc-low.c (ppc_supply_ptrace_register)
17628 (ppc_supply_ptrace_register): Ditto.
17629 (parse_spufs_run): Adjust.
17630 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
17631 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
17632 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
17633 take a regcache. Adjust.
17634 * linux-s390-low.c (s390_collect_ptrace_register)
17635 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
17636 (s390_set_pc): Change prototype to take a regcache. Adjust.
17637 (s390_arch_setup): Adjust.
17638 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
17639 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
17640 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
17641 (sparc_fill_gregset, sparc_store_gregset_from_stack)
17642 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
17644 (sparc_breakpoint_at): Adjust.
17645 * linux-xtensa-low.c (xtensa_fill_gregset):
17646 (xtensa_store_gregset):
17647 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
17648 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
17649 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
17650 prototype to take a regcache. Adjust.
17651 * win32-arm-low.c (arm_fetch_inferior_register)
17652 (arm_store_inferior_register): Change prototype to take a
17654 * win32-i386-low.c (i386_fetch_inferior_register)
17655 (i386_store_inferior_register): Change prototype to take a
17657 * win32-low.c (child_fetch_inferior_registers)
17658 (child_store_inferior_registers): Change prototype to take a
17660 (win32_wait): Adjust.
17661 (win32_fetch_inferior_registers): Change prototype to take a
17663 (win32_store_inferior_registers): Adjust.
17664 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
17665 store_inferior_register>: Change prototype to take a regcache.
17667 2010-01-20 Doug Evans <dje@google.com>
17669 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
17671 (linux_wait_for_event1, linux_init_signals): Ditto.
17672 (W_STOPCODE): Provide definition if missing.
17674 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
17676 * linux-low.c (linux_core_of_thread): New.
17677 (compare_ints, show_process, list_threads): New.
17678 (linux_qxfer_osdata): Report threads and cores.
17679 (linux_target_op): Register linux_core_of_thread.
17680 * remote-utils.c (prepare_resume_reply): Report the core.
17681 (buffer_xml_printf): Support %d specifier.
17682 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
17684 (handle_query): Handle qXfer:threads. Announce availability
17686 * target.h (struct target_ops): New field core_of_thread.
17688 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
17690 * Makefile.in (clean): Remove new generated files.
17691 (reg-s390.o, reg-s390.c): Remove rules.
17692 (reg-s390x.o, reg-s390x.c): Likewise.
17693 (s390-linux32.o, s390-linux32.c): Add rules.
17694 (s390-linux64.o, s390-linux64.c): Likewise.
17695 (s390x-linux64.o, s390x-linux64.c): Likewise.
17696 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
17697 * linux-s390-low.c: Include <elf.h>.
17698 (HWCAP_S390_HIGH_GPRS): Define if undefined.
17699 (init_registers_s390): Remove prototype.
17700 (init_registers_s390x): Likewise.
17701 (init_registers_s390_linux32): Add prototype.
17702 (init_registers_s390_linux64): Likewise.
17703 (init_registers_s390x_linux64): Likewise.
17704 (s390_num_regs_3264): New define.
17705 (s390_regmap_3264): New global variable.
17706 (s390_cannot_fetch_register): Remove obsolete check.
17707 (s390_cannot_store_register): Likewise.
17708 (s390_collect_ptrace_register): Handle upper/lower register halves.
17709 (s390_supply_ptrace_register): Likewise.
17710 (s390_fill_gregset): Update to register number changes.
17711 (s390_get_hwcap): New routine.
17712 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
17713 Install appropriate regmap and register set.
17715 2010-01-01 Joel Brobecker <brobecker@adacore.com>
17717 * server.c (gdbserver_version): Update copyright year to 2010.
17718 * gdbreplay.c (gdbreplay_version): Likewise.
17720 2009-12-28 Doug Evans <dje@google.com>
17722 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
17723 elf/external.h. Include <elf.h> instead but only if necessary.
17725 2009-12-28 Pedro Alves <pedro@codesourcery.com>
17727 * linux-low.c (linux_remove_process): Remove `detaching'
17728 parameter. Don't release/detach from thread_db here.
17729 (linux_kill): Release/detach from thread_db here, ...
17730 (linux_detach): ... and here, before actually detaching.
17731 (linux_wait_1): ... and here, when a process exits.
17732 * thread-db.c (any_thread_of): New.
17733 (thread_db_free): Switch the current inferior to a thread of the
17736 2009-12-21 Doug Evans <dje@google.com>
17738 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
17740 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
17741 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
17742 warning ifndef __NR_tkill. Move setting of errno there too.
17743 Delete unnecessary resetting of errno after syscall.
17744 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
17746 * configure.ac: Check for dladdr.
17747 * config.in: Regenerate.
17748 * configure: Regenerate.
17749 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
17750 (try_thread_db_load): Update.
17752 * linux-low.c (my_waitpid): Delete unnecessary prototype.
17754 2009-12-18 Doug Evans <dje@google.com>
17756 * event-loop.c: Include unistd.h if it exists.
17758 * linux-low.c (my_waitpid): Move definition away from being in
17759 between linux_tracefork_child/linux_test_for_tracefork.
17761 * gdb_proc_service.h (psaddr_t): Fix type.
17762 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
17763 signature to match glibc.
17765 2009-12-16 Doug Evans <dje@google.com>
17767 * linux-low.c (linux_read_memory): Fix argument to read.
17769 2009-11-26 Pedro Alves <pedro@codesourcery.com>
17771 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
17772 events, don't leave current_inferior pointing at null.
17774 2009-11-26 Pedro Alves <pedro@codesourcery.com>
17776 * win32-low.c (LOG): Delete.
17777 (OUTMSG): Output to stderr.
17778 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
17779 on compile time LOG macro.
17780 (win32_wait): Fix debug output.
17782 2009-11-26 Pedro Alves <pedro@codesourcery.com>
17784 * win32-low.c (win32_add_one_solib): If the dll name is
17785 "ntdll.dll", prepend the system directory to the dll path.
17787 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
17789 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
17791 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
17792 Vladimir Prus <vladimir@codesourcery.com>
17794 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
17795 * configure.ac: Check for __mcoldfire__ and set
17796 gdb_cv_m68k_is_coldfire.
17797 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
17798 reg-cf.o and reg-m68k.o.
17799 * configure: Regenerated.
17801 2009-11-16 Pedro Alves <pedro@codesourcery.com>
17803 * linux-low.c (linux_remove_process): Add `detaching' parameter.
17804 Pass it to thread_db_free.
17805 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
17806 proper `detaching' argument to linux_remove_process.
17807 * linux-low.h (thread_db_free): Add `detaching' parameter.
17808 * thread-db.c (thread_db_init): Pass false as `detaching' argument
17810 (thread_db_free): Add `detaching' parameter. Only
17811 call td_ta_clear_event if detaching from process.
17813 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
17815 * thread-db.c (thread_db_free): Fix typo.
17817 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
17820 * thread-db.c (thread_db_free): Call td_ta_clear_event.
17822 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
17824 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
17825 with an i686 compiler.
17826 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
17828 * configure: Rebuilt.
17830 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
17834 * server.c (handle_search_memory_1): Correct read_addr initialization
17835 in loop for searching subsequent chunks.
17837 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
17839 * configure.ac: New --with-libthread-db option.
17840 * thread-db.c: Allow direct dependence on libthread_db.
17841 (thread_db_free): Adjust.
17842 * config.in: Regenerate.
17843 * configure: Likewise.
17845 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
17848 * thread-db.c (attach_thread): New function.
17849 (maybe_attach_thread): Return success/failure.
17850 (find_new_threads_callback): Adjust.
17851 (thread_db_find_new_threads): Loop until no new threads.
17853 2009-10-13 Pedro Alves <pedro@codesourcery.com>
17855 * proc-service.c (ps_lgetregs): Formatting.
17857 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
17859 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
17860 * configure.ac: Adjust.
17861 * linux-low.h (struct process_info_private): Move members to struct
17863 (thread_db_free, thread_db_handle_monitor_command): New prototype.
17864 * linux-low.c (linux_remove_process): Adjust.
17865 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
17866 * server.c (handle_query): Move code ...
17867 (handle_monitor_command): ... here. New function.
17868 * target.h (struct target_ops): New member.
17869 * thread-db.c (struct thread_db): New.
17870 (libthread_db_search_path): New variable.
17871 (thread_db_create_event, thread_db_enable_reporting)
17872 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
17873 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
17874 (try_thread_db_load_1, dladdr_to_soname): New functions.
17875 (try_thread_db_load, thread_db_load_search): New functions.
17876 (thread_db_init): Search for libthread_db.
17877 (thread_db_free): New function.
17878 (thread_db_handle_monitor_command): Likewise.
17879 * config.in: Regenerate.
17880 * configure: Regenerate.
17882 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
17884 * spu-low.c (spu_kill): Wait for inferior to terminate.
17885 Call clear_inferiors.
17886 (spu_detach): Call clear_inferiors.
17888 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17890 * aclocal.m4: Regenerate.
17891 * config.in: Likewise.
17892 * configure: Likewise.
17894 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
17896 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
17897 (parse_spufs_run): New function.
17898 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
17899 (ppc_breakpoint_at): Handle SPU breakpoints.
17901 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
17903 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
17904 (SPUFS_MAGIC): Define.
17905 (spu_enumerate_spu_ids): New function.
17906 (linux_qxfer_spu): New function.
17907 (linux_target_ops): Install linux_qxfer_spu.
17909 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
17911 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
17912 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
17913 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
17914 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
17915 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
17916 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
17917 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
17918 (init_registers_powerpc_cell32l): Add prototype.
17919 (init_registers_powerpc_cell64l): Likewise.
17920 (ppc_arch_setup): Detect Cell/B.E. architecture.
17922 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17924 * Makefile.in (datarootdir): New variable.
17926 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
17928 * linux-low.c (linux_write_memory): Update debugging output.
17929 * Makefile.in (clean): Add new descriptions.
17930 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
17931 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
17932 * configure.srv: Add new files for arm*-*-linux*.
17933 * linux-arm-low.c: Add new declarations.
17934 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
17935 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
17936 (HWCAP_VFPv3D16): New.
17937 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
17938 instead of __IWMMXT__.
17939 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
17940 (arm_arch_setup): New.
17941 (target_regsets): Remove #ifdef. Add VFP regset.
17942 (the_low_target): Use arm_arch_setup.
17944 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
17946 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
17947 the main thread again.
17949 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
17951 Adding Neutrino gdbserver.
17952 * configure: Regenerated.
17953 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
17954 * configure.srv (i[34567]86-*-nto*): New target.
17955 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
17956 * remote-utils.c [__QNX__]: Include sys/iomgr.h
17957 (nto_comctrl) [__QNX__]: New function.
17958 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
17960 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
17962 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
17965 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
17966 Pedro Alves <pedro@codesourcery.com>
17968 * win32-i386-low.c (i386_get_thread_context): Handle systems that
17969 don't support CONTEXT_EXTENDED_REGISTERS.
17970 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
17971 (the_low_target): Install them.
17972 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
17973 failing with ERROR_PIPE_NOT_CONNECTED.
17975 2009-06-30 Doug Evans <dje@google.com>
17976 Pierre Muller <muller@ics.u-strasbg.fr>
17978 Add h/w watchpoint support to x86-linux, win32-i386.
17979 * Makefile.in (SFILES): Add i386-low.c
17980 (i386_low_h): Define.
17981 (i386-low.o): Add dependencies.
17982 (linux-x86-low.o): Add i386-low.h dependency.
17983 (win32-i386-low.o): Ditto.
17984 * i386-low.c: New file.
17985 * i386-low.h: New file.
17986 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
17987 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
17988 * linux-low.c (linux_add_process): Initialize arch_private.
17989 (linux_remove_process): Free arch_private.
17990 (add_lwp): Initialize arch_private.
17991 (delete_lwp): Free arch_private.
17992 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
17994 * linux-low.h (process_info_private): New member arch_private.
17995 (lwp_info): New member arch_private.
17996 (linux_target_ops): New members new_process, new_thread,
17998 (ptid_of): New macro.
17999 * linux-x86-low.c: Include stddef.h, i386-low.h.
18000 (arch_process_info): New struct.
18001 (arch_lwp_info): New struct.
18002 (x86_linux_dr_get, x86_linux_dr_set): New functions.
18003 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18004 (i386_dr_low_get_status): New function.
18005 (x86_insert_point, x86_remove_point): New functions.
18006 (x86_stopped_by_watchpoint): New function.
18007 (x86_stopped_data_address): New function.
18008 (x86_linux_new_process, x86_linux_new_thread): New functions.
18009 (x86_linux_prepare_to_resume): New function.
18010 (the_low_target): Add entries for insert_point, remove_point,
18011 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
18013 * server.c (debug_hw_points): New global.
18014 (monitor_show_help): Document set debug-hw-points.
18015 (handle_query): Process "set debug-hw-points".
18016 * server.h (debug_hw_points): Declare.
18017 (paddress): Declare.
18018 * utils.c (NUMCELLS, CELLSIZE): New macros.
18019 (get_sell, xsnprintf, paddress): New functions.
18020 * win32-arm-low.c (the_low_target): Add entries for insert_point,
18021 remove_point, stopped_by_watchpoint, stopped_data_address.
18022 * win32-i386-low.c: Include i386-low.h.
18023 (debug_reg_state): Replaces dr.
18024 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18025 (i386_dr_low_get_status): New function.
18026 (i386_insert_point, i386_remove_point): New functions.
18027 (i386_stopped_by_watchpoint): New function.
18028 (i386_stopped_data_address): New function.
18029 (i386_initial_stuff): Update.
18030 (get_thread_context,set_thread_context,i386_thread_added): Update.
18031 (the_low_target): Add entries for insert_point,
18032 remove_point, stopped_by_watchpoint, stopped_data_address.
18033 * win32-low.c (win32_insert_watchpoint): New function.
18034 (win32_remove_watchpoint): New function.
18035 (win32_stopped_by_watchpoint): New function.
18036 (win32_stopped_data_address): New function.
18037 (win32_target_ops): Add entries for insert_watchpoint,
18038 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
18039 * win32-low.h (win32_target_ops): New members insert_point,
18040 remove_point, stopped_by_watchpoint, stopped_data_address.
18042 2009-06-25 Pedro Alves <pedro@codesourcery.com>
18044 * server.c (process_serial_event): Re-return unsupported, not
18045 error, if the type isn't recognized. Re-allow supporting only
18046 insert or remove packets. Also call require_running for
18047 breakpoints. Add missing break statement to default case. Tidy.
18048 * target.h (struct target_ops): Rename insert_watchpoint to
18049 insert_point, and remove_watchpoint to remove_point.
18051 * linux-low.h (struct linux_target_ops): Likewise.
18052 * linux-low.c (linux_insert_watchpoint): Rename to ...
18053 (linux_insert_point): ... this. Adjust.
18054 (linux_remove_watchpoint): Rename to ...
18055 (linux_remove_point): ... this. Adjust.
18056 (linux_target_ops): Adjust.
18057 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
18058 (cris_insert_point): ... this.
18059 (cris_remove_watchpoint): Rename to ...
18060 (cris_remove_point): ... this.
18061 (the_low_target): Adjust.
18063 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
18065 * server.c (handle_v_kill): Pass signal_pid to
18066 kill_inferior if multi_process is zero.
18068 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
18070 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
18071 * target.h (target_ops): Comment for *_watchpoint to make it clear
18072 the functions can get types '0' and '1'.
18074 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
18076 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
18077 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
18078 * regcache.c (get_regcache): Likewise.
18079 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
18080 * win32-low.c (child_fetch_inferior_registers): Remove check for
18083 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
18084 Pedro Alves <pedro@codesourcery.com>
18086 * target.h (struct target_ops) <supports_multi_process>: New
18088 (target_supports_multi_process): New.
18089 * server.c (handle_query): Even if GDB reports support, only
18090 enable multi-process if the target also supports it. Report
18091 multi-process support only if the target backend supports it.
18092 * linux-low.c (linux_supports_multi_process): New function.
18093 (linux_target_ops): Install it as target_supports_multi_process
18096 2009-05-24 Doug Evans <dje@google.com>
18098 Global renaming of find_thread_pid to find_thread_ptid.
18099 * server.h (find_thread_ptid): Renamed from find_thread_pid.
18100 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
18101 All callers updated.
18103 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
18104 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
18107 * linux-low.c (get_stop_pc): Print pc if debug_threads.
18108 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
18109 (linux_resume_one_lwp): Ditto.
18111 2009-05-23 Doug Evans <dje@google.com>
18113 * linux-low.c (linux_resume_one_lwp): Change type of first arg
18114 from struct inferior_list_entry * to struct lwp_info *.
18115 All callers updated.
18117 2009-05-13 Doug Evans <dje@google.com>
18119 * linux-x86-low.c: Don't include assert.h.
18120 (x86_siginfo_fixup): Use fatal, not assert.
18121 (x86_arch_setup): Fix comment.
18123 2009-05-12 Doug Evans <dje@google.com>
18125 Biarch support for i386/amd64 gdbserver.
18126 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
18127 Add linux-x86-low.c.
18128 (linux-i386-low.o, linux-x86-64-low.o): Delete.
18129 (linux-x86-low.o): Add.
18130 * linux-x86-64-low.c: Delete.
18131 * linux-i386-low.c: Delete.
18132 * linux-x86-low.c: New file.
18133 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
18135 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
18137 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
18138 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
18139 (linux_child_pid_to_exec_file): New function.
18140 (elf_64_header_p, elf_64_file_p): New functions.
18141 (siginfo_fixup): New function.
18142 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
18143 give target a chance to convert layout.
18144 * linux-low.h (linux_target_ops): New member siginfo_fixup.
18145 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
18147 2009-05-07 Doug Evans <dje@google.com>
18149 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
18150 (regsets_store_inferior_registers): Ditto.
18152 2009-05-06 Pedro Alves <pedro@codesourcery.com>
18156 * linux-low.c (must_set_ptrace_flags): Delete.
18157 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
18159 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
18160 `lwp->must_set_ptrace_flags' instead.
18161 (linux_wait_for_event_1): Set ptrace options here.
18162 (linux_wait_1): ... not here.
18164 2009-04-30 Doug Evans <dje@google.com>
18166 * inferiors.c (started_inferior_callback): New function.
18167 (attached_inferior_callback): New function.
18168 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
18169 * server.c (print_started_pid, print_attached_pid): New functions.
18170 (detach_or_kill_for_exit): New function.
18171 (main): Call it instead of for_each_inferior (kill_inferior_callback).
18172 * server.h (have_started_inferiors_p): Declare.
18173 (have_attached_inferiors_p): Declare.
18175 * inferiors.c (remove_process): Fix memory leak, free process.
18176 * linux-low.c (linux_remove_process): New function.
18177 (linux_kill): Call it instead of remove_process.
18178 (linux_detach, linux_wait_1): Ditto.
18180 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
18182 * configure.srv: Add x86 Windows CE target.
18184 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
18186 * inferiors.c (get_thread_process): Make global.
18187 * server.h (get_thread_process): Add prototype.
18188 * thread-db.c (find_one_thread): Use get_thread_process
18189 instead of current_process.
18190 (thread_db_get_tls_address): Do not crash if called when
18191 thread layer is not yet initialized.
18193 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
18195 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
18196 * spu-low.c (current_tid): Rename to ...
18197 (current_ptid): ... this.
18198 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
18199 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
18200 ptid_get_lwp (current_ptid) instead of current_tid.
18201 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
18202 instead of current_tid. Use find_process_pid to verify pid
18203 argument is valid. Pass proper argument to remove_process.
18204 (spu_thread_alive): Compare current_ptid instead of current_tid.
18205 (spu_resume): Likewise.
18207 2009-04-02 Pedro Alves <pedro@codesourcery.com>
18209 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
18212 2009-04-01 Pedro Alves <pedro@codesourcery.com>
18214 Implement the multiprocess extensions, and add linux multiprocess
18217 * server.h (ULONGEST): Declare.
18218 (struct ptid, ptid_t): New.
18219 (minus_one_ptid, null_ptid): Declare.
18220 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
18221 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
18222 (struct inferior_list_entry): Change `id' type from unsigned from
18224 (struct sym_cache, struct breakpoint, struct
18225 process_info_private): Forward declare.
18226 (struct process_info): Declare.
18227 (current_process): Declare.
18228 (all_processes): Declare.
18229 (initialize_inferiors): Declare.
18230 (add_thread): Adjust to use ptid_t.
18231 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
18232 (add_process, remove_process, find_thread_pid): Declare.
18233 (find_inferior_id): Adjust to use ptid_t.
18234 (cont_thread, general_thread, step_thread): Change type to ptid_t.
18235 (multi_process): Declare.
18236 (push_event): Adjust to use ptid_t.
18237 (read_ptid, write_ptid): Declare.
18238 (prepare_resume_reply): Adjust to use ptid_t.
18239 (clear_symbol_cache): Declare.
18240 * inferiors.c (all_processes): New.
18241 (null_ptid, minus_one_ptid): New.
18242 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
18243 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
18244 (add_thread): Change unsigned long to ptid. Remove gdb_id
18246 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
18247 (gdb_id_to_thread): Rename to ...
18248 (find_thread_pid): ... this. Change unsigned long to ptid.
18249 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
18250 (loaded_dll, pull_pid_from_list): Adjust.
18251 (add_process, remove_process, find_process_pid)
18252 (get_thread_process, current_process, initialize_inferiors): New.
18253 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
18254 (struct target_waitstatus) <related_pid>: Ditto.
18255 (struct target_ops) <kill, detach>: Add `pid' argument. Change
18256 return type to int.
18257 (struct target_ops) <join>: Add `pid' argument.
18258 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
18259 (struct target_ops) <wait>: Add `ptid' field. Change return type
18261 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
18262 (mywait): Add `ptid' argument. Change return type to ptid_t.
18263 (target_pid_to_str): Declare.
18264 * target.c (set_desired_inferior): Adjust to use ptids.
18265 (mywait): Add new `ptid' argument. Adjust.
18266 (target_pid_to_str): New.
18267 * mem-break.h (free_all_breakpoints): Declare.
18268 * mem-break.c (breakpoints): Delelete.
18269 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
18270 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
18271 to use per-process breakpoint list.
18272 (free_all_breakpoints): New.
18273 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
18274 (symbol_cache, all_symbols_looked_up): Delete.
18276 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
18278 (prepare_resume_reply): Change ptid argument's type from unsigned
18279 long to ptid_t. Adjust. Implement W;process and X;process.
18280 (free_sym_cache, clear_symbol_cache): New.
18281 (look_up_one_symbol): Adjust to per-process symbol cache. *
18282 * server.c (cont_thread, general_thread, step_thread): Change type
18284 (attached): Delete.
18285 (multi_process): New.
18286 (last_ptid): Change type to ptid_t.
18287 (struct vstop_notif) <ptid>: Change type to ptid_t.
18288 (queue_stop_reply, push_event): Change `ptid' argument's type to
18290 (discard_queued_stop_replies): Add `pid' argument.
18291 (start_inferior): Adjust to use ptids. Adjust to mywait interface
18292 changes. Don't reference the `attached' global.
18293 (attach_inferior): Adjust to mywait interface changes.
18294 (handle_query): Adjust to use ptids. Parse GDB's qSupported
18295 features. Handle and report "multiprocess+". Handle
18297 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
18299 (handle_v_kill): New.
18300 (handle_v_stopped): Adjust to use target_pid_to_str.
18301 (handle_v_requests): Allow multiple attaches and runs when
18302 multiprocess extensions are in effect. Handle "vKill".
18303 (myresume): Adjust to use ptids.
18304 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
18305 (handle_status): Adjust to discard_queued_stop_replies interface
18307 (first_thread_of, kill_inferior_callback)
18308 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
18309 (main): Call initialize_inferiors. Adjust to use ptids, killing
18310 and detaching from all inferiors. Handle multiprocess packet
18312 * linux-low.h: Include gdb_proc_service.h.
18313 (struct process_info_private): New.
18314 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
18315 <lwpid_of>: Use ptid_get_lwp.
18316 (get_lwp_thread): Adjust.
18317 (struct lwp_info): Add `dead' member.
18318 (find_lwp_pid): Declare.
18319 * linux-low.c (thread_db_active): Delete.
18320 (new_inferior): Adjust comment.
18321 (inferior_pid): Delete.
18322 (linux_add_process): New.
18323 (handle_extended_wait): Adjust.
18324 (add_lwp): Change unsigned long to ptid.
18325 (linux_create_inferior): Add process to processes table. Adjust
18326 to use ptids. Don't set new_inferior here.
18327 (linux_attach_lwp): Rename to ...
18328 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
18329 it. Adjust to use ptids.
18330 (linux_attach_lwp): New.
18331 (linux_attach): Add process to processes table. Don't set
18333 (struct counter): New.
18334 (second_thread_of_pid_p, last_thread_of_process_p): New.
18335 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
18336 multiple processes.
18337 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
18338 processes. Remove process from process table.
18339 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
18340 to multiple processes.
18341 (any_thread_of): New.
18342 (linux_detach): Add `pid' argument, and handle it. Remove process
18343 from processes table.
18344 (linux_join): Add `pid' argument. Handle it.
18345 (linux_thread_alive): Change unsighed long argument to ptid_t.
18346 Consider dead lwps as not being alive.
18347 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
18348 threads we're not interested in.
18349 (same_lwp, find_lwp_pid): New.
18350 (linux_wait_for_lwp): Change `pid' argument's type from int to
18352 (linux_wait_for_event): Rename to ...
18353 (linux_wait_for_event_1): ... this. Change `pid' argument's type
18354 from int to ptid_t. Adjust.
18355 (linux_wait_for_event): New.
18356 (linux_wait_1): Add `ptid' argument. Change return type to
18357 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
18358 that exit from the process table.
18359 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
18361 (mark_lwp_dead): New.
18362 (wait_for_sigstop): Adjust to use ptids. If a process exits while
18363 stopping all threads, mark its main lwp as dead.
18364 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
18366 (fetch_register, usr_store_inferior_registers)
18367 (regsets_fetch_inferior_registers)
18368 (regsets_store_inferior_registers, linux_read_memory)
18369 (linux_write_memory): Inline `inferior_pid'.
18370 (linux_look_up_symbols): Adjust to use per-process
18371 `thread_db_active'.
18372 (linux_request_interrupt): Adjust to use ptids.
18373 (linux_read_auxv): Inline `inferior_pid'.
18374 (initialize_low): Don't reference thread_db_active.
18375 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
18376 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
18377 (ps_getpid): Return the pid of the current inferior.
18378 * thread-db.c (proc_handle, thread_agent): Delete.
18379 (thread_db_create_event, thread_db_enable_reporting): Adjust to
18381 (find_one_thread): Change argument type to ptid_t. Adjust to
18383 (maybe_attach_thread): Adjust to per-process data and ptids.
18384 (thread_db_find_new_threads): Ditto.
18385 (thread_db_init): Ditto.
18386 * spu-low.c (spu_create_inferior, spu_attach): Add process to
18387 processes table. Adjust to use ptids.
18388 (spu_kill, spu_detach): Adjust interface. Remove process from
18390 (spu_join, spu_thread_alive): Adjust interface.
18391 (spu_wait): Adjust interface. Remove process from processes
18392 table. Adjust to use ptids.
18393 * win32-low.c (current_inferior_tid): Delete.
18394 (current_inferior_ptid): New.
18395 (debug_event_ptid): New.
18396 (thread_rec): Take a ptid. Adjust.
18397 (child_add_thread): Add `pid' argument. Adjust to use ptids.
18398 (child_delete_thread): Ditto.
18399 (do_initial_child_stuff): Add `attached' argument. Add process to
18401 (child_fetch_inferior_registers, child_store_inferior_registers):
18403 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
18404 (win32_attach): Pass 1 to do_initial_child_stuff.
18405 (win32_kill): Adjust interface. Remove process from processes
18407 (win32_detach): Ditto.
18408 (win32_join): Adjust interface.
18409 (win32_thread_alive): Take a ptid.
18410 (win32_resume): Adjust to use ptids.
18411 (get_child_debug_event): Ditto.
18412 (win32_wait): Adjust interface. Remove exiting process from
18415 2009-04-01 Pedro Alves <pedro@codesourcery.com>
18417 Non-stop mode support.
18419 * server.h (non_stop): Declare.
18420 (gdb_client_data, handler_func): Declare.
18421 (delete_file_handler, add_file_handler, start_event_loop):
18423 (handle_serial_event, handle_target_event, push_event)
18424 (putpkt_notif): Declare.
18425 * target.h (enum resume_kind): New.
18426 (struct thread_resume): Replace `step' field by `kind' field.
18427 (TARGET_WNOHANG): Define.
18428 (struct target_ops) <wait>: Add `options' argument.
18429 <supports_non_stop, async, start_non_stop>: New fields.
18430 (target_supports_non_stop, target_async): New.
18431 (start_non_stop): Declare.
18432 (mywait): Add `options' argument.
18433 * target.c (mywait): Add `options' argument. Print child exit
18434 notifications here.
18435 (start_non_stop): New.
18436 * server.c (non_stop, own_buf, mem_buf): New globals.
18437 (struct vstop_notif): New.
18438 (notif_queue): New global.
18439 (queue_stop_reply, push_event, discard_queued_stop_replies)
18440 (send_next_stop_reply): New.
18441 (start_inferior): Adjust to use resume_kind. Adjust to mywait
18443 (attach_inferior): In non-stop mode, don't wait for the target
18445 (handle_general_set): Handle QNonStop.
18446 (handle_query): When handling qC, return the current general
18447 thread, instead of the first thread of the list.
18448 (handle_query): If the backend supports non-stop mode, include
18449 QNonStop+ in the qSupported query response.
18450 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
18452 (handle_v_attach, handle_v_run): Handle non-stop mode.
18453 (handle_v_stopped): New.
18454 (handle_v_requests): Report support for vCont;t. Handle vStopped.
18455 (myresume): Adjust to use resume_kind. Handle non-stop.
18456 (queue_stop_reply_callback): New.
18457 (handle_status): Handle non-stop mode.
18458 (main): Clear non_stop flag on reconnection. Use the event-loop.
18459 Refactor serial protocol handling from here ...
18460 (process_serial_event): ... to this new function. When GDB
18461 selects any thread, select one here. In non-stop mode, wait until
18462 GDB acks all pending events before exiting.
18463 (handle_serial_event, handle_target_event): New.
18464 * remote-utils.c (remote_open): Install remote_desc in the event
18466 (remote_close): Remove remote_desc from the event loop.
18467 (putpkt_binary): Rename to...
18468 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
18469 (putpkt_binary): New as wrapper around putpkt_binary_1.
18470 (putpkt_notif): New.
18471 (prepare_resume_reply): In non-stop mode, don't change the
18473 * event-loop.c: New.
18474 * Makefile.in (OBJ): Add event-loop.o.
18475 (event-loop.o): New rule.
18477 * linux-low.h (pid_of): Moved here.
18479 (get_lwp_thread): Use lwpid_of.
18480 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
18481 * linux-low.c (pid_of): Delete.
18482 (inferior_pid): Use lwpid_of.
18483 (linux_event_pipe): New.
18484 (target_is_async_p): New.
18486 (handle_extended_wait): Use lwpid_of.
18487 (add_lwp): Don't set lwpid field.
18488 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
18489 (linux_kill_one_lwp): If killing a running lwp, stop it first.
18490 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
18491 (linux_detach_one_lwp): If detaching from a running lwp, stop it
18492 first. Adjust to linux_wait_for_event interface changes. Use
18494 (linux_detach): Don't delete the main lwp here.
18495 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
18496 (status_pending_p): Don't consider explicitly suspended lwps.
18497 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
18498 pointer. Add OPTIONS argument. Change return type to int. Use
18499 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
18500 (linux_wait_for_event): Take an integer pid instead of a lwp_info
18501 pointer. Add status pointer argument. Return a pid instead of a
18502 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
18503 changes. In non-stop mode, don't switch to a random thread.
18504 (linux_wait): Rename to...
18505 (linux_wait_1): ... this. Add target_options argument, and handle
18506 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
18507 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
18508 clean exit and signal exit code. Don't stop all threads in
18509 non-stop mode. In all-stop mode, only stop all threads when
18510 reporting a stop to GDB. Handle explicit thread stop requests.
18511 (async_file_flush, async_file_mark): New.
18513 (send_sigstop): Use lwpid_of.
18514 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
18515 interface changes. In non-stop mode, don't switch to a random
18517 (linux_resume_one_lwp): Use lwpid_of.
18518 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
18519 (linux_resume_one_thread): ... this. Handle resume_stop. In
18520 non-stop mode, don't look for pending flag in all threads.
18521 (resume_status_pending_p): Don't consider explicitly suspended
18523 (my_waitpid): Reimplement. Emulate __WALL.
18524 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
18526 (sigchld_handler, linux_supports_non_stop, linux_async)
18527 (linux_start_non_stop): New.
18528 (linux_target_ops): Register linux_supports_non_stop, linux_async
18529 and linux_start_non_stop.
18530 (initialize_low): Install SIGCHLD handler.
18531 * thread-db.c (thread_db_create_event, find_one_thread)
18532 (thread_db_get_tls_address): Use lwpid_of.
18533 * win32-low.c (win32_detach): Adjust to use resume_kind.
18534 (win32_wait): Add `options' argument.
18535 * spu-low.c (spu_resume): Adjust to use resume_kind.
18536 (spu_wait): Add `options' argument.
18538 2009-04-01 Pedro Alves <pedro@codesourcery.com>
18540 Decouple target code from remote protocol.
18542 * target.h (enum target_waitkind): New.
18543 (struct target_waitstatus): New.
18544 (struct target_ops) <wait>: Return an unsigned long. Take a
18545 target_waitstatus pointer instead of a char pointer.
18546 (mywait): Likewise.
18547 * target.c (mywait): Change prototype to return an unsigned long.
18548 Take a target_waitstatus pointer instead of a char pointer. Adjust.
18549 * server.h (thread_from_wait, old_thread_from_wait): Delete
18551 (prepare_resume_reply): Change prototype to take a
18553 * server.c (thread_from_wait, old_thread_from_wait): Delete.
18554 (last_status, last_ptid): New.
18555 (start_inferior): Remove "statusptr" argument. Adjust. Return a
18556 pid instead of a signal.
18557 (attach_inferior): Remove "status" and "signal" parameters.
18559 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
18561 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
18562 (handle_v_requests, myresume): Remove "status" and "signal"
18563 parameters. Adjust.
18564 (handle_status): New.
18565 (main): Delete local `status'. Adjust.
18566 * remote-utils.c: Include target.h.
18567 (prepare_resume_reply): Change prototype to take a
18568 target_waitstatus. Adjust.
18570 * linux-low.c (linux_wait): Adjust to new target_ops->wait
18572 * spu-low.c (spu_wait): Adjust.
18573 * win32-low.c (enum target_waitkind, struct target_waitstatus):
18575 (win32_wait): Adjust.
18577 2009-04-01 Pedro Alves <pedro@codesourcery.com>
18579 * target.h (struct thread_resume): Delete leave_stopped member.
18580 (struct target_ops): Add a `n' argument to the `resume' callback.
18581 * server.c (start_inferior): Adjust.
18582 (handle_v_cont, myresume): Adjust.
18583 * linux-low.c (check_removed_breakpoint): Adjust to resume
18584 interface change, and to removed leave_stopped field.
18585 (resume_ptr): Delete.
18586 (struct thread_resume_array): New.
18587 (linux_set_resume_request): Add new `arg' parameter. Adjust to
18588 resume interface change.
18589 (linux_continue_one_thread, linux_queue_one_thread)
18590 (resume_status_pending_p): Check if the resume field is NULL
18591 instead of checking the leave_stopped member.
18592 (linux_resume): Adjust to the target resume interface change.
18593 * spu-low.c (spu_resume): Adjust to the target resume interface
18595 * win32-low.c (win32_detach, win32_resume): Ditto.
18597 2009-04-01 Pedro Alves <pedro@codesourcery.com>
18599 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
18601 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
18603 (linux_continue_one_thread): Only preserve the stepping flag if
18604 there's a pending breakpoint.
18606 2009-03-31 Pedro Alves <pedro@codesourcery.com>
18608 * server.c (main): After the inferior having exited, call
18609 remote_close before exiting gdbserver.
18611 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
18613 Fix size of FPSCR in Power 7 processors.
18614 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
18615 (PPC_FEATURE_HAS_DFP): New #define.
18616 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
18619 2009-03-23 Pedro Alves <pedro@codesourcery.com>
18621 * server.c (handle_query) Whitespace and formatting.
18623 2009-03-22 Pedro Alves <pedro@codesourcery.com>
18625 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
18626 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
18627 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
18628 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
18629 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
18630 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
18631 Makefile.in, configure.ac: Fix whitespace throughout.
18632 * configure: Regenerate.
18634 2009-03-22 Pedro Alves <pedro@codesourcery.com>
18636 * inferiors.c (find_inferior): Make it safe for the callback
18637 function to delete the currently iterated inferior.
18639 2009-03-22 Pedro Alves <pedro@codesourcery.com>
18641 * Makefile.in (linuw_low_h): Move higher.
18642 (thread-db.o): Depend on $(linux_low_h).
18644 2009-03-17 Pedro Alves <pedro@codesourcery.com>
18646 Rename "process" to "lwp" throughout.
18648 * linux-low.c (all_processes): Rename to...
18649 (all_lwps): ... this.
18650 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
18651 (add_process): Rename to ...
18652 (add_lwp): ... this. Adjust.
18653 (linux_create_inferior): Adjust.
18654 (linux_attach_lwp): Adjust.
18655 (linux_attach): Adjust.
18656 (linux_kill_one_process): Rename to ...
18657 (linux_kill_one_lwp): ... this. Adjust.
18658 (linux_kill): Adjust.
18659 (linux_detach_one_process): Rename to ...
18660 (linux_detach_one_lwp): ... this. Adjust.
18661 (linux_detach): Adjust.
18662 (check_removed_breakpoint): Adjust.
18663 (status_pending_p): Adjust.
18664 (linux_wait_for_process): Rename to ...
18665 (linux_wait_for_lwp): ... this. Adjust.
18666 (linux_wait_for_event): Adjust.
18667 (send_sigstop): Adjust.
18668 (wait_for_sigstop): Adjust.
18669 (stop_all_processes): Rename to ...
18670 (stop_all_lwps): ... this.
18671 (linux_resume_one_process): Rename to ...
18672 (linux_resume_one_lwp): ... this. Adjust.
18673 (linux_set_resume_request, linux_continue_one_thread)
18674 (linux_queue_one_thread, resume_status_pending_p)
18675 (usr_store_inferior_registers, regsets_store_inferior_registers)
18676 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
18678 * linux-low.h (get_process): Rename to ...
18679 (get_lwp): ... this. Adjust.
18680 (get_thread_process): Rename to ...
18681 (get_thread_lwp): ... this. Adjust.
18682 (get_process_thread): Rename to ...
18683 (get_lwp_thread): ... this. Adjust.
18684 (struct process_info): Rename to ...
18685 (struct lwp_info): ... this.
18686 (all_processes): Rename to ...
18687 (all_lwps): ... this.
18688 * proc-service.c (ps_lgetregs): Adjust.
18689 * thread-db.c (thread_db_create_event, find_one_thread)
18690 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
18692 2009-03-14 Pedro Alves <pedro@codesourcery.com>
18694 * server.c (handle_query): Handle "qAttached".
18696 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
18698 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
18699 GPLv3, update license URL.
18701 2009-03-01 Doug Evans <dje@google.com>
18703 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
18704 (server_h): Add gdb_signals.h.
18705 (signals.o): Update.
18706 * server.h (target_signal_from_host,target_signal_to_host_p)
18707 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
18709 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
18711 * remote-utils.c (getpkt): Also generate remote-debug
18712 information if noack_mode is set.
18714 2009-02-06 Pedro Alves <pedro@codesourcery.com>
18716 * server.c (handle_query): Report qXfer:siginfo:read and
18717 qXfer:siginfo:write as supported and handle them.
18718 * target.h (struct target_ops) <qxfer_siginfo>: New field.
18719 * linux-low.c (linux_xfer_siginfo): New.
18720 (linux_target_ops): Set it.
18722 2009-01-26 Pedro Alves <pedro@codesourcery.com>
18724 * server.c (gdbserver_usage): Mention --remote-debug.
18725 (main): Accept '--remote-debug' switch.
18727 2009-01-18 Doug Evans <dje@google.com>
18729 * regcache.c (new_register_cache): No need to check result of xcalloc.
18730 * server.c (handle_search_memory): Back out calls to xmalloc,
18731 result is checked and error is returned to user upon failure.
18732 (handle_query): Ditto. Add more checks for result of malloc.
18733 (handle_v_cont): Check result of malloc, report error back to
18735 (handle_v_run): Ditto. Call freeargv.
18736 * server.h (freeargv): Declare.
18737 * utils.c (freeargv): New fn.
18739 2009-01-15 Doug Evans <dje@google.com>
18741 * gdbreplay.c (perror_with_name): Make arg const char *.
18742 * server.h (target_signal_to_name): Make return type const char *.
18743 * thread-db.c (thread_db_err_str): Make return type const char *.
18744 * utils.c (perror_with_name): Make arg const char *.
18746 2009-01-14 Pedro Alves <pedro@codesourcery.com>
18748 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
18749 when handling a EXIT_PROCESS_DEBUG_EVENT.
18751 2009-01-06 Joel Brobecker <brobecker@adacore.com>
18753 * gdbreplay.c (gdbreplay_version): Update copyright year.
18754 * server.c (gdbserver_version): Likewise.
18756 2009-01-05 Doug Evans <dje@google.com>
18758 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
18759 (handle_extended_wait): Improve comment.
18761 2008-12-13 Doug Evans <dje@google.com>
18763 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
18764 * server.h (ATTR_MALLOC): New macro.
18765 (xmalloc,xcalloc,xstrdup): Declare.
18766 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
18767 * inferiors.c: Ditto.
18768 * linux-low.c: Ditto.
18769 * mem-break.c: Ditto.
18770 * regcache.c: Ditto.
18771 * remote-utils.c: Ditto.
18774 * win32-low.c: Ditto.
18776 2008-12-12 Doug Evans <dje@google.com>
18778 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
18779 in debugging printf.
18781 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
18783 2008-12-09 Doug Evans <dje@google.com>
18785 * linux-low.h (struct process_info): Delete member tid, unused.
18786 * thread-db.c (find_one_thread): Update.
18787 (maybe_attach_thread): Update.
18789 2008-12-02 Pedro Alves <pedro@codesourcery.com>
18791 * target.h (struct target_ops): Add qxfer_osdata member.
18792 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
18794 (linux_qxfer_osdata): New functions.
18795 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
18797 * server.c (handle_query): Handle "qXfer:osdata:read:".
18798 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
18799 (buffer_xml_printf): New functions.
18800 * server.h (struct buffer): New.
18801 (buffer_grow_str, buffer_grow_str0): New macros.
18802 (buffer_grow, buffer_free, buffer_init, buffer_finish)
18803 (buffer_xml_printf): Declare.
18805 2008-11-24 Doug Evans <dje@google.com>
18807 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
18809 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
18811 * server.c (handle_v_run): Always use the supplied argument list.
18813 2008-11-19 Bob Wilson <bob.wilson@acm.org>
18815 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
18816 (xtensa_regmap_table): Add entry for scompare1.
18818 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
18820 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
18821 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
18822 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
18823 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
18824 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
18825 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
18826 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
18827 XML target descriptions.
18828 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
18829 when inferior is running on an ISA 2.05 or later processor. Add
18830 special case to return offset for full 64-bit slot of FPSCR when
18833 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
18835 * Makefile.in (SFILES, clean): Added sparc64 files.
18836 (reg-sparc64.o, reg-sparc64.c): New.
18837 * configure.srv (sparc*-*-linux*): New configuration.
18838 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
18839 syscall arguments for SPARC.
18840 (regsets_store_inferior_registers): Likewise.
18841 * linux-sparc-low.c: New file.
18843 2008-10-21 Doug Evans <dje@google.com>
18845 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
18846 (READLINE_DIR,READLINE_DEP): Delete.
18847 (INTERNAL_CFLAGS): Update.
18848 (LINTFLAGS): Update.
18850 2008-10-10 Pedro Alves <pedro@codesourcery.com>
18852 * server.c (handle_v_run): If GDB didn't specify an argv, use the
18853 whole argv from the last run, not just argv[0].
18855 2008-09-08 Pedro Alves <pedro@codesourcery.com>
18857 * regcache.c (new_register_cache): Return NULL if the register
18858 cache size isn't known yet.
18859 (free_register_cache): Avoid dereferencing a NULL regcache.
18861 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
18863 * configure.srv: Merge MIPS and MIPS64.
18865 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
18867 * Makefile.in (uninstall): Apply $(EXEEXT) too.
18869 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
18871 * Makefile.in: Add required vsx dependencies.
18873 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
18874 Declare init_registers_powerpc_vsx32l.
18875 Declare init_registers_powerpc_vsx64l.
18876 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
18877 (ppc_arch_setup): Check for VSX in hwcap.
18878 (ppc_fill_vsxregset): New function.
18879 (ppc_store_vsxregset): New function.
18880 Add new VSX entry in regset_info target_regsets.
18882 * configure.srv: Add new VSX dependencies.
18884 2008-08-12 Pedro Alves <pedro@codesourcery.com>
18886 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
18887 (remote_open): Set or clear transport_is_reliable.
18888 (putpkt_binary): Don't expect acks in noack mode.
18889 (getpkt): Don't send ack/nac in noack mode.
18890 * server.c (handle_general_set): Handle QStartNoAckMode.
18891 (handle_query): If connected by tcp pass QStartNoAckMode+ in
18893 (main): Reset noack_mode on every connection.
18894 * server.h (noack_mode): Declare.
18896 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18898 * Makefile.in (GDBREPLAY_OBS): New variable.
18899 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
18901 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
18902 Daniel Jacobowitz <dan@codesourcery.com>
18904 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
18905 (usr_store_inferior_registers): Likewise.
18906 (regsets_store_inferior_registers): Likewise.
18908 2008-07-31 Rolf Jansen <rj@surtec.com>
18909 Pedro Alves <pedro@codesourcery.com>
18911 * configure.ac: Check for memmem declaration.
18912 * server.c [HAVE_MALLOC_H]: Include malloc.h.
18913 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
18914 (disable_packet_qfThreadInfo): Unconditionally compile.
18915 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
18916 * configure, config.in: Regenerate.
18918 2008-07-28 Doug Kwan <dougkwan@google.com>
18920 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
18921 (linux_write_memory): Remove declaration of errno.
18923 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
18925 * linux-low.c (handle_extended_wait): Do not use "status"
18926 variable uninitialized.
18928 2008-07-07 Pedro Alves <pedro@codesourcery.com>
18930 * server.c (handle_v_attach): Inhibit reporting dll changes.
18932 2008-06-27 Pedro Alves <pedro@codesourcery.com>
18934 * remote-utils.c (prepare_resume_reply): If requested, don't
18935 output "thread:TID" in the T stop reply.
18937 * server.c (disable_packet_vCont, disable_packet_Tthread)
18938 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
18939 (handle_query): If requested, disable support for qC, qfThreadInfo
18941 (handle_v_requests): If requested, disable support for vCont.
18942 (gdbserver_show_disableable): New.
18943 (main): Handle --disable-packet and --disable-packet=LIST.
18945 * server.h (disable_packet_vCont, disable_packet_Tthread)
18946 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
18948 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
18950 * server.c (gdbserver_usage): Mention --version.
18952 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
18954 * Makefile.in (gdbreplay.o): New rule.
18956 2008-06-06 Joseph Myers <joseph@codesourcery.com>
18958 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
18959 message, not gdbserver.
18961 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
18962 Nathan Sidwell <nathan@codesourcery.com>
18963 Joseph Myers <joseph@codesourcery.com>
18965 * acinclude.m4: Include ../../config/acx.m4.
18966 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
18967 * configure, config.in: Regenerate.
18968 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
18969 * server.c (gdbserver_version): Print PKGVERSION.
18970 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
18971 (main): Adjust gdbserver_usage calls.
18972 * gdbreplay.c (version, host_name): Add declarations.
18973 (gdbreplay_version, gdbreplay_usage): New.
18974 (main): Accept --version and --help options.
18976 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
18978 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
18979 (arm_breakpoint_at): Handle Thumb.
18980 (the_low_target): Add comment.
18982 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
18984 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
18986 2008-05-09 Doug Evans <dje@google.com>
18988 * server.h (decode_search_memory_packet): Declare.
18989 * remote-utils.c (decode_search_memory_packet): New fn.
18990 * server.c (handle_search_memory_1): New fn.
18991 (handle_search_memory): New fn.
18992 (handle_query): Process qSearch:memory packets.
18994 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
18996 * regcache.c (registers_length): Remove.
18997 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
18998 full register packet.
18999 * regcache.h (registers_length): Remove prototype.
19000 * server.h (PBUFSIZ): Define to 16384.
19002 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
19004 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
19005 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
19006 powerpc-64l.o, and powerpc-altivec64l.o.
19007 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
19008 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
19009 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
19010 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
19011 rs6000/power-linux.xml, and rs6000/power64-linux.xml
19014 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
19015 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
19016 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
19017 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
19018 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
19019 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
19020 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
19021 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
19022 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
19023 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
19026 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
19027 (init_registers_powerpc_32l): ... this new prototype.
19028 (init_registers_powerpc_32): Remove, replace by ...
19029 (init_registers_powerpc_altivec32l): ... this new prototype.
19030 (init_registers_powerpc_e500): Remove, replace by ...
19031 (init_registers_powerpc_e500l): ... this new prototype.
19032 (init_registers_ppc64): Remove, replace by ...
19033 (init_registers_powerpc_64l): ... this new prototype.
19034 (init_registers_powerpc_64): Remove, replace by ...
19035 (init_registers_powerpc_altivec64l): ... this new prototype.
19036 (ppc_num_regs): Set to 73.
19037 (PT_ORIG_R3, PT_TRAP): Define if necessary.
19038 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
19039 (ppc_cannot_store_register): Handle orig_r3 and trap.
19040 (ppc_arch_setup): Update init_registers_... calls.
19041 (ppc_fill_gregset): Handle orig_r3 and trap.
19043 * inferiors.c (clear_inferiors): Reset current_inferior.
19045 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
19047 * acinclude.m4: Add override.m4.
19048 * configure: Regenerate.
19050 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19052 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
19053 initial call to init_register_ppc64.
19055 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19057 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
19058 single powerpc*-*-linux* case.
19059 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
19061 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
19063 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
19064 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
19066 * linux-ppc-low.c: Include <elf.h>.
19067 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
19068 (ppc_hwcap): New global variable.
19069 (ppc_regmap): Remove __SPE__ #ifdef sections.
19070 (ppc_regmap_e500): New global variable.
19071 (ppc_cannot_store_register): Update __SPE__ special case.
19072 (ppc_get_hwcap): New function.
19073 (ppc_arch_setup): Use it to determine whether inferior supports
19074 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
19075 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
19076 Do not access registers if target does not support AltiVec.
19077 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
19078 Do not access registers if target does not support SPE.
19079 (target_regsets): Unconditionally include AltiVec and SPE regsets.
19081 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
19083 * linux-low.c (disabled_regsets, num_regsets): New.
19084 (use_regsets_p): Delete.
19085 (linux_wait_for_process): Clear disabled_regsets.
19086 (regsets_fetch_inferior_registers): Check and set it.
19087 (regsets_store_inferior_registers): Likewise.
19088 (linux_fetch_registers, linux_store_registers): Do not use
19090 (initialize_low): Allocate disabled_regsets.
19092 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
19094 * Makefile.in (LIBOBJS): New.
19095 (OBS): Use LIBOBJS.
19096 (memmem.o): New rule.
19097 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
19098 * configure: Regenerated.
19100 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
19102 * server.c (handle_query): Never return "unsupported" for
19103 qXfer:features:read queries.
19105 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
19107 * server.c (get_features_xml): Fix inverted condition.
19108 (handle_query): Always support qXfer:feature:read.
19110 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
19112 * server.c (wrapper_argv): New.
19113 (start_inferior): Handle wrapper_argv. If set, expect an extra
19115 (gdbserver_usage): Document --wrapper.
19116 (main): Parse --wrapper.
19118 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19120 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
19121 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
19122 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
19123 (ppc_set_pc): Likewise.
19124 (ppc_arch_setup): New function.
19125 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
19126 of collect_register.
19127 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
19129 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19131 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
19132 instead of linux-ppc64-low.o.
19133 * linux-ppc64-low.c: Remove file.
19134 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
19135 (linux-ppc64-low.o): Remove rule.
19137 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
19138 (init_registers_powerpc_64): Likewise.
19139 (ppc_regmap): Conditionally define depending on __powerpc64__.
19140 (ppc_cannot_store_register): Do not special-case "fpscr" when
19141 compiled on __powerpc64__.
19142 (ppc_collect_ptrace_register): New function.
19143 (ppc_supply_ptrace_register): New function.
19144 (ppc_breakpoint): Change type to "unsigned int".
19145 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
19146 (the_low_target): Conditionally provide initializers for the
19147 arch_setup member depending on __powerpc64__. Install
19148 collect_ptrace_register and supply_ptrace_register members.
19150 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19152 * regcache.h (gdbserver_xmltarget): Add extern declaration.
19153 * server.c (gdbserver_xmltarget): Define.
19154 (get_features_xml): Use it to replace "target.xml" and arch_string.
19156 * configure.srv: Remove srv_xmltarget. Add XML files that were
19157 mentioned there to srv_xmlfiles instead. Remove conditional tests
19158 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
19159 srv_xmlfiles and srv_regobj to include all possible choices.
19160 * configure.ac (srv_xmltarget): Remove.
19161 (srv_xmlfiles): Do not add "target.xml".
19162 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
19163 checks for supplementary target information.
19164 * configure: Regenerate.
19165 * Makefile.in (XML_TARGET): Remove.
19166 (target.xml): Remove rule.
19167 (clean): Do not clean up target.xml.
19168 (.PRECIOUS): Do not mention target.xml.
19170 * target.h (struct target_ops): Remove arch_string member.
19171 * linux-low.c (linux_arch_string): Remove.
19172 (linux_target_ops): Remove arch_string initializer.
19173 * linux-low.h (struct linux_target_ops): Remove arch_string member.
19174 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
19175 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
19176 * spu-low.c (spu_arch_string): Remove.
19177 (spu_target_ops): Remove arch_string initializer.
19178 * win32-low.c (win32_arch_string): Remove.
19179 (win32_target_ops): Remove arch_string initializer.
19180 * win32-low.h (struct win32_target_ops): Remove arch_string member.
19181 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
19182 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
19184 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19186 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
19187 by collect_ptrace_register and supply_ptrace_register hooks.
19188 * linux-low.c (fetch_register): Use supply_ptrace_register callback
19189 instead of checking for the_low_target.left_pad_xfer.
19190 (usr_store_inferior_registers): Use collect_ptrace_register callback
19191 instead of checking for the_low_target.left_pad_xfer.
19193 * linux-s390-low.c (s390_collect_ptrace_register): New function.
19194 (s390_supply_ptrace_register): Likewise.
19195 (s390_fill_gregset): Call s390_collect_ptrace_register.
19196 (the_low_target): Update.
19198 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
19199 (ppc_supply_ptrace_register): Likewise.
19200 (the_low_target): Update.
19202 * linux-i386-low.c (the_low_target): Update.
19203 * linux-x86-64-low.c (the_low_target): Update.
19205 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19207 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
19208 reg-s390.o and reg-s390x.o.
19210 * linux-low.c (new_inferior): New global variable.
19211 (linux_create_inferior, linux_attach): Set it.
19212 (linux_wait_for_process): Call the_low_target.arch_setup after the
19213 target has stopped for the first time.
19214 (initialize_low): Do not call the_low_target.arch_setup.
19216 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
19217 (s390_set_pc): Likewise.
19218 (s390_arch_setup): New function.
19219 (the_low_target): Use s390_arch_setup as arch_setup routine.
19221 * regcache.c (realloc_register_cache): New function.
19222 (set_register_cache): Call it for each existing regcache.
19224 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19226 * server.h (init_registers): Remove prototype.
19228 * linux-low.h (struct linux_target_ops): Add arch_setup field.
19229 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
19230 instead of init_registers ().
19231 * linux-arm-low.c (init_registers_arm): Add prototype.
19232 (init_registers_arm_with_iwmmxt): Likewise.
19233 (the_low_target): Add initializer for arch_setup field.
19234 * linux-cris-low.c (init_registers_cris): Add prototype.
19235 (the_low_target): Add initializer for arch_setup field.
19236 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
19237 (the_low_target): Add initializer for arch_setup field.
19238 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
19239 (the_low_target): Add initializer for arch_setup field.
19240 * linux-ia64-low.c (init_registers_ia64): Add prototype.
19241 (the_low_target): Add initializer for arch_setup field.
19242 * linux-m32r-low.c (init_registers_m32r): Add prototype.
19243 (the_low_target): Add initializer for arch_setup field.
19244 * linux-m68k-low.c (init_registers_m68k): Add prototype.
19245 (the_low_target): Add initializer for arch_setup field.
19246 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
19247 (init_registers_mips64_linux): Likewise.
19248 (the_low_target): Add initializer for arch_setup field.
19249 * linux-ppc-low.c (init_registers_ppc): Add prototype.
19250 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
19251 (the_low_target): Add initializer for arch_setup field.
19252 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
19253 (init_registers_powerpc_64): Likewise.
19254 (the_low_target): Add initializer for arch_setup field.
19255 * linux-s390-low.c (init_registers_s390): Add prototype.
19256 (init_registers_s390x): Likewise.
19257 (the_low_target): Add initializer for arch_setup field.
19258 * linux-sh-low.c (init_registers_sh): Add prototype.
19259 (the_low_target): Add initializer for arch_setup field.
19260 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
19261 (the_low_target): Add initializer for arch_setup field.
19262 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
19263 (the_low_target): Add initializer for arch_setup field.
19265 * win32-low.h (struct win32_target_ops): Add arch_setup field.
19266 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
19267 instead of init_registers ().
19268 * win32-arm-low.c (init_registers_arm): Add prototype.
19269 (the_low_target): Add initializer for arch_setup field.
19270 * win32-i386-low.c (init_registers_i386): Add prototype.
19271 (the_low_target): Add initializer for arch_setup field.
19273 * spu-low.c (init_registers_spu): Add prototype.
19274 (initialize_low): Call initialie_registers_spu () instead of
19275 initialize_registers ().
19277 2008-02-19 Pedro Alves <pedro@codesourcery.com>
19279 * server.c (handle_v_requests): When handling the vRun and vAttach
19280 packets, if already debugging a process, don't kill it. Return an
19283 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
19285 * server.c (handle_query): Correct length check.
19287 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
19289 * win32-low.c (do_initial_child_stuff): Add process handle
19290 parameter. Set current_process_handle and current_process_id from the
19291 parameters. Clear globals.
19292 (win32_create_inferior): Don't set current_process_handle and
19293 current_process_id here. Instead pass them on the call to
19294 do_initial_child_stuff.
19295 (win32_attach): Likewise.
19296 (win32_clear_inferiors): New.
19297 (win32_kill): Don't close the current process handle or the
19298 current thread handle here. Instead call win32_clear_inferiors.
19299 (win32_detach): Don't open a new handle to the process. Call
19300 win32_clear_inferiors.
19301 (win32_join): Don't rely on current_process_handle; open a new
19302 handle using the process id.
19303 (win32_wait): Call win32_clear_inferiors when the inferior process
19306 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
19308 * server.c (monitor_show_help): Add "exit".
19310 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
19312 * Makefile.in (SFILES): Add linux-xtensa-low.c.
19313 (clean): Add reg-xtensa.c.
19314 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
19315 * configure.srv (xtensa*-*-linux*) New target.
19316 * linux-xtensa-low.c: New.
19317 * xtensa-xtregs.c: New.
19319 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
19321 * hostio.c: Don't include errno.h.
19322 (errno_to_fileio_errno): Move to hostio-errno.
19323 * hostio.c: (hostio_error): Remove the error parameter. Defer the
19324 error number outputting to the target->hostio_last_error callback.
19325 (hostio_packet_error): Use FILEIO_EINVAL directly.
19326 (handle_open, handle_pread, hostio_error, handle_unlink): Update
19327 calls to hostio_error.
19328 * hostio-errno.c: New.
19329 * server.h (hostio_last_error_from_errno): Declare.
19330 * target.h (target_ops): Add hostio_last_error member.
19331 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
19332 as hostio_last_error handler.
19333 * spu-low.c (spu_target_ops): Likewise.
19334 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
19335 (wince_hostio_last_error): New functions.
19336 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
19337 as hostio_last_error handler.
19338 (win32_target_ops) [!_WIN32_WCE]: Register
19339 hostio_last_error_from_errno as hostio_last_error handler.
19340 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
19341 (hostio-errno.o): New rule.
19342 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
19343 * configure.srv (srv_hostio_err_objs): New variable. Default to
19345 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
19346 * configure: Regenerate.
19348 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
19350 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
19351 (linux_kill, linux_detach): Clean up the process list.
19352 * remote-utils.c (remote_open): Improve port number parsing.
19353 (putpkt_binary, input_interrupt): Only send interrupts if the target
19355 * server.c (extended_protocol): Make static.
19356 (attached): Define earlier.
19357 (exit_requested, response_needed, program_argv): New variables.
19358 (target_running): New.
19359 (start_inferior): Clear attached here.
19360 (attach_inferior): Set attached here.
19361 (require_running): Define.
19362 (handle_query): Use require_running and target_running. Implement
19364 (handle_v_attach, handle_v_run): New.
19365 (handle_v_requests): Use require_running. Handle vAttach and vRun.
19366 (gdbserver_usage): Update.
19367 (main): Redo argument parsing. Handle --debug and --multi. Handle
19368 --attach along with other options or after the port. Save
19369 program_argv. Support no initial program. Resynchronize
19370 communication with GDB after an error. Handle "monitor exit".
19371 Use require_running and target_running. Always allow the extended
19372 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
19373 restart in extended mode.
19374 * README: Refer to the GDB manual. Update --attach usage.
19376 2007-12-20 Andreas Schwab <schwab@suse.de>
19378 * linux-low.c (STACK_SIZE): Define.
19379 (linux_tracefork_child): Use it. Use __clone2 on ia64.
19380 (linux_test_for_tracefork): Likewise.
19382 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
19384 * linux-low.c (linux_wait_for_event): Update messages. Do not
19385 reinsert auto-delete breakpoints.
19386 * mem-break.c (struct breakpoint): Change return type of handler to
19388 (set_breakpoint_at): Update handler type.
19389 (reinsert_breakpoint_handler): Return 1 instead of calling
19391 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
19393 (check_breakpoints): Delete auto-delete breakpoints and return 2.
19394 * mem-break.h (set_breakpoint_at): Update handler type.
19395 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
19396 * win32-low.c (auto_delete_breakpoint): New.
19397 (get_child_debug_event): Use it.
19399 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
19401 * configure.ac: Check for pread and pwrite.
19402 * hostio.c (handle_pread): Fall back to lseek and read.
19403 (handle_pwrite): Fall back to lseek and write.
19404 * config.in, configure: Regenerated.
19406 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
19408 * server.c (myresume): Add own_buf argument.
19409 (main): Update calls.
19411 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
19413 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
19414 * remote-utils.c (remote_open): Do not call disable_async_io.
19415 (block_async_io): Delete.
19416 (unblock_async_io): Make static.
19417 (initialize_async_io): New.
19418 * server.c (handle_v_cont): Handle async I/O here.
19419 (myresume): Likewise. Move other common resume tasks here...
19420 (main): ... from here. Call initialize_async_io. Disable async
19421 I/O before the main loop.
19422 * server.h (initialize_async_io): Declare.
19423 (block_async_io, unblock_async_io): Delete prototypes.
19424 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
19426 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
19428 * remote-utils.c (readchar): Allow binary data in received messages.
19430 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
19432 * win32-low.c (attaching): New global.
19433 (win32_create_inferior): Clear the `attaching' global.
19434 (win32_attach): Set the `attaching' global.
19435 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
19436 attaching. Only set a breakpoint at the entry point if not
19439 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
19441 * server.c (main): Don't report dll events on the initial
19442 connection on attaches.
19444 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
19446 * server.c (main): Relax numerical bases supported for the pid of
19447 the --attach command line argument.
19449 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
19451 * win32-low.c (win32_attach): Call OpenProcess before
19452 DebugActiveProcess, not after. Add last error output to error
19455 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
19457 * win32-low.c (win32_get_thread_context)
19458 (win32_set_thread_context): New functions.
19459 (thread_rec): Use win32_get_thread_context.
19460 (continue_one_thread, win32_resume): Use win32_set_thread_context.
19461 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
19464 2007-12-03 Leo Zayas
19465 Pedro Alves <pedro_alves@portugalmail.pt>
19467 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
19469 (child_add_thread): Minor cleanup.
19470 (child_continue): Resume artificially suspended threads before
19471 calling ContinueDebugEvent.
19472 (suspend_one_thread): New.
19473 (fake_breakpoint_event): New.
19474 (get_child_debug_event): Change return type to int. Check here if
19475 gdb sent an interrupt request. If a soft interrupt was requested,
19476 fake a breakpoint event. Return 0 if there is no event to handle,
19478 (win32_wait): Don't check here if gdb sent an interrupt request.
19479 Ensure there is a valid event to handle.
19480 (win32_request_interrupt): Add soft interruption method as last
19483 2007-12-03 Leo Zayas
19484 Pedro Alves <pedro_alves@portugalmail.pt>
19486 * win32-low.h (win32_thread_info): Add descriptions to the
19487 structure members. Replace `suspend_count' counter by a
19489 * win32-low.c (thread_rec): Update condition of when to get the
19490 context from the inferior. Rely on ContextFlags being set if it
19491 has already been retrieved. Only suspend the inferior thread if
19492 we haven't already. Warn if that fails.
19493 (continue_one_thread): s/suspend_count/suspended/. Only call
19494 ResumeThread once. Warn if that fails.
19496 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
19498 * win32-low.c (win32_wait): Don't read from the inferior when it
19499 has already exited.
19501 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
19503 * Makefile.in (win32_low_h): New variable.
19504 (win32-low.o): Add dependency on $(win32_low_h).
19505 (win32-arm-low.o, win32-i386-low.o): New rules.
19507 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
19509 * hostio.c: Correct copyright year.
19511 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
19513 * Makefile.in (OBS): Add hostio.o.
19514 (hostio.o): New rule.
19515 * server.h (handle_vFile): Declare.
19516 * hostio.c: New file.
19517 * server.c (handle_v_requests): Take packet_len and new_packet_len
19518 for binary packets. Call handle_vFile.
19519 (main): Update call to handle_v_requests.
19521 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
19523 * linux-low.c: Include <sched.h>.
19525 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
19527 * linux-low.c (linux_tracefork_grandchild): New.
19528 (linux_tracefork_child): Use clone.
19529 (linux_test_for_tracefork): Use clone; allocate and free a stack.
19531 2007-10-31 Joel Brobecker <brobecker@adacore.com>
19533 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
19535 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
19537 * linux-low.c (handle_extended_wait): Handle unexpected signals.
19539 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
19541 * inferiors.c (change_inferior_id): Delete.
19542 (add_pid_to_list, pull_pid_from_list): New.
19543 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
19544 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
19545 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
19546 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
19547 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
19548 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
19549 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
19550 (using_threads): Always set to 1.
19551 (handle_extended_wait): New.
19552 (add_process): Do not set TID.
19553 (linux_create_inferior): Set must_set_ptrace_flags.
19554 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
19555 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
19556 (linux_thread_alive): Rename TID argument to LWPID.
19557 (linux_wait_for_process): Handle unknown processes. Do not use TID.
19558 (linux_wait_for_event): Do not use TID or check using_threads. Update
19559 call to dead_thread_notify. Call handle_extended_wait.
19560 (linux_create_inferior): Use PTRACE_SETOPTIONS.
19561 (send_sigstop): Delete sigstop_sent.
19562 (wait_for_sigstop): Avoid TID.
19563 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
19564 (linux_test_for_tracefork): New.
19565 (linux_lookup_signals): Use thread_db_active and
19566 linux_supports_tracefork_flag.
19567 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
19568 * linux-low.h (get_process_thread): Avoid TID.
19569 (struct process_ifo): Move thread_known and tid to the end. Remove
19571 (linux_attach_lwp, thread_db_init): Update prototypes.
19572 * server.h (change_inferior_id): Delete prototype.
19573 (add_pid_to_list, pull_pid_from_list): New prototypes.
19574 * thread-db.c (thread_db_use_events): New.
19575 (find_first_thread): Rename to...
19576 (find_one_thread): ...this. Update callers and messages. Do not
19577 call fatal. Check thread_db_use_events. Do not call
19578 change_inferior_id or new_thread_notify.
19579 (maybe_attach_thread): Update. Do not call new_thread_notify.
19580 (thread_db_init): Set thread_db_use_events. Check use_events.
19581 * utils.c (fatal, warning): Correct message prefix.
19583 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
19585 * Makefile.in (clean): Remove new files.
19586 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
19587 (powerpc-64.o, powerpc-64.c): New rules.
19588 * configure.srv: Use alternate register sets for powerpc64-*-linux*
19589 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
19591 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
19593 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
19594 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
19595 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
19596 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
19597 (target_regsets): Add AltiVec and SPE register sets.
19598 * configure.ac: Check for AltiVec and SPE.
19599 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
19600 (ppc_fill_vrregset, ppc_store_vrregset): New.
19601 (target_regsets): Add AltiVec register set.
19602 * configure: Regenerated.
19604 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
19606 * linux-low.c (O_LARGEFILE): Define.
19607 (linux_read_memory): Use /proc/PID/mem.
19608 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
19609 * configure, config.in: Regenerated.
19611 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
19613 * linux-low.c (linux_wait_for_event): Do not pass signals while
19616 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
19618 * win32-low.c (create_process): New.
19619 (win32_create_inferior): Use create_process instead of
19620 CreateProcess. If create_process failed retry appending an ".exe"
19621 suffix. Store the GetLastError result immediatelly after
19622 create_process calls and use it on the call to error.
19624 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
19626 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
19628 2007-08-23 Joel Brobecker <brobecker@adacore.com>
19630 * configure.ac: Switch license to GPLv3.
19632 2007-08-01 Michael Snyder <msnyder@access-company.com>
19634 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
19636 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
19638 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
19640 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
19641 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
19642 CloseToolhelp32Snapshot.
19643 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
19644 CloseToolhelp32Snapshot.
19646 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
19648 * server.c (main): Check for inferior exit before main loop.
19650 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
19652 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
19653 instead of on tmp_desc.
19655 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
19656 Daniel Jacobowitz <dan@codesourcery.com>
19658 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
19659 (add_thread): Minor cleanups.
19660 (clear_inferiors): Move lower in the file. Clear the DLL
19662 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
19663 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
19664 (xml_escape_text): New.
19665 * server.c (handle_query): Handle qXfer:libraries:read. Report it
19667 (handle_v_cont): Report errors.
19668 (gdbserver_version): Update.
19669 (main): Correct size of own_buf. Do not report initial DLL events.
19670 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
19671 (unloaded_dll, xml_escape_text): New.
19672 * win32-low.c (enum target_waitkind): Update comments.
19673 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
19674 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
19675 (win32_EnumProcessModules, win32_GetModuleInformation)
19676 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
19677 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
19678 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
19679 (win32_Module32First, win32_Module32Next, load_toolhelp)
19680 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
19681 (get_child_debug_event): Handle DLL events.
19682 (win32_wait): Likewise.
19684 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
19686 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
19687 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
19689 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
19691 * win32-low.c (handle_output_debug_string): Ignore event if not
19694 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
19696 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
19698 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
19700 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
19702 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
19704 * inferiors.c (change_inferior_id): Add comment.
19705 * linux-low.c (check_removed_breakpoint): Add an early
19706 prototype. Improve debug output.
19707 (linux_attach): Doc update.
19708 (linux_detach_one_process, linux_detach): Clean up before releasing
19710 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
19711 * linux-low.h (struct process_info): Doc improvement.
19712 * mem-break.c (delete_all_breakpoints): New.
19713 * mem-break.h (delete_all_breakpoints): New prototype.
19714 * thread-db.c (find_first_thread): New.
19715 (thread_db_create_event): Call it instead of
19716 thread_db_find_new_threads. Clean up unused variables.
19717 (maybe_attach_thread): Remove first thread handling.
19718 (thread_db_find_new_threads): Use find_first_thread.
19719 (thread_db_get_tls_address): Likewise.
19721 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
19723 * thread-db.c (thread_db_find_new_threads): Add prototype.
19724 (thread_db_create_event): Check for the main thread before adding
19726 (maybe_attach_thread): Only enable event reporting if TID == 0.
19727 (thread_db_get_tls_address): Check for new threads.
19729 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
19731 * linux-low.c (linux_create_inferior): Try execv before execvp.
19732 * spu-low.c (spu_create_inferior): Likewise.
19734 2007-06-13 Mike Frysinger <vapier@gentoo.org>
19736 * linux-low.c (linux_create_inferior): Change execv to execvp.
19737 * spu-low.c (spu_create_inferior): Likewies.
19739 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
19741 * Makefile.in (clean): Clean new files instead of deleted ones.
19742 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
19743 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
19745 * configure.srv: Specify XML files and new regformats for MIPS and
19747 * linux-mips-low.c (mips_num_regs): Set to only used registers.
19748 (mips_regmap): Do not fetch $0. Remove unused registers. Add
19749 an entry for the restart register.
19750 (mips_cannot_fetch_register, mips_cannot_store_register)
19751 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
19752 register names to match the XML descriptions.
19753 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
19754 restart register instead of $0.
19756 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
19757 Markus Deuling <deuling@de.ibm.com>
19759 * remote-utils.c (decode_xfer_write): New function.
19760 * server.h (decode_xfer_write): Add prototype.
19761 * server.c (handle_query): Add PACKET_LEN argument. Support
19762 qXfer:spu:read and qXfer:spu:write packets.
19763 (main): Pass packet_len to handle_query.
19764 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
19765 * target.h (target_ops): Add qxfer_spu.
19767 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
19769 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
19770 accessing non-seekable spufs files.
19772 2007-05-16 Markus Deuling <deuling@de.ibm.com>
19774 * server.c (handle_query): Add reply for qC packet.
19776 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
19777 Leo Zayas <lerele@champenstudios@com>
19779 * server.h (check_remote_input_interrupt_request): New function.
19780 * remote_utils.c (INVALID_DESCRIPTOR): New define.
19781 (remote_desc): Initialize with INVALID_DESCRIPTOR.
19782 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
19783 (check_remote_input_interrupt_request): New function.
19784 * server.h (check_remote_input_interrupt_request): Declare.
19785 * win32-low.c (winapi_DebugBreakProcess,
19786 winapi_GenerateConsoleCtrlEvent): New typedefs.
19787 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
19789 (win32_wait): Check for remote interrupt request
19790 with check_remote_input_interrupt_request.
19791 (win32_request_interrupt): New function.
19792 (win32_target_op): Set request_interrupt to win32_request_interrupt.
19794 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
19796 * win32-low.c (debug_registers_changed,
19797 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
19798 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
19799 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
19800 (thread_rec): Get context using the low target.
19801 (child_add_thread): Call thread_added on the low target,
19802 which does the same thing.
19804 (do_initial_child_stuff): Remove debug registers references.
19805 Set context using the low target. Resume threads after
19806 setting the contexts.
19807 (child_continue): Remove dead variable. Remove debug
19808 registers references.
19809 (child_fetch_inferior_registers): Go through the low target.
19810 (do_child_store_inferior_registers): Remove.
19811 (child_store_inferior_registers): Go through the low target.
19812 (win32_resume): Remove debug registers references.
19813 Set context using the low target.
19814 (handle_exception): Change return type to void. Don't record
19815 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
19816 first chance exception.
19817 (get_child_debug_event): Change return type to void. Remove
19818 goto loop. Always return after waiting for debug event.
19819 (win32_wait): Convert to switch statement. Handle spurious
19822 * win32-i386-low.c (debug_registers_changed,
19823 debug_registers_used): New.
19824 (initial_stuff): Rename to ...
19825 (i386_initial_stuff): ... this. Clear debug registers
19827 (store_debug_registers): Delete.
19828 (i386_get_thread_context): New.
19829 (load_debug_registers): Delete.
19830 (i386_set_thread_context): New.
19831 (i386_thread_added): New.
19832 (single_step): Rename to ...
19833 (i386_single_step): ... this.
19834 (do_fetch_inferior_registers): Rename to ...
19835 (i386_fetch_inferior_register): ... this.
19836 (i386_store_inferior_register): New.
19837 (the_low_target): Adapt to new interface.
19839 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
19840 (arm_get_thread_context): New.
19841 (arm_set_thread_context): New.
19843 (do_fetch_inferior_registers): Rename to ...
19844 (arm_fetch_inferior_register): ... this.
19845 (arm_store_inferior_register): New.
19846 (arm_wince_breakpoint): Reimplement as unsigned long.
19847 (arm_wince_breakpoint_len): Define.
19848 (the_low_target): Adapt to new interface.
19850 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
19851 load_debug_registers. Add get_thread_context, set_thread_context,
19852 thread_added and store_inferior_register. Rename
19853 fetch_inferior_registers to fetch_inferior_register.
19854 (regptr): Remove declaration.
19856 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
19858 * linux-low.c (linux_detach): Change return type to int. Return 0.
19859 * spu-low.c (spu_detach): Likewise.
19861 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
19863 * target.h (target_ops): Change return type of detach to int.
19865 (join_inferior): New.
19866 * server.c (main): Don't skip detach support on mingw32.
19867 If the inferior doesn't support detaching return error.
19868 Call join_inferior instead of using waitpid.
19869 * linux-low.c (linux_join): New.
19870 (linux_target_op): Add linux_join.
19871 * spu-low.c (spu_join): New.
19872 (spu_target_ops): Add spu_join.
19873 * win32-low.c (win32_detach): Adapt to new interface.
19874 Reopen current_process_handle before detaching. Issue a child
19875 resume before detaching.
19877 (win32_target_op): Add win32_join.
19879 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
19881 * win32-low.c (win32-attach): Fix return value.
19882 * target.h (target_ops): Describe ATTACH return values.
19884 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
19886 * win32-low.c (GETPROCADDRESS): Define.
19887 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
19888 (winapi_DebugSetProcessKillOnExit): Likewise.
19889 (win32_create_inferior): Force usage of ansi CreateProcessA.
19890 (win32_attach): Use GETPROCADDRESS.
19891 (win32_detach): Likewise.
19893 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
19895 * win32-low.c (win32_wait): Don't use WSTOPSIG.
19897 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
19899 * win32-low.c: Commit leftover changes from 2007-03-29.
19901 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
19903 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
19904 fields short instead of int. Add explicit padding.
19905 (i387_cache_to_fsave): Remove unnecessary casts.
19906 (i387_fsave_to_cache): Doc fix.
19907 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
19909 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
19911 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
19912 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
19914 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
19916 * configure.srv (arm*-*-mingw32ce*): Move near the other
19919 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
19921 * configure.ac: Add errno checking.
19922 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
19923 sys/file.h and malloc.h.
19924 (AC_CHECK_DECLS): Add perror.
19925 (srv_mingwce): Handle.
19926 * configure.srv (i[34567]86-*-cygwin*): Add
19927 win32-i386-low.o to srv_tgtobj.
19928 (i[34567]86-*-mingw*): Likewise.
19929 (arm*-*-mingw32ce*): Add case.
19930 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
19931 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
19932 [__MINGW32CE__] (strerror): New function.
19933 [__MINGW32CE__] (errno): Define to GetLastError.
19934 [__MINGW32CE__] (COUNTOF): New macro.
19935 (remote_open): Remove extra close call.
19936 * mem-break.c (delete_breakpoint_at): New function.
19937 * mem-break.h (delete_breakpoint_at): Declare.
19938 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
19939 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
19940 [USE_WIN32API] (read, write): Add char* casts.
19941 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
19942 * server.h: Include wincecompat.h on Windows CE.
19943 [HAVE_ERRNO_H]: Check.
19944 (perror): Declare if not declared.
19945 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
19946 (perror_with_name): Remove errno declaration.
19947 * wincecompat.h: New.
19948 * wincecompat.c: New.
19949 * win32-low.h: New.
19950 * win32-arm-low.c: New.
19951 * win32-i386-low.c: New.
19952 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
19953 (OUTMSG2): Make it safe.
19955 (COUNTOF): New macro.
19956 (NUM_REGS): Get it from the low target.
19957 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
19958 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
19959 (thread_rec): Let low target handle debug registers.
19960 (child_add_thread): Likewise.
19961 (child_init_thread_list): Likewise.
19962 (continue_one_thread): Likewise.
19964 (do_child_fetch_inferior_registers): Move to ...
19965 * win32-i386-low.c: ... here, and rename to ...
19966 (do_fetch_inferior_registers): ... this.
19967 * win32-low.c (child_fetch_inferior_registers):
19968 Go through the low target.
19969 (do_child_store_inferior_registers): Use regptr.
19970 (strwinerror): New function.
19971 (win32_create_inferior): Handle Windows CE.
19972 Use strwinerror instead of strerror on Windows error
19973 codes. Add program to the error output.
19974 Don't close the main thread handle on Windows CE.
19975 (win32_attach): Use coredll.dll on Windows CE.
19976 (win32_kill): Close current process and current
19978 (win32_detach): Use coredll.dll on Windows CE.
19979 (win32_resume): Let low target handle debug registers, and
19981 (handle_exception): Add/Remove initial breakpoint. Avoid
19982 non-existant WSTOPSIG on Windows CE.
19983 (win32_read_inferior_memory): Cast to remove warning.
19984 (win32_arch_string): Go through the low target.
19985 (initialize_low): Call set_breakpoint_data with the low
19986 target's breakpoint.
19987 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
19988 FOP_REGNUM, mappings): Move to ...
19989 * win32-i386-low.c: ... here.
19990 * win32-low.c (win32_thread_info): Move to ...
19991 * win32-low.h: ... here.
19992 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
19993 win32-arm-low.c and wincecompat.c.
19994 (all:): Add $EXEEXT.
19995 (install-only:): Likewise.
19996 (gdbserver:): Likewise.
19997 (gdbreplay:): Likewise.
19998 * config.in: Regenerate.
19999 * configure: Regenerate.
20001 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20003 * win32-low.c: Rename typedef thread_info to
20004 win32_thread_info throughout.
20006 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20008 * win32-i386-low.c: Rename to ...
20009 * win32-low.c: ... this.
20010 * configure.srv: Replace win32-i386-low.o with win32-low.o.
20011 * Makefile.in: Likewise.
20013 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
20015 * remote-utils.c (monitor_output): Constify msg parameter.
20016 * server.h (monitor_output): Likewise.
20017 * win32-i386-low.c (handle_output_debug_string): New.
20018 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
20019 handle_output_debug_string.
20020 (get_child_debug_event): Likewise.
20022 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
20024 * server.c (main): Correct strtoul check.
20026 2007-03-27 Jon Ringle <jon@ringle.org>
20028 * linux-low.c: Check __ARCH_HAS_MMU__ also.
20030 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
20032 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
20034 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
20036 * terminal.h: Check HAVE_SGTTY_H.
20038 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
20040 * remote-utils.c (remote_open): Print out the assigned port number.
20042 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
20044 * remote-utils.c (monitor_output): New function.
20045 * server.c (debug_threads): Define here.
20046 (monitor_show_help): New function.
20047 (handle_query): Handle qRcmd.
20048 (main): Do not handle 'd' packet.
20049 * server.h (debug_threads, remote_debug, monitor_output): Declare.
20050 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
20053 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20055 * Makefile.in (EXEEXT): New.
20056 (clean): Use $(EXEEXT).
20058 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20060 * target.h (target_ops): Rename send_signal to request_interrupt,
20061 and remove enum target_signal parameter.
20062 * linux-low.c (linux_request_interrupt): Rename from
20063 linux_send_signal, and always send SIGINT.
20064 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
20065 and always send SIGINT.
20066 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
20068 (input_interrupt): Likewise.
20070 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20072 * server.c (get_features_xml): Check if target implemented
20074 * win32-i386-low.c (win32_arch_string): New.
20075 (win32_target_ops): Add win32_arch_string as arch_string member.
20077 2007-02-22 Markus Deuling <deuling@de.ibm.com>
20079 * spu-low.c (spu_arch_string): New.
20080 (spu_target_ops): Add spu_arch_string.
20082 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
20084 * remote-utils.c: Remove HAVE_TERMINAL_H check.
20085 * configure.ac: Do not check for terminal.h.
20086 * configure, config.in: Regenerated.
20088 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
20090 * Makefile.in (OBS): Add $(XML_BUILTIN).
20091 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
20093 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
20094 (arm-with-iwmmxt.c): New.
20095 * config.in, configure: Regenerate.
20096 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
20097 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
20098 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
20099 (arm*-*-linux*): Add iWMMXt and regset support.
20100 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
20101 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
20102 (arm_store_wmmxregset, target_regsets): New.
20103 * server.c (get_features_xml): Take annex argument. Check builtin
20105 (handle_query): Handle multiple annexes.
20107 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20109 * remote-utils.c [USE_WIN32API] (read, write): Define.
20110 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
20113 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
20115 * linux-i386-low.c (the_low_target): Set arch_string.
20116 * linux-x86-64-low.c (the_low_target): Likewise.
20117 * linux-low.c (linux_arch_string): New.
20118 (linux_target_ops): Add it.
20119 * linux-low.h (struct linux_target_ops): Add arch_string.
20120 * server.c (write_qxfer_response): Use const void * for DATA.
20121 (get_features_xml): New.
20122 (handle_query): Handle qXfer:features:read. Report it for qSupported.
20123 * target.h (struct target_ops): Add arch_string method.
20125 2007-01-03 Denis Pilat <denis.pilat@st.com>
20126 Daniel Jacobowitz <dan@codesourcery.com>
20128 * linux-low.c (linux_kill): Handle being called with no threads.
20129 * win32-i386-low.c (win32_kill): Likewise.
20130 (get_child_debug_event): Clear current_process_handle.
20132 2006-12-30 Denis PILAT <denis.pilat@st.com>
20133 Daniel Jacobowitz <dan@codesourcery.com>
20135 * remote-utils.c (remote_open): Check the type of specified
20136 serial port devices before opening them.
20137 * server.c (main): Kill the inferior if an error occurs during
20138 the first remote_open.
20140 2006-12-05 Markus Deuling <deuling@de.ibm.com>
20142 * README: Update supported targets.
20144 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
20146 * Makefile.in (clean): Remove reg-mips64.c.
20147 (reg-mips64.c, reg-mips64.o): New rules.
20148 * configure.srv: Handle mips64. Include regset support for mips.
20149 * linux-mips-low.c (union mips_register): New.
20150 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
20151 (mips_breakpoint, mips_breakpoint_at): Use int.
20152 (mips_collect_register, mips_supply_register)
20153 (mips_collect_register_32bit, mips_supply_register_32bit)
20154 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
20155 (mips_store_fpregset, target_regsets): New.
20156 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
20158 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
20160 * configure.srv: Add target "spu*-*-*".
20161 * Makefile.in (clean): Remove reg-spu.c.
20162 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
20163 * spu-low.c: New file.
20165 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
20167 * configure.ac: Correct td_thr_tls_get_addr test.
20168 * configure: Regenerated.
20170 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
20172 * linux-low.c (linux_wait_for_event): Reformat. Use the
20173 pass_signals array.
20174 * remote-utils.c (decode_address_to_semicolon): New.
20175 * server.c (pass_signals, handle_general_set): New.
20176 (handle_query): Mention QPassSignals for qSupported.
20177 (main): Call handle_general_set.
20178 * server.h (pass_signals, decode_address_to_semicolon): New.
20180 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
20182 * server.c (handle_query): Correct error handling for read_auxv.
20184 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
20186 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
20187 and srv_linux_thread_db to yes.
20188 * linux-s390-low.c (s390_fill_gregset): New function.
20189 (target_regsets): Define data structure.
20191 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
20193 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
20194 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
20195 * config.in, configure: Regenerated.
20196 * inferiors.c (gdb_id_to_thread): New function.
20197 (gdb_id_to_thread_id): Use it.
20198 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
20199 * linux-low.h (struct process_info): Add th member.
20200 (thread_db_get_tls_address): New prototype.
20201 * remote-utils.c (decode_address): Make non-static.
20202 * server.c (handle_query): Handle qGetTLSAddr.
20203 * server.h (gdb_id_to_thread, decode_address): New prototypes.
20204 * target.h (struct target_ops): Add get_tls_address.
20205 * thread-db.c (maybe_attach_thread): Save the thread handle.
20206 (thread_db_get_tls_address): New.
20208 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
20210 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
20211 (linux_resume_one_process): Take a siginfo_t *. Update all
20212 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
20213 (struct pending_signals): Add a siginfo_t.
20214 (linux_wait_for_process): Always set last_status.
20215 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
20216 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
20217 * linux-low.h (struct process_info): Add last_status.
20219 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
20221 * remote-utils.c (try_rle): New function.
20222 (putpkt_binary): Use it.
20224 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
20226 * Makefile.in (clean): Clean reg-x86-64-linux.c.
20227 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
20228 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
20229 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
20230 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
20233 2006-08-08 Richard Sandiford <richard@codesourcery.com>
20235 * server.c (terminal_fd): New variable.
20236 (old_foreground_pgrp): Likewise.
20237 (restore_old_foreground_pgrp): New function.
20238 (start_inferior): Record the terminal file descriptor in terminal_fd
20239 and its original foreground group in old_foreground_pgrp. Register
20240 restore_old_foreground_pgrp with atexit().
20242 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
20244 * server.c (handle_query): Correct qPart to qXfer.
20246 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
20248 * configure.ac: Check for more headers which are missing on
20249 Windows. Automatically supply -lwsock32 and USE_WIN32API.
20250 * configure.srv: Add Cygwin and mingw32.
20251 * remote-utils.c: Don't include headers unconditionally which
20252 are missing on mingw32. Include <winsock.h> for mingw32.
20253 (remote_open): Adjust for mingw32 support. Flush
20254 standard error after writing to it.
20255 (remote_close, putpkt_binary, input_interrupt, block_async_io)
20256 (unblock_async_io, enable_async_io, disable_async_io)
20257 (readchar, getpkt): Update for Winsock support.
20258 (prepare_resume_reply): Expect a protocol signal number.
20259 * server.c: Disable <sys/wait.h> on mingw32.
20260 (start_inferior): Adjust for mingw32 support. Flush
20261 standard error after writing to it.
20262 (attach_inferior): Likewise. Use protocol signal
20264 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
20266 * win32-i386-low.c: New file.
20267 * Makefile.in (XM_CLIBS): Set.
20268 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
20269 (win32-i386-low.o): New dependency rule.
20270 * linux-low.c (linux_wait): Use target signal numbers.
20271 * target.h (struct target_ops): Doc fix.
20272 * server.h (target_signal_to_name): New prototype.
20273 * gdbreplay.c: Don't include headers unconditionally which
20274 are missing on mingw32. Include <winsock.h> for mingw32.
20275 (remote_close, remote_open): Adjust for Winsock support.
20276 * configure, config.in: Regenerated.
20278 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20280 * server.c (decode_xfer_read, write_qxfer_response): New.
20281 (handle_query): Take a packet length argument. Handle
20282 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
20283 the qSupported response.
20284 (main): Update call to handle_query.
20286 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
20288 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
20289 (putpkt_binary): Renamed from putpkt and adjusted for binary
20291 (putpkt): New wrapper for putpkt_binary.
20292 (readchar): Don't mask off the high bit.
20293 (decode_X_packet): New function.
20294 * server.c (main): Call putpkt_binary if a handler sets the packet
20295 length. Save the length of the incoming packet. Handle 'X'.
20296 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
20298 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
20300 * server.c (handle_query): Handle qSupported.
20302 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
20304 * remote-utils.c (all_symbols_looked_up): New variable.
20305 (look_up_one_symbol): Check it.
20306 * server.h (look_up_one_symbol): New declaration.
20307 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
20309 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
20311 * Makefile.in (linux-arm-low.o): Update dependencies.
20312 * linux-arm-low.c: Include "gdb_proc_service.h".
20313 (PTRACE_GET_THREAD_AREA): Define.
20314 (ps_get_thread_area): New function.
20316 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
20318 * configure.srv (m68k*-*-uclinux*): New target.
20319 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
20320 (linux_resume_one_process): Remove extraneous cast.
20321 (linux_read_offsets): New.
20322 (linux_target_op): Add linux_read_offsets on mmuless systems.
20323 * server.c (handle_query): Add qOffsets logic.
20324 * target.h (struct target_ops): Add read_offsets.
20326 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
20328 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
20329 (PTRACE_GET_THREAD_AREA): Define.
20330 (ps_get_thread_area): New function.
20331 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
20332 (linux-x86-64-low.o): Update.
20334 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
20336 * configure.ac: Remove checks for prfpregset_t.
20337 * gdb_proc_service.h: New file.
20338 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
20339 new "gdb_proc_service.h".
20340 * proc-service.c: Likewise.
20341 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
20342 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
20343 * Makefile.in (gdb_proc_service_h): Updated.
20344 * configure, config.in: Regenerated.
20346 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
20348 * remote-utils.c (prepare_resume_reply): Move declaration
20349 of gdb_id_from_wait to the top of the block.
20351 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
20353 * linux-low.c (regsets_store_inferior_registers): Read the regset
20354 from the target before filling it.
20356 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
20358 * server.c (attach_inferior): Return SIGTRAP for a successful
20361 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
20363 * Makefile.in (OBS): Add version.o.
20364 (STAGESTUFF): Delete.
20365 (version.o): Add dependencies.
20366 (version.c): Replace rule.
20367 (clean): Remove version.c.
20368 * server.c (gdbserver_version): New.
20369 (gdbserver_usage): Use printf.
20370 (main): Handle --version and --help.
20371 * server.h (version, host_name): Add declarations.
20373 2005-12-23 Eli Zaretskii <eliz@gnu.org>
20385 * linux-x86-64-low.c:
20387 * linux-s390-low.c:
20388 * linux-ppc64-low.c:
20390 * linux-mips-low.c:
20391 * linux-m68k-low.c:
20392 * linux-m32r-low.c:
20395 * linux-ia64-low.c:
20396 * linux-i386-low.c:
20397 * linux-crisv32-low.c:
20409 * gdbserver.1: Add (C) after Copyright. Update the FSF
20412 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
20414 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
20415 (arm_breakpoint_at): Recognize both breakpoints.
20416 (the_low_target): Use the correct breakpoint instruction.
20418 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
20420 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
20421 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
20422 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
20423 (the_low_target): Update.
20425 2005-10-25 Andreas Schwab <schwab@suse.de>
20427 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
20429 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
20430 (ia64_num_regs): Reduce to 462.
20432 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
20434 * acinclude.m4: Correct quoting.
20435 * aclocal.m4: Regenerated.
20437 Suggested by SZOKOVACS Robert <szo@ies.hu>:
20438 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
20439 (thread_db_init): Call thread_db_err_str.
20440 * configure.ac: Check for TD_VERSION.
20441 * config.in, configure: Regenerated.
20443 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20445 * server.h (error, fatal, warning): Add ATTR_FORMAT.
20447 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
20449 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
20450 is not available. Define HAVE_PTRACE_GETREGS if it is.
20451 * config.in, configure: Regenerated.
20452 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
20453 * linux-i386-low.c, linux-m68k-low.c: Update to use
20454 HAVE_PTRACE_GETREGS.
20455 * linux-low.c (regsets_fetch_inferior_registers)
20456 (regsets_store_inferior_registers): Only return 0 if we processed
20458 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
20459 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
20461 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
20463 * inferiors.c (struct thread_info): Add gdb_id.
20464 (add_thread): Add gdb_id argument.
20465 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
20466 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
20467 calls to add_thread.
20468 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
20469 * server.c (handle_query): Use thread_to_gdb_id.
20470 (handle_v_cont, main): Use gdb_id_to_thread_id.
20471 * server.h (add_thread): Update prototype.
20472 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
20475 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
20477 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
20478 left-padded registers.
20479 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
20480 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
20482 2005-07-01 Steve Ellcey <sje@cup.hp.com>
20484 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
20485 * configure: Regenerate.
20486 * config.in: Regenerate.
20487 * server.h (NEED_DECLARATION_STRERROR):
20488 Replace with !HAVE_DECL_STRERROR.
20490 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
20492 * linux-low.c (linux_wait, linux_send_signal): Don't test
20493 an unsigned long variable for > 0 if it could be MAX_ULONG.
20494 * server.c (myresume): Likewise.
20495 * target.c (set_desired_inferior): Likewise.
20497 2005-06-13 Mark Kettenis <kettenis@gnu.org>
20499 * configure.ac: Simplify and improve check for socklen_t.
20500 * configure, config.in: Regenerate.
20502 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
20504 * acconfig.h: Remove.
20505 * configure.ac: Add a test for socklen_t. Use three-argument
20506 AC_DEFINE throughout.
20507 * config.in: Regenerated using autoheader 2.59.
20508 * configure: Regenerated.
20510 * gdbreplay.c (socklen_t): Provide a default.
20511 (remote_open): Use socklen_t.
20512 * remote-utils.c (socklen_t): Provide a default.
20513 (remote_open): Use socklen_t.
20514 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
20517 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
20519 * linux-low.c (linux_read_memory, linux_write_memory)
20520 (linux_read_auxv): Likewise.
20521 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
20522 (check_mem_write): Likewise.
20523 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
20525 * regcache.c (struct inferior_rgcache_data, registers_to_string)
20526 (registers_from_string, register_data): Likewise.
20527 * server.c (handle_query, main): Likewise.
20528 * server.h (convert_ascii_to_int, convert_int_to_ascii)
20529 (decode_M_packet): Likewise.
20530 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
20531 * target.h (struct target_ops): Update read_memory, write_memory,
20533 (read_inferior_memory, write_inferior_memory): Update.
20534 * linux-low.h (struct linux_target_ops): Change type of breakpoint
20535 to unsigned char *.
20536 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
20537 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
20538 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
20539 linux-s390-low.c, linux-sh-low.c: Update for changes in
20540 read_inferior_memory and the_low_target->breakpoint.
20542 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
20544 * Makefile.in (SFILES): Add linux-ppc64-low.c.
20545 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
20546 * configure.srv: Add powerpc64-*-linux*.
20547 * linux-ppc64-low.c: New file.
20549 2005-05-23 Orjan Friberg <orjanf@axis.com>
20551 * linux-cris-low.c: New file with support for CRIS.
20552 * linux-crisv32-low.c: Ditto for CRISv32.
20553 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
20554 (clean): Add reg-cris.c and reg-crisv32.c.
20555 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
20556 reg-crisv32.o, and reg-crisv32.c to make rules.
20557 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
20558 recognized targets.
20560 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
20562 * linux-low.c (fetch_register): Ensure buffer size is a multiple
20563 of sizeof (PTRACE_XFER_TYPE).
20564 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
20566 2005-05-12 Orjan Friberg <orjanf@axis.com>
20568 * target.h (struct target_ops): Add insert_watchpoint,
20569 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
20570 pointers for hardware watchpoint support.
20571 * linux-low.h (struct linux_target_ops): Ditto.
20572 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
20573 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
20574 to linux_target_ops.
20575 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
20577 * server.c (main): Recognize 'Z' and 'z' packets.
20579 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
20581 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
20582 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
20583 (the_low_target): Add new members.
20585 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
20587 * proc-service.c (ps_lgetregs): Search all_processes instead of
20590 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
20592 * server.c (start_inferior): Change return type to int.
20593 (attach_inferior): Change sigptr to int *.
20594 (handle_v_cont, handle_v_requests): Change signal to int *.
20595 (main): Change signal to int.
20597 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
20599 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
20600 * configure.srv: Add m32r*-*-linux*.
20601 * linux-m32r-low.c: New file.
20603 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
20605 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
20607 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
20609 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
20610 Take unsigned long arguments for PIDs.
20611 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
20612 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
20613 (wait_for_sigstop, linux_resume_one_process)
20614 (regsets_fetch_inferior_registers, linux_send_signal)
20615 (linux_read_auxv): Likewise. Update the types of variables holding
20616 PIDs. Update format string specifiers.
20617 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
20618 * remote-utils.c (prepare_resume_reply): Likewise.
20619 * server.c (cont_thread, general_thread, step_thread)
20620 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
20622 (handle_query): Update format specifiers.
20623 (handle_v_cont, main): Use strtoul for thread IDs.
20624 * server.h (struct inferior_list_entry): Use unsigned long for ID.
20625 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
20626 (general_thread, step_thread, thread_from_wait)
20627 (old_thread_from_wait): Update.
20628 * target.h (struct thread_resume): Use unsigned long for THREAD.
20629 (struct target_ops): Use unsigned long for arguments to attach and
20632 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
20634 * acinclude.m4: Include bfd/bfd.m4 directly.
20635 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
20636 <agriffis@toolchain.org>.
20637 * aclocal.m4, configure: Regenerated.
20639 2005-01-07 Andrew Cagney <cagney@gnu.org>
20641 * configure.ac: Rename configure.in, require autoconf 2.59.
20642 * configure: Re-generate.
20644 2004-12-08 Daniel Jacobowitz <dan@debian.org>
20646 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
20647 LIBS when finished.
20648 * aclocal.m4: Regenerated.
20649 * configure: Regenerated.
20651 2004-11-21 Andreas Schwab <schwab@suse.de>
20653 * linux-m68k-low.c (m68k_num_gregs): Define.
20654 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
20655 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
20656 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
20657 (m68k_breakpoint_at): New. Add to the_low_target.
20659 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
20660 srv_linux_thread_db to yes.
20662 2004-10-20 Joel Brobecker <brobecker@gnat.com>
20664 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
20665 (ARCH_SET_FS): Likewise.
20666 (ARCH_GET_FS): Likewise.
20667 (ARCH_GET_GS): Likewise.
20669 2004-10-16 Daniel Jacobowitz <dan@debian.org>
20671 * linux-i386-low.c (ps_get_thread_area): New.
20672 * linux-x86-64-low.c (ps_get_thread_area): New.
20673 * linux-low.c: Include <sys/syscall.h>.
20674 (linux_kill_one_process): Don't kill the first thread here.
20675 (linux_kill): Kill the first thread here.
20676 (kill_lwp): New function.
20677 (send_sigstop, linux_send_signal): Use it.
20678 * proc-service.c: Clean up #ifdefs.
20679 (fpregset_info): Delete.
20680 (ps_lgetregs): Update and enable implementation.
20681 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
20683 * remote-utils.c (struct sym_cache, symbol_cache): New.
20684 (input_interrupt): Print a clearer message.
20685 (async_io_enabled): New variable.
20686 (enable_async_io, disable_async_io): Use it. Update comments.
20687 (look_up_one_symbol): Use the symbol cache.
20688 * thread-db.c (thread_db_look_up_symbols): New function.
20689 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
20691 2004-10-16 Daniel Jacobowitz <dan@debian.org>
20693 * configure.in: Test for -rdynamic.
20694 * configure: Regenerated.
20695 * Makefile (INTERNAL_LDFLAGS): New.
20696 (gdbserver, gdbreplay): Use it.
20698 2004-09-02 Andrew Cagney <cagney@gnu.org>
20700 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
20702 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
20704 * linux-low.c (linux_wait): Clear all_processes list also.
20706 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
20708 * linux-low.c: Include <errno.h>. Remove extern declaration of
20711 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
20713 * gdbreplay.c, server.h, utils.c: Update copyright years.
20715 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
20717 * server.c (main): Print child status or termination signal from
20718 variable 'signal', not 'sig'.
20720 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
20722 * linux-low.c (linux_read_memory): Change return type to
20723 int. Check for and return error from ptrace().
20724 * target.c (read_inferior_memory): Change return type to int. Pass
20725 back return status from the_target->read_memory().
20726 * target.h (struct target_ops): Adapt *read_memory() prototype.
20728 (read_inferior_memory): Adapt prototype.
20729 * server.c (main): Return an error packet if
20730 read_inferior_memory() returns an error.
20732 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
20734 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
20735 Unify with other clean targets.
20737 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
20739 * server.c (handle_v_cont): Call set_desired_inferior.
20741 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
20743 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
20745 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
20747 * linux-low.c (linux_wait): Unblock async I/O.
20748 (linux_resume): Block and enable async I/O.
20749 * remote-utils.c (block_async_io, unblock_async_io): New functions.
20750 * server.h (block_async_io, unblock_async_io): Add prototypes.
20752 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
20754 * remote-utils.c (remote_open): Print a status notice after
20755 opening a TCP port.
20756 * server.c (attach_inferior): Print a status notice after
20759 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
20761 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
20763 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
20765 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
20767 * server.c, target.h: Update copyright years.
20769 2004-02-25 Roland McGrath <roland@redhat.com>
20771 * target.h (struct target_ops): New member `read_auxv'.
20772 * server.c (handle_query): Handle qPart:auxv:read: query using that.
20773 * linux-low.c (linux_read_auxv): New function.
20774 (linux_target_ops): Initialize `read_auxv' member to that.
20776 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20778 Committed by Jim Blandy <jimb@redhat.com>.
20780 * linux-s390-low.c (s390_num_regs): Update.
20781 (s390_regmap): Remove control registers. Use __s390x__ predefine
20782 instead of GPR_SIZE to distiguish s390 and s390x targets.
20784 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
20786 * linux-low.c: Update copyright year.
20787 (check_removed_breakpoint): Clear pending_is_breakpoint.
20788 (linux_set_resume_request, linux_queue_one_thread)
20789 (resume_status_pending_p): New functions.
20790 (linux_continue_one_thread): Use process->resume.
20791 (linux_resume): Only resume threads if there are no pending events.
20792 * linux-low.h (struct process_info): Add resume request
20795 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
20797 * regcache.c (new_register_cache): Clear the allocated register
20798 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
20800 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
20802 * linux-low.c (linux_resume): Take a struct thread_resume *
20804 (linux_wait): Update call.
20805 (resume_ptr): New static variable.
20806 (linux_continue_one_thread): Renamed from
20807 linux_continue_one_process. Use resume_ptr.
20808 (linux_resume): Use linux_continue_one_thread.
20809 * server.c (handle_v_cont, handle_v_requests): New functions.
20810 (myresume): New function.
20811 (main): Handle 'v' case.
20812 * target.h (struct thread_resume): New type.
20813 (struct target_ops): Change argument of "resume" to struct
20815 (myresume): Delete macro.
20817 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
20819 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
20820 (uninstall): Support DESTDIR.
20822 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
20824 * configure.srv: Add xscale*linux copy of arm*linux entry.
20826 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
20828 * linux-arm-low.c (arm_reinsert_addr): New function.
20829 (the_low_target): Add arm_reinsert_addr.
20831 2003-07-08 Mark Kettenis <kettenis@gnu.org>
20833 * mem-break.c: Remove whitespace at end of file.
20835 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
20837 * configure.in: Check whether we need to prototype strerror.
20838 * server.h: Optionally prototype strerror.
20839 * gdbreplay.c (perror_with_name): Use strerror.
20840 * linux-low.c (linux_attach_lwp): Use strerror.
20841 * utils.c (perror_with_name): Use strerror.
20842 * config.in, configure: Regenerated.
20844 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
20846 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
20847 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
20849 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
20851 * Makefile.in (SFILES): Update.
20852 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
20853 low-sun3.c: Remove files.
20855 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
20857 * linux-low.c: Move comment to linux_thread_alive where it belonged.
20858 (linux_detach_one_process, linux_detach): New functions.
20859 (linux_target_ops): Add linux_detach.
20860 * server.c (main): Handle 'D' packet.
20861 * target.h (struct target_ops): Add "detach" member.
20862 (detach_inferior): Define.
20864 2003-06-13 Mark Kettenis <kettenis@gnu.org>
20866 From Kelley Cook <kelleycook@wideopenwest.com>:
20867 * configure.srv: Accept i[34567]86 variants.
20869 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
20871 * linux-low.c (linux_wait_for_event): Correct comment typos.
20872 (linux_resume_one_process): Call check_removed_breakpoint.
20873 (linux_send_signal): New function.
20874 (linux_target_ops): Add linux_send_signal.
20875 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
20877 * target.h (struct target_ops): Add send_signal.
20879 2003-05-29 Jim Blandy <jimb@redhat.com>
20881 * linux-low.c (usr_store_inferior_registers): Transfer buf in
20882 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
20883 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
20884 away part of the register's value.
20886 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
20888 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
20889 (linux_wait_for_event, linux_init_signals): Likewise.
20891 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
20893 * configure.in: Check for stdlib.h.
20894 * configure: Regenerated.
20895 * config.in: Regenerated.
20897 2003-01-04 Andreas Schwab <schwab@suse.de>
20899 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
20901 2003-01-02 Andrew Cagney <ac131313@redhat.com>
20903 * Makefile.in: Remove obsolete code.
20905 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
20907 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
20908 defined(PT_FPR0_HI).
20910 2002-11-17 Stuart Hughes <seh@zee2.com>
20912 * linux-arm-low.c (arm_num_regs): Increase.
20913 (arm_regmap): Include status register.
20915 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
20917 * linux-low.c (register_addr): Remove incorrect -1 check.
20919 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
20921 * linux-low.c (linux_create_inferior): Call setpgid. Return
20923 (unstopped_p, linux_signal_pid): Remove.
20924 (linux_target_ops): Remove linux_signal_pid.
20925 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
20926 global instead of target method.
20927 * target.h (struct target_ops): Remove signal_pid. Update comment
20928 for create_inferior.
20929 * server.c (signal_pid): New variable.
20930 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
20931 gdbserver. Set the child to be the foreground process group.
20932 (attach_inferior): Set signal_pid.
20934 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
20936 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
20938 2002-08-20 Jim Blandy <jimb@redhat.com>
20940 * Makefile.in (LDFLAGS): Allow the configure script to establish a
20943 2002-08-01 Andrew Cagney <cagney@redhat.com>
20945 * Makefile.in: Make chill references obsolete.
20947 2002-07-24 Kevin Buettner <kevinb@redhat.com>
20949 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
20950 * configure: Regenerate.
20951 * config.in: Regenerate.
20953 2002-07-09 David O'Brien <obrien@FreeBSD.org>
20955 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
20956 (perror_with_name, remote_close, remote_open, expect, play): Static.
20958 2002-07-04 Michal Ludvig <mludvig@suse.cz>
20960 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
20961 byte offsets instead of an array of indexes.
20962 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
20964 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
20966 * regcache.c: Add comment.
20968 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
20970 * thread-db.c: New file.
20971 * proc-service.c: New file.
20972 * acinclude.m4: New file.
20973 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
20974 proc-service.o, and thread-db.o.
20975 (linux-low.o): Add USE_THREAD_DB.
20976 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
20977 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
20978 * aclocal.m4: Regenerated.
20979 * config.in: Regenerated.
20980 * configure: Regenerated.
20981 * configure.in: Check for proc_service.h, sys/procfs.h,
20982 thread_db.h, and linux/elf.h headrs.
20983 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
20984 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
20985 Check for -lthread_db and thread support.
20986 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
20987 PowerPC, and SuperH.
20988 * i387-fp.c: Constify arguments.
20989 * i387-fp.h: Likewise.
20990 * inferiors.c: (struct thread_info): Renamed from
20991 `struct inferior_info'. Remove PID member. Use generic inferior
20992 list header. All uses updated.
20993 (inferiors, signal_pid): Removed.
20994 (all_threads): New variable.
20995 (get_thread): Define.
20996 (add_inferior_to_list): New function.
20997 (for_each_inferior): New function.
20998 (change_inferior_id): New function.
20999 (add_inferior): Removed.
21000 (remove_inferior): New function.
21001 (add_thread): New function.
21002 (free_one_thread): New function.
21003 (remove_thread): New function.
21004 (clear_inferiors): Use for_each_inferior and free_one_thread.
21005 (find_inferior): New function.
21006 (find_inferior_id): New function.
21007 (inferior_target_data): Update argument type.
21008 (set_inferior_target_data): Likewise.
21009 (inferior_regcache_data): Likewise.
21010 (set_inferior_regcache_data): Likewise.
21011 * linux-low.c (linux_bp_reinsert): Remove.
21012 (all_processes, stopping_threads, using_thrads)
21013 (struct pending_signals, debug_threads, pid_of): New.
21014 (inferior_pid): Replace with macro.
21015 (struct inferior_linux_data): Remove.
21016 (get_stop_pc, add_process): New functions.
21017 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
21018 Use add_process and add_thread.
21019 (linux_attach_lwp): New function, based on old linux_attach. Use
21020 add_process and add_thread. Set stop_expected for new threads.
21021 (linux_attach): New function.
21022 (linux_kill_one_process): New function.
21023 (linux_kill): Kill all LWPs.
21024 (linux_thread_alive): Use find_inferior_id.
21025 (check_removed_breakpoints, status_pending_p): New functions.
21026 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
21027 Update. Use WNOHANG. Wait for cloned processes also. Update process
21028 struct for the found process.
21029 (linux_wait_for_event): New function.
21030 (linux_wait): Use it. Support LWPs.
21031 (send_sigstop, wait_for_sigstop, stop_all_processes)
21032 (linux_resume_one_process, linux_continue_one_process): New functions.
21033 (linux_resume): Support LWPs.
21034 (REGISTER_RAW_SIZE): Remove.
21035 (fetch_register): Use register_size instead. Call supply_register.
21036 (usr_store_inferior_registers): Likewise. Call collect_register.
21037 Fix recursive case.
21038 (regsets_fetch_inferior_registers): Improve error message.
21039 (regsets_store_inferior_registers): Add debugging.
21040 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
21041 (unstopped_p, linux_signal_pid): New functions.
21042 (linux_target_ops): Add linux_signal_pid.
21043 (linux_init_signals): New function.
21044 (initialize_low): Call it. Initialize using_threads.
21045 * regcache.c (inferior_regcache_data): Add valid
21047 (get_regcache): Fetch registers lazily. Add fetch argument
21048 and update all callers.
21049 (regcache_invalidate_one, regcache_invalidate): New
21051 (new_register_cache): Renamed from create_register_cache.
21052 Return the new regcache.
21053 (free_register_cache): Change argument to a void *.
21054 (registers_to_string, registers_from_string): Call get_regcache
21055 with fetch flag set.
21056 (register_data): Make static. Pass fetch flag to get_regcache.
21057 (supply_register): Call get_regcache with fetch flag clear.
21058 (collect_register): Call get_regcache with fetch flag set.
21059 (collect_register_as_string): New function.
21060 * regcache.h: Update.
21061 * remote-utils.c (putpkt): Flush after debug output and use
21063 Handle input interrupts while waiting for an ACK.
21064 (input_interrupt): Use signal_pid method.
21065 (getpkt): Flush after debug output and use stderr.
21066 (outreg): Use collect_register_as_string.
21067 (new_thread_notify, dead_thread_notify): New functions.
21068 (prepare_resume_reply): Check using_threads. Set thread_from_wait
21069 and general_thread.
21070 (look_up_one_symbol): Flush after debug output.
21071 * server.c (step_thread, server_waiting): New variables.
21072 (start_inferior): Don't use signal_pid. Update call to mywait.
21073 (attach_inferior): Update call to mywait.
21074 (handle_query): Handle qfThreadInfo and qsThreadInfo.
21075 (main): Don't fetch/store registers explicitly. Use
21076 set_desired_inferior. Support proposed ``Hs'' packet. Update
21078 * server.h: Update.
21079 (struct inferior_list, struct_inferior_list_entry): New.
21080 * target.c (set_desired_inferior): New.
21081 (write_inferior_memory): Constify.
21082 (mywait): New function.
21083 * target.h: Update.
21084 (struct target_ops): New signal_pid method.
21085 (mywait): Removed macro, added prototype.
21087 * linux-low.h (regset_func): Removed.
21088 (regset_fill_func, regset_store_func): New.
21089 (enum regset_type): New.
21090 (struct regset_info): Add type field. Use new operation types.
21091 (struct linux_target_ops): stop_pc renamed to get_pc.
21092 Add decr_pc_after_break and breakpoint_at.
21093 (get_process, get_thread_proess, get_process_thread)
21094 (strut process_info, all_processes, linux_attach_lwp)
21095 (thread_db_init): New.
21097 * linux-arm-low.c (arm_get_pc, arm_set_pc,
21098 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
21099 (the_low_target): Add new members.
21100 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
21101 (i386_store_fpxregset): Constify.
21102 (target_regsets): Add new kind identifier.
21103 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
21104 (i386_set_pc): Add debugging.
21105 (i386_breakpoint_at): New function.
21106 (the_low_target): Add new members.
21107 * linux-mips-low.c (mips_get_pc, mips_set_pc)
21108 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
21109 (mips_breakpoint_at): New.
21110 (the_low_target): Add new members.
21111 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
21112 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
21113 (the_low_target): Add new members.
21114 * linux-sh-low.c (sh_get_pc, sh_set_pc)
21115 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
21116 (the_low_target): Add new members.
21117 * linux-x86-64-low.c (target_regsets): Add new kind
21120 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
21122 From Martin Pool <mbp@samba.org>:
21123 * server.c (gdbserver_usage): New function.
21126 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
21128 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
21129 stop_at -> stop_pc.
21131 2002-05-04 Andrew Cagney <ac131313@redhat.com>
21133 * Makefile.in: Remove obsolete code.
21135 2002-04-24 Michal Ludvig <mludvig@suse.cz>
21137 * linux-low.c (regsets_fetch_inferior_registers),
21138 (regsets_store_inferior_registers): Removed cast to int from
21140 * regcache.h: Added declaration of struct inferior_info.
21142 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
21144 * inferiors.c (struct inferior_info): Add regcache_data.
21145 (add_inferior): Call create_register_cache.
21146 (clear_inferiors): Call free_register_cache.
21147 (inferior_regcache_data, set_inferior_regcache_data): New functions.
21148 * regcache.c (struct inferior_regcache_data): New.
21149 (registers): Remove.
21150 (get_regcache): New function.
21151 (create_register_cache, free_register_cache): New functions.
21152 (set_register_cache): Don't initialize the register cache here.
21153 (registers_to_string, registers_from_string, register_data): Call
21155 * regcache.h: Add prototypes.
21156 * server.h: Likewise.
21158 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
21160 * mem-break.c: New file.
21161 * mem-break.h: New file.
21162 * Makefile.in: Add mem-break.o rule; update server.h
21164 * inferiors.c (struct inferior_info): Add target_data
21166 (clear_inferiors): Free target_data member if set.
21167 (inferior_target_data, set_inferior_target_data): New functions.
21168 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
21169 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
21170 * linux-low.c (linux_bp_reinsert): New variable.
21171 (struct inferior_linux_data): New.
21172 (linux_create_inferior): Use set_inferior_target_data.
21173 (linux_attach): Likewise. Call add_inferior.
21174 (linux_wait_for_one_inferior): New function.
21175 (linux_wait): Call it.
21176 (linux_write_memory): Add const.
21177 (initialize_low): Call set_breakpoint_data.
21178 * linux-low.h (struct linux_target_ops): Add breakpoint
21180 * server.c (attach_inferior): Remove extra add_inferior
21182 * server.h: Include mem-break.h. Update inferior.c
21184 * target.c (read_inferior_memory)
21185 (write_inferior_memory): New functions.
21186 * target.h (read_inferior_memory)
21187 (write_inferior_memory): Change macros to prototypes.
21188 (struct target_ops): Update comments. Add const to write_memory
21191 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
21193 * linux-low.c (usr_store_inferior_registers): Support
21194 registers which are allowed to fail to store.
21195 * linux-low.h (linux_target_ops): Likewise.
21196 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
21197 (ppc_cannot_store_register): FPSCR may not be storable.
21199 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21201 * server.h: Include <string.h> if HAVE_STRING_H.
21202 * ChangeLog: Correct paths in last ChangeLog entry.
21204 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21206 * linux-low.h: Remove obsolete prototypes.
21207 (struct linux_target_ops): New.
21208 (extern the_low_target): New.
21209 * linux-low.c (num_regs, regmap): Remove declarations.
21210 (register_addr): Use the_low_target explicitly.
21211 (fetch_register): Likewise.
21212 (usr_fetch_inferior_registers): Likewise.
21213 (usr_store_inferior_registers): Likewise.
21214 * linux-arm-low.c (num_regs): Remove.
21215 (arm_num_regs): Define.
21216 (arm_regmap): Renamed from regmap, made static.
21217 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
21219 (arm_cannot_store_register): Renamed from cannot_store_register,
21221 (the_low_target): New.
21222 * linux-i386-low.c (num_regs): Remove.
21223 (i386_num_regs): Define.
21224 (i386_regmap): Renamed from regmap, made static.
21225 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
21227 (i386_cannot_store_register): Renamed from cannot_store_register,
21229 (the_low_target): New.
21230 * linux-ia64-low.c (num_regs): Remove.
21231 (ia64_num_regs): Define.
21232 (ia64_regmap): Renamed from regmap, made static.
21233 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
21235 (ia64_cannot_store_register): Renamed from cannot_store_register,
21237 (the_low_target): New.
21238 * linux-m68k-low.c (num_regs): Remove.
21239 (m68k_num_regs): Define.
21240 (m68k_regmap): Renamed from regmap, made static.
21241 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
21243 (m68k_cannot_store_register): Renamed from cannot_store_register,
21245 (the_low_target): New.
21246 * linux-mips-low.c (num_regs): Remove.
21247 (mips_num_regs): Define.
21248 (mips_regmap): Renamed from regmap, made static.
21249 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
21251 (mips_cannot_store_register): Renamed from cannot_store_register,
21253 (the_low_target): New.
21254 * linux-ppc-low.c (num_regs): Remove.
21255 (ppc_num_regs): Define.
21256 (ppc_regmap): Renamed from regmap, made static.
21257 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
21259 (ppc_cannot_store_register): Renamed from cannot_store_register,
21261 (the_low_target): New.
21262 * linux-s390-low.c (num_regs): Remove.
21263 (s390_num_regs): Define.
21264 (s390_regmap): Renamed from regmap, made static.
21265 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
21267 (s390_cannot_store_register): Renamed from cannot_store_register,
21269 (the_low_target): New.
21270 * linux-sh-low.c (num_regs): Remove.
21271 (sh_num_regs): Define.
21272 (sh_regmap): Renamed from regmap, made static.
21273 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
21275 (sh_cannot_store_register): Renamed from cannot_store_register,
21277 (the_low_target): New.
21278 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
21279 (the_low_target): New.
21281 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21283 * Makefile.in: Add stamp-h target.
21284 * configure.in: Create stamp-h.
21285 * configure: Regenerated.
21287 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21289 * inferiors.c: New file.
21290 * target.c: New file.
21291 * target.h: New file.
21292 * Makefile.in: Add target.o and inferiors.o. Update
21294 * linux-low.c (inferior_pid): New static variable,
21295 moved from server.c.
21296 (linux_create_inferior): Renamed from create_inferior.
21297 Call add_inferior. Return 0 on success instead of a PID.
21298 (linux_attach): Renamed from myattach.
21299 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
21300 (linux_thread_alive): Renamed from mythread_alive.
21301 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
21303 (linux_resume): Renamed from myresume. Add missing ``return 0''.
21304 (regsets_store_inferior_registers): Correct error message.
21305 Add missing ``return 0''.
21306 (linux_fetch_registers): Renamed from fetch_inferior_registers.
21307 (linux_store_registers): Renamed from store_inferior_registers.
21308 (linux_read_memory): Renamed from read_inferior_memory.
21309 (linux_write_memory): Renamed from write_inferior_memory.
21310 (linux_target_ops): New structure.
21311 (initialize_low): Call set_target_ops ().
21312 * remote-utils.c (unhexify): New function.
21313 (hexify): New function.
21314 (input_interrupt): Send signals to ``signal_pid''.
21315 * server.c (inferior_pid): Remove.
21316 (start_inferior): Update create_inferior call.
21317 (attach_inferior): Call add_inferior.
21318 (handle_query): New function.
21319 (main): Call handle_query for `q' packets.
21320 * server.h: Include "target.h". Remove obsolete prototypes.
21321 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
21323 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21325 * Makefile.in: Add WARN_CFLAGS. Update configury
21327 * configure.in: Check for <string.h>
21328 * configure: Regenerate.
21329 * config.in: Regenerate.
21330 * gdbreplay.c: Include needed system headers.
21331 (remote_open): Remove strchr prototype.
21332 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
21333 * regcache.c (supply_register): Change buf argument to const void *.
21334 (supply_register_by_name): Likewise.
21335 (collect_register): Change buf argument to void *.
21336 (collect_register_by_name): Likewise.
21337 * regcache.h: Add missing prototypes.
21338 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
21339 * server.c (handle_query): New function.
21340 (attached): New static variable, moved out of main.
21341 (main): Quiet longjmp clobber warnings.
21342 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
21343 * utils.c (error): Remove NORETURN.