gdbserver/linux-low: turn 'supports_z_point_type' into a method
[deliverable/binutils-gdb.git] / gdbserver / ChangeLog
CommitLineData
007c9b97
TBA
12020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2
3 Remove the 'supports_z_point_type' linux target op and let the
4 concrete linux target define it by overriding the op declared in
5 process_stratum_target.
6
7 * linux-low.cc (linux_process_target::supports_z_point_type):
8 Remove.
9 * linux-low.h (struct linux_target_ops): Remove the op.
10 (class linux_process_target) <supports_z_point_type>: Remove.
11 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
12 Declare.
13 (x86_supports_z_point_type): Turn into...
14 (x86_target::supports_z_point_type): ...this.
15 (the_low_target): Remove the op field.
16 * linux-aarch64-low.cc (class aarch64_target)
17 <supports_z_point_type>: Declare.
18 (aarch64_supports_z_point_type): Turn into...
19 (aarch64_target::supports_z_point_type): ...this.
20 (the_low_target): Remove the op field.
21 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
22 Declare.
23 (arm_supports_z_point_type): Turn into...
24 (arm_target::supports_z_point_type): ...this.
25 (the_low_target): Remove the op field.
26 * linux-crisv32-low.cc (class crisv32_target)
27 <supports_z_point_type>: Declare.
28 (cris_supports_z_point_type): Turn into...
29 (crisv32_target::supports_z_point_type): ...this.
30 (the_low_target): Remove the op field.
31 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
32 Declare.
33 (mips_supports_z_point_type): Turn into...
34 (mips_target::supports_z_point_type): ...this.
35 (the_low_target): Remove the op field.
36 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
37 Declare.
38 (ppc_supports_z_point_type): Turn into...
39 (ppc_target::supports_z_point_type): ...this.
40 (the_low_target): Remove the op field.
41 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
42 Declare.
43 (s390_supports_z_point_type): Turn into...
44 (s390_target::supports_z_point_type): ...this.
45 (the_low_target): Remove the op field.
46 * linux-bfin-low.cc (the_low_target): Remove the op field.
47 * linux-m32r-low.cc (the_low_target): Ditto.
48 * linux-m68k-low.cc (the_low_target): Ditto.
49 * linux-sh-low.cc (the_low_target): Ditto.
50 * linux-sparc-low.cc (the_low_target): Ditto.
51 * linux-tic6x-low.cc (the_low_target): Ditto.
52 * linux-tile-low.cc (the_low_target): Ditto.
53 * linux-xtensa-low.cc (the_low_target): Ditto.
54
d7146cda
TBA
552020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
56
57 Turn the 'breakpoint_at' linux target op into a method of
58 linux_process_target.
59
60 * linux-low.h (struct linux_target_ops): Remove the op.
61 (class linux_process_target) <low_breakpoint_at>: Declare.
62
63 Update the callers below:
64
65 * linux-low.cc (linux_process_target::save_stop_reason)
66 (linux_process_target::thread_still_has_status_pending)
67 (linux_process_target::wait_1)
68
69 * linux-x86-low.cc (class x86_target)
70 <low_breakpoint_at>: Declare.
71 (x86_breakpoint_at): Turn into...
72 (x86_target::low_breakpoint_at): ...this.
73 (the_low_target): Remove the op field.
74 * linux-aarch64-low.cc (class aarch64_target)
75 <low_breakpoint_at>: Declare.
76 (aarch64_breakpoint_at): Turn into...
77 (aarch64_target::low_breakpoint_at): ...this.
78 (the_low_target): Remove the op field.
79 * linux-arm-low.cc (class arm_target)
80 <low_breakpoint_at>: Declare.
81 (arm_target::low_breakpoint_at): Define.
82 (the_low_target): Remove the op field.
83 * linux-bfin-low.cc (class bfin_target)
84 <low_breakpoint_at>: Declare.
85 (bfin_breakpoint_at): Turn into...
86 (bfin_target::low_breakpoint_at): ...this.
87 (the_low_target): Remove the op field.
88 * linux-cris-low.cc (class cris_target)
89 <low_breakpoint_at>: Declare.
90 (cris_breakpoint_at): Turn into...
91 (cris_target::low_breakpoint_at): ...this.
92 (the_low_target): Remove the op field.
93 * linux-crisv32-low.cc (class crisv32_target)
94 <low_breakpoint_at>: Declare.
95 (crisv32_breakpoint_at): Turn into...
96 (crisv32_target::low_breakpoint_at): ...this.
97 (the_low_target): Remove the op field.
98 * linux-ia64-low.cc (class ia64_target)
99 <low_breakpoint_at>: Declare.
100 (ia64_target::low_breakpoint_at): Define.
101 * linux-m32r-low.cc (class m32r_target)
102 <low_breakpoint_at>: Declare.
103 (m32r_breakpoint_at): Turn into...
104 (m32r_target::low_breakpoint_at): ...this.
105 (the_low_target): Remove the op field.
106 * linux-m68k-low.cc (class m68k_target)
107 <low_breakpoint_at>: Declare.
108 (m68k_breakpoint_at): Turn into...
109 (m68k_target::low_breakpoint_at): ...this.
110 (the_low_target): Remove the op field.
111 * linux-mips-low.cc (class mips_target)
112 <low_breakpoint_at>: Declare.
113 (mips_breakpoint_at): Turn into...
114 (mips_target::low_breakpoint_at): ...this.
115 (the_low_target): Remove the op field.
116 * linux-nios2-low.cc (class nios2_target)
117 <low_breakpoint_at>: Declare.
118 (nios2_breakpoint_at): Turn into...
119 (nios2_target::low_breakpoint_at): ...this.
120 (the_low_target): Remove the op field.
121 * linux-ppc-low.cc (class ppc_target)
122 <low_breakpoint_at>: Declare.
123 (ppc_breakpoint_at): Turn into...
124 (ppc_target::low_breakpoint_at): ...this.
125 (the_low_target): Remove the op field.
126 * linux-riscv-low.cc (class riscv_target)
127 <low_breakpoint_at>: Declare.
128 (riscv_breakpoint_at): Turn into...
129 (riscv_target::low_breakpoint_at): ...this.
130 (the_low_target): Remove the op field.
131 * linux-s390-low.cc (class s390_target)
132 <low_breakpoint_at>: Declare.
133 (s390_breakpoint_at): Turn into...
134 (s390_target::low_breakpoint_at): ...this.
135 (the_low_target): Remove the op field.
136 * linux-sh-low.cc (class sh_target)
137 <low_breakpoint_at>: Declare.
138 (sh_breakpoint_at): Turn into...
139 (sh_target::low_breakpoint_at): ...this.
140 (the_low_target): Remove the op field.
141 * linux-sparc-low.cc (class sparc_target)
142 <low_breakpoint_at>: Declare.
143 (sparc_breakpoint_at): Turn into...
144 (sparc_target::low_breakpoint_at): ...this.
145 (the_low_target): Remove the op field.
146 * linux-tic6x-low.cc (class tic6x_target)
147 <low_breakpoint_at>: Declare.
148 (tic6x_breakpoint_at): Turn into...
149 (tic6x_target::low_breakpoint_at): ...this.
150 (the_low_target): Remove the op field.
151 * linux-tile-low.cc (class tile_target)
152 <low_breakpoint_at>: Declare.
153 (tile_breakpoint_at): Turn into...
154 (tile_target::low_breakpoint_at): ...this.
155 (the_low_target): Remove the op field.
156 * linux-xtensa-low.cc (class xtensa_target)
157 <low_breakpoint_at>: Declare.
158 (xtensa_breakpoint_at): Turn into...
159 (xtensa_target::low_breakpoint_at): ...this.
160 (the_low_target): Remove the op field.
161
d4807ea2
TBA
1622020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
163
164 Turn the 'decr_pc_after_break' linux_target_ops field into
165 a method of linux_process_target.
166
167 * linux-low.h (struct linux_target_ops)
168 <decr_pc_after_break>: Remove.
169 (class linux_process_target) <low_decr_pc_after_break>: New method
170 declaration.
171 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
172 New method implementation.
173
174 Update the users below.
175
176 (linux_process_target::save_stop_reason)
177 (linux_process_target::wait_1)
178 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
179 New declaration.
180 (x86_target::low_decr_pc_after_break): New method implementation.
181 (the_low_target): Remove the field.
182 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
183 New declaration.
184 (bfin_target::low_decr_pc_after_break): New method implementation.
185 (the_low_target): Remove the field.
186 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
187 New declaration.
188 (m68k_target::low_decr_pc_after_break): New method implementation.
189 (the_low_target): Remove the field.
190 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
191 New declaration.
192 (s390_target::low_decr_pc_after_break): New method implementation.
193 (the_low_target): Remove the field.
194 * linux-aarch64-low.cc (the_low_target): Remove the field.
195 * linux-arm-low.cc (the_low_target): Remove the field.
196 * linux-cris-low.cc (the_low_target): Remove the field.
197 * linux-crisv32-low.cc (the_low_target): Remove the field.
198 * linux-m32r-low.cc (the_low_target): Remove the field.
199 * linux-mips-low.cc (the_low_target): Remove the field.
200 * linux-nios2-low.cc (the_low_target): Remove the field.
201 * linux-ppc-low.cc (the_low_target): Remove the field.
202 * linux-riscv-low.cc (the_low_target): Remove the field.
203 * linux-sh-low.cc (the_low_target): Remove the field.
204 * linux-sparc-low.cc (the_low_target): Remove the field.
205 * linux-tic6x-low.cc (the_low_target): Remove the field.
206 * linux-tile-low.cc (the_low_target): Remove the field.
207 * linux-xtensa-low.cc (the_low_target): Remove the field.
208
7582c77c
TBA
2092020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
210
211 Remove the 'supports_software_single_step' linux target op and let
212 the concrete linux target define it by overriding the op in
213 process_stratum_target.
214 Turn the 'get_next_pcs' linux target op into a method of
215 linux_process_target.
216
217 * linux-low.h (struct linux_target_ops): Remove the ops.
218 (class linux_process_target) <supports_software_single_step>:
219 Remove.
220 <low_get_next_pcs>: Declare.
221 * linux-low.cc (can_software_single_step): Remove.
222 (linux_process_target::low_get_next_pcs): Define.
223 (linux_process_target::supports_software_single_step): Remove.
224
225 Update the callers below.
226
227 (linux_process_target::handle_extended_wait)
228 (linux_process_target::wait_1)
229 (linux_process_target::install_software_single_step_breakpoints)
230 (linux_process_target::single_step)
231 (linux_process_target::thread_needs_step_over)
232 (linux_process_target::proceed_one_lwp)
233 (linux_process_target::supports_range_stepping)
234
235 * linux-x86-low.cc (the_low_target): Remove the op field.
236 * linux-aarch64-low.cc (the_low_target): Ditto.
237 * linux-bfin-low.cc (the_low_target): Ditto.
238 * linux-cris-low.cc (the_low_target): Ditto.
239 * linux-crisv32-low.cc (the_low_target): Ditto.
240 * linux-m32r-low.cc (the_low_target): Ditto.
241 * linux-m68k-low.cc (the_low_target): Ditto.
242 * linux-mips-low.cc (the_low_target): Ditto.
243 * linux-nios2-low.cc (the_low_target): Ditto.
244 * linux-ppc-low.cc (the_low_target): Ditto.
245 * linux-riscv-low.cc (the_low_target): Ditto.
246 * linux-s390-low.cc (the_low_target): Ditto.
247 * linux-sh-low.cc (the_low_target): Ditto.
248 * linux-sparc-low.cc (the_low_target): Ditto.
249 * linux-tic6x-low.cc (the_low_target): Ditto.
250 * linux-tile-low.cc (the_low_target): Ditto.
251 * linux-xtensa-low.cc (the_low_target): Ditto.
252 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
253 <supports_software_single_step>: Declare.
254 (arm_target::supports_software_single_step): Define.
255 (arm_gdbserver_get_next_pcs): Turn into...
256 (arm_target::low_get_next_pcs): ...this.
257 (the_low_target): Remove the op field.
258
3ca4edb6
TBA
2592020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
260
261 Remove the 'sw_breakpoint_from_kind' linux target op, and let
262 the concrete linux target define it by overriding the op
263 in process_stratum_target.
264
265 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
266 Remove.
267 * linux-low.h (struct linux_target_ops): Remove the op.
268 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
269 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
270 Declare.
271 (x86_sw_breakpoint_from_kind): Turn into...
272 (x86_target::sw_breakpoint_from_kind): ...this.
273 (the_low_target): Remove the op field.
274 * linux-aarch64-low.cc (class aarch64_target)
275 <sw_breakpoint_from_kind>: Declare.
276 (aarch64_sw_breakpoint_from_kind): Turn into...
277 (aarch64_target::sw_breakpoint_from_kind): ...this.
278 (the_low_target): Remove the op field.
279 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
280 Declare.
281 (arm_target::sw_breakpoint_from_kind): Define.
282 (the_low_target): Remove the op field.
283 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
284 Declare.
285 (bfin_sw_breakpoint_from_kind): Turn into...
286 (bfin_target::sw_breakpoint_from_kind): ...this.
287 (the_low_target): Remove the op field.
288 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
289 Declare.
290 (cris_sw_breakpoint_from_kind): Turn into...
291 (cris_target::sw_breakpoint_from_kind): ...this.
292 (the_low_target): Remove the op field.
293 * linux-crisv32-low.cc (class crisv32_target)
294 <sw_breakpoint_from_kind>: Declare.
295 (cris_sw_breakpoint_from_kind): Turn into...
296 (crisv32_target::sw_breakpoint_from_kind): ...this.
297 (the_low_target): Remove the op field.
298 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
299 Declare.
300 (ia64_target::sw_breakpoint_from_kind): Define.
301 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
302 Declare.
303 (m32r_sw_breakpoint_from_kind): Turn into...
304 (m32r_target::sw_breakpoint_from_kind): ...this.
305 (the_low_target): Remove the op field.
306 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
307 Declare.
308 (m68k_sw_breakpoint_from_kind): Turn into...
309 (m68k_target::sw_breakpoint_from_kind): ...this.
310 (the_low_target): Remove the op field.
311 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
312 Declare.
313 (mips_sw_breakpoint_from_kind): Turn into...
314 (mips_target::sw_breakpoint_from_kind): ...this.
315 (the_low_target): Remove the op field.
316 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
317 Declare.
318 (nios2_sw_breakpoint_from_kind): Turn into...
319 (nios2_target::sw_breakpoint_from_kind): ...this.
320 (the_low_target): Remove the op field.
321 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
322 Declare.
323 (ppc_sw_breakpoint_from_kind): Turn into...
324 (ppc_target::sw_breakpoint_from_kind): ...this.
325 (the_low_target): Remove the op field.
326 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
327 Declare.
328 (riscv_sw_breakpoint_from_kind): Turn into...
329 (riscv_target::sw_breakpoint_from_kind): ...this.
330 (the_low_target): Remove the op field.
331 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
332 Declare.
333 (s390_sw_breakpoint_from_kind): Turn into...
334 (s390_target::sw_breakpoint_from_kind): ...this.
335 (the_low_target): Remove the op field.
336 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
337 Declare.
338 (sh_sw_breakpoint_from_kind): Turn into...
339 (sh_target::sw_breakpoint_from_kind): ...this.
340 (the_low_target): Remove the op field.
341 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
342 Declare.
343 (sparc_sw_breakpoint_from_kind): Turn into...
344 (sparc_target::sw_breakpoint_from_kind): ...this.
345 (the_low_target): Remove the op field.
346 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
347 Declare.
348 (tic6x_sw_breakpoint_from_kind): Turn into...
349 (tic6x_target::sw_breakpoint_from_kind): ...this.
350 (the_low_target): Remove the op field.
351 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
352 Declare.
353 (tile_sw_breakpoint_from_kind): Turn into...
354 (tile_target::sw_breakpoint_from_kind): ...this.
355 (the_low_target): Remove the op field.
356 * linux-xtensa-low.cc (class xtensa_target)
357 <sw_breakpoint_from_kind>: Declare.
358 (xtensa_sw_breakpoint_from_kind): Turn into...
359 (xtensa_target::sw_breakpoint_from_kind): ...this.
360 (the_low_target): Remove the op field.
361
06250e4e
TBA
3622020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
363
364 Remove the 'breakpoint_kind_from_pc' and
365 'breakpoint_kind_from_current_state' linux target ops, and let the
366 concrete linux target define them by overriding the ops of
367 process_stratum_target.
368
369 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
370 Remove.
371 (linux_process_target::breakpoint_kind_from_current_state): Remove.
372 * linux-low.h (struct linux_target_ops): Remove ops.
373 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
374 <breakpoint_kind_from_current_state>: Remove.
375 * linux-x86-low.cc (the_low_target): Remove the op fields.
376 * linux-bfin-low.cc (the_low_target): Ditto.
377 * linux-cris-low.cc (the_low_target): Ditto.
378 * linux-crisv32-low.cc (the_low_target): Ditto.
379 * linux-m32r-low.cc (the_low_target): Ditto.
380 * linux-m68k-low.cc (the_low_target): Ditto.
381 * linux-mips-low.cc (the_low_target): Ditto.
382 * linux-nios2-low.cc (the_low_target): Ditto.
383 * linux-ppc-low.cc (the_low_target): Ditto.
384 * linux-s390-low.cc (the_low_target): Ditto.
385 * linux-sh-low.cc (the_low_target): Ditto.
386 * linux-sparc-low.cc (the_low_target): Ditto.
387 * linux-tic6x-low.cc (the_low_target): Ditto.
388 * linux-tile-low.cc (the_low_target): Ditto.
389 * linux-xtensa-low.cc (the_low_target): Ditto.
390 * linux-aarch64-low.cc (class aarch64_target)
391 <breakpoint_kind_from_pc>
392 <breakpoint_kind_from_current_state>: Declare.
393 (aarch64_breakpoint_kind_from_pc): Turn into...
394 (aarch64_target::breakpoint_kind_from_pc): ...this.
395 (aarch64_breakpoint_kind_from_current_state): Turn into...
396 (aarch64_target::breakpoint_kind_from_current_state): ...this.
397 (the_low_target): Remove the op fields.
398 * linux-arm-low.cc (class arm_target):
399 <breakpoint_kind_from_pc>
400 <breakpoint_kind_from_current_state>: Declare.
401 (arm_target::breakpoint_kind_from_pc): Define.
402 (arm_target::breakpoint_kind_from_current_state): Define.
403 (the_low_target): Remove the op fields.
404 * linux-riscv-low.cc (class riscv_target):
405 <breakpoint_kind_from_pc>: Declare.
406 (riscv_breakpoint_kind_from_pc): Turn into...
407 (riscv_target::breakpoint_kind_from_pc): ...this.
408 (the_low_target): Remove the op fields.
409
bf9ae9d8
TBA
4102020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
411
412 Turn the 'get_pc' and 'set_pc' linux target ops into methods
413 of linux_process_target.
414
415 * linux-low.h (struct linux_target_ops): Remove the ops.
416 (class linux_process_target) <low_supports_breakpoints>
417 <low_get_pc>
418 <low_set_pc>: Declare.
419 * linux-low.cc (supports_breakpoints): Turn into...
420 (linux_process_target::low_supports_breakpoints): ...this.
421 (linux_process_target::low_get_pc): Define.
422 (linux_process_target::low_set_pc): Define.
423
424 Update the callers below.
425
426 (linux_process_target::get_pc)
427 (linux_process_target::save_stop_reason)
428 (linux_process_target::maybe_move_out_of_jump_pad)
429 (linux_process_target::wait_1)
430 (linux_process_target::resume_one_lwp_throw)
431 (linux_process_target::resume)
432 (linux_process_target::proceed_all_lwps)
433 (linux_process_target::read_pc)
434 (linux_process_target::write_pc)
435
436 * linux-x86-low.cc (class linux_process_target)
437 <low_supports_breakpoints>
438 <low_get_pc>
439 <low_set_pc>: Declare.
440 (x86_target::low_supports_breakpoints): Define.
441 (x86_get_pc): Turn into...
442 (x86_target::low_get_pc): ...this.
443 (x86_set_pc): Turn into...
444 (x86_target::low_set_pc): ...this.
445 (the_low_target): Remove the op fields.
446 * linux-arm-low.cc (class arm_target)
447 <low_supports_breakpoints>
448 <low_get_pc>
449 <low_set_pc>: Declare.
450 (arm_target::low_supports_breakpoints)
451 (arm_target::low_get_pc)
452 (arm_target::low_set_pc): Define.
453 (the_low_target): Remove the op fields.
454 * linux-bfin-low.cc (class bfin_target)
455 <low_supports_breakpoints>
456 <low_get_pc>
457 <low_set_pc>: Declare.
458 (bfin_target::low_supports_breakpoints)
459 (bfin_target::low_get_pc)
460 (bfin_target::low_set_pc): Define.
461 (the_low_target): Remove the op fields.
462 * linux-cris-low.cc (class cris_target)
463 <low_supports_breakpoints>
464 <low_get_pc>
465 <low_set_pc>: Declare.
466 (cris_target::low_supports_breakpoints)
467 (cris_target::low_get_pc)
468 (cris_target::low_set_pc): Define.
469 (the_low_target): Remove the op fields.
470 * linux-crisv32-low.cc (class crisv32_target)
471 <low_supports_breakpoints>
472 <low_get_pc>
473 <low_set_pc>: Declare.
474 (crisv32_target::low_supports_breakpoints)
475 (crisv32_target::low_get_pc)
476 (crisv32_target::low_set_pc): Define.
477 (the_low_target): Remove the op fields.
478 * linux-m32r-low.cc (class m32r_target)
479 <low_supports_breakpoints>
480 <low_get_pc>
481 <low_set_pc>: Declare.
482 (m32r_target::low_supports_breakpoints)
483 (m32r_target::low_get_pc)
484 (m32r_target::low_set_pc): Define.
485 (the_low_target): Remove the op fields.
486 * linux-m68k-low.cc (class m68k_target)
487 <low_supports_breakpoints>
488 <low_get_pc>
489 <low_set_pc>: Declare.
490 (m68k_target::low_supports_breakpoints)
491 (m68k_target::low_get_pc)
492 (m68k_target::low_set_pc): Define.
493 (the_low_target): Remove the op fields.
494 * linux-nios2-low.cc (class nios2_target)
495 <low_supports_breakpoints>
496 <low_get_pc>
497 <low_set_pc>: Declare.
498 (nios2_target::low_supports_breakpoints)
499 (nios2_target::low_get_pc)
500 (nios2_target::low_set_pc): Define.
501 (the_low_target): Remove the op fields.
502 * linux-sh-low.cc (class sh_target)
503 <low_supports_breakpoints>
504 <low_get_pc>
505 <low_set_pc>: Declare.
506 (sh_target::low_supports_breakpoints)
507 (sh_target::low_get_pc)
508 (sh_target::low_set_pc): Define.
509 (the_low_target): Remove the op fields.
510 * linux-xtensa-low.cc (class xtensa_target)
511 <low_supports_breakpoints>
512 <low_get_pc>
513 <low_set_pc>: Declare.
514 (xtensa_target::low_supports_breakpoints)
515 (xtensa_target::low_get_pc)
516 (xtensa_target::low_set_pc): Define.
517 (the_low_target): Remove the op fields.
518 * linux-sparc-low.cc (class sparc_target)
519 <low_supports_breakpoints>
520 <low_get_pc>: Declare.
521 (sparc_target::low_supports_breakpoints)
522 (sparc_target::low_get_pc): Define.
523 (the_low_target): Remove the op fields.
524 * linux-tile-low.cc (class tile_target)
525 <low_supports_breakpoints>
526 <low_get_pc>
527 <low_set_pc>: Declare.
528 (tile_target::low_supports_breakpoints)
529 (tile_target::low_get_pc)
530 (tile_target::low_set_pc): Define.
531 (the_low_target): Remove the op fields.
532 * linux-aarch64-low.cc (class aarch64_target)
533 <low_supports_breakpoints>
534 <low_get_pc>
535 <low_set_pc>: Declare.
536 (aarch64_target::low_supports_breakpoints): Define.
537 (aarch64_get_pc): Turn into...
538 (aarch64_target::low_get_pc): ...this.
539 (aarch64_set_pc): Turn into...
540 (aarch64_target::low_set_pc): ...this.
541 (the_low_target): Remove the op fields.
542 * linux-mips-low.cc (class mips_target)
543 <low_supports_breakpoints>
544 <low_get_pc>
545 <low_set_pc>: Declare.
546 (mips_target::low_supports_breakpoints): Define.
547 (mips_get_pc): Turn into...
548 (mips_target::low_get_pc): ...this.
549 (mips_set_pc): Turn into...
550 (mips_target::low_set_pc): ...this.
551 (the_low_target): Remove the op fields.
552 * linux-ppc-low.cc (class ppc_target)
553 <low_supports_breakpoints>
554 <low_get_pc>
555 <low_set_pc>: Declare.
556 (ppc_target::low_supports_breakpoints): Define.
557 (ppc_get_pc): Turn into...
558 (ppc_target::low_get_pc): ...this.
559 (ppc_set_pc): Turn into...
560 (ppc_target::low_set_pc): ...this.
561 (the_low_target): Remove the op fields.
562 * linux-riscv-low.cc (class riscv_target)
563 <low_supports_breakpoints>
564 <low_get_pc>
565 <low_set_pc>: Declare.
566 (riscv_target::low_supports_breakpoints): Define.
567 (riscv_get_pc): Turn into...
568 (riscv_target::low_get_pc): ...this.
569 (riscv_set_pc): Turn into...
570 (riscv_target::low_set_pc): ...this.
571 (the_low_target): Remove the op fields.
572 * linux-s390-low.cc (class s390_target)
573 <low_supports_breakpoints>
574 <low_get_pc>
575 <low_set_pc>: Declare.
576 (s390_target::low_supports_breakpoints): Define.
577 (s390_get_pc): Turn into...
578 (s390_target::low_get_pc): ...this.
579 (s390_set_pc): Turn into...
580 (s390_target::low_set_pc): ...this.
581 (the_low_target): Remove the op fields.
582 * linux-tic6x-low.cc (class tic6x_target)
583 <low_supports_breakpoints>
584 <low_get_pc>
585 <low_set_pc>: Declare.
586 (tic6x_target::low_supports_breakpoints): Define.
587 (tic6x_get_pc): Turn into...
588 (tic6x_target::low_get_pc): ...this.
589 (tic6x_set_pc): Turn into...
590 (tic6x_target::low_set_pc): ...this.
591 (the_low_target): Remove the op fields.
592
df95181f
TBA
5932020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
594
595 Turn some more static methods in linux-low into private methods
596 of linux_process_target.
597
598 * linux-low.cc (get_pc): Turn into...
599 (linux_process_target::get_pc): ...this.
600 (save_stop_reason): Turn into...
601 (linux_process_target::save_stop_reason): ...this.
602 (thread_still_has_status_pending_p): Turn into...
603 (linux_process_target::thread_still_has_status_pending): ...this.
604 (status_pending_p_callback): Turn into...
605 (linux_process_target::status_pending_p_callback): ...this.
606 (resume_stopped_resumed_lwps): Turn into...
607 (linux_process_target::resume_stopped_resumed_lwps): ...this.
608 (install_software_single_step_breakpoints): Turn into...
609 (linux_process_target::install_software_single_step_breakpoints):
610 ...this.
611 (single_step): Turn into...
612 (linux_process_target::single_step): ...this.
613 (linux_resume_one_lwp_throw): Turn into...
614 (linux_process_target::resume_one_lwp_throw): ...this.
615 (linux_resume_one_lwp): Turn into...
616 (linux_process_target::resume_one_lwp): ...this.
617 (resume_status_pending_p): Turn into...
618 (linux_process_target::resume_status_pending): ...this.
619 (need_step_over_p): Turn into...
620 (linux_process_target::thread_needs_step_over): ...this.
621 (linux_resume_one_thread): Turn into...
622 (linux_process_target::resume_one_thread): ...this.
623 (proceed_one_lwp): Turn into...
624 (linux_process_target::proceed_one_lwp): ...this.
625 (unsuspend_and_proceed_one_lwp): Turn into...
626 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
627
628 Update the calls/references to the above functions below.
629
630 (linux_process_target::handle_extended_wait)
631 (linux_process_target::filter_event)
632 (linux_process_target::wait_for_event_filtered)
633 (linux_process_target::wait_1)
634 (linux_process_target::move_out_of_jump_pad)
635 (linux_process_target::start_step_over)
636 (linux_process_target::resume)
637 (linux_process_target::proceed_all_lwps)
638 (regsets_store_inferior_registers)
639 (linux_process_target::store_register)
640
641 * linux-low.h (class linux_process_target)
642 <get_pc>
643 <save_stop_reason>
644 <thread_still_has_status_pending>
645 <status_pending_p_callback>
646 <resume_stopped_resumed_lwps>
647 <install_software_single_step_breakpoints>
648 <single_step>
649 <resume_one_lwp_throw>
650 <resume_one_lwp>
651 <resume_status_pending>
652 <thread_needs_step_over>
653 <resume_one_thread>
654 <proceed_one_lwp>
655 <unsuspend_and_proceed_one_lwp>: Declare.
656
bd70b1f2
TBA
6572020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
658
659 Turn the 'fetch_register' linux target op into a method of
660 linux_process_target.
661
662 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
663 (class linux_process_target) <low_fetch_register>: Declare.
664 * linux-x86-low.cc (the_low_target)
665 * linux-aarch64-low.cc (the_low_target)
666 * linux-arm-low.cc (the_low_target)
667 * linux-bfin-low.cc (the_low_target)
668 * linux-cris-low.cc (the_low_target)
669 * linux-crisv32-low.cc (the_low_target)
670 * linux-m32r-low.cc (the_low_target)
671 * linux-m68k-low.cc (the_low_target)
672 * linux-nios2-low.cc (the_low_target)
673 * linux-ppc-low.cc (the_low_target)
674 * linux-s390-low.cc (the_low_target)
675 * linux-sh-low.cc (the_low_target)
676 * linux-sparc-low.cc (the_low_target)
677 * linux-tic6x-low.cc (the_low_target)
678 * linux-tile-low.cc (the_low_target)
679 * linux-xtensa-low.cc (the_low_target): Remove the op field.
680 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
681 Declare.
682 (ia64_fetch_register): Turn into...
683 (ia64_target::low_fetch_register): ...this.
684 (the_low_target): Remove the op field.
685 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
686 Declare.
687 (mips_fetch_register): Turn into...
688 (mips_target::low_fetch_register): ...this.
689 (the_low_target): Remove the op field.
690 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
691 Declare.
692 (riscv_fetch_register): Turn into...
693 (riscv_target::low_fetch_register): ...this.
694 (the_low_target): Remove the op field.
695
696 Update the callers below.
697
698 * linux-low.cc (linux_process_target::fetch_registers)
699 (linux_process_target::low_fetch_register)
700
daca57a7
TBA
7012020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
702
703 Turn the 'cannot_fetch_register' and 'cannot_store_register'
704 linux target ops into methods of linux_process_target.
705
706 * linux-low.h (struct linux_target_ops): Remove the low target ops.
707 (class linux_process_target) <fetch_register>
708 <store_register>
709 <usr_fetch_inferior_registers>
710 <usr_store_inferior_registers>
711 <low_cannot_fetch_register>
712 <low_cannot_fetch_register> Declare.
713 * linux-low.cc (fetch_register): Turn into...
714 (linux_process_target::fetch_register): ...this.
715 (store_register): Turn into ...
716 (linux_process_target::store_register): ...this.
717 (usr_fetch_inferior_registers): Turn into...
718 (linux_process_target::usr_fetch_inferior_registers): ...this.
719 (usr_store_inferior_registers): Turn into...
720 (linux_process_target::usr_store_inferior_registers): ...this.
721 * linux-x86-low.cc (class x86_target)
722 <low_cannot_fetch_register>
723 <low_cannot_store_register>: Declare.
724 (x86_cannot_store_register): Turn into...
725 (x86_target::low_cannot_store_register): ...this.
726 (x86_cannot_fetch_register): Turn into...
727 (x86_target::low_cannot_fetch_register): ...this.
728 (the_low_target): Remove the target op fields.
729 * linux-aarch64-low.cc (class aarch64_target)
730 <low_cannot_fetch_register>
731 <low_cannot_store_register>: Declare.
732 (aarch64_target::low_cannot_fetch_register)
733 (aarch64_target::low_cannot_store_register): Define.
734 (the_low_target): Remove the op fields.
735 * linux-arm-low.cc (class arm_target)
736 <low_cannot_fetch_register>
737 <low_cannot_store_register>: Declare.
738 (arm_cannot_fetch_register): Turn into...
739 (arm_target::low_cannot_fetch_register): ...this.
740 (arm_cannot_store_register): Turn into...
741 (arm_target::low_cannot_store_register): ...this.
742 (the_low_target): Remove the op fields.
743 * linux-bfin-low.cc (class bfin_target)
744 <low_cannot_fetch_register>
745 <low_cannot_store_register>: Declare.
746 (bfin_cannot_fetch_register): Turn into...
747 (bfin_target::low_cannot_fetch_register): ...this.
748 (bfin_cannot_store_register): Turn into...
749 (bfin_target::low_cannot_store_register): ...this.
750 (the_low_target): Remove the op fields.
751 * linux-cris-low.cc (class cris_target)
752 <low_cannot_fetch_register>
753 <low_cannot_store_register>: Declare.
754 (cris_cannot_fetch_register): Turn into...
755 (cris_target::low_cannot_fetch_register): ...this.
756 (cris_cannot_store_register): Turn into...
757 (cris_target::low_cannot_store_register): ...this.
758 (the_low_target): Remove the op fields.
759 * linux-crisv32-low.cc (class crisv32_target)
760 <low_cannot_fetch_register>
761 <low_cannot_store_register>: Declare.
762 (crisv32_target::low_cannot_fetch_register)
763 (crisv32_target::low_cannot_store_register): Define.
764 (the_low_target): Remove the op fields.
765 * linux-ia64-low.cc (class ia64_target)
766 <low_cannot_fetch_register>
767 <low_cannot_store_register>: Declare.
768 (ia64_cannot_fetch_register): Turn into...
769 (ia64_target::low_cannot_fetch_register): ...this.
770 (ia64_cannot_store_register): Turn into...
771 (ia64_target::low_cannot_store_register): ...this.
772 (the_low_target): Remove the op fields.
773 * linux-m32r-low.cc (class m32r_target)
774 <low_cannot_fetch_register>
775 <low_cannot_store_register>: Declare.
776 (m32r_cannot_fetch_register): Turn into...
777 (m32r_target::low_cannot_fetch_register): ...this.
778 (m32r_cannot_store_register): Turn into...
779 (m32r_target::low_cannot_store_register): ...this.
780 (the_low_target): Remove the op fields.
781 * linux-m68k-low.cc (class m68k_target)
782 <low_cannot_fetch_register>
783 <low_cannot_store_register>: Declare.
784 (m68k_cannot_fetch_register): Turn into...
785 (m68k_target::low_cannot_fetch_register): ...this.
786 (m68k_cannot_store_register): Turn into...
787 (m68k_target::low_cannot_store_register): ...this.
788 (the_low_target): Remove the op fields.
789 * linux-mips-low.cc (class mips_target)
790 <low_cannot_fetch_register>
791 <low_cannot_store_register>: Declare.
792 (mips_cannot_fetch_register): Turn into...
793 (mips_target::low_cannot_fetch_register): ...this.
794 (mips_cannot_store_register): Turn into...
795 (mips_target::low_cannot_store_register): ...this.
796 (get_usrregs_info): Inline at the call sites in
797 low_cannot_fetch_register and low_cannot_store_register,
798 and remove.
799 (the_low_target): Remove the op fields.
800 * linux-nios2-low.cc (class nios2_target)
801 <low_cannot_fetch_register>
802 <low_cannot_store_register>: Declare.
803 (nios2_cannot_fetch_register): Turn into...
804 (nios2_target::low_cannot_fetch_register): ...this.
805 (nios2_cannot_store_register): Turn into...
806 (nios2_target::low_cannot_store_register): ...this.
807 (the_low_target): Remove the op fields.
808 * linux-ppc-low.cc (class ppc_target)
809 <low_cannot_fetch_register>
810 <low_cannot_store_register>: Declare.
811 (ppc_cannot_fetch_register): Turn into...
812 (ppc_target::low_cannot_fetch_register): ...this.
813 (ppc_cannot_store_register): Turn into...
814 (ppc_target::low_cannot_store_register): ...this.
815 (the_low_target): Remove the op fields.
816 * linux-riscv-low.cc (class riscv_target)
817 <low_cannot_fetch_register>
818 <low_cannot_store_register>: Declare.
819 (riscv_target::low_cannot_fetch_register)
820 (riscv_target::low_cannot_store_register): Define.
821 (the_low_target): Remove the op fields.
822 * linux-s390-low.cc (class s390_target)
823 <low_cannot_fetch_register>
824 <low_cannot_store_register>: Declare.
825 (s390_cannot_fetch_register): Turn into...
826 (s390_target::low_cannot_fetch_register): ...this.
827 (s390_cannot_store_register): Turn into...
828 (s390_target::low_cannot_store_register): ...this.
829 (the_low_target): Remove the op fields.
830 * linux-sh-low.cc (class sh_target)
831 <low_cannot_fetch_register>
832 <low_cannot_store_register>: Declare.
833 (sh_cannot_fetch_register): Turn into...
834 (sh_target::low_cannot_fetch_register): ...this.
835 (sh_cannot_store_register): Turn into...
836 (sh_target::low_cannot_store_register): ...this.
837 (the_low_target): Remove the op fields.
838 * linux-sparc-low.cc (class sparc_target)
839 <low_cannot_fetch_register>
840 <low_cannot_store_register>: Declare.
841 (sparc_cannot_fetch_register): Turn into...
842 (sparc_target::low_cannot_fetch_register): ...this.
843 (sparc_cannot_store_register): Turn into...
844 (sparc_target::low_cannot_store_register): ...this.
845 (the_low_target): Remove the op fields.
846 * linux-tic6x-low.cc (class tic6x_target)
847 <low_cannot_fetch_register>
848 <low_cannot_store_register>: Declare.
849 (tic6x_cannot_fetch_register): Turn into...
850 (tic6x_target::low_cannot_fetch_register): ...this.
851 (tic6x_cannot_store_register): Turn into...
852 (tic6x_target::low_cannot_store_register): ...this.
853 (the_low_target): Remove the op fields.
854 * linux-tile-low.cc (class tile_target)
855 <low_cannot_fetch_register>
856 <low_cannot_store_register>: Declare.
857 (tile_cannot_fetch_register): Turn into...
858 (tile_target::low_cannot_fetch_register): ...this.
859 (tile_cannot_store_register): Turn into...
860 (tile_target::low_cannot_store_register): ...this.
861 (the_low_target): Remove the op fields.
862 * linux-xtensa-low.cc (class xtensa_target)
863 <low_cannot_fetch_register>
864 <low_cannot_store_register>: Declare.
865 (xtensa_target::low_cannot_fetch_register)
866 (xtensa_target::low_cannot_store_register): Define.
867 (the_low_target): Remove the op fields.
868
aa8d21c9
TBA
8692020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
870
871 Turn the 'regs_info' linux target op into a method of
872 linux_process_target.
873
874 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
875 (class linux_process_target) <get_regs_info>: Define.
876
877 Update the callers below.
878
879 * linux-low.cc (linux_process_target::fetch_registers)
880 (linux_process_target::store_registers)
881 * proc-service.cc (gregset_info)
882
883 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
884 (x86_linux_regs_info): Turn into ...
885 (x86_target::get_regs_info): ...this.
886 (the_low_target): Remove the op field.
887 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
888 Declare.
889 (aarch64_regs_info): Turn into ...
890 (aarch64_target::get_regs_info): ...this.
891 (the_low_target): Remove the op field.
892 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
893 (arm_regs_info): Turn into ...
894 (arm_target::get_regs_info): ...this.
895 (the_low_target): Remove the op field.
896 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
897 (bfin_regs_info): Turn into ...
898 (bfin_target::get_regs_info): ...this.
899 (the_low_target): Remove the op field.
900 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
901 (cris_regs_info): Turn into ...
902 (cris_target::get_regs_info): ...this.
903 (the_low_target): Remove the op field.
904 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
905 Declare.
906 (crisv32_regs_info): Turn into ...
907 (crisv32_target::get_regs_info): ...this.
908 (the_low_target): Remove the op field.
909 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
910 (ia64_regs_info): Turn into ...
911 (ia64_target::get_regs_info): ...this.
912 (the_low_target): Remove the op field.
913 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
914 (m32r_regs_info): Turn into ...
915 (m32r_target::get_regs_info): ...this.
916 (the_low_target): Remove the op field.
917 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
918 (m68k_regs_info): Turn into ...
919 (m68k_target::get_regs_info): ...this.
920 (the_low_target): Remove the op field.
921 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
922 (mips_regs_info): Turn into ...
923 (mips_target::get_regs_info): ...this.
924 (the_low_target): Remove the op field.
925 (get_usrregs_info): Update the call to the op.
926 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
927 (nios2_regs_info): Turn into ...
928 (nios2_target::get_regs_info): ...this.
929 (the_low_target): Remove the op field.
930 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
931 (ppc_regs_info): Turn into ...
932 (ppc_target::get_regs_info): ...this.
933 (the_low_target): Remove the op field.
934 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
935 (riscv_regs_info): Turn into ...
936 (riscv_target::get_regs_info): ...this.
937 (the_low_target): Remove the op field.
938 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
939 (s390_regs_info): Turn into ...
940 (s390_target::get_regs_info): ...this.
941 (the_low_target): Remove the op field.
942 (s390_collect_ptrace_register)
943 (s390_supply_ptrace_register)
944 (s390_fill_gregset): Update the call to the op.
945 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
946 (sh_regs_info): Turn into ...
947 (sh_target::get_regs_info): ...this.
948 (the_low_target): Remove the op field.
949 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
950 (sparc_regs_info): Turn into ...
951 (sparc_target::get_regs_info): ...this.
952 (the_low_target): Remove the op field.
953 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
954 (tic6x_regs_info): Turn into ...
955 (tic6x_target::get_regs_info): ...this.
956 (the_low_target): Remove the op field.
957 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
958 (tile_regs_info): Turn into ...
959 (tile_target::get_regs_info): ...this.
960 (the_low_target): Remove the op field.
961 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
962 Declare.
963 (xtensa_regs_info): Turn into ...
964 (xtensa_target::get_regs_info): ...this.
965 (the_low_target): Remove the op field.
966
797bcff5
TBA
9672020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
968
969 Turn the 'arch_setup' linux target op into a method of
970 linux_process_target.
971
972 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
973 (class linux_process_target) <arch_setup_thread>
974 <low_arch_setup>: New declarations.
975 * linux-low.cc (linux_arch_setup): Delete.
976 (linux_arch_setup_thread): Turn into...
977 (linux_process_target::arch_setup_thread): ... this.
978
979 Update the callers below.
980
981 (linux_process_target::handle_extended_wait)
982 (linux_process_target::post_create_inferior)
983 (linux_process_target::filter_event)
984
985 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
986 declaration.
987 (x86_linux_update_xmltarget): Turn into...
988 (x86_target::update_xmltarget): ...this.
989 (x86_linux_process_qsupported): Update the call to
990 x86_linux_update_xmltarget.
991 (x86_arch_setup): Turn into ...
992 (x86_target::low_arch_setup): ...this.
993 (the_low_target): Remove the op field.
994 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
995 declaration.
996 (aarch64_arch_setup): Turn into ...
997 (aarch64_target::low_arch_setup): ...this.
998 (the_low_target): Remove the op field.
999 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
1000 declaration.
1001 (arm_arch_setup): Turn into ...
1002 (arm_target::low_arch_setup): ...this.
1003 (the_low_target): Remove the op field.
1004 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
1005 declaration.
1006 (bfin_arch_setup): Turn into ...
1007 (bfin_target::low_arch_setup): ...this.
1008 (the_low_target): Remove the op field.
1009 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
1010 declaration.
1011 (cris_arch_setup): Turn into ...
1012 (cris_target::low_arch_setup): ...this.
1013 (the_low_target): Remove the op field.
1014 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
1015 declaration.
1016 (crisv32_arch_setup): Turn into ...
1017 (crisv32_target::low_arch_setup): ...this.
1018 (the_low_target): Remove the op field.
1019 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
1020 declaration.
1021 (ia64_arch_setup): Turn into ...
1022 (ia64_target::low_arch_setup): ...this.
1023 (the_low_target): Remove the op field.
1024 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
1025 declaration.
1026 (m32r_arch_setup): Turn into ...
1027 (m32r_target::low_arch_setup): ...this.
1028 (the_low_target): Remove the op field.
1029 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
1030 declaration.
1031 (m68k_arch_setup): Turn into ...
1032 (m68k_target::low_arch_setup): ...this.
1033 (the_low_target): Remove the op field.
1034 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
1035 declaration.
1036 (mips_arch_setup): Turn into ...
1037 (mips_target::low_arch_setup): ...this.
1038 (the_low_target): Remove the op field.
1039 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
1040 declaration.
1041 (nios2_arch_setup): Turn into ...
1042 (nios2_target::low_arch_setup): ...this.
1043 (the_low_target): Remove the op field.
1044 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
1045 declaration.
1046 (ppc_arch_setup): Turn into ...
1047 (ppc_target::low_arch_setup): ...this.
1048 (the_low_target): Remove the op field.
1049 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
1050 declaration.
1051 (riscv_arch_setup): Turn into ...
1052 (riscv_target::low_arch_setup): ...this.
1053 (the_low_target): Remove the op field.
1054 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
1055 declaration.
1056 (s390_arch_setup): Turn into ...
1057 (s390_target::low_arch_setup): ...this.
1058 (the_low_target): Remove the op field.
1059 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
1060 declaration.
1061 (sh_arch_setup): Turn into ...
1062 (sh_target::low_arch_setup): ...this.
1063 (the_low_target): Remove the op field.
1064 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
1065 declaration.
1066 (sparc_arch_setup): Turn into ...
1067 (sparc_target::low_arch_setup): ...this.
1068 (the_low_target): Remove the op field.
1069 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
1070 declaration.
1071 (tic6x_arch_setup): Turn into ...
1072 (tic6x_target::low_arch_setup): ...this.
1073 (the_low_target): Remove the op field.
1074 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
1075 declaration.
1076 (tile_arch_setup): Turn into ...
1077 (tile_target::low_arch_setup): ...this.
1078 (the_low_target): Remove the op field.
1079 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
1080 declaration.
1081 (xtensa_arch_setup): Turn into ...
1082 (xtensa_target::low_arch_setup): ...this.
1083 (the_low_target): Remove the op field.
1084
ef0478f6
TBA
10852020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1086
1087 * linux-low.h (the_linux_target): New extern declaration.
1088 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
1089 'the_target'.
1090 (the_linux_target): Remove.
1091 * linux-x86-low.cc (class x86_target): New class.
1092 (the_x86_target): New static object.
1093 (the_linux_target): Define as pointer to the_x86_target.
1094 * linux-aarch64-low.cc (class aarch64_target): New class.
1095 (the_aarch64_target): New static object.
1096 (the_linux_target): Define as pointer to the_aarch64_target.
1097 * linux-arm-low.cc (class arm_target): New class.
1098 (the_arm_target): New static object.
1099 (the_linux_target): Define as pointer to the_arm_target.
1100 * linux-bfin-low.cc (class bfin_target): New class.
1101 (the_bfin_target): New static object.
1102 (the_linux_target): Define as pointer to the_bfin_target.
1103 * linux-cris-low.cc (class cris_target): New class.
1104 (the_cris_target): New static object.
1105 (the_linux_target): Define as pointer to the_cris_target.
1106 * linux-crisv32-low.cc (class crisv32_target): New class.
1107 (the_crisv32_target): New static object.
1108 (the_linux_target): Define as pointer to the_crisv32_target.
1109 * linux-ia64-low.cc (class ia64_target): New class.
1110 (the_ia64_target): New static object.
1111 (the_linux_target): Define as pointer to the_ia64_target.
1112 * linux-m32r-low.cc (class m32r_target): New class.
1113 (the_m32r_target): New static object.
1114 (the_linux_target): Define as pointer to the_m32r_target.
1115 * linux-m68k-low.cc (class m68k_target): New class.
1116 (the_m68k_target): New static object.
1117 (the_linux_target): Define as pointer to the_m68k_target.
1118 * linux-mips-low.cc (class mips_target): New class.
1119 (the_mips_target): New static object.
1120 (the_linux_target): Define as pointer to the_mips_target.
1121 * linux-nios2-low.cc (class nios2_target): New class.
1122 (the_nios2_target): New static object.
1123 (the_linux_target): Define as pointer to the_nios2_target.
1124 * linux-ppc-low.cc (class ppc_target): New class.
1125 (the_ppc_target): New static object.
1126 (the_linux_target): Define as pointer to the_ppc_target.
1127 * linux-riscv-low.cc (class riscv_target): New class.
1128 (the_riscv_target): New static object.
1129 (the_linux_target): Define as pointer to the_riscv_target.
1130 * linux-s390-low.cc (class s390_target): New class.
1131 (the_s390_target): New static object.
1132 (the_linux_target): Define as pointer to the_s390_target.
1133 * linux-sh-low.cc (class sh_target): New class.
1134 (the_sh_target): New static object.
1135 (the_linux_target): Define as pointer to the_sh_target.
1136 * linux-sparc-low.cc (class sparc_target): New class.
1137 (the_sparc_target): New static object.
1138 (the_linux_target): Define as pointer to the_sparc_target.
1139 * linux-tic6x-low.cc (class tic6x_target): New class.
1140 (the_tic6x_target): New static object.
1141 (the_linux_target): Define as pointer to the_tic6x_target.
1142 * linux-tile-low.cc (class tile_target): New class.
1143 (the_tile_target): New static object.
1144 (the_linux_target): Define as pointer to the_tile_target.
1145 * linux-xtensa-low.cc (class xtensa_target): New class.
1146 (the_xtensa_target): New static object.
1147 (the_linux_target): Define as pointer to the_xtensa_target.
1148
d16f3f6c
TBA
11492020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1150
1151 Turn some static functions in linux-low.cc into private methods of
1152 linux_process_target.
1153
1154 * linux-low.cc (handle_extended_wait): Turn into ...
1155 (linux_process_target::handle_extended_wait): ...this. Call
1156 'mourn' on 'this' object instead of 'the_target'.
1157 (maybe_move_out_of_jump_pad): Turn into...
1158 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
1159 (linux_low_filter_event): Turn into...
1160 (linux_process_target::filter_event): ...this.
1161 (linux_wait_for_event_filtered): Turn into...
1162 (linux_process_target::wait_for_event_filtered): ...this.
1163 (linux_wait_for_event): Turn into...
1164 (linux_process_target::wait_for_event): ...this.
1165 (linux_wait_1): Turn into...
1166 (linux_process_target::wait_1): ...this.
1167 (wait_for_sigstop): Turn into...
1168 (linux_process_target::wait_for_sigstop): ...this.
1169 (move_out_of_jump_pad_callback): Turn into...
1170 (linux_process_target::move_out_of_jump_pad): ...this.
1171 (stop_all_lwps): Turn into...
1172 (linux_process_target::stop_all_lwps): ...this.
1173 (start_step_over): Turn into...
1174 (linux_process_target::start_step_over): ...this.
1175 (complete_ongoing_step_over): Turn into...
1176 (linux_process_target::complete_ongoing_step_over): ...this.
1177 (proceed_all_lwps): Turn into...
1178 (linux_process_target::proceed_all_lwps): ...this.
1179 (unstop_all_lwps): Turn into...
1180 (linux_process_target::unstop_all_lwps): ...this.
1181
1182 * linux-low.h (class linux_process_target)
1183 <handle_extended_wait>
1184 <maybe_move_out_of_jump_pad>
1185 filter_event>
1186 <wait_for_event_filtered>
1187 <wait_for_event>
1188 <wait_1>
1189 <wait_for_sigstop>
1190 <move_out_of_jump_pad>
1191 <stop_all_lwps>
1192 <start_step_over>
1193 <complete_ongoing_step_over>
1194 <proceed_all_lwps>
1195 <unstop_all_lwps>: Declare.
1196
1197 Update the callers below.
1198
1199 * linux-low.cc (linux_process_target::attach): Update.
1200 (linux_process_target::stabilize_threads): Ditto.
1201 (linux_process_target::wait): Ditto.
1202
a5863204
TBA
12032020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1204
1205 * linux-low.h (struct linux_target_ops): Update the comment for
1206 'cannot_store_register' to return 0 or 1.
1207 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
1208 of 2.
1209
c884cc46
SM
12102020-03-20 Simon Marchi <simon.marchi@efficios.com>
1211
1212 * config.in: Re-generate.
1213 * configure: Re-generate.
1214
5a82b8a1
KR
12152020-03-17 Kamil Rytarowski <n54@gmx.com>
1216
1217 * regcache.cc (find_register_by_number): Update.
1218 * tdesc.cc (init_target_desc): Likewise.
1219 * tdesc.h (target_desc::reg_defs): Likewise.
1220
4635ff97
TT
12212020-03-12 Tom Tromey <tom@tromey.com>
1222
1223 * configure: Rebuild.
1224 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
1225 (WIN32APILIBS): New subst.
1226 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
1227 gdbsupport files.
1228 (gdbsupport/%.o): Remove target.
1229 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
1230 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
1231 (WIN32APILIBS): New variable.
1232 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
1233 (gdbreplay$(EXEEXT)): Likewise.
1234
9a665d62
TT
12352020-03-12 Tom Tromey <tom@tromey.com>
1236
1237 * config.in, configure: Rebuild.
1238 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
1239 * acinclude.m4: Include gettext-sister.m4.
1240 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
1241 variables.
1242 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
1243 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
1244
272cd5a3
SM
12452020-03-12 Simon Marchi <simon.marchi@efficios.com>
1246
1247 * acinclude.m4: Update path to selftest.m4.
1248
db6878ac
SM
12492020-03-12 Simon Marchi <simon.marchi@efficios.com>
1250
1251 * configure.ac: Don't source bfd/development.sh, move
1252 GDB_AC_COMMON higher.
1253 * configure: Re-generate.
1254
4d696a5c
SM
12552020-03-12 Simon Marchi <simon.marchi@efficios.com>
1256
1257 * configure: Re-generate.
1258
a0761e34
SM
12592020-03-11 Simon Marchi <simon.marchi@efficios.com>
1260
1261 * configure: Re-generate.
1262
20ea4a60
AB
12632020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
1264
1265 * .dir-locals.el: New file.
1266
842806cb
TBA
12672020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1268
1269 * .gitattributes: New file.
1270
442131c1
AB
12712020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
1272
1273 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
1274 reply into an S reply.
1275 * server.cc (disable_packet_T): New global.
1276 (captured_main): Set new global when appropriate.
1277 * server.h (disable_packet_T): Declare.
1278
dda42c0b
TT
12792020-02-21 Tom Tromey <tom@tromey.com>
1280
1281 * Makefile.in (mostlyclean): New target.
1282
52405d85
TBA
12832020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1284
1285 * target.h (struct process_stratum_target): Remove.
1286 (class process_target): Rename to ...
1287 (class process_stratum_target): ... this.
1288 * linux-low.h (class linux_process_target): Derive from
1289 'process_stratum_target'.
1290 * linux-low.cc (linux_target_ops): Remove.
1291 (initialize_low): Set the_target to the singleton instance of
1292 linux_process_target.
1293 * lynx-low.h (class lynx_process_target): Derive from
1294 'process_stratum_target'.
1295 * lynx-low.cc (lynx_target_ops): Remove.
1296 (initialize_low): Set the_target to the singleton instance of
1297 lynx_process_target.
1298 * nto-low.h (class nto_process_target): Derive from
1299 'process_stratum_target'.
1300 * nto-low.cc (nto_target_ops): Remove.
1301 (initialize_low): Set the_target to the singleton instance of
1302 nto_process_target.
1303 * win32-low.h (class win32_process_target): Derive from
1304 'process_stratum_target'.
1305 * win32-low.cc (win32_target_ops): Remove.
1306 (initialize_low): Set the_target to the singleton instance of
1307 win32_process_target.
1308
1309 Replace 'the_target->pt' with 'the_target' in the uses below.
1310
1311 * hostio.cc (hostio_error)
1312 (handle_setfs)
1313 (handle_open)
1314 (handle_unlink)
1315 (handle_readlink)
1316 * linux-aarch32-low.cc (arm_breakpoint_at)
1317 * linux-aarch64-low.cc (aarch64_breakpoint_at)
1318 * linux-arm-low.cc (arm_sigreturn_next_pc)
1319 (arm_get_hwcap)
1320 (arm_get_syscall_trapinfo)
1321 * linux-cris-low.cc (cris_breakpoint_at)
1322 * linux-crisv32-low.cc (cris_breakpoint_at)
1323 * linux-low.cc (handle_extended_wait)
1324 (linux_wait_1)
1325 (linux_read_memory)
1326 (linux_process_target::breakpoint_kind_from_pc)
1327 (linux_get_auxv)
1328 * linux-m32r-low.cc (m32r_breakpoint_at)
1329 * linux-mips-low.cc (mips_breakpoint_at)
1330 * linux-nios2-low.cc (nios2_breakpoint_at)
1331 * linux-ppc-low.cc (ppc_breakpoint_at)
1332 * linux-s390-low.cc (s390_get_hwcap)
1333 * linux-sh-low.cc (sh_breakpoint_at)
1334 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
1335 (sparc_store_gregset_from_stack)
1336 (sparc_breakpoint_at)
1337 * linux-tic6x-low.cc (tic6x_breakpoint_at)
1338 * linux-tile-low.cc (tile_breakpoint_at)
1339 * linux-x86-low.cc (x86_breakpoint_at)
1340 * linux-xtensa-low.cc (xtensa_breakpoint_at)
1341 * mem-break.cc (bp_size)
1342 (bp_opcode)
1343 (insert_memory_breakpoint)
1344 (set_raw_breakpoint_at)
1345 (delete_raw_breakpoint)
1346 (z_type_supported)
1347 (uninsert_raw_breakpoint)
1348 (reinsert_raw_breakpoint)
1349 (validate_inserted_breakpoint)
1350 * regcache.cc (regcache_read_pc)
1351 (regcache_write_pc)
1352 * remote-utils.cc (putpkt_binary_1)
1353 (input_interrupt)
1354 (getpkt)
1355 (prepare_resume_reply)
1356 * server.cc (handle_general_set)
1357 (handle_detach)
1358 (handle_qxfer_auxv)
1359 (handle_qxfer_exec_file)
1360 (handle_qxfer_libraries_svr4)
1361 (handle_qxfer_osdata)
1362 (handle_qxfer_siginfo)
1363 (handle_qxfer_fdpic)
1364 (handle_query)
1365 (resume)
1366 (handle_v_requests)
1367 (queue_stop_reply_callback)
1368 (captured_main)
1369 * target.cc (prepare_to_access_memory)
1370 (done_accessing_memory)
1371 (read_inferior_memory)
1372 (target_write_memory)
1373 (target_stop_and_wait)
1374 (target_wait)
1375 (target_mourn_inferior)
1376 (target_continue_no_signal)
1377 (target_continue)
1378 (target_supports_multi_process)
1379 (kill_inferior)
1380 * target.h
1381 (target_create_inferior)
1382 (target_post_create_inferior)
1383 (myattach)
1384 (target_supports_fork_events)
1385 (target_supports_vfork_events)
1386 (target_supports_exec_events)
1387 (target_handle_new_gdb_connection)
1388 (detach_inferior)
1389 (mythread_alive)
1390 (fetch_inferior_registers)
1391 (store_inferior_registers)
1392 (join_inferior)
1393 (target_supports_non_stop)
1394 (target_async)
1395 (target_process_qsupported)
1396 (target_supports_catch_syscall)
1397 (target_get_ipa_tdesc_idx)
1398 (target_supports_tracepoints)
1399 (target_supports_fast_tracepoints)
1400 (target_get_min_fast_tracepoint_insn_len)
1401 (target_thread_stopped)
1402 (target_pause_all)
1403 (target_unpause_all)
1404 (target_stabilize_threads)
1405 (target_install_fast_tracepoint_jump_pad)
1406 (target_emit_ops)
1407 (target_supports_disable_randomization)
1408 (target_supports_agent)
1409 (target_enable_btrace)
1410 (target_disable_btrace)
1411 (target_read_btrace)
1412 (target_read_btrace_conf)
1413 (target_supports_range_stepping)
1414 (target_supports_stopped_by_sw_breakpoint)
1415 (target_stopped_by_sw_breakpoint)
1416 (target_supports_stopped_by_hw_breakpoint)
1417 (target_supports_hardware_single_step)
1418 (target_stopped_by_hw_breakpoint)
1419 (target_breakpoint_kind_from_pc)
1420 (target_breakpoint_kind_from_current_state)
1421 (target_supports_software_single_step)
1422 (target_core_of_thread)
1423 (target_thread_name)
1424 (target_thread_handle)
1425 * win32-low.cc (do_initial_child_stuff)
1426
1427 Rename target op default definitions listed below.
1428
1429 * target.cc (process_target::post_create_inferior): Rename as ...
1430 (process_stratum_target::post_create_inferior): ... this.
1431 (process_target::prepare_to_access_memory): Rename as ...
1432 (process_stratum_target::prepare_to_access_memory): ... this.
1433 (process_target::done_accessing_memory): Rename as ...
1434 (process_stratum_target::done_accessing_memory): ... this.
1435 (process_target::look_up_symbols): Rename as ...
1436 (process_stratum_target::look_up_symbols): ... this.
1437 (process_target::supports_read_auxv): Rename as ...
1438 (process_stratum_target::supports_read_auxv): ... this.
1439 (process_target::read_auxv): Rename as ...
1440 (process_stratum_target::read_auxv): ... this.
1441 (process_target::supports_z_point_type): Rename as ...
1442 (process_stratum_target::supports_z_point_type): ... this.
1443 (process_target::insert_point): Rename as ...
1444 (process_stratum_target::insert_point): ... this.
1445 (process_target::remove_point): Rename as ...
1446 (process_stratum_target::remove_point): ... this.
1447 (process_target::stopped_by_sw_breakpoint): Rename as ...
1448 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
1449 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
1450 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
1451 (process_target::stopped_by_hw_breakpoint): Rename as ...
1452 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
1453 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
1454 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
1455 (process_target::supports_hardware_single_step): Rename as ...
1456 (process_stratum_target::supports_hardware_single_step): ... this.
1457 (process_target::stopped_by_watchpoint): Rename as ...
1458 (process_stratum_target::stopped_by_watchpoint): ... this.
1459 (process_target::stopped_data_address): Rename as ...
1460 (process_stratum_target::stopped_data_address): ... this.
1461 (process_target::supports_read_offsets): Rename as ...
1462 (process_stratum_target::supports_read_offsets): ... this.
1463 (process_target::read_offsets): Rename as ...
1464 (process_stratum_target::read_offsets): ... this.
1465 (process_target::supports_get_tls_address): Rename as ...
1466 (process_stratum_target::supports_get_tls_address): ... this.
1467 (process_target::get_tls_address): Rename as ...
1468 (process_stratum_target::get_tls_address): ... this.
1469 (process_target::hostio_last_error): Rename as ...
1470 (process_stratum_target::hostio_last_error): ... this.
1471 (process_target::supports_qxfer_osdata): Rename as ...
1472 (process_stratum_target::supports_qxfer_osdata): ... this.
1473 (process_target::qxfer_osdata): Rename as ...
1474 (process_stratum_target::qxfer_osdata): ... this.
1475 (process_target::supports_qxfer_siginfo): Rename as ...
1476 (process_stratum_target::supports_qxfer_siginfo): ... this.
1477 (process_target::qxfer_siginfo): Rename as ...
1478 (process_stratum_target::qxfer_siginfo): ... this.
1479 (process_target::supports_non_stop): Rename as ...
1480 (process_stratum_target::supports_non_stop): ... this.
1481 (process_target::async): Rename as ...
1482 (process_stratum_target::async): ... this.
1483 (process_target::start_non_stop): Rename as ...
1484 (process_stratum_target::start_non_stop): ... this.
1485 (process_target::supports_multi_process): Rename as ...
1486 (process_stratum_target::supports_multi_process): ... this.
1487 (process_target::supports_fork_events): Rename as ...
1488 (process_stratum_target::supports_fork_events): ... this.
1489 (process_target::supports_vfork_events): Rename as ...
1490 (process_stratum_target::supports_vfork_events): ... this.
1491 (process_target::supports_exec_events): Rename as ...
1492 (process_stratum_target::supports_exec_events): ... this.
1493 (process_target::handle_new_gdb_connection): Rename as ...
1494 (process_stratum_target::handle_new_gdb_connection): ... this.
1495 (process_target::handle_monitor_command): Rename as ...
1496 (process_stratum_target::handle_monitor_command): ... this.
1497 (process_target::core_of_thread): Rename as ...
1498 (process_stratum_target::core_of_thread): ... this.
1499 (process_target::supports_read_loadmap): Rename as ...
1500 (process_stratum_target::supports_read_loadmap): ... this.
1501 (process_target::read_loadmap): Rename as ...
1502 (process_stratum_target::read_loadmap): ... this.
1503 (process_target::process_qsupported): Rename as ...
1504 (process_stratum_target::process_qsupported): ... this.
1505 (process_target::supports_tracepoints): Rename as ...
1506 (process_stratum_target::supports_tracepoints): ... this.
1507 (process_target::read_pc): Rename as ...
1508 (process_stratum_target::read_pc): ... this.
1509 (process_target::write_pc): Rename as ...
1510 (process_stratum_target::write_pc): ... this.
1511 (process_target::supports_thread_stopped): Rename as ...
1512 (process_stratum_target::supports_thread_stopped): ... this.
1513 (process_target::thread_stopped): Rename as ...
1514 (process_stratum_target::thread_stopped): ... this.
1515 (process_target::supports_get_tib_address): Rename as ...
1516 (process_stratum_target::supports_get_tib_address): ... this.
1517 (process_target::get_tib_address): Rename as ...
1518 (process_stratum_target::get_tib_address): ... this.
1519 (process_target::pause_all): Rename as ...
1520 (process_stratum_target::pause_all): ... this.
1521 (process_target::unpause_all): Rename as ...
1522 (process_stratum_target::unpause_all): ... this.
1523 (process_target::stabilize_threads): Rename as ...
1524 (process_stratum_target::stabilize_threads): ... this.
1525 (process_target::supports_fast_tracepoints): Rename as ...
1526 (process_stratum_target::supports_fast_tracepoints): ... this.
1527 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
1528 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
1529 (process_target::emit_ops): Rename as ...
1530 (process_stratum_target::emit_ops): ... this.
1531 (process_target::supports_disable_randomization): Rename as ...
1532 (process_stratum_target::supports_disable_randomization): ... this.
1533 (process_target::supports_qxfer_libraries_svr4): Rename as ...
1534 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
1535 (process_target::qxfer_libraries_svr4): Rename as ...
1536 (process_stratum_target::qxfer_libraries_svr4): ... this.
1537 (process_target::supports_agent): Rename as ...
1538 (process_stratum_target::supports_agent): ... this.
1539 (process_target::enable_btrace): Rename as ...
1540 (process_stratum_target::enable_btrace): ... this.
1541 (process_target::disable_btrace): Rename as ...
1542 (process_stratum_target::disable_btrace): ... this.
1543 (process_target::read_btrace): Rename as ...
1544 (process_stratum_target::read_btrace): ... this.
1545 (process_target::read_btrace_conf): Rename as ...
1546 (process_stratum_target::read_btrace_conf): ... this.
1547 (process_target::supports_range_stepping): Rename as ...
1548 (process_stratum_target::supports_range_stepping): ... this.
1549 (process_target::supports_pid_to_exec_file): Rename as ...
1550 (process_stratum_target::supports_pid_to_exec_file): ... this.
1551 (process_target::pid_to_exec_file): Rename as ...
1552 (process_stratum_target::pid_to_exec_file): ... this.
1553 (process_target::supports_multifs): Rename as ...
1554 (process_stratum_target::supports_multifs): ... this.
1555 (process_target::multifs_open): Rename as ...
1556 (process_stratum_target::multifs_open): ... this.
1557 (process_target::multifs_unlink): Rename as ...
1558 (process_stratum_target::multifs_unlink): ... this.
1559 (process_target::multifs_readlink): Rename as ...
1560 (process_stratum_target::multifs_readlink): ... this.
1561 (process_target::breakpoint_kind_from_pc): Rename as ...
1562 (process_stratum_target::breakpoint_kind_from_pc): ... this.
1563 (process_target::breakpoint_kind_from_current_state): Rename as ...
1564 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
1565 (process_target::thread_name): Rename as ...
1566 (process_stratum_target::thread_name): ... this.
1567 (process_target::thread_handle): Rename as ...
1568 (process_stratum_target::thread_handle): ... this.
1569 (process_target::supports_software_single_step): Rename as ...
1570 (process_stratum_target::supports_software_single_step): ... this.
1571 (process_target::supports_catch_syscall): Rename as ...
1572 (process_stratum_target::supports_catch_syscall): ... this.
1573 (process_target::get_ipa_tdesc_idx): Rename as ...
1574 (process_stratum_target::get_ipa_tdesc_idx): ... this.
1575
478f9adf
PA
15762020-02-20 Pedro Alves <palves@redhat.com>
1577
1578 * target.cc (set_target_ops): Simply copy the given target pointer
1579 instead of creating a copy of the pointed object.
1580
d633e831
TBA
15812020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1582
1583 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
1584 of process_target.
1585
1586 * target.h (struct process_stratum_target): Remove the target op.
1587 (class process_target): Add the target op.
1588 (target_get_ipa_tdesc_idx): Update the macro.
1589 * target.cc (process_target::get_ipa_tdesc_idx): Define.
1590
1591 Update the derived classes and callers below.
1592
1593 * linux-low.cc (linux_target_ops): Update.
1594 (linux_get_ipa_tdesc_idx): Turn into ...
1595 (linux_process_target::get_ipa_tdesc_idx): ... this.
1596 * linux-low.h (class linux_process_target): Update.
1597 * lynx-low.cc (lynx_target_ops): Update.
1598 * nto-low.cc (nto_target_ops): Update.
1599 * win32-low.cc (win32_target_ops): Update.
1600
bc8d3ae4
TBA
16012020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1602
1603 Turn process_stratum_target's supports_catch_syscall op into a
1604 method of process_target.
1605
1606 * target.h (struct process_stratum_target): Remove the target op.
1607 (class process_target): Add the target op.
1608 (target_supports_catch_syscall): Update the macro.
1609 * target.cc (process_target::supports_catch_syscall): Define.
1610
1611 Update the derived classes and callers below.
1612
1613 * linux-low.cc (linux_target_ops): Update.
1614 (linux_supports_catch_syscall): Turn into ...
1615 (linux_process_target::supports_catch_syscall): ... this.
1616 * linux-low.h (class linux_process_target): Update.
1617 * lynx-low.cc (lynx_target_ops): Update.
1618 * nto-low.cc (nto_target_ops): Update.
1619 * win32-low.cc (win32_target_ops): Update.
1620
5303a34f
TBA
16212020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1622
1623 Turn process_stratum_target's supports_software_single_step op
1624 into a method of process_target.
1625
1626 * target.h (struct process_stratum_target): Remove the target op.
1627 (class process_target): Add the target op.
1628 (target_supports_software_single_step): Update the macro.
1629 * target.cc (process_target::supports_software_single_step): Define.
1630
1631 Update the derived classes and callers below.
1632
1633 * linux-low.cc (linux_target_ops): Update.
1634 (linux_supports_software_single_step): Turn into ...
1635 (linux_process_target::supports_software_single_step): ... this.
1636 * linux-low.h (class linux_process_target): Update.
1637 * lynx-low.cc (lynx_target_ops): Update.
1638 * nto-low.cc (nto_target_ops): Update.
1639 * win32-low.cc (win32_target_ops): Update.
1640
7f63b89b
TBA
16412020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1642
1643 Turn process_stratum_target's thread_name and thread_handle ops
1644 into methods of process_target.
1645
1646 * target.h (struct process_stratum_target): Remove the target ops.
1647 (class process_target): Add the target ops.
1648 (target_thread_name): Update the macro.
1649 (target_thread_handle): Update the macro.
1650 * target.cc (process_target::thread_name): Define.
1651 (process_target::thread_handle): Define.
1652
1653 Update the derived classes and callers below.
1654
1655 * linux-low.cc (linux_target_ops): Update.
1656 (linux_process_target::thread_name): Define.
1657 (linux_process_target::thread_handle): Define.
1658 * linux-low.h (class linux_process_target): Update.
1659 * lynx-low.cc (lynx_target_ops): Update.
1660 * nto-low.cc (nto_target_ops): Update.
1661 * win32-low.cc (win32_target_ops): Update.
1662
d367006f
TBA
16632020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1664
1665 Turn process_stratum_target's breakpoint_kind_from_pc,
1666 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
1667 ops into methods of process_target.
1668
1669 * target.h (struct process_stratum_target): Remove the target op.
1670 (class process_target): Add the target op.
1671 (target_breakpoint_kind_from_pc): Update the macro.
1672 (target_breakpoint_kind_from_current_state): Update the macro.
1673 (default_breakpoint_kind_from_pc): Remove declaration.
1674 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
1675 (process_target::breakpoint_kind_from_pc): ... this.
1676 (process_target::breakpoint_kind_from_current_state): Define.
1677
1678 Update the derived classes and callers below.
1679
1680 * mem-break.cc (bp_size): Update.
1681 (bp_opcode): Update.
1682 * linux-low.cc (linux_target_ops): Update.
1683 (linux_wait_1): Update.
1684 (linux_breakpoint_kind_from_pc): Turn into ...
1685 (linux_process_target::breakpoint_kind_from_pc): ... this.
1686 (linux_sw_breakpoint_from_kind): Turn into ...
1687 (linux_process_target::sw_breakpoint_from_kind): ... this.
1688 (linux_breakpoint_kind_from_current_state): Turn into ...
1689 (linux_process_target::breakpoint_kind_from_current_state): ... this.
1690 * linux-low.h (class linux_process_target): Update.
1691 * lynx-low.cc (lynx_target_ops): Update.
1692 (lynx_process_target::sw_breakpoint_from_kind): Define.
1693 * lynx-low.h (class lynx_process_target): Update.
1694 * nto-low.cc (nto_target_ops): Update.
1695 (nto_sw_breakpoint_from_kind): Turn into ...
1696 (nto_process_target::sw_breakpoint_from_kind): ... this.
1697 * nto-low.h (class nto_process_target): Update.
1698 * win32-low.cc (win32_target_ops): Update.
1699 (win32_sw_breakpoint_from_kind): Turn into ...
1700 (win32_process_target::sw_breakpoint_from_kind): ... this.
1701 * win32-low.h (class win32_process_target): Update.
1702
c9b7b804
TBA
17032020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1704
1705 Turn process_stratum_target's multifs_open, multifs_readlink,
1706 multifs_unlink ops into methods of process_target.
1707
1708 * target.h (struct process_stratum_target): Remove the target ops.
1709 (class process_target): Add the target ops. Also add
1710 'supports_multifs'.
1711 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
1712 "sys/stat.h".
1713 (process_target::supports_multifs): Define.
1714 (process_target::multifs_open): Define.
1715 (process_target::multifs_readlink): Define.
1716 (process_target::multifs_unlink): Define.
1717
1718 Update the derived classes and callers below.
1719
1720 * hostio.cc (handle_setfs): Update.
1721 (handle_open): Update.
1722 (handle_unlink): Update.
1723 (handle_readlink): Update.
1724 * linux-low.cc (linux_target_ops): Update.
1725 (linux_process_target::supports_multifs): Define.
1726 (linux_process_target::multifs_open): Define.
1727 (linux_process_target::multifs_readlink): Define.
1728 (linux_process_target::multifs_unlink): Define.
1729 * linux-low.h (class linux_process_target): Update.
1730 * lynx-low.cc (lynx_target_ops): Update.
1731 * nto-low.cc (nto_target_ops): Update.
1732 * win32-low.cc (win32_target_ops): Update.
1733
8247b823
TBA
17342020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1735
1736 Turn process_stratum_target's pid_to_exec_file op into a method
1737 of process_target.
1738
1739 * target.h (struct process_stratum_target): Remove the target op.
1740 (class process_target): Add the target op. Also add
1741 'supports_pid_to_exec_file'.
1742 * target.cc (process_target::pid_to_exec_file): Define.
1743 (process_target::supports_pid_to_exec_file): Define.
1744
1745 Update the derived classes and callers below.
1746
1747 * server.cc (handle_qxfer_exec_file): Update.
1748 (handle_query): Update.
1749 * linux-low.cc (linux_target_ops): Update.
1750 (linux_process_target::supports_pid_to_exec_file): Define.
1751 (linux_process_target::pid_to_exec_file): Define.
1752 * linux-low.h (class linux_process_target): Update.
1753 * lynx-low.cc (lynx_target_ops): Update.
1754 * nto-low.cc (nto_target_ops): Update.
1755 * win32-low.cc (win32_target_ops): Update.
1756
2526e0cd
TBA
17572020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1758
1759 Turn process_stratum_target's supports_range_stepping op into a
1760 method of process_target.
1761
1762 * target.h (struct process_stratum_target): Remove the target op.
1763 (class process_target): Add the target op.
1764 (target_supports_range_stepping): Update the macro.
1765 * target.cc (process_target::supports_range_stepping): Define.
1766
1767 Update the derived classes and callers below.
1768
1769 * linux-low.cc (linux_target_ops): Update.
1770 (linux_supports_range_stepping): Turn into ...
1771 (linux_process_target::supports_range_stepping): ... this.
1772 * linux-low.h (class linux_process_target): Update.
1773 * lynx-low.cc (lynx_target_ops): Update.
1774 * nto-low.cc (nto_target_ops): Update.
1775 * win32-low.cc (win32_target_ops): Update.
1776
79597bdd
TBA
17772020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1778
1779 Turn process_stratum_target's btrace-related ops (enable_btrace,
1780 disable_btrace, read_btrace, read_btrace_conf) into methods of
1781 process_target.
1782
1783 * target.h (struct process_stratum_target): Remove the target ops.
1784 (class process_target): Add the target ops.
1785 (target_enable_btrace): Update.
1786 (target_disable_btrace): Update.
1787 (target_read_btrace): Update.
1788 (target_read_btrace_conf): Update.
1789 * target.cc (process_target::enable_btrace): Define.
1790 (process_target::disable_btrace): Define.
1791 (process_target::read_btrace): Define.
1792 (process_target::read_btrace_conf): Define.
1793
1794 Update the derived classes and callers below.
1795
1796 * linux-low.cc (linux_target_ops): Update.
1797 (linux_process_target:enable_btrace): Define as a wrapper around
1798 linux_enable_btrace.
1799 (linux_low_disable_btrace): Turn into ...
1800 (linux_process_target::disable_btrace): ... this.
1801 (linux_low_read_btrace): Turn into ...
1802 (linux_process_target::read_btrace): ... this.
1803 (linux_low_btrace_conf): Turn into ...
1804 (linux_process_target::read_btrace_conf): ... this.
1805 * linux-low.h (class linux_process_target): Update.
1806 * lynx-low.cc (lynx_target_ops): Update.
1807 * nto-low.cc (nto_target_ops): Update.
1808 * win32-low.cc (win32_target_ops): Update.
1809
c0245cb9
TBA
18102020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1811
1812 Turn process_stratum_target's supports_agent op into a method of
1813 process_target.
1814
1815 * target.h (struct process_stratum_target): Remove the target op.
1816 (class process_target): Add the target op.
1817 (target_supports_agent): Update the macro.
1818 * target.cc (process_target::supports_agent): Define.
1819
1820 Update the derived classes and callers below.
1821
1822 * linux-low.cc (linux_target_ops): Update.
1823 (linux_supports_agent): Turn into ...
1824 (linux_process_target::supports_agent): ... this.
1825 * linux-low.h (class linux_process_target): Update.
1826 * lynx-low.cc (lynx_target_ops): Update.
1827 * nto-low.cc (nto_target_ops): Update.
1828 * win32-low.cc (win32_target_ops): Update.
1829
974387bb
TBA
18302020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1831
1832 Turn process_stratum_target's qxfer_libraries_svr4 op into a
1833 method of process_target.
1834
1835 * target.h (struct process_stratum_target): Remove the target op.
1836 (class process_target): Add the target op. Also add
1837 'supports_qxfer_libraries_svr4'.
1838 * target.cc (process_target::qxfer_libraries_svr4): Define.
1839 (process_target::supports_qxfer_libraries_svr4): Define.
1840
1841 Update the derived classes and callers below.
1842
1843 * server.cc (handle_qxfer_libraries_svr4): Update.
1844 (handle_query): Update.
1845 * linux-low.cc (linux_target_ops): Update.
1846 (linux_process_target::supports_qxfer_libraries_svr4): Define.
1847 (linux_qxfer_libraries_svr4): Turn into ...
1848 (linux_process_target::qxfer_libraries_svr4): ... this.
1849 * linux-low.h (class linux_process_target): Update.
1850 * lynx-low.cc (lynx_target_ops): Update.
1851 * nto-low.cc (nto_target_ops): Update.
1852 * win32-low.cc (win32_target_ops): Update.
1853
c756403b
TBA
18542020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1855
1856 Turn process_stratum_target's supports_disable_randomization op
1857 into a method of process_target.
1858
1859 * target.h (struct process_stratum_target): Remove the target op.
1860 (class process_target): Add the target op.
1861 (target_supports_disable_randomization): Update the macro.
1862 * target.cc (process_target::supports_disable_randomization): Define.
1863
1864 Update the derived classes and callers below.
1865
1866 * linux-low.cc (linux_target_ops): Update.
1867 (linux_supports_disable_randomization): Turn into ...
1868 (linux_process_target::supports_disable_randomization): ... this.
1869 * linux-low.h (class linux_process_target): Update.
1870 * lynx-low.cc (lynx_target_ops): Update.
1871 * nto-low.cc (nto_target_ops): Update.
1872 * win32-low.cc (win32_target_ops): Update.
1873
345dafad
TBA
18742020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1875
1876 Turn process_stratum_target's emit_ops op into a method of
1877 process_target.
1878
1879 * target.h (struct process_stratum_target): Remove the target op.
1880 (class process_target): Add the target op.
1881 (target_emit_ops): Update the macro.
1882 * target.cc (process_target::emit_ops): Define.
1883
1884 Update the derived classes and callers below.
1885
1886 * linux-low.cc (linux_target_ops): Update.
1887 (linux_emit_ops): Turn into ...
1888 (linux_process_target::emit_ops): ... this.
1889 * linux-low.h (class linux_process_target): Update.
1890 * lynx-low.cc (lynx_target_ops): Update.
1891 * nto-low.cc (nto_target_ops): Update.
1892 * win32-low.cc (win32_target_ops): Update.
1893
c23c9391
TBA
18942020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1895
1896 Turn process_stratum_target's install_fast_tracepoint_jump_pad
1897 and get_min_fast_tracepoint_insn_len ops into methods of
1898 process_target.
1899
1900 * target.h (struct process_stratum_target): Remove the target ops.
1901 (class process_target): Add the target ops. Also add
1902 'supports_fast_tracepoints'.
1903 (target_supports_fast_tracepoints): Update the macro.
1904 (target_get_min_fast_tracepoint_insn_len): Update the macro.
1905 (install_fast_tracepoint_jump_pad): Update and rename the macro
1906 to ...
1907 (target_install_fast_tracepoint_jump_pad): ... this.
1908 * target.cc (process_target::supports_fast_tracepoints): Define.
1909 (process_target::install_fast_tracepoint_jump_pad): Define.
1910 (process_target::get_min_fast_tracepoint_insn_len): Define.
1911
1912 Update the derived classes and callers below.
1913
1914 * tracepoint.cc (install_fast_tracepoint): Update.
1915 * linux-low.cc (linux_target_ops): Update.
1916 (linux_process_target::supports_fast_tracepoints): Define.
1917 (linux_install_fast_tracepoint_jump_pad): Turn into ...
1918 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
1919 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
1920 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
1921 * linux-low.h (class linux_process_target): Update.
1922 * lynx-low.cc (lynx_target_ops): Update.
1923 * nto-low.cc (nto_target_ops): Update.
1924 * win32-low.cc (win32_target_ops): Update.
1925
5c9eb2f2
TBA
19262020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1927
1928 Turn process_stratum_target's stabilize_threads op into a
1929 method of process_target.
1930
1931 * target.h (struct process_stratum_target): Remove the target op.
1932 (class process_target): Add the target op.
1933 (target_stabilize_threads): Update the macro.
1934 * target.cc (process_target::stabilize_threads): Define.
1935
1936 Update the derived classes and callers below.
1937
1938 * server.cc (handle_status): Update.
1939 * tracepoint.cc (cmd_qtdp): Update.
1940 (cmd_qtstart): Update.
1941 * linux-low.cc (linux_target_ops): Update.
1942 (linux_stabilize_threads): Turn into ...
1943 (linux_process_target::stabilize_threads): ... this.
1944 (linux_wait_1): Update.
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.
1949
29e8dc09
TBA
19502020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1951
1952 Turn process_stratum_target's pause_all and unpause_all ops
1953 into methods of process_target.
1954
1955 * target.h (struct process_stratum_target): Remove the target ops.
1956 (class process_target): Add the target ops.
1957 (pause_all): Update the macro and rename to...
1958 (target_pause_all): ... this.
1959 (unpause_all): Update the macro and rename to...
1960 (target_unpause_all): ... this.
1961 * target.cc (process_target::pause_all): Define.
1962 (process_target::unpause_all): Define.
1963
1964 Update the derived classes and callers below.
1965
1966 * server.cc (handle_status): Update.
1967 * tracepoint.cc (clear_installed_tracepoints): Update.
1968 (cmd_qtdp): Update.
1969 (cmd_qtstart): Update.
1970 (stop_tracing): Update.
1971 (cmd_qtstatus): Update.
1972 (upload_fast_traceframes): Update.
1973 (run_inferior_command): Update.
1974 * linux-low.cc (linux_target_ops): Update.
1975 (linux_pause_all): Turn into ...
1976 (linux_process_target::pause_all): ... this.
1977 (linux_unpause_all): Turn into ...
1978 (linux_process_target::unpause_all): ... this.
1979 (linux_process_target::prepare_to_access_memory): Update.
1980 (linux_process_target::done_accessing_memory): Update.
1981 * linux-low.h (class linux_process_target): Update.
1982 * lynx-low.cc (lynx_target_ops): Update.
1983 * nto-low.cc (nto_target_ops): Update.
1984 * win32-low.cc (win32_target_ops): Update.
1985
4e2e869c
TBA
19862020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1987
1988 Turn process_stratum_target's get_tib_address op into a method of
1989 process_target.
1990
1991 * target.h (struct process_stratum_target): Remove the target op.
1992 (class process_target): Add the target op. Also add
1993 'supports_get_tib_address'.
1994 * target.cc (process_target::get_tib_address): Define.
1995 (process_target::supports_get_tib_address): Define.
1996
1997 Update the derived classes and callers below.
1998
1999 * server.cc (handle_query): Update.
2000 * linux-low.cc (win32_target_ops): Update.
2001 * lynx-low.cc (lynx_target_ops): Update.
2002 * nto-low.cc (nto_target_ops): Update.
2003 * win32-low.cc (win32_target_ops): Update.
2004 (win32_process_target::supports_get_tib_address): Define.
2005 (win32_get_tib_address): Turn into ...
2006 (win32_process_target::get_tib_address): ... this.
2007 * win32-low.h (class win32_process_target): Update.
2008
68119632
TBA
20092020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2010
2011 Turn process_stratum_target's thread_stopped op into a method of
2012 process_target.
2013
2014 * target.h (struct process_stratum_target): Remove the target op.
2015 (class process_target): Add the target op. Also add
2016 'supports_thread_stopped'.
2017 (target_thread_stopped): Update the macro.
2018 * target.cc (process_target::thread_stopped): Define.
2019 (process_target::supports_thread_stopped): Define.
2020 (prepare_to_access_memory): Update.
2021
2022 Update the derived classes and callers below.
2023
2024 * server.cc (queue_stop_reply_callback): Update.
2025 * linux-low.cc (linux_target_ops): Update.
2026 (linux_process_target::supports_thread_stopped): Define.
2027 (linux_thread_stopped): Turn into ...
2028 (linux_process_target::thread_stopped): ... this.
2029 * linux-low.h (class linux_process_target): Update.
2030 * lynx-low.cc (lynx_target_ops): Update.
2031 * nto-low.cc (nto_target_ops): Update.
2032 * win32-low.cc (win32_target_ops): Update.
2033
770d8f6a
TBA
20342020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2035
2036 Turn process_stratum_target's read_pc and write_pc ops into
2037 methods of process_target.
2038
2039 * target.h (struct process_stratum_target): Remove the target ops.
2040 (class process_target): Add the target ops.
2041 * target.cc (process_target::read_pc): Define.
2042 (process_target::write_pc): Define.
2043
2044 Update the derived classes and callers below.
2045
2046 * regcache.cc (regcache_read_pc): Update.
2047 (regcache_write_pc): Update.
2048 * linux-low.cc (linux_target_ops): Update.
2049 (linux_read_pc): Turn into ...
2050 (linux_process_target::read_pc): ... this.
2051 (linux_write_pc): Turn into ...
2052 (linux_process_target::write_pc): ... this.
2053 * linux-low.h (class linux_process_target): Update.
2054 * lynx-low.cc (lynx_target_ops): Update.
2055 * nto-low.cc (nto_target_ops): Update.
2056 * win32-low.cc (win32_target_ops): Update.
2057
290732bf
TBA
20582020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2059
2060 Turn process_stratum_target's supports_tracepoints op into a
2061 method of process_target.
2062
2063 * target.h (struct process_stratum_target): Remove the target op.
2064 (class process_target): Add the target op.
2065 (target_supports_tracepoints): Update the macro.
2066 * target.cc (process_target::supports_tracepoints): Define.
2067
2068 Update the derived classes and callers below.
2069
2070 * linux-low.cc (linux_target_ops): Update.
2071 (linux_supports_tracepoints): Turn into ...
2072 (linux_process_target::supports_tracepoints): ... this.
2073 * linux-low.h (class linux_process_target): Update.
2074 * lynx-low.cc (lynx_target_ops): Update.
2075 * nto-low.cc (nto_target_ops): Update.
2076 * win32-low.cc (win32_target_ops): Update.
2077
0df28b1b
TBA
20782020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2079
2080 Turn process_stratum_target's process_qsupported op into a method
2081 of process_target.
2082
2083 * target.h (struct process_stratum_target): Remove the target op.
2084 (class process_target): Add the target op.
2085 (target_process_qsupported): Update the macro.
2086 * target.cc (process_target::process_qsupported): Define.
2087
2088 Update the derived classes and callers below.
2089
2090 * linux-low.cc (linux_target_ops): Update.
2091 (linux_process_qsupported): Turn into ...
2092 (linux_process_target::process_qsupported): ... this.
2093 * linux-low.h (class linux_process_target): Update.
2094 * lynx-low.cc (lynx_target_ops): Update.
2095 * nto-low.cc (nto_target_ops): Update.
2096 * win32-low.cc (win32_target_ops): Update.
2097
9da41fda
TBA
20982020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2099
2100 Turn process_stratum_target's read_loadmap op into a method of
2101 process_target.
2102
2103 * target.h (struct process_stratum_target): Remove the target op.
2104 (class process_target): Add the target op. Also add
2105 'supports_read_loadmap'.
2106 * target.cc (process_target::read_loadmap): Define.
2107 (process_target::supports_read_loadmap): Define.
2108
2109 Update the derived classes and callers below.
2110
2111 * server.cc (handle_qxfer_fdpic): Update.
2112 (handle_query): Update.
2113 * linux-low.cc (linux_target_ops): Update.
2114 (linux_process_target::supports_read_loadmap): Define.
2115 (linux_read_loadmap): Turn into ...
2116 (linux_process_target::read_loadmap): ... this.
2117 * linux-low.h (class linux_process_target): Update.
2118 * lynx-low.cc (lynx_target_ops): Update.
2119 * nto-low.cc (nto_target_ops): Update.
2120 * win32-low.cc (win32_target_ops): Update.
2121
95a45fc1
TBA
21222020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2123
2124 Turn process_stratum_target's core_of_thread op into a method of
2125 process_target.
2126
2127 * target.h (struct process_stratum_target): Remove the target op.
2128 (class process_target): Add the target op.
2129 (target_core_of_thread): Update the macro.
2130 * target.cc (process_target::core_of_thread): Define.
2131
2132 Update the derived classes and callers below.
2133
2134 * linux-low.cc (linux_target_ops): Update.
2135 (linux_process_target::core_of_thread): Define.
2136 * linux-low.h (class linux_process_target): Update.
2137 * lynx-low.cc (lynx_target_ops): Update.
2138 * nto-low.cc (nto_target_ops): Update.
2139 * win32-low.cc (win32_target_ops): Update.
2140
55cf3021
TBA
21412020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2142
2143 Turn process_stratum_target's handle_monitor_command op into a
2144 method of process_target.
2145
2146 * target.h (struct process_stratum_target): Remove the target op.
2147 (class process_target): Add the target op.
2148 (target_handle_monitor_command): Update the macro.
2149 * target.cc (process_target::handle_monitor_command): Define.
2150
2151 Update the derived classes and callers below.
2152
2153 * server.cc (handle_query): Update.
2154 * linux-low.cc (linux_target_ops): Update.
2155 (linux_process_target::handle_monitor_command): Define.
2156 * linux-low.h (class linux_process_target): Update.
2157 * lynx-low.cc (lynx_target_ops): Update.
2158 * nto-low.cc (nto_target_ops): Update.
2159 * win32-low.cc (win32_target_ops): Update.
2160
fb00dfce
TBA
21612020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2162
2163 Turn process_stratum_target's handle_new_gdb_connection op into a
2164 method of process_target.
2165
2166 * target.h (struct process_stratum_target): Remove the target op.
2167 (class process_target): Add the target op.
2168 (target_handle_new_gdb_connection): Update the macro.
2169 * target.cc (process_target::handle_new_gdb_connection): Define.
2170
2171 Update the derived classes and callers below.
2172
2173 * linux-low.cc (linux_target_ops): Update.
2174 (linux_handle_new_gdb_connection): Turn into ...
2175 (linux_process_target::handle_new_gdb_connection): ... this.
2176 * linux-low.h (class linux_process_target): Update.
2177 * lynx-low.cc (lynx_target_ops): Update.
2178 * nto-low.cc (nto_target_ops): Update.
2179 * win32-low.cc (win32_target_ops): Update.
2180
9690a72a
TBA
21812020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2182
2183 Turn process_stratum_target's supports_fork_events,
2184 supports_vfork_events, and supports_exec_events ops into methods
2185 of process_target.
2186
2187 * target.h (struct process_stratum_target): Remove the target ops.
2188 (class process_target): Add the target ops.
2189 (target_supports_fork_events): Update the macro.
2190 (target_supports_vfork_events): Update the macro.
2191 (target_supports_exec_events): Update the macro.
2192 * target.cc (process_target::supports_fork_events): Define.
2193 (process_target::supports_vfork_events): Define.
2194 (process_target::supports_exec_events): Define.
2195
2196 Update the derived classes and callers below.
2197
2198 * linux-low.cc (linux_target_ops): Update.
2199 (linux_supports_fork_events): Turn into ...
2200 (linux_process_target::supports_fork_events): ... this.
2201 (linux_supports_vfork_events): Turn into ...
2202 (linux_process_target::supports_vfork_events): ... this.
2203 (linux_supports_exec_events): Turn into ...
2204 (linux_process_target::supports_exec_events): ... this.
2205 * linux-low.h (class linux_process_target): Update.
2206 * lynx-low.cc (lynx_target_ops): Update.
2207 * nto-low.cc (nto_target_ops): Update.
2208 * win32-low.cc (win32_target_ops): Update.
2209
652aef77
TBA
22102020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2211
2212 Turn process_stratum_target's supports_multi_process op into a
2213 method of process_target.
2214
2215 * target.h (struct process_stratum_target): Remove the target op.
2216 (class process_target): Add the target op.
2217 * target.cc (process_target::supports_multi_process): Define.
2218 (target_supports_multi_process): Update.
2219
2220 Update the derived classes and callers below.
2221
2222 * linux-low.cc (linux_target_ops): Update.
2223 (linux_supports_multi_process): Turn into ...
2224 (linux_process_target::supports_multi_process): ... this.
2225 * linux-low.h (class linux_process_target): Update.
2226 * lynx-low.cc (lynx_target_ops): Update.
2227 * nto-low.cc (nto_target_ops): Update.
2228 * win32-low.cc (win32_target_ops): Update.
2229
0dc587d4
TBA
22302020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2231
2232 Turn process_stratum_target's supports_non_stop, async, and
2233 start_non_stop ops into methods of process_target.
2234
2235 * target.h (struct process_stratum_target): Remove the target ops.
2236 (class process_target): Add the target ops.
2237 (target_supports_non_stop): Update the macro.
2238 (target_async): Update the macro.
2239 (start_non_stop): Remove declaration.
2240 * target.cc (process_target::supports_non_stop): Define.
2241 (process_target::async): Define.
2242 (process_target::start_non_stop): Define.
2243 (start_non_stop): Remove.
2244
2245 Update the derived classes and callers below.
2246
2247 * server.cc (handle_qxfer_siginfo): Update.
2248 (handle_query): Update.
2249 * linux-low.cc (linux_target_ops): Update.
2250 (linux_supports_non_stop): Turn into ...
2251 (linux_process_target::supports_non_stop): ... this.
2252 (linux_async): Turn into ...
2253 (linux_process_target::async): ... this.
2254 (linux_start_non_stop): Turn into ...
2255 (linux_process_target::start_non_stop): ... this.
2256 * linux-low.h (class linux_process_target): Update.
2257 * lynx-low.cc (lynx_target_ops): Update.
2258 * nto-low.cc (nto_target_ops): Update.
2259 (nto_supports_non_stop): Remove; rely on the default behavior
2260 instead.
2261 * win32-low.cc (win32_target_ops): Update.
2262
d7abedf7
TBA
22632020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2264
2265 Turn process_stratum_target's qxfer_siginfo op into a method of
2266 process_target.
2267
2268 * target.h (struct process_stratum_target): Remove the target op.
2269 (class process_target): Add the target op. Also add
2270 'supports_qxfer_siginfo'.
2271 * target.cc (process_target::qxfer_siginfo): Define.
2272 (process_target::supports_qxfer_siginfo): Define.
2273
2274 Update the derived classes and callers below.
2275
2276 * server.cc (handle_qxfer_siginfo): Update.
2277 (handle_query): Update.
2278 * linux-low.cc (linux_target_ops): Update.
2279 (linux_process_target::supports_qxfer_siginfo): Define.
2280 (linux_xfer_siginfo): Turn into ...
2281 (linux_process_target::qxfer_siginfo): ... this.
2282 * linux-low.h (class linux_process_target): Update.
2283 * lynx-low.cc (lynx_target_ops): Update.
2284 * nto-low.cc (nto_target_ops): Update.
2285 * win32-low.cc (win32_target_ops): Update.
2286
2d0795ee
TBA
22872020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2288
2289 Turn process_stratum_target's qxfer_osdata op into a method of
2290 process_target.
2291
2292 * target.h (struct process_stratum_target): Remove the target op.
2293 (class process_target): Add the target op. Also add
2294 'supports_qxfer_osdata'.
2295 * target.cc (process_target::qxfer_osdata): Define.
2296 (process_target::supports_qxfer_osdata): Define.
2297
2298 Update the derived classes and callers below.
2299
2300 * server.cc (handle_qxfer_osdata): Update.
2301 (handle_query): Update.
2302 * linux-low.cc (linux_target_ops): Update.
2303 (linux_process_target::supports_qxfer_osdata): Define.
2304 (linux_qxfer_osdata): Turn into ...
2305 (linux_process_target::qxfer_osdata): ... this.
2306 * linux-low.h (class linux_process_target): Update.
2307 * lynx-low.cc (lynx_target_ops): Update.
2308 * nto-low.cc (nto_target_ops): Update.
2309 * win32-low.cc (win32_target_ops): Update.
2310
ea06bbaa
TBA
23112020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2312
2313 Turn process_stratum_target's hostio_last_error op into a
2314 method of process_target.
2315
2316 * target.h (struct process_stratum_target): Remove the target op.
2317 (class process_target): Add the target op.
2318 * target.cc: Add "hostio.h" to includes.
2319 (process_target::hostio_last_error): Define.
2320
2321 Update the derived classes and callers below.
2322
2323 * hostio.cc (hostio_error): Update.
2324 * linux-low.cc: Remove "hostio.h" from includes.
2325 (linux_target_ops): Update.
2326 * lynx-low.cc (lynx_target_ops): Update.
2327 * nto-low.cc (nto_target_ops): Update.
2328 * win32-low.h (class win32_process_target): Update.
2329 * win32-low.cc (win32_target_ops): Update.
2330 (wince_hostio_last_error): Turn into ...
2331 (win32_process_target::hostio_last_error): ... this.
2332
6e3fd7e9
TBA
23332020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2334
2335 Turn process_stratum_target's get_tls_address op into a method of
2336 process_target.
2337
2338 * target.h (struct process_stratum_target): Remove the target op.
2339 (class process_target): Add the target op. Also add
2340 'supports_get_tls_address'.
2341 * target.cc (process_target::get_tls_address): Define.
2342 (process_target::supports_get_tls_address): Define.
2343
2344 Update the derived classes and callers below.
2345
2346 * server.cc (handle_query): Update.
2347 * linux-low.cc (linux_target_ops): Update.
2348 (linux_process_target::supports_get_tls_address): Define.
2349 (linux_process_target::get_tls_address): Define.
2350 * linux-low.h (class linux_process_target): Update.
2351 * lynx-low.cc (lynx_target_ops): Update.
2352 * nto-low.cc (nto_target_ops): Update.
2353 * win32-low.cc (win32_target_ops): Update.
2354
5203ae1e
TBA
23552020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2356
2357 Turn process_stratum_target's read_offsets op into a method of
2358 process_target.
2359
2360 * target.h (struct process_stratum_target): Remove the target op.
2361 (class process_target): Add the target op. Also add
2362 'supports_read_offsets'.
2363 * target.cc (process_target::read_offsets): Define.
2364 (process_target::supports_read_offsets): Define.
2365
2366 Update the derived classes and callers below.
2367
2368 * server.cc (handle_query): Update.
2369 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
2370 (linux_target_ops): Update.
2371 (linux_process_target::supports_read_offsets): Define.
2372 (linux_read_offsets): Turn into ...
2373 (linux_process_target::read_offsets): ... this.
2374 * linux-low.h (class linux_process_target): Update.
2375 * lynx-low.cc (lynx_target_ops): Update.
2376 * nto-low.cc (nto_target_ops): Update.
2377 * win32-low.cc (win32_target_ops): Update.
2378
6eeb5c55
TBA
23792020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2380
2381 Turn process_stratum_target's stopped_by_watchpoint and
2382 stopped_data_address ops into methods of process_target.
2383
2384 * target.h (struct process_stratum_target): Remove the target ops.
2385 (class process_target): Add the target ops.
2386 * target.cc (process_target::stopped_by_watchpoint): Define.
2387 (process_target::stopped_data_address): Define.
2388
2389 Update the derived classes and callers below.
2390
2391 * remote-utils.cc (prepare_resume_reply): Update.
2392 * linux-low.cc (linux_target_ops): Update.
2393 (linux_stopped_by_watchpoint): Turn into ...
2394 (linux_process_target::stopped_by_watchpoint): ... this.
2395 (linux_stopped_data_address): Turn into ...
2396 (linux_process_target::stopped_data_address): ... this.
2397 * linux-low.h (class linux_process_target): Update.
2398 * lynx-low.cc (lynx_target_ops): Update.
2399 * nto-low.cc (nto_target_ops): Update.
2400 (nto_stopped_by_watchpoint): Turn into ...
2401 (nto_process_target::stopped_by_watchpoint): ... this.
2402 (nto_stopped_data_address): Turn into ...
2403 (nto_process_target::stopped_data_address): ... this.
2404 * nto-low.h (class nto_process_target): Update.
2405 * win32-low.cc (win32_target_ops): Update.
2406 (win32_stopped_by_watchpoint): Turn into ...
2407 (win32_process_target::stopped_by_watchpoint): ... this.
2408 (win32_stopped_data_address): Turn into ...
2409 (win32_process_target::stopped_data_address): ... this.
2410 * win32-low.h (class win32_process_target): Update.
2411
22aa6223
TBA
24122020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2413
2414 Turn process_stratum_target's supports_hardware_single_step op into
2415 a method of process_target.
2416
2417 * target.h (struct process_stratum_target): Remove the target op.
2418 (class process_target): Add the target op.
2419 (target_supports_hardware_single_step): Update the macro.
2420 (target_can_do_hardware_single_step): Remove declaration.
2421 * target.cc (process_target::supports_hardware_single_step): Define.
2422 (target_can_do_hardware_single_step): Remove.
2423
2424 Update the derived classes and callers below.
2425
2426 * linux-low.h (class linux_process_target): Update.
2427 * linux-low.cc (linux_target_ops): Update.
2428 (linux_supports_hardware_single_step): Turn into ...
2429 (linux_process_target::supports_hardware_single_step): ... this.
2430 * lynx-low.h (class lynx_process_target): Update.
2431 * lynx-low.cc (lynx_target_ops): Update.
2432 (lynx_process_target::supports_hardware_single_step): Define.
2433 * nto-low.h (class nto_process_target): Update.
2434 * nto-low.cc (nto_target_ops): Update.
2435 (nto_process_target::supports_hardware_single_step): Define.
2436 * win32-low.h (class win32_process_target): Update.
2437 * win32-low.cc (win32_target_ops): Update.
2438 (win32_process_target::supports_hardware_single_step): Define.
2439
93fe88b2
TBA
24402020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2441
2442 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
2443 ops into methods of process_target.
2444
2445 * target.h (struct process_stratum_target): Remove the target ops.
2446 (class process_target): Add the target ops.
2447 (target_stopped_by_hw_breakpoint): Update the macro.
2448 (target_supports_stopped_by_hw_breakpoint): Update the macro.
2449 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
2450 (process_target::supports_stopped_by_hw_breakpoint): Define.
2451
2452 Update the derived classes and callers below.
2453
2454 * linux-low.cc (linux_target_ops): Update.
2455 (linux_stopped_by_hw_breakpoint): Turn into ...
2456 (linux_process_target::stopped_by_hw_breakpoint): ... this.
2457 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
2458 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
2459 * linux-low.h (class linux_process_target): Update.
2460 * lynx-low.cc (lynx_target_ops): Update.
2461 * nto-low.cc (nto_target_ops): Update.
2462 * win32-low.cc (win32_target_ops): Update.
2463
84320c4e
TBA
24642020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2465
2466 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
2467 ops into methods of process_target.
2468
2469 * target.h (struct process_stratum_target): Remove the target ops.
2470 (class process_target): Add the target ops.
2471 (target_stopped_by_sw_breakpoint): Update the macro.
2472 (target_supports_stopped_by_sw_breakpoint): Update the macro.
2473 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
2474 (process_target::supports_stopped_by_sw_breakpoint): Define.
2475
2476 Update the derived classes and callers below.
2477
2478 * linux-low.cc (linux_target_ops): Update.
2479 (linux_stopped_by_sw_breakpoint): Turn into ...
2480 (linux_process_target::stopped_by_sw_breakpoint): ... this.
2481 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
2482 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
2483 * linux-low.h (class linux_process_target): Update.
2484 * lynx-low.cc (lynx_target_ops): Update.
2485 * nto-low.cc (nto_target_ops): Update.
2486 * win32-low.cc (win32_target_ops): Update.
2487
7e0bde70
TBA
24882020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2489
2490 Turn process_stratum_target's insert_point and remove_point ops
2491 into methods of process_target.
2492
2493 * target.h (struct process_stratum_target): Remove the target ops.
2494 (class process_target): Add the target ops.
2495 * target.cc (process_target::insert_point): Define.
2496 (process_target::remove_point): Define.
2497
2498 Update the derived classes and callers below.
2499
2500 * mem-break.cc (set_raw_breakpoint_at): Update.
2501 (delete_raw_breakpoint): Update.
2502 (uninsert_raw_breakpoint): Update.
2503 (reinsert_raw_breakpoint): Update.
2504 * linux-low.cc (linux_target_ops): Update.
2505 (linux_insert_point): Turn into ...
2506 (linux_process_target::insert_point): ... this.
2507 (linux_remove_point): Turn into ...
2508 (linux_process_target::remove_point): ... this.
2509 * linux-low.h (class linux_process_target): Update.
2510 * lynx-low.cc (lynx_target_ops): Update.
2511 * nto-low.cc (nto_target_ops): Update.
2512 (nto_insert_point): Turn into ...
2513 (nto_process_target::insert_point): ... this.
2514 (nto_remove_point): Turn into ...
2515 (nto_process_target::remove_point): ... this.
2516 * nto-low.h (class nto_process_target): Update.
2517 * win32-low.cc (win32_target_ops): Update.
2518 (win32_insert_point): Turn into ...
2519 (win32_process_target::insert_point): ... this.
2520 (win32_remove_point): Turn into ...
2521 (win32_process_target::remove_point): ... this.
2522 * win32-low.h (class win32_process_target): Update.
2523
a2b2297a
TBA
25242020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2525
2526 Turn process_stratum_target's supports_z_point_type op into a
2527 method of process_target.
2528
2529 * target.h (struct process_stratum_target): Remove the target op.
2530 (class process_target): Add the target op.
2531 * target.cc (process_target::supports_z_point_type): Define.
2532
2533 Update the derived classes and callers below.
2534
2535 * mem-break.cc (z_type_supported): Update.
2536 * linux-low.cc (linux_target_ops): Update.
2537 (linux_supports_z_point_type): Turn into ...
2538 (linux_process_target::supports_z_point_type): ... this.
2539 * linux-low.h (class linux_process_target): Update.
2540 * lynx-low.cc (lynx_target_ops): Update.
2541 * nto-low.cc (nto_target_ops): Update.
2542 (nto_supports_z_point_type): Turn into ...
2543 (nto_process_target::supports_z_point_type): ... this.
2544 * nto-low.h (class nto_process_target): Update.
2545 * win32-low.cc (win32_target_ops): Update.
2546 (win32_supports_z_point_type): Turn into ...
2547 (win32_process_target::supports_z_point_type): ... this.
2548 * win32-low.h (class win32_process_target): Update.
2549
eac215cc
TBA
25502020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2551
2552 Turn process_stratum_target's read_auxv op into a method of
2553 process_target.
2554
2555 * target.h (class process_stratum_target): Remove the target op.
2556 (struct process_target): Add the target op. Also add
2557 'supports_read_auxv'.
2558 * target.cc (process_target::read_auxv): Define.
2559 (process_target::supports_read_auxv): Define.
2560
2561 Update the derived classes and callers below.
2562
2563 * server.cc (handle_qxfer_auxv): Update.
2564 (handle_query): Update.
2565 * linux-low.cc (linux_target_ops): Update.
2566 (linux_process_target::supports_read_auxv): Define.
2567 (linux_read_auxv): Turn into ...
2568 (linux_process_target::read_auxv): ... this.
2569 * linux-low.h (class linux_process_target): Update.
2570 * lynx-low.cc (lynx_target_ops): Update.
2571 * nto-low.cc (nto_target_ops): Update.
2572 (nto_process_target::supports_read_auxv): Define.
2573 (nto_read_auxv): Turn into ...
2574 (nto_process_target::read_auxv): ... this.
2575 * nto-low.h (class nto_process_target): Update.
2576 * win32-low.cc (win32_target_ops): Update.
2577
eb497a2a
TBA
25782020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2579
2580 Turn process_stratum_target's request_interrupt op into a method of
2581 process_target.
2582
2583 * target.h (struct process_stratum_target): Remove the target op.
2584 (class process_target): Add the target op.
2585
2586 Update the derived classes and callers below.
2587
2588 * remote-utils.cc (putpkt_binary_1): Update.
2589 (input_interrupt): Update.
2590 (getpkt): Update.
2591 * server.cc (handle_v_requests): Update.
2592 * linux-low.cc (linux_target_ops): Update.
2593 (linux_request_interrupt): Turn into ...
2594 (linux_process_target::request_interrupt): ... this.
2595 * linux-low.h (class linux_process_target): Update.
2596 * lynx-low.cc (lynx_target_ops): Update.
2597 (lynx_request_interrupt): Turn into ...
2598 (lynx_process_target::request_interrupt): ... this.
2599 * lynx-low.h (class lynx_process_target): Update.
2600 * nto-low.cc (nto_target_ops): Update.
2601 (nto_request_interrupt): Turn into ...
2602 (nto_process_target::request_interrupt): ... this.
2603 * nto-low.h (class nto_process_target): Update.
2604 * win32-low.cc (win32_target_ops): Update.
2605 (win32_request_interrupt): Turn into ...
2606 (win32_process_target::request_interrupt): ... this.
2607 * win32-low.h (class win32_process_target): Update.
2608
2a31c7aa
TBA
26092020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2610
2611 Turn process_stratum_target's look_up_symbols op into a method of
2612 process_target.
2613
2614 * target.h (struct process_stratum_target): Remove the target op.
2615 (class process_target): Add the target op.
2616 * target.cc (process_target::look_up_symbols): Define.
2617
2618 Update the derived classes and callers below.
2619
2620 * server.cc (handle_query): Update.
2621 * linux-low.cc (linux_target_ops): Update.
2622 (linux_look_up_symbols): Turn into ...
2623 (linux_process_target::look_up_symbols): ... this.
2624 * linux-low.h (class linux_process_target): Update.
2625 * lynx-low.cc (lynx_target_ops): Update.
2626 * nto-low.cc (nto_target_ops): Update.
2627 * win32-low.cc (win32_target_ops): Update.
2628
e2558df3
TBA
26292020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2630
2631 Turn process_stratum_target's read_memory and write_memory
2632 ops into methods of process_target.
2633
2634 * target.h (struct process_stratum_target): Remove the target ops.
2635 (class process_target): Add the target ops.
2636
2637 Update the derived classes and callers below.
2638
2639 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
2640 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
2641 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
2642 (arm_get_syscall_trapinfo): Update.
2643 * linux-cris-low.cc (cris_breakpoint_at): Update.
2644 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
2645 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
2646 * linux-mips-low.cc (mips_breakpoint_at): Update.
2647 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
2648 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
2649 * linux-sh-low.cc (sh_breakpoint_at): Update.
2650 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
2651 (sparc_store_gregset_from_stack): Update.
2652 (sparc_breakpoint_at): Update.
2653 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
2654 * linux-tile-low.cc (tile_breakpoint_at): Update.
2655 * linux-x86-low.cc (x86_breakpoint_at): Update.
2656 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
2657 * mem-brea.cc (insert_memory_breakpoint): Update.
2658 (validate_inserted_breakpoint): Update.
2659 * target.cc (read_inferior_memory): Update.
2660 (target_write_memory): Update.
2661 * linux-low.cc (linux_target_ops): Update.
2662 (linux_read_memory): Make a wrapper around the read_memory target
2663 op call.
2664 (linux_process_target::read_memory): Rename from linux_read_memory.
2665 (linux_write_memory): Turn into ...
2666 (linux_process_target::write_memory): ... this.
2667 * linux-low.h (class linux_process_target): Update.
2668 * lynx-low.cc (lynx_target_ops): Update.
2669 (lynx_read_memory): Turn into ...
2670 (lynx_process_target::read_memory): ... this.
2671 (lynx_write_memory): Turn into ...
2672 (lynx_process_target::write_memory): ... this.
2673 * lynx-low.h (class lynx_process_target): Update.
2674 * nto-low.cc (nto_target_ops): Update.
2675 (nto_read_memory): Turn into ...
2676 (nto_process_target::read_memory): ... this.
2677 (nto_write_memory): Turn into ...
2678 (nto_process_target::write_memory): ... this.
2679 * nto-low.h (class nto_process_target): Update.
2680 * win32-low.cc (win32_target_ops): Update.
2681 (win32_read_inferior_memory): Turn into ...
2682 (win32_process_target::read_memory): ... this.
2683 (win32_write_inferior_memory): Turn into ...
2684 (win32_process_target::write_memory): ... this.
2685 * win32-low.h (class win32_process_target): Update.
2686
79b44087
TBA
26872020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2688
2689 Turn process_stratum_target's prepare_to_access_memory and
2690 done_accessing_memory ops into methods of process_target.
2691
2692 * target.h (struct process_stratum_target): Remove the target ops.
2693 (class process_target): Add the target ops.
2694 * target.cc (process_target::prepare_to_access_memory): Define.
2695 (process_target::done_accessing_memory): Define.
2696 (prepare_to_access_memory): Update.
2697 (done_accessing_memory): Update.
2698
2699 Update the derived classes and callers below.
2700
2701 * linux-low.cc (linux_target_ops): Update.
2702 (linux_prepare_to_access_memory): Turn into ...
2703 (linux_process_target::prepare_to_access_memory): ... this.
2704 (linux_done_accessing_memory): Turn into ...
2705 (linux_process_target::done_accessing_memory): ... this.
2706 * linux-low.h (class linux_process_target): Update.
2707 * lynx-low.cc (lynx_target_ops): Update.
2708 * nto-low.cc (nto_target_ops): Update.
2709 * win32-low.cc (win32_target_ops): Update.
2710
a5a4d4cd
TBA
27112020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2712
2713 Turn process_stratum_target's fetch_registers and store_registers
2714 ops into methods of process_target.
2715
2716 * target.h (struct process_stratum_target): Remove the target ops.
2717 (class process_target): Add the target ops.
2718 (fetch_inferior_registers): Update the macro.
2719 (store_inferior_registers): Update the macro.
2720
2721 Update the derived classes and callers below.
2722
2723 * linux-low.cc (linux_target_ops): Update.
2724 (linux_fetch_registers): Turn into ...
2725 (linux_process_target::fetch_registers): ... this.
2726 (linux_store_registers): Turn into ...
2727 (linux_process_target::store_registers): ... this.
2728 * linux-low.h (class linux_process_target): Update.
2729 * lynx-low.cc (lynx_target_ops): Update.
2730 (lynx_fetch_registers): Turn into ...
2731 (lynx_process_target::fetch_registers): ... this.
2732 (lynx_store_registers): Turn into ...
2733 (lynx_process_target::store_registers): ... this.
2734 * lynx-low.h (class lynx_process_target): Update.
2735 * nto-low.cc (nto_target_ops): Update.
2736 (nto_fetch_registers): Turn into ...
2737 (nto_process_target::fetch_registers): ... this.
2738 (nto_store_registers): Turn into ...
2739 (nto_process_target::store_registers): ... this.
2740 * nto-low.h (class nto_process_target): Update.
2741 * win32-low.cc (win32_target_ops): Update.
2742 (win32_fetch_inferior_registers): Turn into ...
2743 (win32_process_target::fetch_registers): ... this.
2744 (win32_store_inferior_registers): Turn into ...
2745 (win32_process_target::store_registers): ... this.
2746 * win32-low.h (class win32_process_target): Update.
2747
6532e7e3
TBA
27482020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2749
2750 Turn process_stratum_target's wait op into a method of
2751 process_target.
2752
2753 * target.h (struct process_stratum_target): Remove the target op.
2754 (class process_target): Add the target op.
2755
2756 Update the derived classes and callers below.
2757
2758 * target.cc (target_wait): Update.
2759 * linux-low.cc (linux_target_ops): Update.
2760 (linux_wait): Turn into ...
2761 (linux_process_target::wait): ... this.
2762 * linux-low.h (class linux_process_target): Update.
2763 * lynx-low.cc (lynx_target_ops): Update.
2764 (lynx_wait): Turn into ...
2765 (lynx_process_target::wait): ... this.
2766 * lynx-low.h (class lynx_process_target): Update.
2767 * nto-low.cc (nto_target_ops): Update.
2768 (nto_wait): Turn into ...
2769 (nto_process_target::wait): ... this.
2770 * nto-low.h (class nto_process_target): Update.
2771 * win32-low.cc (win32_target_ops): Update.
2772 (win32_wait): Turn into ...
2773 (win32_process_target::wait): ... this.
2774 (do_initial_child_stuff): Update.
2775 * win32-low.h (class win32_process_target): Update.
2776
0e4d7e35
TBA
27772020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2778
2779 Turn process_stratum_target's resume op into a method of
2780 process_target.
2781
2782 * target.h (struct process_stratum_target): Remove the target op.
2783 (class process_target): Add the target op.
2784
2785 Update the derived classes and callers below.
2786
2787 * server.cc (resume): Update.
2788 * target.cc (target_stop_and_wait): Update.
2789 (target_continue_no_signal): Update.
2790 (target_continue): Update.
2791 * linux-low.cc (linux_target_ops): Update.
2792 (linux_resume): Turn into ...
2793 (linux_process_target::resume): ... this.
2794 * linux-low.h (class linux_process_target): Update.
2795 * lynx-low.cc (lynx_target_ops): Update.
2796 (lynx_resume): Turn into ...
2797 (lynx_process_target::resume): ... this.
2798 * lynx-low.h (class lynx_process_target): Update.
2799 * nto-low.cc (nto_target_ops): Update.
2800 (nto_resume): Turn into ...
2801 (nto_process_target::resume): ... this.
2802 * nto-low.h (class nto_process_target): Update.
2803 * win32-low.cc (win32_target_ops): Update.
2804 (win32_resume): Turn into ...
2805 (win32_process_target::resume): ... this.
2806 (win32_process_target::detach): Update.
2807 (do_initial_child_stuff): Update.
2808 * win32-low.h (class win32_process_target): Update.
2809
13d3d99b
TBA
28102020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2811
2812 Turn process_stratum_target's thread_alive op into a method of
2813 process_target.
2814
2815 * target.h (struct process_stratum_target): Remove the target op.
2816 (class process_target): Add the target op.
2817 (mythread_alive): Update the macro.
2818
2819 Update the derived classes and callers below.
2820
2821 * linux-low.cc (linux_target_ops): Update.
2822 (linux_thread_alive): Turn into ...
2823 (linux_process_target::thread_alive): ... this.
2824 (wait_for_sigstop): Update.
2825 * linux-low.h (class linux_process_target): Update.
2826 * lynx-low.cc (lynx_target_ops): Update.
2827 (lynx_thread_alive): Turn into ...
2828 (lynx_process_target::thread_alive): ... this.
2829 * lynx-low.h (class lynx_process_target): Update.
2830 * nto-low.cc (nto_target_ops): Update.
2831 (nto_thread_alive): Turn into ...
2832 (nto_process_target::thread_alive): ... this.
2833 * nto-low.h (class nto_process_target): Update.
2834 * win32-low.cc (win32_target_ops): Update.
2835 (win32_thread_alive): Turn into ...
2836 (win32_process_target::thread_alive): ... this.
2837 * win32-low.h (class win32_process_target): Update.
2838
95a49a39
TBA
28392020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2840
2841 Turn process_stratum_target's join op into a method of
2842 process_target.
2843
2844 * target.h (struct process_stratum_target): Remove the target op.
2845 (class process_target): Add the target op.
2846 (join_inferior): Update the macro.
2847
2848 Update the derived classes and callers below.
2849
2850 * linux-low.cc (linux_target_ops): Update.
2851 (linux_join): Turn into ...
2852 (linux_process_target::join): ... this.
2853 * linux-low.h (class linux_process_target): Update.
2854 * lynx-low.cc (lynx_target_ops): Update.
2855 (lynx_join): Turn into ...
2856 (lynx_process_target::join): ... this.
2857 * lynx-low.h (class lynx_process_target): Update.
2858 * nto-low.cc (nto_target_ops): Update.
2859 (nto_process_target::join): Define.
2860 * nto-low.h (class nto_process_target): Update.
2861 * win32-low.cc (win32_target_ops): Update.
2862 (win32_join): Turn into ...
2863 (win32_process_target::join): ... this.
2864 * win32-low.h (class win32_process_target): Update.
2865
8adb37b9
TBA
28662020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2867
2868 Turn process_stratum_target's mourn op into a method of
2869 process_target.
2870
2871 * target.h (struct process_stratum_target): Remove the target op.
2872 (class process_target): Add the target op.
2873
2874 Update the derived classes and callers below.
2875
2876 * target.cc (target_mourn_inferior): Update.
2877 * linux-low.cc (linux_target_ops): Update.
2878 (linux_mourn): Turn into ...
2879 (linux_process_target::mourn): ... this.
2880 (handle_extended_wait): Update.
2881 (linux_process_target::kill): Update.
2882 (linux_process_target::detach): Update.
2883 * linux-low.h (class linux_process_target): Update.
2884 * lynx-low.cc (lynx_target_ops): Update.
2885 (lynx_mourn): Turn into ...
2886 (lynx_process_target::mourn): ... this.
2887 * lynx-low.h (class lynx_process_target): Update.
2888 * nto-low.cc (nto_target_ops): Update.
2889 (nto_mourn): Turn into ...
2890 (nto_process_target::mourn): ... this.
2891 * nto-low.h (class nto_process_target): Update.
2892 * win32-low.cc (win32_target_ops): Update.
2893 (win32_mourn): Turn into ...
2894 (win32_process_target::mourn): ... this.
2895 * win32-low.h (class win32_process_target): Update.
2896
9061c9cf
TBA
28972020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2898
2899 Turn process_stratum_target's detach op into a method of
2900 process_target.
2901
2902 * target.h (struct process_stratum_target): Remove the target op.
2903 (class process_target): Add the target op.
2904 (detach_inferior): Update the macro.
2905
2906 Update the derived classes and callers below.
2907
2908 * linux-low.cc (linux_target_ops): Update.
2909 (linux_detach): Turn into ...
2910 (linux_process_target::detach): ... this.
2911 * linux-low.h (class linux_process_target): Update.
2912 * lynx-low.cc (lynx_target_ops): Update.
2913 (lynx_detach): Turn into ...
2914 (lynx_process_target::detach): ... this.
2915 * lynx-low.h (class lynx_process_target): Update.
2916 * nto-low.cc (nto_target_ops): Update.
2917 (nto_detach): Turn into ...
2918 (nto_process_target::detach): ... this.
2919 * nto-low.h (class nto_process_target): Update.
2920 * win32-low.cc (win32_target_ops): Update.
2921 (win32_detach): Turn into ...
2922 (win32_process_target::detach): ... this.
2923 * win32-low.h (class win32_process_target): Update.
2924
c6885a57
TBA
29252020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2926
2927 Turn process_stratum_target's kill op into a method of
2928 process_target.
2929
2930 * target.h (struct process_stratum_target): Remove the target op.
2931 (class process_target): Add the target op.
2932
2933 Update the derived classes and callers below.
2934
2935 * target.cc (kill_inferior): Update.
2936 * linux-low.cc (linux_target_ops): Update.
2937 (linux_kill): Turn into ...
2938 (linux_process_target::kill): ... this.
2939 * linux-low.h (class linux_process_target): Update.
2940 * lynx-low.cc (lynx_target_ops): Update.
2941 (lynx_kill): Turn into ...
2942 (lynx_process_target::kill): ... this.
2943 * lynx-low.h (class lynx_process_target): Update.
2944 * nto-low.cc (nto_target_ops): Update.
2945 (nto_kill): Turn into ...
2946 (nto_process_target::kill): ... this.
2947 * nto-low.h (class nto_process_target): Update.
2948 * win32-low.cc (win32_target_ops): Update.
2949 (win32_kill): Turn into ...
2950 (win32_process_target::kill): ... this.
2951 * win32-low.h (class win32_process_target): Update.
2952
ef03dad8
TBA
29532020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2954
2955 Turn process_stratum_target's attach op into a method of
2956 process_target.
2957
2958 * target.h (struct process_stratum_target): Remove the target op.
2959 (class process_target): Add the target op.
2960 (myattach): Update the macro.
2961
2962 Update the derived classes and callers below.
2963
2964 * linux-low.cc (linux_target_ops): Update.
2965 (linux_attach): Turn into ...
2966 (linux_process_target::attach): ... this.
2967 * linux-low.h (class linux_process_target): Update.
2968 * lynx-low.cc (lynx_target_ops): Update.
2969 (lynx_attach): Turn into ...
2970 (lynx_process_target::attach): ... this.
2971 * lynx-low.h (class lynx_process_target): Update.
2972 * nto-low.cc (nto_target_ops): Update.
2973 (nto_attach): Turn into ...
2974 (nto_process_target::attach): ... this.
2975 * nto-low.h (class nto_process_target): Update.
2976 * win32-low.cc (win32_target_ops): Update.
2977 (win32_attach): Turn into ...
2978 (win32_process_target::attach): ... this.
2979 * win32-low.h (class win32_process_target): Update.
2980
6dee9afb
TBA
29812020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2982
2983 Turn process_stratum_target's post_create_inferior op into a method
2984 of process_target.
2985
2986 * target.h (struct process_stratum_target): Remove the target op.
2987 (class process_target): Add the target op.
2988 (target_post_create_inferior): Update the macro.
2989 * target.cc (process_target::post_create_inferior): Define.
2990
2991 Update the derived classes and callers below.
2992
2993 * linux-low.cc (linux_target_ops): Update.
2994 (linux_post_create_inferior): Turn into ...
2995 (linux_process_target::post_create_inferior): ... this.
2996 * linux-low.h (class linux_process_target): Update.
2997 * lynx-low.cc (lynx_target_ops): Update.
2998 * nto-low.cc (nto_target_ops): Update.
2999 * win32-low.cc (win32_target_ops): Update.
3000
15295543
TBA
30012020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3002
3003 Turn process_stratum_target's create_inferior op into a method of
3004 process_target.
3005
3006 * target.h (struct process_stratum_target): Remove the target op.
3007 (class process_target): Add the target op.
3008 (create_inferior): Rename the macro to ...
3009 (target_create_inferior): ... this.
3010
3011 Update the derived classes and callers below.
3012
3013 * server.cc (handle_v_run): Update.
3014 (captured_main): Update.
3015 (process_serial_event): Update.
3016 * linux-low.cc (linux_target_ops): Update.
3017 (linux_create_inferior): Turn into ...
3018 (linux_process_target::create_inferior): ... this.
3019 * linux-low.h (class linux_process_target): Update.
3020 * lynx-low.cc (lynx_target_ops): Update.
3021 (lynx_create_inferior): Turn into ...
3022 (lynx_process_target::create_inferior): ... this.
3023 * lynx-low.h (class lynx_process_target): Update.
3024 * nto-low.cc (nto_target_ops): Update.
3025 (nto_create_inferior): Turn into ...
3026 (nto_process_target::create_inferior): ... this.
3027 * nto-low.h (class nto_process_target): Update.
3028 * win32-low.cc (win32_target_ops): Update.
3029 (win32_create_inferior): Turn into ...
3030 (win32_process_target::create_inferior): ... this.
3031 * win32-low.h (class win32_process_target): Update.
3032
5ef9273d
TBA
30332020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3034
3035 * target.h (class process_target): New class definition.
3036 (struct process_stratum_target) <pt>: New field with type
3037 'process_target*'.
3038 * linux-low.h (class linux_process_target): Define as a derived
3039 class of 'process_target'.
3040 * linux-low.cc (linux_target_ops): Add a linux_process_target*
3041 as the 'pt' field.
3042 * lynx-low.h (class lynx_process_target): Define as a derived
3043 class of 'process_target'.
3044 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
3045 as the 'pt' field.
3046 * nto-low.h (class nto_process_target): Define as a derived
3047 class of 'process_target'.
3048 * nto-low.cc (nto_target_ops): Add an nto_process_target*
3049 as the 'pt' field.
3050 * win32-low.h (class win32_process_target): Define as a derived
3051 class of 'process_target'.
3052 * win32-low.cc (win32_target_ops): Add a win32_process_target*
3053 as the 'pt' field.
3054
9f1528a1
AB
30552020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
3056
3057 * configure: Regenerate.
3058
bf84f706
MR
30592020-02-19 Maciej W. Rozycki <macro@wdc.com>
3060 Andrew Burgess <andrew.burgess@embecosm.com>
3061
3062 * linux-riscv-low.cc: New file.
3063 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
3064 and nat/riscv-linux-tdesc.c.
3065 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
3066 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
3067 Define.
3068
1a627e7e
TT
30692020-02-14 Tom Tromey <tom@tromey.com>
3070
3071 * acinclude.m4: Don't include acx_configure_dir.m4.
3072 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
3073 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
3074 (all, install-only, uninstall, clean-info, clean)
3075 (maintainer-clean): Don't recurse.
3076 (subdir_do, all-lib): Remove.
3077 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
3078 (GNULIB_H): Remove.
3079 (generated_files): Update.
3080 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
3081 * configure: Rebuild.
3082 * configure.ac: Don't configure gnulib or libiberty.
3083 (GNULIB): Update.
3084
a9b34532
EZ
30852020-02-14 Eli Zaretskii <eliz@gnu.org>
3086
3087 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
3088 preparing the command line for CreateProcess.
3089 (win32_create_inferior): Reflect the program name in debugging
3090 output that shows the process and its command line.
3091
feacfcac
SM
30922020-02-13 Simon Marchi <simon.marchi@efficios.com>
3093
3094 * Makefile.in: Rename source files from .c to .cc.
3095 * %.c: Rename to %.cc.
3096 * configure.ac: Rename server.c to server.cc.
3097 * configure: Re-generate.
3098
06b3c5bd
SM
30992020-02-13 Simon Marchi <simon.marchi@efficios.com>
3100
3101 * Makefile.in: Rename gdbsupport source files from .c to .cc.
3102
052793ad
HD
31032020-02-12 Hannes Domani <ssbssa@yahoo.de>
3104
3105 * win32-low.c (win32_create_inferior): Set signal_pid.
3106
f20e3e82
MR
31072020-02-12 Maciej W. Rozycki <macro@wdc.com>
3108 Pedro Alves <palves@redhat.com>
3109
3110 Skip building gdbserver in a cross-configuration.
3111 * configure.srv: Set $gdbserver_host depending on whether $target
3112 is $host. Use $gdbserver_host instead of $host.
3113
8ddd8e0e
SM
31142020-02-11 Simon Marchi <simon.marchi@efficios.com>
3115
3116 * configure: Re-generate.
3117
898e7f60
SM
31182020-02-11 Simon Marchi <simon.marchi@efficios.com>
3119
3120 * configure: Re-generate.
3121
58df732b
SM
31222020-02-11 Simon Marchi <simon.marchi@efficios.com>
3123
3124 * acinclude.m4: Update warning.m4 path.
3125
7928d571
HD
31262020-02-09 Hannes Domani <ssbssa@yahoo.de>
3127
3128 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
3129 (handle_exception): Set siginfo_er.
3130 (win32_xfer_siginfo): New function.
3131
919adfe8
TT
31322020-02-07 Tom Tromey <tom@tromey.com>
3133 Pedro Alves <palves@redhat.com>
3134
3135 * README: Update build documentation.
3136 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
3137 host, not target.
3138 * configure.ac: Update paths.
3139 * configure: Rebuild.
3140 * acinclude.m4: Update paths.
3141 * Makefile.in: Update include paths.
3142 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
3143 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
3144 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
3145 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
3146 (%-generated.c): Update paths.
3147 * Move entire directory from ../gdb/gdbserver.
3148
287c844a
MR
31492020-01-29 Maciej W. Rozycki <macro@wdc.com>
3150
3151 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
3152
548a204f
PFC
31532020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3154
3155 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
3156 assignment instead of srv_linux_obj.
3157
a2236a08
HD
31582020-01-28 Hannes Domani <ssbssa@yahoo.de>
3159
3160 * server.c (handle_qxfer_libraries): Write segment-address with
3161 paddress.
3162
bdaed379
HD
31632020-01-24 Hannes Domani <ssbssa@yahoo.de>
3164
3165 * Makefile.in (install-strip): New target.
3166 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
3167 * aclocal.m4: Regenerate.
3168 * configure: Regenerate.
3169 * configure.ac: Add AM_PROG_INSTALL_STRIP.
3170
42cd72aa
MR
31712020-01-24 Maciej W. Rozycki <macro@wdc.com>
3172
3173 * Makefile.in (SFILES): Adjust paths to point to real files.
3174 (OBS): Move waitstatus.o to target/waitstatus.o.
3175 (TAGS): Transform paths appropriately.
3176 (%.o): Rename to...
3177 (nat/%.o): ... this pattern rule.
3178 (%.o): Rename to...
3179 (target/%.o): ... this pattern rule.
3180 * configure.srv: Adjust paths throughout to include nat/ prefix
3181 with the revant files.
3182 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
3183 * configure: Regenerate.
3184
42ba50ec
MR
31852020-01-24 Maciej W. Rozycki <macro@wdc.com>
3186
3187 * Makefile.in (TAGS): Remove config files from the recipe.
3188
05ea2a05
TT
31892020-01-14 Tom Tromey <tom@tromey.com>
3190
3191 * configure: Rebuild.
3192 * configure.ac: Remove any checks that were added to common.m4.
3193 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
3194 lib-link.m4.
3195
01027315
TT
31962020-01-14 Tom Tromey <tom@tromey.com>
3197
3198 * server.h: Include config.h.
3199 * gdbreplay.c: Include config.h.
3200 * configure: Rebuild.
3201 * configure.ac: Don't source common.host.
3202 * acinclude.m4: Update path.
3203 * Makefile.in (INCSUPPORT): New variable.
3204 (INCLUDE_CFLAGS): Add INCSUPPORT.
3205 (SFILES): Update paths.
3206 (version-generated.c): Update path to create-version.sh.
3207 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
3208
b2ceabe8
TT
32092020-01-14 Tom Tromey <tom@tromey.com>
3210
3211 * configure.ac (LIBS): Use WIN32APILIBS.
3212 (USE_WIN32API): Don't define.
3213 * configure: Rebuild.
3214
25c51f71
TT
32152020-01-14 Tom Tromey <tom@tromey.com>
3216
3217 * configure: Rebuild.
3218
c0bd321d
SM
32192020-01-13 Simon Marchi <simon.marchi@efficios.com>
3220
3221 * Makefile.in (%-generated.c): Remove rule for files from
3222 regformats/i386.
3223
bb564c58
SM
32242020-01-13 Simon Marchi <simon.marchi@efficios.com>
3225
3226 * configure: Re-generate.
3227
6e37c371
SM
32282020-01-13 Simon Marchi <simon.marchi@efficios.com>
3229
3230 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
3231 Define to static.
3232 * tracepoint.c (stop_tracing, flush_trace_buffer,
3233 about_to_request_buffer_space, get_trace_state_variable_value,
3234 set_trace_state_variable_value, gdb_collect): Add declaration.
3235
df4a0200
SM
32362020-01-13 Simon Marchi <simon.marchi@efficios.com>
3237
3238 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
3239 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
3240 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
3241 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
3242 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
3243 static.
3244
89e94ec9
SM
32452020-01-13 Simon Marchi <simon.marchi@efficios.com>
3246
3247 * inferiors.c: Include gdbsupport/common-inferior.h.
3248
2552728a
SM
32492020-01-13 Simon Marchi <simon.marchi@efficios.com>
3250
3251 * hostio-errno.c: Include hostio.h.
3252
4025fa09
SM
32532020-01-13 Simon Marchi <simon.marchi@efficios.com>
3254
3255 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
3256 prerequisite.
3257
c0b0a142
SM
32582020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3259
3260 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
3261 * linux-arm-tdesc.h: Include arch/arm.h.
3262
bb1183e2
SM
32632020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3264
3265 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
3266
f5df0b5f
SM
32672020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3268
3269 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
3270 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
3271
5b6d1e4f
PA
32722020-01-10 Pedro Alves <palves@redhat.com>
3273
3274 * fork-child.c (post_fork_inferior): Pass target down to
3275 startup_inferior.
3276 * inferiors.c (switch_to_thread): Add process_stratum_target
3277 parameter.
3278 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
3279 * nto-low.c (nto_target_ops): Now a process_stratum_target.
3280 * linux-low.c (linux_target_ops): Now a process_stratum_target.
3281 * remote-utils.c (prepare_resume_reply): Pass the target to
3282 switch_to_thread.
3283 * target.c (the_target): Now a process_stratum_target.
3284 (done_accessing_memory): Pass the target to switch_to_thread.
3285 (set_target_ops): Ajust to use process_stratum_target.
3286 * target.h (struct target_ops): Rename to ...
3287 (struct process_stratum_target): ... this.
3288 (the_target, set_target_ops): Adjust.
3289 (prepare_to_access_memory): Adjust comment.
3290 * win32-low.c (child_xfer_memory): Adjust to use
3291 process_stratum_target.
3292 (win32_target_ops): Now a process_stratum_target.
3293
559e7e50
EZ
32942020-01-06 Eli Zaretskii <eliz@gnu.org>
3295 Pedro Alves <palves@redhat.com>
3296
3297 * win32-low.c (get_child_debug_event): Extract the fatal exception
3298 from the exit status and convert to the equivalent Posix signal
3299 number.
3300 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
3301 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
3302
48189bec
HD
33032020-01-01 Hannes Domani <ssbssa@yahoo.de>
3304
3305 * Makefile.in: Use INSTALL_PROGRAM_ENV.
3306
5dd8bf88
JB
33072020-01-01 Joel Brobecker <brobecker@adacore.com>
3308
3309 * server.c (gdbserver_version): Change copyright year to 2020.
3310 * gdbreplay.c (gdbreplay_version): Likewise.
3311
0ad6b8ee
CB
33122019-12-19 Christian Biesinger <cbiesinger@google.com>
3313
3314 * configure: Regenerate.
3315 * configure.ac: Quote variable arguments of test.
3316
1ee7b812
BE
33172019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
3318
3319 * Makefile.in: Fix build with GNU Make 3.81
3320
d9fa87f4
TT
33212019-12-16 Tom Tromey <tromey@adacore.com>
3322
3323 * server.c (get_exec_file): Constify result.
3324
ab7d13f0
CB
33252019-12-10 Christian Biesinger <cbiesinger@google.com>
3326
3327 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
3328 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
3329 * config.in: Regenerate.
3330 * configure: Regenerate.
3331 * configure.ac: Don't check for strerror.
3332 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
3333 Call safe_strerror instead of strerror.
3334 * server.h (strerror): Remove this now-unnecessary declaration.
3335 * tracepoint.c (init_named_socket): Call safe_strerror instead of
3336 strerror.
3337 (gdb_agent_helper_thread): Likewise.
3338 * utils.c (perror_with_name): Likewise.
3339
4da8c3a8
TT
33402019-11-26 Tom Tromey <tom@tromey.com>
3341
3342 * configure, config.in: Rebuild.
3343
21987b9c
TT
33442019-11-26 Tom Tromey <tom@tromey.com>
3345
3346 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
3347 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
3348 gdb_sigmask.
3349 * configure, config.in: Rebuild.
3350
5e030278
TT
33512019-11-26 Tom Tromey <tom@tromey.com>
3352
3353 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
3354 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
3355 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
3356 * acinclude.m4: Include ax_pthread.m4.
3357 * config.in, configure: Rebuild.
3358
6d91ce9a
CB
33592019-11-26 Christian Biesinger <cbiesinger@google.com>
3360
3361 * debug.c (debug_set_output): Call safe_strerror instead of
3362 strerror.
3363 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
3364 (linux_kill_one_lwp): Likewise.
3365 (linux_detach_one_lwp): Likewise.
3366 (linux_wait_for_event_filtered): Likewise.
3367 (store_register): Likewise.
3368 * lynx-low.c (lynx_attach): Likewise.
3369 * mem-break.c (insert_memory_breakpoint): Likewise.
3370 (remove_memory_breakpoint): Likewise.
3371 (delete_fast_tracepoint_jump): Likewise.
3372 (set_fast_tracepoint_jump): Likewise.
3373 (uninsert_fast_tracepoint_jumps_at): Likewise.
3374 (reinsert_fast_tracepoint_jumps_at): Likewise.
3375 * nto-low.c (nto_xfer_memory): Likewise.
3376 (nto_resume): Likewise.
3377
6cdd651f
LM
33782019-11-20 Luis Machado <luis.machado@linaro.org>
3379
3380 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
3381 instead of register count.
3382 * tdesc.c (tdesc_contains_feature): New function.
3383 * tdesc.h (tdesc_contains_feature): New prototype.
3384
cd850b40
CB
33852019-11-15 Christian Biesinger <cbiesinger@google.com>
3386
3387 * Makefile.in: Add safe-strerror.c.
3388 * configure: Regenerate.
3389 * configure.ac: Don't source common.host.
3390
5abebf3c
CB
33912019-11-15 Christian Biesinger <cbiesinger@google.com>
3392
3393 * config.in: Regenerate.
3394 * configure: Regenerate.
3395
e06f3d6e
AB
33962019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
3397
3398 * ax.c (ax_printf): Handle size_t_arg.
3399
ca3a04f6
CB
34002019-11-06 Christian Biesinger <cbiesinger@google.com>
3401
3402 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
3403 * mi/mi-main.c (output_cores): Likewise.
3404 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
3405 (linux_xfer_osdata_modules): Likewise.
3406 * remote.c (register_remote_support_xml): Likewise.
3407 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
3408 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
3409
e48f6033
CB
34102019-11-01 Christian Biesinger <cbiesinger@google.com>
3411
3412 * configure: Regenerate.
3413 * configure.ac: Remove check for strerror_r.
3414
e7e97a2e
CB
34152019-10-31 Christian Biesinger <cbiesinger@google.com>
3416
3417 * config.in: Regenerate.
3418 * configure: Regenerate.
3419 * configure.ac: Also check for strerror_r.
3420
75cafaa6
CB
34212019-10-31 Christian Biesinger <cbiesinger@google.com>
3422
3423 * ax.h (debug_agent): Remove duplicate declaration.
3424
30baf67b
TV
34252019-10-26 Tom de Vries <tdevries@suse.de>
3426
3427 * linux-aarch64-low.c: Fix typos in comments.
3428 * linux-arm-low.c: Same.
3429 * linux-low.c: Same.
3430 * linux-ppc-low.c: Same.
3431 * proc-service.c: Same.
3432 * regcache.h: Same.
3433 * server.c: Same.
3434 * tracepoint.c: Same.
3435 * win32-low.c: Same.
3436
52c64cf7
TT
34372019-10-25 Tom Tromey <tromey@adacore.com>
3438
3439 * utils.c (xstrdup): Remove.
3440
c12d372d
TT
34412019-10-23 Tom Tromey <tom@tromey.com>
3442
3443 * configure, config.in: Rebuild.
3444
4d0b984b
TT
34452019-10-23 Tom Tromey <tom@tromey.com>
3446
3447 * configure: Rebuild.
3448 * acinclude.m4: Use m4_include, not sinclude.
3449
c5adaa19
TT
34502019-10-17 Tom Tromey <tromey@adacore.com>
3451
3452 * configure: Rebuild.
3453 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
3454 in AC_CONFIG_FILES invocation.
3455 * Makefile.in (stamp-h, Makefile): Use new-style config.status
3456 invocation.
3457
fec4e896
CB
34582019-10-16 Christian Biesinger <cbiesinger@google.com>
3459
3460 * server.c: Include xml-builtin.h.
3461 (get_xml_features): Don't declare xml_builtins here.
3462
00975ff6
AB
34632019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
3464
3465 * Makefile.in: Remove references to vec-ipa.o.
3466
0dc32745
AB
34672019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
3468
3469 * Makefile.in: Remove references to vec.c.
3470
3e6ec53a
CB
34712019-10-02 Christian Biesinger <cbiesinger@google.com>
3472
3473 * server.c (server_waiting): Change to bool.
3474 (extended_protocol): Likewise.
3475 (response_needed): Likewise.
3476 (exit_requested): Likewise.
3477 (run_once): Likewise.
3478 (report_no_resumed): Likewise.
3479 (non_stop): Likewise.
3480 (disable_packet_vCont): Likewise.
3481 (disable_packet_Tthread): Likewise.
3482 (disable_packet_qC): Likewise.
3483 (disable_packet_qfThreadInfo): Likewise.
3484 (handle_general_set): Update.
3485 (handle_detach): Update.
3486 (handle_monitor_command): Update.
3487 (handle_query): Update.
3488 (captured_main): Update.
3489 (process_serial_event): Update.
3490 * server.h (server_waiting): Change to bool.
3491 (disable_packet_vCont): Likewise.
3492 (disable_packet_Tthread): Likewise.
3493 (disable_packet_qC): Likewise.
3494 (disable_packet_qfThreadInfo): Likewise.
3495 (run_once): Likewise.
3496 (non_stop): Likewise.
3497 * target.c (target_stop_and_wait): Update.
3498
80fd2826
TT
34992019-10-02 Tom Tromey <tromey@adacore.com>
3500
3501 * Makefile.in (SFILES): Add common-inferior.c.
3502 (OBS): Add common-inferior.o.
3503 * server.c (startup_with_shell): Don't define.
3504
46f29a9a
AB
35052019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3506
3507 * linux-low.c (linux_low_read_btrace): Update for change to
3508 std::vector.
3509
f9d949fb
CB
35102019-09-20 Christian Biesinger <cbiesinger@google.com>
3511
3512 * debug.c (debug_threads): Remove comment in favor of the header.
3513 * debug.h (using_threads): Add declaration.
3514 (debug_threads): Add comment.
3515 * linux-aarch64-low.c: Include debug.h and remove declaration of
3516 debug_threads.
3517 * nto-low.c: Likewise.
3518 * remote-utils.c: Likewise.
3519 * thread-db.c: Likewise.
3520
abf516c6
UW
35212019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
3522
3523 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
3524 and powerpc-cell64l-ipa.o.
3525 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
3526 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
3527 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
3528 (spu*-*-*): Remove.
3529
3530 * spu-low.c: Remove file.
3531
3532 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
3533 (parse_spufs_run): Remove.
3534 (ppc_get_pc): Remove Cell/B.E. support.
3535 (ppc_set_pc): Likewise.
3536 (ppc_breakpoint_at): Likewise.
3537 (ppc_arch_setup): Likewise.
3538 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
3539 tdesc_powerpc_cell32l.
3540 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
3541 or init_registers_powerpc_cell32l.
3542 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
3543 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
3544 or init_registers_powerpc_cell32l.
3545 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
3546 (init_registers_powerpc_cell32l): Remove prototype.
3547 (init_registers_powerpc_cell64l): Likewise.
3548
3549 * target.h (struct target_ops): Remove qxfer_spu member.
3550 * server.c (handle_qxfer_spu): Remove.
3551 (qxfer_packets): Remove entry for "spu".
3552 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
3553 * linux-low.c (SPUFS_MAGIC): Remove.
3554 (spu_enumerate_spu_ids): Remove.
3555 (linux_qxfer_spu): Remove.
3556 (linux_target_ops): Remove qxfer_spu member.
3557 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
3558 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
3559 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
3560
2d41fa11
SDJ
35612019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
3562
3563 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
3564 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
3565 * config.in: Regenerate.
3566 * configure: Regenerate.
3567
d59b55f0
TT
35682019-08-15 Tom Tromey <tromey@adacore.com>
3569
3570 * target.c (target_write_memory): Use gdb::byte_vector.
3571
4196ab2a
TT
35722019-08-15 Tom Tromey <tromey@adacore.com>
3573
3574 * tracepoint.c (write_inferior_data_pointer)
3575 (write_inferior_integer, write_inferior_int8)
3576 (write_inferior_uinteger, m_tracepoint_action_download)
3577 (r_tracepoint_action_download, x_tracepoint_action_download)
3578 (l_tracepoint_action_download, clear_inferior_trace_buffer)
3579 (download_agent_expr, download_tracepoint_1)
3580 (download_trace_state_variables, upload_fast_traceframes): Update.
3581 * server.c (gdb_write_memory): Update.
3582 * remote-utils.c (relocate_instruction): Update.
3583 * proc-service.c (ps_pdwrite): Update.
3584 * mem-break.c (remove_memory_breakpoint)
3585 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
3586 (uninsert_fast_tracepoint_jumps_at)
3587 (reinsert_fast_tracepoint_jumps_at): Update.
3588 * linux-x86-low.c (append_insns)
3589 (i386_install_fast_tracepoint_jump_pad)
3590 (amd64_write_goto_address, i386_write_goto_address): Update.
3591 * linux-s390-low.c (append_insns, s390_write_goto_address):
3592 Update.
3593 * linux-ppc-low.c (ppc_relocate_instruction)
3594 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
3595 (ppc_write_goto_address): Update.
3596 * linux-aarch64-low.c (append_insns): Update.
3597 * target.h (struct target_ops): Update.
3598 (write_inferior_memory): Don't declare.
3599 * target.c (target_write_memory): Rename from
3600 write_inferior_memory. Remove old target_write_memory.
3601
c6778d00
TT
36022019-08-15 Tom Tromey <tromey@adacore.com>
3603
3604 * target.c (write_inferior_memory): Use std::vector.
3605
404f2902
FCE
36062019-08-06 Frank Ch. Eigler <fche@redhat.com>
3607
3608 PR build/24886
3609 * configure.ac: Drop enable-libmcheck support.
3610 * configure, config.in: Rebuild.
3611 * acinclude.m4: Don't include it.
3612
4c5aa8e0
AH
36132019-07-19 Alan Hayward <alan.hayward@arm.com>
3614
3615 * configure.srv: Remove Arm xml files.
3616
7cc17433
AH
36172019-07-19 Alan Hayward <alan.hayward@arm.com>
3618
3619 * configure.srv: Add new files. Remove xml generated files.
3620 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
3621 registers.
3622 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
3623 * linux-aarch32-tdesc.c: New file.
3624 * linux-aarch32-tdesc.h: New file.
3625 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
3626 * linux-arm-low.c (init_registers_arm, tdesc_arm)
3627 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
3628 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
3629 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
3630 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
3631 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
3632 (arm_read_description): Call arm_linux_read_description.
3633 (initialize_low_arch): Don't init registers.
3634 * linux-arm-tdesc.c: New file.
3635 * linux-arm-tdesc.h: New file.
3636
166a82be
AH
36372019-07-10 Alan Hayward <alan.hayward@arm.com>
3638
3639 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
3640 Move counter inside for.
3641 (arm_read_description): Check ptrace earlier.
3642 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
3643
268a13a5
TT
36442019-07-09 Tom Tromey <tom@tromey.com>
3645
3646 * configure: Rebuild.
3647 * configure.ac: Change common to gdbsupport.
3648 * acinclude.m4: Change common to gdbsupport.
3649 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
3650 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
3651 common to gdbsupport.
3652 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
3653 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
3654 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
3655 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
3656 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
3657 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
3658 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
3659 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
3660 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
3661 common to gdbsupport.
3662
350fab54
AH
36632019-07-04 Alan Hayward <alan.hayward@arm.com>
3664
3665 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
3666 defines.
3667 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
3668
2b40fda7
AH
36692019-07-04 Alan Hayward <alan.hayward@arm.com>
3670
3671 * configure.srv: Remove legacy xml.
3672 * linux-aarch64-low.c (initialize_low_arch): Remove
3673 initialize_low_tdesc call.
3674 * linux-aarch64-tdesc-selftest.c: Remove file.
3675 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
3676 * linux-x86-low.c (initialize_low_arch): Remove
3677 initialize_low_tdesc call.
3678 * linux-x86-tdesc-selftest.c: Remove file.
3679 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
3680
7d10623d
TV
36812019-06-20 Tom de Vries <tdevries@suse.de>
3682
3683 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
3684 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
3685
8d6a48df
TV
36862019-06-19 Tom de Vries <tdevries@suse.de>
3687
3688 * debug.h (debug_write): Change return type to ssize_t.
3689 * debug.c (debug_write): Same.
3690
73cc7272
TT
36912019-06-14 Tom Tromey <tom@tromey.com>
3692
3693 * configure.ac: Use new path to gnulib.
3694 * configure: Rebuild.
3695 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
3696 to gnulib.
3697
08f10e02
TT
36982019-06-11 Tom Tromey <tom@tromey.com>
3699
3700 * Makefile.in (SFILES): Add alloc.c.
3701 (OBS): Add alloc.o.
3702 (IPA_OBJS): Add alloc-ipa.o.
3703 (alloc-ipa.o): New target.
3704 (%.o: ../%.c): New pattern rule.
3705
422186a9
TT
37062019-06-10 Tom Tromey <tromey@adacore.com>
3707
3708 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
3709 end warning with a newline.
3710 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
3711 newline.
3712 * thread-db.c (attach_thread): Don't end warning with a newline.
3713 (thread_db_notice_clone): Likewise.
3714 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
3715 newline.
3716 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
3717 end warning with a newline.
3718
b02f78f9
PA
37192019-06-04 Pedro Alves <palves@redhat.com>
3720
3721 * server.c (captured_main): Use make_unique_xstrdup.
3722
88ed7edb
TT
37232019-06-02 Tom Tromey <tom@tromey.com>
3724
3725 * gdbreplay.c (fromhex): Remove.
3726 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
3727
33a6bc35
TT
37282019-05-29 Tom Tromey <tromey@adacore.com>
3729
3730 * configure: Rebuild.
3731
e90a813d
KB
37322019-05-06 Kevin Buettner <kevinb@redhat.com>
3733
3734 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
3735 sign extension code on 32-bit builds.
3736
353ea2d1
EZ
37372019-05-03 Eli Zaretskii <eliz@gnu.org>
3738
3739 * remote-utils.c:
3740 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
3741
b494cdff
TT
37422019-04-19 Tom Tromey <tom@tromey.com>
3743
3744 * server.c (struct vstop_notif): Derive from notif_event.
3745 <base>: Remove.
3746 (queue_stop_reply): Update.
3747 (remove_all_on_match_ptid): Change type. Rewrite.
3748 (discard_queued_stop_replies): Rewrite.
3749 (in_queued_stop_replies_ptid): Change type.
3750 (in_queued_stop_replies): Rewrite.
3751 (notif_stop): Update.
3752 (queue_stop_reply_callback): Update.
3753 (captured_main): Don't call initialize_notif.
3754 (push_stop_notification): Update.
3755 * notif.c (notif_write_event, handle_notif_ack)
3756 (notif_event_enque, notif_push): Update.
3757 (notif_event_xfree, initialize_notif): Remove.
3758 * notif.h (struct notif_event): Include <list>, not
3759 "common/queue.h".
3760 (struct notif_server) <queue>: Now a std::list.
3761 (notif_event_p): Remove typedef.
3762 (initialize_notif): Don't declare.
3763 (struct notif_event): Add virtual destructor.
3764
a7e559cc
AH
37652019-04-17 Alan Hayward <alan.hayward@arm.com>
3766
3767 * ax.c (ax_vdebug): Call debug_printf.
3768 * debug.c (debug_write): New function.
3769 * debug.h (debug_write): New declaration.
3770 * linux-low.c (sigchld_handler): Call debug_write.
3771
aeb2e706
AH
37722019-04-17 Alan Hayward <alan.hayward@arm.com>
3773
3774 * debug.c (debug_set_output): New function.
3775 (debug_vprintf): Send output to debug_file.
3776 (debug_flush): Likewise.
3777 * debug.h (debug_set_output): New declaration.
3778 * server.c (handle_monitor_command): Add debug-file option.
3779 (captured_main): Likewise.
3780
c1bc0935
AH
37812019-04-17 Alan Hayward <alan.hayward@arm.com>
3782
3783 * debug.c (remote_debug): Add definition.
3784 * debug.h (remote_debug): Add declaration.
3785 * hostio.c (remote_debug): Remove declaration.
3786 * remote-utils.c (struct ui_file): Likewise.
3787 (remote_debug): Likewise.
3788 * remote-utils.h (remote_debug): Likewise,
3789 * server.c (remote_debug): Remove definition.
3790
3f52fdbc
KB
37912019-04-10 Kevin Buettner <kevinb@redhat.com>
3792
3793 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
3794 when using a 64-bit gdbserver.
3795
b0319eaa
TT
37962019-04-09 Tom Tromey <tromey@adacore.com>
3797
3798 * linux-low.c (select_event_lwp): Use find_thread_in_random.
3799
eedc3f4f
TT
38002019-04-08 Tom Tromey <tom@tromey.com>
3801
3802 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
3803 throw.
3804 (linux_resume_one_lwp): Likewise.
3805
230d2906
TT
38062019-04-08 Tom Tromey <tom@tromey.com>
3807
3808 * gdbreplay.c: Update.
3809 * linux-low.c: Update.
3810 * server.c: Update.
3811
a70b8144
TT
38122019-04-08 Tom Tromey <tom@tromey.com>
3813
3814 * server.c: Use C++ exception handling.
3815 * linux-low.c: Use C++ exception handling.
3816 * gdbreplay.c: Use C++ exception handling.
3817
3d6e9d23
TT
38182019-04-08 Tom Tromey <tom@tromey.com>
3819
3820 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
3821 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
3822 (captured_main, main): Update.
3823 * gdbreplay.c (main): Update.
3824
0570503d
PFC
38252019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3826
3827 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
3828 value in argument pointer, return 1 if the entry is found and 0
3829 otherwise. Move comment.
3830 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
3831 * linux-low.h (linux_get_auxv): Declare.
3832 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
3833
227a9e65
TT
38342019-04-05 Tom Tromey <tromey@adacore.com>
3835
3836 * server.c (gdbserver_usage): Use upper-case for metasyntactic
3837 variables.
3838
69f4c9cc
AH
38392019-03-28 Alan Hayward <alan.hayward@arm.com>
3840
3841 * linux-low.c (AT_HWCAP2): Add define if not already included.
3842
974c89e0
AH
38432019-03-26 Alan Hayward <alan.hayward@arm.com>
3844
3845 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
3846 (aarch64_arch_setup): Call linux_get_hwcap.
3847 * linux-arm-low.c (arm_get_hwcap): Remove function.
3848 (arm_read_description): Call linux_get_hwcap.
3849 * linux-low.c (linux_get_auxv): New function.
3850 (linux_get_hwcap): Likewise.
3851 (linux_get_hwcap2): Likewise.
3852 * linux-low.h (linux_get_hwcap): New declaration.
3853 (linux_get_hwcap2): Likewise.
3854 * linux-ppc-low.c (ppc_get_auxv): Remove function.
3855 (ppc_arch_setup): Call linux_get_hwcap.
3856 * linux-s390-low.c (s390_get_hwcap): Remove function.
3857 (s390_arch_setup): Call linux_get_hwcap.
3858
1ef53e6b
AH
38592019-03-22 Alan Hayward <alan.hayward@arm.com>
3860 Jiong Wang <jiong.wang@arm.com>
3861
3862 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
3863 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
3864 to fail.
3865 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
3866
ee4fbcfa
AH
38672019-03-22 Alan Hayward <alan.hayward@arm.com>
3868 Jiong Wang <jiong.wang@arm.com>
3869
3870 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
3871 (aarch64_get_hwcap): New function.
3872 (aarch64_arch_setup): Read APIA hwcap.
3873
6dc0ebde
AH
38742019-03-22 Alan Hayward <alan.hayward@arm.com>
3875 Jiong Wang <jiong.wang@arm.com>
3876
3877 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
3878 (initialize_low_tracepoint): Likewise.
3879 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
3880 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
3881 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
3882 (aarch64_linux_read_description): Likewise.
3883 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
3884
1163a4b7
JB
38852019-03-12 John Baldwin <jhb@FreeBSD.org>
3886
3887 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
3888 i386_create_target_description for 'segments' parameter.
3889 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
3890 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
3891 * win32-i386-low.c (i386_arch_setup): Likewise.
3892
d3a70e03
TT
38932019-03-12 Tom Tromey <tromey@adacore.com>
3894
3895 * linux-low.c (iterate_over_lwps): Update.
3896
37991b4f
TT
38972019-03-06 Tom Tromey <tom@tromey.com>
3898
3899 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
3900 (captured_main): Use SCOPE_EXIT.
3901
45950eb6
SDJ
39022019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
3903
3904 * configure.srv: Use '$enable_unittest' instead of '$development'
3905 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
3906 case.
3907
43ac54fc
TT
39082019-02-27 Tom Tromey <tromey@adacore.com>
3909
3910 * gdbreplay.c (logchar): Handle \r\n.
3911
df0da8a2
AH
39122019-02-07 Alan Hayward <alan.hayward@arm.com>
3913
3914 * linux-low.c (linux_attach): Add process before lwp.
3915 * server.c (attach_inferior): Check if already attached.
3916
1a5c2598
TT
39172019-02-07 Tom Tromey <tom@tromey.com>
3918
3919 * x86-tdesc.h: Rename include guard.
3920 * x86-low.h: Add include guard.
3921 * wincecompat.h: Rename include guard.
3922 * win32-low.h: Add include guard.
3923 * utils.h: Rename include guard.
3924 * tracepoint.h: Rename include guard.
3925 * tdesc.h: Rename include guard.
3926 * target.h: Rename include guard.
3927 * server.h: Rename include guard.
3928 * remote-utils.h: Rename include guard.
3929 * regcache.h: Rename include guard.
3930 * nto-low.h: Rename include guard.
3931 * notif.h: Add include guard.
3932 * mem-break.h: Rename include guard.
3933 * lynx-low.h: Add include guard.
3934 * linux-x86-tdesc.h: Add include guard.
3935 * linux-s390-tdesc.h: Add include guard.
3936 * linux-ppc-tdesc-init.h: Add include guard.
3937 * linux-low.h: Add include guard.
3938 * linux-aarch64-tdesc.h: Add include guard.
3939 * linux-aarch32-low.h: Add include guard.
3940 * inferiors.h: Rename include guard.
3941 * i387-fp.h: Rename include guard.
3942 * hostio.h: Rename include guard.
3943 * gdbthread.h: Rename include guard.
3944 * gdb_proc_service.h: Rename include guard.
3945 * event-loop.h: Rename include guard.
3946 * dll.h: Rename include guard.
3947 * debug.h: Rename include guard.
3948 * ax.h: Rename include guard.
3949
956cc47c
SN
39502018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
3951
3952 PR gdb/23985
3953 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
3954 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
3955
a0707f3c
TT
39562019-01-25 Tom Tromey <tom@tromey.com>
3957
3958 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
3959
0747795c
TT
39602019-01-25 Tom Tromey <tom@tromey.com>
3961
3962 * win32-low.c: Fix common/ includes.
3963 * win32-i386-low.c: Fix common/ includes.
3964 * tracepoint.c: Fix common/ includes.
3965 * thread-db.c: Fix common/ includes.
3966 * target.h: Fix common/ includes.
3967 * symbol.c: Fix common/ includes.
3968 * spu-low.c: Fix common/ includes.
3969 * server.h: Fix common/ includes.
3970 * server.c: Fix common/ includes.
3971 * remote-utils.c: Fix common/ includes.
3972 * regcache.h: Fix common/ includes.
3973 * regcache.c: Fix common/ includes.
3974 * nto-x86-low.c: Fix common/ includes.
3975 * notif.h: Fix common/ includes.
3976 * mem-break.h: Fix common/ includes.
3977 * lynx-low.c: Fix common/ includes.
3978 * lynx-i386-low.c: Fix common/ includes.
3979 * linux-x86-tdesc-selftest.c: Fix common/ includes.
3980 * linux-x86-low.c: Fix common/ includes.
3981 * linux-low.c: Fix common/ includes.
3982 * inferiors.h: Fix common/ includes.
3983 * i387-fp.c: Fix common/ includes.
3984 * hostio.c: Fix common/ includes.
3985 * hostio-errno.c: Fix common/ includes.
3986 * gdbthread.h: Fix common/ includes.
3987 * gdbreplay.c: Fix common/ includes.
3988 * fork-child.c: Fix common/ includes.
3989 * event-loop.c: Fix common/ includes.
3990 * ax.c:
3991 (enum gdb_agent_op): Fix common/ includes.
3992
be6d4f74
TT
39932019-01-21 Tom Tromey <tom@tromey.com>
3994
3995 * tracepoint.c: Fix includes.
3996 * remote-utils.c: Fix includes.
3997 * linux-x86-low.c: Fix includes.
3998
66d91b39
JB
39992019-01-01 Joel Brobecker <brobecker@adacore.com>
4000
4001 * gdbreplay.c (gdbreplay_version): Update copyright year in
4002 version message.
4003 * server.c (gdbserver_version): Likewise.
4004
754e3168
AH
40052018-12-05 Alan Hayward <alan.hayward@arm.com>
4006
4007 * linux-low.c (add_lwp): Switch ordering.
4008
d105de22
TT
40092018-11-29 Tom Tromey <tom@tromey.com>
4010
4011 * win32-low.c (win32_join): Take pid, not process.
4012 * target.h (struct target_ops) <join>: Change argument type.
4013 (join_inferior): Change argument name.
4014 * spu-low.c (spu_join): Take pid, not process.
4015 * server.c (handle_detach): Preserve pid before destroying
4016 process.
4017 * lynx-low.c (lynx_join): Take pid, not process.
4018 * linux-low.c (linux_join): Take pid, not process.
4019
50138245
AH
40202018-11-23 Alan Hayward <alan.hayward@arm.com>
4021
4022 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
4023 (aarch64_cannot_fetch_register): Likewise.
4024 (struct linux_target_ops): Update references.
4025
64f57f3d
PFC
40262018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4027
4028 * linux-ppc-low.c: Include nat/linux-ptrace.h.
4029
8d619c01
EBM
40302018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4031
4032 * configure.srv (ipa_ppc_linux_regobj): Add
4033 powerpc-isa207-htm-vsx32l-ipa.o and
4034 powerpc-isa207-htm-vsx64l-ipa.o.
4035 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
4036 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
4037 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
4038 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
4039 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
4040 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
4041 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
4042 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
4043 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
4044 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
4045 (init_registers_powerpc_isa207_htm_vsx32l)
4046 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
4047 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
4048 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
4049 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
4050 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
4051 (ppc_store_tm_ctarregset): New functions.
4052 (ppc_regsets): Add entries for HTM regsets.
4053 (ppc_arch_setup): Set htm in features struct when needed. Set
4054 sizes for the HTM regsets.
4055 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
4056 (initialize_low_arch): Call
4057 init_registers_powerpc_isa207_htm_vsx32l and
4058 init_registers_powerpc_isa207_htm_vsx64l.
4059 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
4060 PPC_TDESC_ISA207_HTM_VSX.
4061 (initialize_low_tracepoint): Call
4062 init_registers_powerpc_isa207_htm_vsx32l and
4063 init_registers_powerpc_isa207_htm_vsx64l.
4064
232bfb86
EBM
40652018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4066
4067 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
4068 rs6000/power-linux-pmu.xml to srv_xmlfiles.
4069 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
4070 (ppc_store_pmuregset): New functions.
4071 (ppc_regsets): Add entries for ebb and pmu regsets.
4072 (ppc_arch_setup): Set isa207 in features struct if the ebb and
4073 pmu regsets are available. Set sizes for these regsets.
4074
f2cf6173
EBM
40752018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4076
4077 * configure.srv (ipa_ppc_linux_regobj): Add
4078 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
4079 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
4080 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
4081 rs6000/powerpc-isa207-vsx32l.xml, and
4082 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
4083 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
4084 <PPC_TDESC_ISA207_VSX>: New enum value.
4085 (init_registers_powerpc_isa207_vsx32l): Declare.
4086 (init_registers_powerpc_isa207_vsx64l): Declare.
4087 * linux-ppc-low.c (ppc_fill_tarregset): New function.
4088 (ppc_store_tarregset): New function.
4089 (ppc_regsets): Add entry for the TAR regset.
4090 (ppc_arch_setup): Set isa207 in features struct when needed. Set
4091 size for the TAR regsets.
4092 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
4093 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
4094 and init_registers_powerpc_isa207_vsx64l.
4095 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
4096 (initialize_low_tracepoint): Call
4097 init_registers_powerpc_isa207_vsx32l and
4098 init_registers_powerpc_isa207_vsx64l.
4099
7ca18ed6
EBM
41002018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4101 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4102
4103 * configure.srv (ipa_ppc_linux_regobj): Add
4104 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
4105 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
4106 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
4107 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
4108 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
4109 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
4110 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
4111 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
4112 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
4113 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
4114 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
4115 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
4116 (ppc_hwcap): Add comment.
4117 (ppc_hwcap2): New global.
4118 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
4119 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
4120 (ppc_regsets): Add entries for the DSCR and PPR regsets.
4121 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
4122 when needed. Set sizes for the the DSCR and PPR regsets.
4123 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
4124 (initialize_low_arch): Call
4125 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
4126 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
4127 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
4128 PPC_TDESC_ISA205_PPR_DSCR_VSX.
4129 (initialize_low_tracepoint): Call
4130 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
4131 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
4132
5c849b22
PFC
41332018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4134
4135 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
4136
8ecfd7bd
SDJ
41372018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
4138 Simon Marchi <simark@simark.ca>
4139
4140 * acinclude.m4: Include "../selftest.m4".
4141 * configure: Regenerate.
4142 * configure.ac: Use "GDB_AC_SELFTEST".
4143 * configure.srv: Use "$enable_unittests" instead of
4144 "$development" when checking whether unit tests have been
4145 enabled.
4146 * server.c (captured_main): Update message informing that
4147 selftests have been disabled.
4148
96643e35
TT
41492018-10-04 Tom Tromey <tom@tromey.com>
4150
4151 * configure: Rebuild.
4152
da4ae14a
TT
41532018-10-04 Tom Tromey <tom@tromey.com>
4154
4155 * server.c (handle_status): Rename inner "thread".
4156 (process_serial_event): Declare "res" in 'm' case.
4157 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
4158 (iterate_over_lwps): Rename inner "thread".
4159 (linux_qxfer_libraries_svr4): Rename inner "len".
4160 * gdbthread.h (find_thread_in_random): Rename inner "thread".
4161
7c619dbd
GB
41622018-10-01 Gary Benson <gbenson@redhat.com>
4163
4164 * gdb_proc_service.h: Moved common code to
4165 common/gdb_proc_service.h.
4166
3795e814
GB
41672018-10-01 Gary Benson <gbenson@redhat.com>
4168
4169 * gdb_proc_service.h: Synchronize comments and whitespace with
4170 GDB's version of this file.
4171
49b036f1
TT
41722018-09-25 Tom Tromey <tom@tromey.com>
4173
4174 * configure: Rebuild.
4175 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
4176
8ff03f0b
SM
41772018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
4178
4179 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
4180 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
4181 ($(IPA_LIB)): Sort IPA_OBJS.
4182
a1cd91dc
SM
41832018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
4184
4185 * Makefile.in: Remove references to $(ADD_DEPS).
4186
752312ba
TT
41872018-09-16 Tom Tromey <tom@tromey.com>
4188
4189 * remote-utils.c (remote_open): Use GNU style for metasyntactic
4190 variables.
4191 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
4192 variables.
4193
f1628857
TT
41942018-09-05 Tom Tromey <tom@tromey.com>
4195
4196 * configure: Rebuild.
4197
ad202fcc
SM
41982018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
4199
4200 PR build/23399
4201 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
4202
d3d8724a
TT
42032018-08-27 Tom Tromey <tom@tromey.com>
4204
4205 PR build/23087:
4206 * configure: Rebuild.
4207
b4f183d2
TT
42082018-08-27 Tom Tromey <tom@tromey.com>
4209
4210 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
4211 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
4212 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
4213 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
4214 (s390x_emit_stack_adjust): Add casts to unsigned char.
4215
4e2aa472
SM
42162018-08-22 Simon Marchi <simon.marchi@ericsson.com>
4217
4218 PR gdb/23374
4219 PR gdb/23375
4220 * server.h (struct client_state) <disable_randomization>:
4221 Initialize to 1.
4222
cf4088a9
SM
42232018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4224
4225 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
4226 variable.
4227 (mips_supply_ptrace_register): Likewise.
4228
a0de763e
TT
42292018-07-22 Tom Tromey <tom@tromey.com>
4230
4231 * configure: Rebuild.
4232
b0a7723d
TT
42332018-07-22 Tom Tromey <tom@tromey.com>
4234
4235 * win32-low.c (win32_create_inferior): Remove unused variables.
4236 * gdbreplay.c (remote_open): Remove unused variable.
4237 * remote-utils.c (remote_prepare): Remove unused variable.
4238 * x86-tdesc.h (X86_TDESC_H): Define.
4239 (amd64_expedite_regs): Define conditionally.
4240 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
4241 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
4242 * remote-utils.c (readchar): Remove unused variable.
4243
a780ef4f
PA
42442018-07-13 Pedro Alves <palves@redhat.com>
4245
4246 * linux-low.c (linux_kill): Change parameter to process_info
4247 pointer instead of pid. Adjust.
4248 * lynx-low.c (lynx_kill): Likewise.
4249 * nto-low.c (nto_kill): Likewise.
4250 * spu-low.c (spu_kill): Likewise.
4251 * win32-low.c (win32_kill): Likewise.
4252 * server.c (handle_v_kill, kill_inferior_callback)
4253 (detach_or_kill_for_exit): Adjust.
4254 * target.c (kill_inferior): Change parameter to process_info
4255 pointer instead of pid. Adjust.
4256 * target.h (struct target_ops) <kill>: Change parameter to
4257 process_info pointer instead of pid. Adjust all implementations
4258 and callers.
4259 (kill_inferior): Likewise.
4260
ef2ddb33
PA
42612018-07-13 Pedro Alves <palves@redhat.com>
4262
4263 * linux-low.c (linux_detach, linux_join): Change parameter to
4264 process_info pointer instead of pid. Adjust.
4265 * lynx-low.c (lynx_detach, lynx_join): Likewise.
4266 * nto-low.c (nto_detach): Likewise.
4267 * spu-low.c (spu_detach, spu_join): Likewise.
4268 * win32-low.c (win32_detach, win32_join): Likewise.
4269 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
4270 * target.h (struct target_ops) <detach, join>: Change parameter to
4271 process_info pointer instead of pid. Adjust all implementations
4272 and callers.
4273 (detach_inferior, join_inferior): Rename 'pid' parameter to
4274 'proc'.
4275
c7ab0aef
SDJ
42762018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4277 Jan Kratochvil <jan.kratochvil@redhat.com>
4278 Paul Fertser <fercerpav@gmail.com>
4279 Tsutomu Seki <sekiriki@gmail.com>
4280
4281 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
4282 (OBS): Add 'common/netstuff.o'.
4283 (GDBREPLAY_OBS): Likewise.
4284 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
4285 (remote_open): Implement support for IPv6
4286 connections.
4287 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
4288 and 'wspiapi.h'.
4289 (handle_accept_event): Accept connections from IPv6 sources.
4290 (remote_prepare): Handle IPv6-style hostnames; implement
4291 support for IPv6 connections.
4292 (remote_open): Implement support for printing connections from
4293 IPv6 sources.
4294
31445d10
PA
42952018-07-11 Pedro Alves <palves@redhat.com>
4296
4297 PR gdb/23377
4298 * mem-break.c (any_persistent_commands): Add process_info
4299 parameter and use it instead of relying on the current process.
4300 Change return type to bool.
4301 * mem-break.h (any_persistent_commands): Add process_info
4302 parameter and change return type to bool.
4303 * server.c (handle_detach): Remove require_running_or_return call.
4304 Look up the process_info for the process we're about to detach.
4305 If not found, return back error to GDB. Adjust
4306 any_persistent_commands call to pass down a process pointer.
4307
cb197132
PA
43082018-07-11 Pedro Alves <palves@redhat.com>
4309
4310 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
4311 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
4312 instead of collect_register_by_name.
4313 * regcache.c (regcache_raw_get_unsigned_by_name): New.
4314 * regcache.h (regcache_raw_get_unsigned_by_name): New.
4315
1b919490
VB
43162018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
4317 Pedro Alves <palves@redhat.com>
4318
4319 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
4320
d7e15655
TT
43212018-07-03 Tom Tromey <tom@tromey.com>
4322
4323 * linux-low.c: Update.
4324 * lynx-low.c: Update.
4325 * mem-break.c: Update.
4326 * nto-low.c: Update.
4327 * remote-utils.c: Update.
4328 * server.c: Update.
4329 * spu-low.c: Update.
4330 * target.c: Update.
4331 * win32-low.c: Update.
4332
26a57c92
TT
43332018-07-03 Tom Tromey <tom@tromey.com>
4334
4335 * server.c: Update.
4336
0e998d96
TT
43372018-07-03 Tom Tromey <tom@tromey.com>
4338
4339 * linux-low.c: Update.
4340
cc6bcb54
TT
43412018-07-03 Tom Tromey <tom@tromey.com>
4342
4343 * target.c: Update.
4344
e38504b3
TT
43452018-07-03 Tom Tromey <tom@tromey.com>
4346
4347 * linux-low.c: Update.
4348 * linux-mips-low.c: Update.
4349 * lynx-low.c: Update.
4350 * nto-low.c: Update.
4351 * remote-utils.c: Update.
4352 * server.c: Update.
4353 * spu-low.c: Update.
4354 * target.c: Update.
4355 * thread-db.c: Update.
4356
e99b03dc
TT
43572018-07-03 Tom Tromey <tom@tromey.com>
4358
4359 * linux-low.c: Update.
4360 * linux-mips-low.c: Update.
4361 * lynx-low.c: Update.
4362 * mem-break.c: Update.
4363 * nto-low.c: Update.
4364 * remote-utils.c: Update.
4365 * server.c: Update.
4366 * spu-low.c: Update.
4367 * target.c: Update.
4368 * tracepoint.c: Update.
4369
f2907e49
TT
43702018-07-03 Tom Tromey <tom@tromey.com>
4371
4372 * linux-low.c: Update.
4373 * linux-ppc-low.c: Update.
4374 * linux-x86-low.c: Update.
4375 * proc-service.c: Update.
4376 * server.c: Update.
4377 * spu-low.c: Update.
4378 * thread-db.c: Update.
4379 * win32-low.c: Update.
4380
fd79271b
TT
43812018-07-03 Tom Tromey <tom@tromey.com>
4382
4383 * linux-low.c: Update.
4384 * lynx-low.c: Update.
4385 * nto-low.c: Update.
4386 * remote-utils.c: Update.
4387 * spu-low.c: Update.
4388 * thread-db.c: Update.
4389 * win32-low.c: Update.
4390
c0867626
SDJ
43912018-06-29 Joel Brobecker <brobecker@adacore.com>
4392
4393 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
4394 parameter in call to 'amd64_create_target_description'.
4395
2512d7ef
JK
43962018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4397
4398 * x86-tdesc.h: Remove executable permission flag.
4399
d0ac1c44
SM
44002018-06-19 Simon Marchi <simon.marchi@ericsson.com>
4401
4402 * configure.ac: Remove AC_PREREQ, add missing quoting.
4403 * configure: Re-generate.
4404 * config.in: Re-generate.
4405 * aclocal.m4: Re-generate.
4406
c4eb05ff
SM
44072018-06-18 Simon Marchi <simon.marchi@ericsson.com>
4408
4409 * tracepoint.h (current_traceframe): Remove declaration.
4410
02895270
AH
44112018-06-18 Alan Hayward <alan.hayward@arm.com>
4412
4413 * linux-aarch64-low.c (is_sve_tdesc): New function.
4414 (aarch64_sve_regs_copy_to_regcache): Likewise.
4415 (aarch64_sve_regs_copy_from_regcache): Likewise.
4416 (aarch64_regs_info): Add SVE checks.
4417 (initialize_low_arch): Initialize SVE.
4418
e9902bfc
AH
44192018-06-18 Alan Hayward <alan.hayward@arm.com>
4420
4421 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
4422
fefa175e
AH
44232018-06-11 Alan Hayward <alan.hayward@arm.com>
4424
4425 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
4426 (initialize_low_tracepoint): Likewise
4427 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
4428 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
4429 param.
4430 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
4431 checks.
4432 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
4433
b91ad3ff
AH
44342018-06-11 Alan Hayward <alan.hayward@arm.com>
4435
4436 * server.h (PBUFSIZ): Increase size
4437
f868386e
AH
44382018-06-11 Alan Hayward <alan.hayward@arm.com>
4439
4440 * regcache.c (regcache::raw_compare): New function.
4441 * regcache.h (regcache::raw_compare): New declaration.
4442
9c861883
AH
44432018-06-11 Alan Hayward <alan.hayward@arm.com>
4444
4445 * regcache.c (new_register_cache): Use new.
4446 (free_register_cache): Use delete.
4447 (register_data): Use const.
4448 (supply_register): Move body inside regcache.
4449 (regcache::raw_supply): New override function.
4450 (collect_register): Move body inside regcache.
4451 (regcache::raw_collect): New override function.
4452 (regcache::get_register_status): New override function.
4453 * regcache.h (struct regcache): Inherit from reg_buffer_common.
4454
40591844
TT
44552018-06-09 Tom Tromey <tom@tromey.com>
4456
4457 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
4458 declare queue.
4459 (event_queue): Use std::queue.
4460 (gdb_event_xfree): Remove.
4461 (initialize_event_loop, process_event, wait_for_event): Update.
4462
6341380d
SC
44632018-06-08 Stan Cox <scox@redhat.com>
4464
4465 * win32-low.c (win32_create_inferior): last_ptid and last_status
4466 moved to client_state.
4467
03349c93
PA
44682018-06-08 Pedro Alves <palves@redhat.com>
4469
4470 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
4471 common/common-exceptions.o, common/common-utils.o,
4472 common/errors.o, common/print-utils.o and utils.o.
4473 * gdbreplay.c: Include "common-defs.h" instead of the two
4474 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
4475 string.h or alloca.h.
4476 (perror_with_name): Delete.
4477 (remote_open): Use xstrdup instead of strdup.
4478 (main): Rename to ...
4479 (captured_main): ... this.
4480 (main): New.
4481
8dcc53b3
TT
44822018-06-08 Tom Tromey <tom@tromey.com>
4483
4484 * linux-low.c (linux_low_read_btrace): Update.
4485
c12a5089
SC
44862018-06-04 Stan Cox <scox@redhat.com>
4487
4488 * server.h (struct client_state): New.
4489 * server.c (cont_thread, general_thread, multi_process)
4490 (report_fork_events, report_vfork_events, report_exec_events)
4491 (report_thread_events, swbreak_feature, hwbreak_feature)
4492 (vCont_supported, disable_randomization, pass_signals)
4493 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
4494 Moved to client_state.
4495 * remote-utils.c (remote_debug, noack_mode)
4496 (transport_is_reliable): Moved to client_state.
4497 * tracepoint.c (current_traceframe): Moved to client_state.
4498
4499 Update all callers.
4500 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
4501 linux-low.c, remote-utils.h, target.c: Use client_state.
4502
122394f1
AH
45032018-05-31 Alan Hayward <alan.hayward@arm.com>
4504
4505 * configure.srv: Add new c/h file.
4506
95228a0d
AH
45072018-05-31 Alan Hayward <alan.hayward@arm.com>
4508
4509 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
4510 null VQ.
4511
d8dab6c3
MR
45122018-05-25 Maciej W. Rozycki <macro@mips.com>
4513
4514 * gdb.arch/mips-fpregset-core.exp: New test.
4515 * gdb.arch/mips-fpregset-core.c: New test source.
4516
81e25b7c
EK
45172018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
4518
4519 PR server/23198
4520 * hostio.c (require_int): Do not report overflow for integers
4521 between 0xfffffff and 0x7fffffff.
4522
7e947ad3
MR
45232018-05-22 Maciej W. Rozycki <macro@mips.com>
4524
4525 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
4526 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
4527 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
4528 functions.
4529 (the_low_target): Wire them.
4530
1d75a658
PFC
45312018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4532
4533 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
4534 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
4535 mode. Call collect_register_by_name with vscr using
4536 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
4537 (ppc_store_vrregset): Add and set vscr_offset variable as in
4538 ppc_fill_vrregset. Call supply_register_by_name with vscr using
4539 vscr_offset.
4540
d078308a
PFC
45412018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4542
4543 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
4544 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
4545 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
4546
7273b5fc
PFC
45472018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4548
4549 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
4550 (ppc_store_vsxregset): Likewise.
4551 (ppc_fill_vrregset): Likewise.
4552 (ppc_store_vrregset): Likewise.
4553 (ppc_fill_evrregset): Likewise.
4554 (ppc_store_evrregset): Likewise.
4555 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
4556 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
4557 needed.
4558
2e077f5e
PFC
45592018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4560
4561 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
4562 wordsize of the inferior. Call ppc_linux_target_wordsize.
4563
bd64614e
PFC
45642018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4565
4566 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
4567 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
4568 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
4569 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
4570 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
4571 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
4572 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
4573 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
4574 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
4575 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
4576 (tdesc_powerpc_e500l): Remove.
4577 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
4578 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
4579 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
4580 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
4581 linux-ppc-tdesc.h.
4582 (ppc_arch_setup): Remove target description matching code. Fill a
4583 ppc_linux_features struct and call ppc_linux_match_description
4584 with it.
4585
75d74cca
MR
45862018-05-22 Maciej W. Rozycki <macro@mips.com>
4587
4588 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
4589 width of the requested register exceeds the width of the
4590 `ptrace' data type.
4591 (mips_cannot_store_register): Likewise.
4592
e4439e43
MR
45932018-05-21 Maciej W. Rozycki <macro@mips.com>
4594
4595 * linux-mips-low.c (mips_fetch_register): New function. Update
4596 preceding comment.
4597 (mips_store_gregset): Supply 0 rather than $restart for $zero.
4598 (the_low_target): Wire `mips_fetch_register'.
4599
55271bf9
JB
46002018-05-10 Joel Brobecker <brobecker@adacore.com>
4601
4602 * lynx-i386-low.c (LYNXOS_178): New macro.
4603 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
4604 the layout on LynxOS-178.
4605 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
4606 handle floating point registers that are not supported by
4607 LynxOS-178.
4608
1a34f210
TT
46092018-05-10 Tom Tromey <tom@tromey.com>
4610
4611 * configure: Rebuild.
4612
190852c8
JB
46132018-05-10 Joel Brobecker <brobecker@adacore.com>
4614
4615 PR server/23158:
4616 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
4617 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
4618 Use it to set the expedite_regs field in the given tdesc.
4619 * x86-tdesc.h: New file.
4620 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
4621 Adjust following the addition of the new expedite_regs parameter
4622 to init_target_desc.
4623 * linux-tic6x-low.c (tic6x_read_description): Likewise.
4624 * linux-x86-tdesc.c: #include "x86-tdesc.h".
4625 (i386_linux_read_description, amd64_linux_read_description):
4626 Adjust following the addition of the new expedite_regs parameter
4627 to init_target_desc.
4628 * lynx-i386-low.c: #include "x86-tdesc.h".
4629 (lynx_i386_arch_setup): Adjust following the addition of the new
4630 expedite_regs parameter to init_target_desc.
4631 * nto-x86-low.c: #include "x86-tdesc.h".
4632 (nto_x86_arch_setup): Adjust following the addition of the new
4633 expedite_regs parameter to init_target_desc.
4634 * win32-i386-low.c: #include "x86-tdesc.h".
4635 (i386_arch_setup): Adjust following the addition of the new
4636 expedite_regs parameter to init_target_desc.
4637
7dbac825
JB
46382018-05-10 Joel Brobecker <brobecker@adacore.com>
4639
4640 PR server/23158:
4641 * win32-low.c (win32_create_inferior): Add call to my_wait
4642 setting last_status global.
4643
906994d9
JB
46442018-05-10 Joel Brobecker <brobecker@adacore.com>
4645
4646 PR server/23158:
4647 * win32-low.c (create_process): Only call gdb_tilde_expand if
4648 inferior_cwd is not NULL.
4649
8ee22052
AB
46502018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
4651
4652 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
4653 registers to the cache if their values have changed.
4654 (i387_xsave_to_cache): Provide default values for x87 control
4655 registers when these features are available, but disabled.
4656 * regcache.c (supply_register_by_name_zeroed): New function.
4657 * regcache.h (supply_register_by_name_zeroed): Declare new
4658 function.
4659
aff689d3
TT
46602018-05-07 Tom Tromey <tom@tromey.com>
4661
4662 * configure: Rebuild.
4663
85e26832
TT
46642018-05-04 Tom Tromey <tom@tromey.com>
4665
4666 * configure: Rebuild.
4667
a3b60e45
JK
46682018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4669 Pedro Alves <palves@redhat.com>
4670
4671 * linux-aarch64-low.c (aarch64_stopped_data_address):
4672 Likewise.
4673
632e107b
TT
46742018-04-27 Tom Tromey <tom@tromey.com>
4675
4676 * configure: Rebuild.
4677
458412c3
TT
46782018-04-23 Tom Tromey <tom@tromey.com>
4679
4680 * configure: Rebuild.
4681
f31c089e
SM
46822018-04-19 Simon Marchi <simon.marchi@ericsson.com>
4683
4684 * Makefile.in (depcomp): Add "..".
4685 (all_deps_files): New and use it.
4686
b319b098
AH
46872018-04-18 Alan Hayward <alan.hayward@arm.com>
4688
4689 * configure.srv (aarch64*-*-linux*): Don't include xml.
4690 (i[34567]86-*-cygwin*): Likewise.
4691 (i[34567]86-*-linux*): Likewise.
4692 (i[34567]86-*-lynxos*): Likewise.
4693 (i[34567]86-*-mingw32ce*): Likewise.
4694 (i[34567]86-*-mingw*): Likewise.
4695 (i[34567]86-*-nto*): Likewise.
4696 (tic6x-*-uclinux): Likewise.
4697 (x86_64-*-linux*): Likewise.
4698 (x86_64-*-mingw*): Likewise.
4699 (x86_64-*-cygwin*): Likewise.
4700
3b74854b
AH
47012018-04-18 Alan Hayward <alan.hayward@arm.com>
4702
4703 * tdesc.c: Remove xml parameter.
4704
e98577a9
AH
47052018-04-18 Alan Hayward <alan.hayward@arm.com>
4706
4707 * server.c (get_features_xml): Remove cast.
4708 * tdesc.c (void target_desc::accept): Fill in function.
4709 (tdesc_get_features_xml): Remove old xml creation.
4710 (print_xml_feature::visit_pre): Add xml vistor.
4711 * tdesc.h (struct target_desc): Make xmltarget mutable.
4712 (tdesc_get_features_xml): Remove declaration.
4713
d278f585
AH
47142018-04-18 Alan Hayward <alan.hayward@arm.com>
4715
4716 * tdesc.c (tdesc_architecture_name): Add new function.
4717 (tdesc_osabi_name): Likewise.
4718 (tdesc_get_features_xml): Use new functions.
4719
eee8a18d
AH
47202018-04-18 Alan Hayward <alan.hayward@arm.com>
4721
4722 * tdesc.c (tdesc_create_flags): Remove.
4723 (tdesc_add_flag): Likewise.
4724 (tdesc_named_type): Likewise.
4725 (tdesc_create_union): Likewise.
4726 (tdesc_create_struct): Likewise.
4727 (tdesc_create_vector): Likewise.
4728 (tdesc_add_bitfield): Likewise.
4729 (tdesc_add_field): Likewise.
4730 (tdesc_set_struct_size): Likewise.
4731
82ec9bc7
AH
47322018-04-18 Alan Hayward <alan.hayward@arm.com>
4733
4734 * tdesc.c (~target_desc): Remove implictly deleted items.
4735 (init_target_desc): Iterate all features.
4736 (tdesc_get_features_xml): Use vector.
4737 (tdesc_create_feature): Create feature.
4738 * tdesc.h (tdesc_feature) Remove
4739 (target_desc): Add features.
4740
ea3e7d71
AH
47412018-04-18 Alan Hayward <alan.hayward@arm.com>
4742
4743 * Makefile.in: Add common/tdesc.c
4744 * tdesc.c (init_target_desc): init all reg_defs from register
4745 vector.
4746 (tdesc_create_reg): Create tdesc_reg.
4747 * tdesc.h (tdesc_feature): Add register vector.
4748
17d08cd4
SM
47492018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
4750
4751 * tdesc.h (struct target_desc) <features>: Change type to
4752 std::vector<std::string>.
4753 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
4754 changes.
4755 (tdesc_get_features_xml): Likewise.
4756 (tdesc_create_feature): Likewise.
4757
5cd3e386
AH
47582018-03-26 Alan Hayward <alan.hayward@arm.com>
4759
4760 * regcache.c (find_register_by_number): Return a ref.
4761 (find_regno): Use references.
4762 (register_size): Likewise.
4763 (register_data): Likewise.
4764 * tdesc.c (target_desc::~target_desc): Remove free calls.
4765 (target_desc::operator==): Use std::vector compare.
4766 (init_target_desc): Use reference.
4767 (tdesc_create_reg): Use reg constructors.
4768 * tdesc.h (struct target_desc): Replace pointer with object.
4769
dff7492c
AH
47702018-03-23 Alan Hayward <alan.hayward@arm.com>
4771
4772 * regcache.c (find_register_by_number): Make static.
4773 (find_regno): Use find_register_by_number
4774 * regcache.h (struct reg): Remove declaration.
4775
d80e5242
AH
47762018-03-23 Alan Hayward <alan.hayward@arm.com>
4777
4778 * tdesc.c (target_desc::~target_desc): Move to here.
4779 (target_desc::operator==): Likewise.
4780 * tdesc.h (target_desc::~target_desc): Move from here.
4781 (target_desc::operator==): Likewise.
4782
f69c5afb
AA
47832018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
4784
4785 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
4786
ce29f843
AA
47872018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4788
4789 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
4790 S390_TDESC_GS.
4791 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
4792 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
4793 and init_registers_s390_gs_linux64.
4794
c49bd90b
AA
47952018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4796
4797 * linux-s390-low.c (s390_fill_gs): Remove function.
4798 (s390_fill_gsbc): Remove function.
4799 (s390_regsets): Set fill functions for the guarded storage regsets
4800 to NULL.
4801
7edb9bd3
AA
48022018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4803
4804 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
4805 the word size. Add comment.
4806 (s390_get_wordsize): New function.
4807 (s390_arch_setup): No longer select a temporary tdesc to fetch the
4808 pswm with it. Instead, use s390_get_wordsize to determine the
4809 word size first and derive the correct tdesc from that directly.
4810
39be3c7e
SM
48112018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
4812
4813 * Makefile.in: Include silent-rules.mk.
4814 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
4815 (COMPILE): Add ECHO_CXX.
4816 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
4817 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
4818 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
4819 (version-generated.c): Add ECHO_GEN.
4820 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
4821 (IPAGENT_COMPILE): Add ECHO_CXX.
4822 (%-generated.c): Add ECHO_REGDAT.
4823
3ae9ce5d
TT
48242018-03-14 Tom Tromey <tom@tromey.com>
4825
4826 PR cli/14977:
4827 * ax.c (ax_printf): Special case for NULL.
4828
e6a58aa8
SM
48292018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
4830
4831 * linux-low.c (linux_qxfer_libraries_svr4): Use
4832 xml_escape_text_append.
4833
f6e8a41e
SM
48342018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
4835
4836 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
4837
b9671caf
SM
48382018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
4839
4840 * server.c (handle_general_set): Remove unnecessary xstrdup.
4841
e80aaf61
SM
48422018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
4843
4844 * server.c (parse_debug_format_options): Adjust to
4845 delim_string_to_char_ptr_vec changes.
4846 * thread-db.c (thread_db_load_search): Adjust to
4847 dirnames_to_char_ptr_vec changes.
4848
b1223e78
MM
48492018-03-01 Markus Metzger <markus.t.metzger@intel.com>
4850
4851 * target.h (target_enable_btrace, target_disable_btrace)
4852 (target_read_btrace, target_read_btrace_conf): Turn macro into
4853 inline function. Throw error if target method is not defined.
4854 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
4855 check for btrace target method. Be prepared to handle exceptions
4856 from btrace target methods.
4857
81561546
SDJ
48582018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
4859
4860 * server.c (captured_main): Change order of error message printed
4861 when the current working directory cannot be found.
4862
25e3c82c
SDJ
48632018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
4864
4865 * server.c: Include "filenames.h" and "pathstuff.h".
4866 (program_name): Delete variable.
4867 (program_path): New anonymous class.
4868 (get_exec_wrapper): Use "program_path" instead of
4869 "program_name".
4870 (handle_v_run): Likewise.
4871 (captured_main): Likewise.
4872 (process_serial_event): Likewise.
4873
b4987c95
SDJ
48742018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
4875
4876 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
4877 (OBJS): Add "pathstuff.o".
4878 * server.c (current_directory): New global variable.
4879 (captured_main): Initialize "current_directory".
4880
f46cd62a
AH
48812018-02-26 Alan Hayward <alan.hayward@arm.com>
4882
4883 * tdesc.c: Use common/tdesc.h.
4884 * tdesc.h: Likewise.
4885
a543c5ca
AH
48862018-02-20 Alan Hayward <alan.hayward@arm.com>
4887 Simon Marchi <simon.marchi@ericsson.com>
4888
4889 * Makefile.in: Switch order of make rules.
4890
b5884fa7
AH
48912018-02-19 Alan Hayward <alan.hayward@arm.com>
4892
4893 * Makefile.in: Add common directory in build.
4894 * configure.ac: Add common reference.
4895 * configure: Regenerate.
4896
de6242d3
MM
48972018-02-09 Markus Metzger <markus.t.metzger@intel.com>
4898
4899 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
4900 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
4901 * spu-low.c (spu_target_ops): Likewise.
4902 * win32-low.c (win32_target_ops): Likewise.
4903 * server.c (supported_btrace_packets): Report packets unconditionally.
4904 * target.h (target_ops) <supports_btrace>: Remove.
4905 (target_supports_btrace): Remove.
4906
9ee23a85
MM
49072018-02-09 Markus Metzger <markus.t.metzger@intel.com>
4908
4909 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
4910 (handle_btrace_disable): Change return type to void. Use exceptions
4911 to report errors.
4912 (handle_btrace_general_set): Catch exception and copy message to
4913 return message.
4914
8ce47547
TT
49152018-02-08 Tom Tromey <tom@tromey.com>
4916
4917 * linux-low.c (install_software_single_step_breakpoints): Use
4918 make_scoped_restore.
4919 * inferiors.c (make_cleanup_restore_current_thread): Remove.
4920 (do_restore_current_thread_cleanup): Remove.
4921 * gdbthread.h (make_cleanup_restore_current_thread): Don't
4922 declare.
4923
45dd3607
TT
49242018-02-08 Tom Tromey <tom@tromey.com>
4925
4926 * mem-break.c (set_raw_breakpoint_at): Use
4927 gdb::unique_xmalloc_ptr.
4928
e671cd59
PA
49292018-01-30 Pedro Alves <palves@redhat.com>
4930
4931 PR gdb/13211
4932 * target.c (target_terminal::terminal_state): Rename to ...
4933 (target_terminal::m_terminal_state): ... this.
4934
a0aad537
JC
49352018-01-19 James Clarke <jrtc27@jrtc27.com>
4936
4937 * linux-low.c (handle_extended_wait): Surround call to
4938 thread_db_notice_clone with #ifdef USE_THREAD_DB.
4939
4d9b86e1
SM
49402018-01-17 Simon Marchi <simon.marchi@ericsson.com>
4941
4942 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
4943 linux_ptrace_attach_fail_reason_string now returning an
4944 std::string.
4945 (linux_attach): Likewise.
4946 * thread-db.c (attach_thread): Likewise.
4947
f517c180
EA
49482018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
4949
4950 PR gdb/21559
4951 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
4952 checking for fs_base/gs_base fields in struct user_regs_struct.
4953 * configure: Regenerate.
4954
9a70f35c
YQ
49552018-01-16 Yao Qi <yao.qi@linaro.org>
4956
4957 PR gdb/18749
4958 * linux-low.c (fetch_register): Call supply_register instead of
4959 error.
4960
605fd3c6
YQ
49612018-01-08 Yao Qi <yao.qi@linaro.org>
4962 Simon Marchi <simon.marchi@ericsson.com>
4963
4964 * Makefile.in (OBS): Remove selftest.o.
4965 * configure.ac: Set srv_selftest_objs if $development is true.
4966 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
4967 * configure: Re-generated.
4968 * server.c (captured_main): Wrap variable selftest_filter with
4969 GDB_SELF_TEST.
4970
2cc05030
SM
49712018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
4972
4973 * server.c (parse_debug_format_options): Return std::string.
4974 (handle_monitor_command, captured_main): Adjust.
4975
e379cee6
PA
49762018-01-05 Pedro Alves <palves@redhat.com>
4977
4978 PR gdb/18653
4979 * server.c (captured_main): Pass quiet=false to
4980 save_original_signals_state.
4981
82e1e79a
JB
49822018-01-01 Joel Brobecker <brobecker@adacore.com>
4983
4984 * gdbreplay.c (gdbreplay_version): Update copyright year in
4985 version message.
4986 * server.c (gdbserver_version): Likewise.
4987
8e481c3b
TT
49882017-12-08 Tom Tromey <tom@tromey.com>
4989
4990 * ax.c (ax_printf): Update.
4991
a8806230
YQ
49922017-12-07 Yao Qi <yao.qi@linaro.org>
4993
4994 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
4995 aarch64_linux_read_description.
4996 * linux-amd64-ipa.c (idx2mask): New array.
4997 (get_ipa_tdesc): Move idx2mask out.
4998 (initialize_low_tracepoint): Initialize target descriptions.
4999 * linux-i386-ipa.c (idx2mask): New array.
5000 (get_ipa_tdesc): Move idx2mask out.
5001 (initialize_low_tracepoint): Initialize target descriptions.
5002
d4a0e8b5
SM
50032017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
5004
5005 * tdesc.c (struct tdesc_type): Change return type.
5006 (tdesc_add_flag): Change parameter type.
5007 (tdesc_add_bitfield): Likewise.
5008 (tdesc_add_field): Likewise.
5009 (tdesc_set_struct_size): Likewise.
5010
798a7429
SM
50112017-12-05 Simon Marchi <simon.marchi@ericsson.com>
5012
5013 * regcache.c (registers_to_string): Remove unused variable.
5014
c0e15c9b
SM
50152017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5016
5017 * inferiors.c (for_each_inferior_with_data): Remove.
5018 * inferiors.h (for_each_inferior_with_data): Remove.
5019 * server.c (handle_qxfer_threads_worker): Change parameter type.
5020 (handle_qxfer_threads_proper): Use for_each_thread.
5021
f0045347
SM
50222017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5023
5024 * inferiors.c (for_each_inferior): Remove.
5025 (clear_inferiors): Use for_each_thread.
5026 * inferiors.h (for_each_inferior): Remove.
5027 * linux-low.c (linux_wait_for_event_filtered): Use
5028 for_each_thread.
5029 (linux_stabilize_threads): Likewise.
5030 * regcache.c (regcache_release): Likewise.
5031 * server.c (gdb_wants_all_threads_stopped): Likewise.
5032 (clear_pending_status_callback): Remove.
5033 (handle_status): Use for_each_thread.
5034 (captured_main): Likewise.
5035 * win32-low.c (child_init_thread_list): Likewise.
5036 (win32_clear_inferiors): Likewise.
5037 (fake_breakpoint_event): Likewise.
5038
9521758b
SM
50392017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5040
5041 * inferiors.h (find_inferior): Remove.
5042 * inferiors.c (find_inferior): Remove.
5043
8f86d7aa
SM
50442017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5045
5046 * linux-low.c (resume_status_pending_p): Update comment.
5047 (need_step_over_p): Update comment.
5048
e2b44075
SM
50492017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5050
5051 * linux-low.c (proceed_one_lwp): Return void, change parameter
5052 type.
5053 (unsuspend_and_proceed_one_lwp): Likewise.
5054 (proceed_all_lwps): Use for_each_thread.
5055 (unstop_all_lwps): Likewise.
5056
c80825ff
SM
50572017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5058
5059 * linux-low.c (linux_resume_one_thread): Return void, take
5060 parameter directly.
5061 (linux_resume): Use for_each_thread.
5062
df3e4dbe
SM
50632017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5064
5065 * linux-low.c (send_sigstop_callback): Return void, change
5066 parameter type. Rename to...
5067 (send_sigstop): ... this.
5068 (suspend_and_send_sigstop_callback): Return void, change parameter
5069 type. Rename to...
5070 (suspend_and_send_sigstop): ... this.
5071 (stop_all_lwps): Use for_each_thread.
5072
5a6b0a41
SM
50732017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5074
5075 * linux-low.c (lwp_running): Return bool, remove unused
5076 argument.
5077 (linux_stabilize_threads): Use find_thread.
5078
39a64da5
SM
50792017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5080
5081 * linux-low.c (select_singlestep_lwp_callback): Remove.
5082 (count_events_callback): Remove.
5083 (select_event_lwp_callback): Remove.
5084 (select_event_lwp): Use find_thread/for_each_thread.
5085
a1385b7b
SM
50862017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5087
5088 * linux-low.c (not_stopped_callback): Return bool, take filter
5089 argument directly.
5090 (linux_wait_for_event_filtered): Use find_thread.
5091 (linux_wait_1): Likewise.
5092
454296a2
SM
50932017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5094
5095 * linux-low.c (same_lwp): Remove.
5096 (find_lwp_pid): Use find_thread.
5097
6b2a85da
SM
50982017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5099
5100 * linux-low.c (delete_lwp_callback): Remove.
5101 (linux_mourn): Use for_each_thread.
5102
798a38e8
SM
51032017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5104
5105 * linux-low.c (linux_detach_lwp_callback): Return void, remove
5106 args parameter, don't check for pid.
5107 (linux_detach): Use for_each_thread.
5108
e4eb0dec
SM
51092017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5110
5111 * linux-low.c (struct counter): Remove.
5112 (second_thread_of_pid_p): Remove.
5113 (last_thread_of_process_p): Use find_thread.
5114
83e1b6c1
SM
51152017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5116
5117 * inferiors.c (find_inferior_in_random): Remove.
5118 * inferiors.h (find_inferior_in_random): Remove.
5119 * linux-low.c (status_pending_p_callback): Return bool, accept
5120 parameter ptid directly.
5121 (linux_wait_for_event_filtered): Use find_thread_in_random.
5122 (linux_wait_1): Likewise.
5123
8dc7b443
SM
51242017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5125
5126 * inferiors.c (find_inferior_id): Remove.
5127 (find_thread_ptid): Move implemention from find_inferior_id to
5128 here.
5129 * inferiors.h (find_inferior_id): Remove.
5130 * server.c (handle_status): Use find_thread_ptid.
5131 (process_serial_event): Likewise.
5132 * thread-db.c (find_one_thread): Likewise.
5133 (thread_db_thread_handle): Likewise.
5134 * win32-low.c (thread_rec): Likewise.
5135 (child_delete_thread): Likewise.
5136 (win32_thread_alive): Likewise.
5137 (get_child_debug_event): Likewise.
5138
da25033c
SM
51392017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5140
5141 * linux-mips-low.c (update_watch_registers_callback): Return
5142 void, remove pid_p parameter, don't check for pid.
5143 (mips_insert_point, mips_remove_point): Use for_each_thread.
5144
c91bb56b
SM
51452017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5146
5147 * lynx.low (lynx_delete_thread_callback): Remove.
5148 (lynx_mourn): Use for_each_thread.
5149
634a3254
SM
51502017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5151
5152 * regcache.c (regcache_invalidate_one): Remove.
5153 (regcache_invalidate_pid): use for_each_thread.
5154
41272101
TT
51552017-11-26 Tom Tromey <tom@tromey.com>
5156
5157 * linux-low.c (linux_create_inferior): Update.
5158
f5291a6f
UW
51592017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
5160
5161 * spu-low.c (spu_create_inferior): Fix typo in argument name.
5162
6654d750
AH
51632017-11-24 Alan Hayward <alan.hayward@arm.com>
5164
5165 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
5166 * linux-aarch64-low.c (initialize_low_arch): Call init func.
5167 * linux-aarch64-tdesc-selftest.c: New file.
5168 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
5169
51702017-11-24 Alan Hayward <alan.hayward@arm.com>
5171
5172 * configure.srv: Add new file.
5173 * linux-aarch64-low.c (initialize_low_arch): Call init func.
5174 * linux-aarch64-tdesc-selftest.c: New file.
5175 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
5176
49bdb7ee
AH
51772017-11-24 Alan Hayward <alan.hayward@arm.com>
5178
5179 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
5180 * linux-aarch64-low.c (initialize_low_arch): Remove init.
5181 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
5182
d6d7ce56
AH
51832017-11-24 Alan Hayward <alan.hayward@arm.com>
5184
5185 * configure.srv: Add new files.
5186 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
5187 aarch64_linux_read_description.
5188 * linux-aarch64-low.c (aarch64_linux_read_description):
5189 Merge with aarch64_arch_setup.
5190 (aarch64_arch_setup): Call aarch64_linux_read_description.
5191 * linux-aarch64-tdesc.c: New file.
5192 * linux-aarch64-tdesc.h: New file.
5193
506fe5f4
YQ
51942017-11-24 Yao Qi <yao.qi@linaro.org>
5195
5196 * configure.srv: Set $srv_regobj for tic6x-linux.
5197 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
5198 (tic6x_read_description): Move some code to tic6x_arch_setup.
5199 (tic6x_tdesc_test): New function.
5200 (initialize_low_arch): Call selftests::register_test.
5201
29f9a567
YQ
52022017-11-22 Yao Qi <yao.qi@linaro.org>
5203
5204 * remote-utils.c (prepare_resume_reply): Use memcpy.
5205
578290ec
SM
52062017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5207
5208 * linux-low.c (kill_one_lwp_callback): Return void, take
5209 argument directly, don't filter on pid.
5210 (linux_kill): Use for_each_thread.
5211
eca55aec
SM
52122017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5213
5214 * linux-low.c (need_step_over_p): Return bool, remove dummy
5215 argument.
5216 (linux_resume, proceed_all_lwps): Use find_thread.
5217
25c28b4d
SM
52182017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5219
5220 * linux-low.c (resume_status_pending_p): Return bool, remove
5221 flag_p argument.
5222 (linux_resume): Use find_thread.
5223
5fdda392
SM
52242017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5225
5226 * linux-low.c (struct thread_resume_array): Remove.
5227 (linux_set_resume_request): Return void, take arguments
5228 directly.
5229 (linux_resume): Use for_each_thread.
5230
fcb056a5
SM
52312017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5232
5233 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
5234 return bool, remove data argument.
5235 (linux_stabilize_threads): Use find_thread.
5236
139720c5
SM
52372017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5238
5239 * linux-low.c (unsuspend_one_lwp): Remove.
5240 (unsuspend_all_lwps): Use for_each_thread, inline code from
5241 unsuspend_one_lwp.
5242
6d1e5673
SM
52432017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5244
5245 * gdbthread.h (find_thread): Add overload with ptid_t filter.
5246 * linux-low.c (struct iterate_over_lwps_args): Remove.
5247 (iterate_over_lwps_filter): Remove.
5248 (iterate_over_lwps): Use find_thread.
5249
bbf550d5
SM
52502017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5251
5252 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
5253 (linux_handle_new_gdb_connection): Use for_each_thread, inline
5254 code from reset_lwp_ptrace_options_callback.
5255
00192f77
SM
52562017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5257
5258 * linux-arm-low.c (struct update_registers_data): Remove.
5259 (update_registers_callback): Return void, take arguments
5260 directly, don't check thread's pid.
5261 (arm_insert_point, arm_remove_point): Use for_each_thread.
5262
2bee2b6c
SM
52632017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5264
5265 * win32-low.c (continue_one_thread): Return void, take argument
5266 directly.
5267 (child_continue): Use for_each_thread.
5268
0b360f19
SM
52692017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5270
5271 * win32-i386-low.c (update_debug_registers_callback): Rename
5272 to ...
5273 (update_debug_registers): ... this, return void, remove pid_p arg.
5274 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
5275
f27866ba
SM
52762017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
5277
5278 * inferiors.h (struct process_info): Add constructor, initialize
5279 fields..
5280 <syscalls_to_catch>: Change type to std::vector<int>.
5281 * inferiors.c (add_process): Allocate process_info with new.
5282 (remove_process): Free process_info with delete.
5283 * linux-low.c (handle_extended_wait): Adjust.
5284 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
5285 * server.c (handle_general_set): Adjust.
5286
e849ea89
PA
52872017-11-16 Pedro Alves <palves@redhat.com>
5288
5289 * remote-utils.c (remote_close): Block SIGIO signals instead of
5290 uninstalling the SIGIO handler.
5291
1d0aa65c
AH
52922017-11-16 Alan Hayward <alan.hayward@arm.com>
5293
5294 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
5295
3491a34c
YQ
52962017-11-16 Yao Qi <yao.qi@linaro.org>
5297
5298 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
5299 (tic6x_store_gregset): Likewise.
5300 (tic6x_usrregs_info): Move it up.
5301
a602f924
AH
53022017-11-15 Alan Hayward <alan.hayward@arm.com>
5303
5304 * Makefile.in: Update arch rules.
5305 * configure.srv: Explicitly mark arch/ files.
5306
5616b6c3
AS
53072017-11-13 Andreas Schwab <schwab@suse.de>
5308
5309 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
5310 function.
5311 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
5312
d1928160
PA
53132017-11-06 Pedro Alves <palves@redhat.com>
5314
5315 * config.in, configure: Regenerate.
5316
bac608e7
SM
53172017-10-27 Simon Marchi <simon.marchi@ericsson.com>
5318
5319 * target.c (struct thread_search): Remove.
5320 (thread_search_callback): Remove.
5321 (prepare_to_access_memory): Use for_each_thread instead of
5322 find_inferior. Inline code from thread_search_callback.
5323
eaddb425
SM
53242017-10-27 Simon Marchi <simon.marchi@ericsson.com>
5325
5326 * server.c (struct visit_actioned_threads_data): Remove.
5327 (visit_actioned_threads): Change prototype to take arguments
5328 directly.
5329 (resume): Use find_thread instead of find_inferior.
5330
99078d34
SM
53312017-10-27 Simon Marchi <simon.marchi@ericsson.com>
5332
5333 * server.c (queue_stop_reply_callback): Change prototype, return
5334 void.
5335 (find_status_pending_thread_callback): Remove.
5336 (handle_status): Replace find_inferior with find_thread and
5337 for_each_thread.
5338
cc628f3d
AH
53392017-10-25 Alan Hayward <alan.hayward@arm.com>
5340
5341 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
5342 with REGNO.
5343 (aarch64_store_gregset): Likewise.
5344 (aarch64_fill_fpregset): Likewise.
5345 (aarch64_store_fpregset): Likewise.
5346
4d3bb80e
SM
53472017-10-21 Simon Marchi <simon.marchi@ericsson.com>
5348
5349 * gdbthread.h (find_thread, for_each_thread): New functions.
5350 * inferiors.c (thread_of_pid): Remove.
5351 (find_any_thread_of_pid): Use find_thread.
5352 * linux-low.c (num_lwps): Use for_each_thread.
5353
7a7cdfa0
YQ
53542017-10-17 Yao Qi <yao.qi@linaro.org>
5355
5356 * Makefile.in: Remove one rule.
5357 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
5358
e675d170
YQ
53592017-10-17 Yao Qi <yao.qi@linaro.org>
5360
5361 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
5362 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
5363
7eb4e0f9
YQ
53642017-10-17 Yao Qi <yao.qi@linaro.org>
5365
5366 * configure.srv: Rename arm.o with arch/arm.o.
5367
60d6cfc9
YQ
53682017-10-17 Yao Qi <yao.qi@linaro.org>
5369
5370 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
5371 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
5372 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
5373 (arch-i386.o, arch-amd64.o): Remove rules.
5374 (arch/%.o): New rule.
5375 Update POSTCOMPILE and COMPILE.pre.
5376 * configure.ac: Invoke AC_CONFIG_COMMANDS.
5377 * configure: Re-generated.
5378 * configure.srv: Replace arch-i386.o with arch/i386.o.
5379 Replace arch-amd64.o with arch/amd64.o.
5380
5bfda255
YQ
53812017-10-16 Yao Qi <yao.qi@linaro.org>
5382
5383 * configure: Regenerated.
5384
9c80ecd6
SM
53852017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
5386
5387 * inferiors.h: (struct inferior_list): Remove.
5388 (struct inferior_list_entry); Remove.
5389 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
5390 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
5391 get_first_inferior): Remove.
5392 (for_each_inferior, for_each_inferior_with_data, find_inferior,
5393 find_inferior_id, find_inferior_in_random): Change signature.
5394 * inferiors.c (all_threads): Change type to
5395 std::list<thread_info *>.
5396 (get_thread): Remove macro.
5397 (find_inferior, find_inferior_id): Change signature, implement
5398 using find_thread.
5399 (find_inferior_in_random): Change signature, implement using
5400 find_thread_in_random.
5401 (for_each_inferior, for_each_inferior_with_data): Change
5402 signature, implement using for_each_thread.
5403 (add_inferior_to_list, remove_inferior): Remove.
5404 (add_thread, get_first_thread, thread_of_pid,
5405 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
5406 (get_first_inferior, one_inferior_p, clear_inferior_list):
5407 Remove.
5408 (clear_inferiors, get_thread_process): Update.
5409 * gdbthread.h: Include <list>.
5410 (struct thread_info) <entry>: Remove field.
5411 <id>: New field.
5412 (all_threads): Change type to std::list<thread_info *>.
5413 (get_first_inferior): Add doc.
5414 (find_thread, for_each_thread, find_thread_in_random): New
5415 functions.
5416 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
5417 * linux-arm-low.c (update_registers_callback): Update.
5418 * linux-low.c (second_thread_of_pid_p): Update.
5419 (kill_one_lwp_callback, linux_detach_lwp_callback,
5420 delete_lwp_callback, status_pending_p_callback, same_lwp,
5421 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
5422 iterate_over_lwps, not_stopped_callback,
5423 resume_stopped_resumed_lwps, count_events_callback,
5424 select_singlestep_lwp_callback, select_event_lwp_callback,
5425 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
5426 suspend_and_send_sigstop_callback, wait_for_sigstop,
5427 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
5428 lwp_running, linux_set_resume_request, resume_status_pending_p,
5429 need_step_over_p, start_step_over, linux_resume_one_thread,
5430 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
5431 reset_lwp_ptrace_options_callback): Update.
5432 * linux-mips-low.c (update_watch_registers_callback): Update.
5433 * regcache.c (regcache_invalidate_one, regcache_invalidate):
5434 Update.
5435 (free_register_cache_thread_one): Remove.
5436 (regcache_release): Update.
5437 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
5438 handle_qxfer_threads_worker): Update.
5439 (handle_query): Update, use list iterator.
5440 (visit_actioned_threads, handle_pending_status,
5441 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
5442 clear_pending_status_callback, set_pending_status_callback,
5443 find_status_pending_thread_callback, handle_status,
5444 process_serial_event): Update.
5445 * target.c (thread_search_callback): Update.
5446 * thread-db.c (thread_db_get_tls_address): Update.
5447 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
5448 Update.
5449 * win32-i386-low.c (update_debug_registers_callback): Update.
5450 * win32-low.c (delete_thread_info, child_delete_thread,
5451 continue_one_thread, suspend_one_thread,
5452 get_child_debug_event): Adjust.
5453
9179355e
SM
54542017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
5455
5456 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
5457 * inferiors.h: Include <list>.
5458 (struct process_info) <entry>: Remove field.
5459 <pid>: New field.
5460 (pid_of): Change macro to function.
5461 (ptid_of, lwpid_of): Remove macro.
5462 (all_processes): Change type to std::list<process_info *>.
5463 (ALL_PROCESSES): Remove macro.
5464 (for_each_process, find_process): New function.
5465 * inferiors.c (all_processes): Change type to
5466 std::list<process_info *>.
5467 (find_thread_process): Adjust.
5468 (add_process): Likewise.
5469 (remove_process): Likewise.
5470 (find_process_pid): Likewise.
5471 (get_first_process): Likewise.
5472 (started_inferior_callback): Remove.
5473 (have_started_inferiors_p): Adjust.
5474 (attached_inferior_callback): Remove.
5475 (have_attached_inferiors_p): Adjust.
5476 * linux-low.c (check_zombie_leaders): Likewise.
5477 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
5478 (x86_linux_update_xmltarget): Adjust.
5479 * server.c (handle_query): Likewise.
5480 (gdb_reattached_process): Remove.
5481 (handle_status): Adjust.
5482 (kill_inferior_callback): Likewise.
5483 (detach_or_kill_inferior): Remove.
5484 (print_started_pid): Likewise.
5485 (print_attached_pid): Likewise.
5486 (detach_or_kill_for_exit): Update.
5487 (process_serial_event): Likewise.
5488 * linux-arm-low.c (arm_new_fork): Likewise.
5489
c9cb8905
SM
54902017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
5491
5492 * dll.h: Include <list>.
5493 (struct dll_info): Add constructor.
5494 <entry>: Remove field.
5495 (all_dlls): Change type to std::list<dll_info>.
5496 * dll.c: Include <algorithm>.
5497 (get_dll): Remove macro.
5498 (all_dlls): Change type to std::list<dll_info *>.
5499 (free_one_dll): Remove.
5500 (match_dll): Likewise.
5501 (loaded_dll): Adjust.
5502 (unloaded_dll): Adjust to all_dlls type change, use
5503 std::find_if. Inline code from match_dll.
5504 (clear_dlls): Adjust to all_dlls type change.
5505 * server.c (emit_dll_description): Remove.
5506 (handle_qxfer_libraries): Adjust to all_dlls type change,
5507 integrate emit_dll_description's functionality.
5508
04ec7890
SM
55092017-10-12 Simon Marchi <simon.marchi@ericsson.com>
5510
5511 * linux-low.h (struct linux_target_ops) <delete_process>: New
5512 field.
5513 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
5514 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
5515 (struct linux_target_ops): Add delete_process callback.
5516 * linux-arm-low.c (arm_delete_process): New.
5517 (struct linux_target_ops): Add delete_process callback.
5518 * linux-bfin-low.c (struct linux_target_ops): Likewise.
5519 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
5520 * linux-m32r-low.c (struct linux_target_ops): Likewise.
5521 * linux-mips-low.c (mips_linux_delete_process): New.
5522 (struct linux_target_ops): Add delete_process callback.
5523 * linux-ppc-low.c (struct linux_target_ops): Likewise.
5524 * linux-s390-low.c (struct linux_target_ops): Likewise.
5525 * linux-sh-low.c (struct linux_target_ops): Likewise.
5526 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
5527 * linux-tile-low.c (struct linux_target_ops): Likewise.
5528 * linux-x86-low.c (x86_linux_delete_process): New.
5529 (struct linux_target_ops): Add delete_process callback.
5530 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
5531
466eecee
SM
55322017-10-12 Simon Marchi <simon.marchi@ericsson.com>
5533
5534 * linux-aarch64-low.c (the_low_target): Add thread delete
5535 callback.
5536 * linux-arm-low.c (arm_delete_thread): New function.
5537 (the_low_target): Add thread delete callback.
5538 * linux-bfin-low.c (the_low_target): Likewise.
5539 * linux-crisv32-low.c (the_low_target): Likewise.
5540 * linux-low.c (delete_lwp): Invoke delete_thread callback if
5541 set.
5542 * linux-low.h (struct linux_target_ops) <delete_thread>: New
5543 field.
5544 * linux-m32r-low.c (the_low_target): Add thread delete callback.
5545 * linux-mips-low.c (mips_linux_delete_thread): New function.
5546 (the_low_target): Add thread delete callback.
5547 * linux-ppc-low.c (the_low_target): Likewise.
5548 * linux-s390-low.c (the_low_target): Likewise.
5549 * linux-sh-low.c (the_low_target): Likewise.
5550 * linux-tic6x-low.c (the_low_target): Likewise.
5551 * linux-tile-low.c (the_low_target): Likewise.
5552 * linux-x86-low.c (the_low_target): Likewise.
5553 * linux-xtensa-low.c (the_low_target): Likewise.
5554
b79f7801
YZ
55552017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
5556
5557 * win32-low.c: Include "common-inferior.h".
5558
bc3b087d
SDJ
55592017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
5560
5561 * inferiors.c (set_inferior_cwd): New function.
5562 * server.c (handle_general_set): Handle QSetWorkingDir packet.
5563 (handle_query): Inform that QSetWorkingDir is supported.
5564 * win32-low.c (create_process): Pass the inferior's cwd to
5565 CreateProcess.
5566
d092c5a2
SDJ
55672017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
5568
5569 * inferiors.c (current_inferior_cwd): New global variable.
5570 (get_inferior_cwd): New function.
5571 * inferiors.h (struct process_info) <cwd>: New field.
5572
7da0a886
SDJ
55732017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
5574
5575 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
5576 (OBS): Add gdb_tilde_expand.o.
5577
289a6840
SM
55782017-10-02 Simon Marchi <simon.marchi@ericsson.com>
5579
5580 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
5581 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
5582
256642e8
PA
55832017-09-29 Pedro Alves <palves@redhat.com>
5584
5585 * ax.c (gdb_parse_agent_expr): Constify.
5586 * ax.h (gdb_parse_agent_expr): Constify.
5587 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
5588 Constify.
5589 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
5590 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
5591 * remote-utils.h (read_ptid): Constify.
5592 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
5593 (process_point_options, process_serial_event): Constify.
5594 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
5595 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
5596 (cmd_qtbuffer): Constify.
5597
5b9ca4d4
PA
55982017-09-29 Pedro Alves <palves@redhat.com>
5599
5600 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
5601 fails.
5602
94c207e0
PA
56032017-09-29 Pedro Alves <palves@redhat.com>
5604
5605 * linux-low.c (handle_extended_wait): Pass parent thread instead
5606 of process to thread_db_notice_clone.
5607 * linux-low.h (thread_db_notice_clone): Replace parent process
5608 parameter with parent thread parameter.
5609 * thread-db.c (find_one_thread): Add comment.
5610 (thread_db_notice_clone): Replace parent process parameter with
5611 parent thread parameter. Temporarily switch to the parent thread.
5612
75352e28
SDJ
56132017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
5614
5615 * gdbthread.h: Include "common-gdbthread.h".
5616 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
5617 "if" when validating the ptid.
5618 * remote-utils.c: Include "gdbthread.h".
5619 (prepare_resume_reply): Use "switch_to_thread".
5620 * target.c (done_accessing_memory): Likewise.
5621
ad339634
AA
56222017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
5623
5624 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
5625 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
5626 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
5627 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
5628 s390x-gs-linux64-ipa.o to ipa_obj.
5629 * linux-s390-low.c (HWCAP_S390_GS): New define.
5630 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
5631 New functions.
5632 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
5633 (s390_arch_setup): Check for guarded-storage support and choose
5634 appropriate tdesc.
5635 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
5636 init_registers_s390x_gs_linux64.
5637 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
5638 enum value.
5639 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
5640 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
5641
cc4d742f
SM
56422017-09-22 Simon Marchi <simon.marchi@ericsson.com>
5643
5644 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
5645
f6327dcb
KB
56462017-09-21 Kevin Buettner <kevinb@redhat.com>
5647
5648 * linux-low.h (struct lwp_info): Add new field, thread_handle.
5649 (thread_db_thread_handle): Declare.
5650 * linux-low.c (linux_target_ops): Initialize thread_handle.
5651 * server.c (handle_qxfer_threads_worker): Add support for
5652 "handle" attribute.
5653 * target.h (struct target_ops): Add new function pointer,
5654 thread_handle.
5655 (target_thread_handle): Define.
5656 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
5657 field in lwp.
5658 (thread_db_thread_handle): New function.
5659
86299109
KB
56602017-09-21 Kevin Buettner <kevinb@redhat.com>
5661
5662 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
5663 * linux-low.h (thread_db_notice_clone): Declare.
5664 * thread-db.c (thread_db_notice_clone): New function.
5665
f557a88a
PA
56662017-09-21 Pedro Alves <palves@redhat.com>
5667
5668 * server.c (gdb_read_memory, handle_status, process_serial_event)
5669 (handle_serial_event, handle_target_event): Adjust to
5670 set_desired_thread prototype change.
5671 * target.c (set_desired_thread): Remove 'use_general' parameter
5672 and adjust.
5673 * target.h (set_desired_thread): Remove 'use_general' parameter.
5674
223ffa71
TT
56752017-09-20 Tom Tromey <tom@tromey.com>
5676
5677 * target.c (target_terminal::terminal_state): Define.
5678 (target_terminal::init): Rename from target_terminal_init.
5679 (target_terminal::inferior): Rename from
5680 target_terminal_inferior.
5681 (target_terminal::ours): Rename from target_terminal_ours.
5682 (target_terminal::ours_for_output, target_terminal::info): New.
5683
04fd3ba9
SM
56842017-09-16 Simon Marchi <simon.marchi@ericsson.com>
5685
5686 * server.c (accumulate_file_name_length): Remove.
5687 (emit_dll_description): Adjust to std::string change.
5688 (handle_qxfer_libraries): Use std::string to hold document.
5689
5e187554
SM
56902017-09-16 Simon Marchi <simon.marchi@ericsson.com>
5691
5692 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
5693 return type of xml_escape_text.
5694 * server.c (emit_dll_description): Likewise.
5695
1526853e
SM
56962017-09-16 Simon Marchi <simon.marchi@ericsson.com>
5697
5698 * server.c (captured_main): Accept argument for --selftest.
5699 Update run_tests call.
5700 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
5701 when registering selftests.
5702
c4dfafab
SDJ
57032017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
5704
5705 * regcache.c (get_thread_regcache): Update code to use "std::vector"
5706 instead of "VEC" for "target_desc.reg_defs".
5707 (regcache_cpy): Likewise.
5708 (registers_to_string): Likewise.
5709 (registers_from_string): Likewise.
5710 (find_regno): Likewise.
5711 (supply_regblock): Likewise.
5712 (regcache_raw_read_unsigned): Likewise.
5713 * tdesc.c (init_target_desc): Likewise.
5714 (tdesc_create_reg): Likewise.
5715 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
5716 (struct target_desc) <reg_defs>: Convert to "std::vector".
5717 (target_desc): Do not initialize "reg_defs".
5718 (~target_desc): Update code to use "std::vector" instead of "VEC"
5719 for "target_desc.reg_defs".
5720 (operator==): Likewise.
5721
124aceb4
SM
57222017-09-15 Simon Marchi <simon.marchi@ericsson.com>
5723
5724 * inferiors.h (thread_to_gdb_id): Remove.
5725 * inferiors.c (thread_to_gdb_id): Remove.
5726 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
5727 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
5728 lynx_store_registers, lynx_read_memory, lynx_write_memory):
5729 Likewise.
5730 * nto-low.c (nto_fetch_registers, nto_store_registers,
5731 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
5732
96cde54f
SM
57332017-09-15 Simon Marchi <simon.marchi@ericsson.com>
5734
5735 * inferiors.h (gdb_id_to_thread_id): Remove.
5736 * inferiors.c (gdb_id_to_thread_id): Remove.
5737 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
5738 removal. Move pid declaration closer to where it's used.
5739
e8ca139e
SM
57402017-09-15 Simon Marchi <simon.marchi@ericsson.com>
5741
5742 * server.c (handle_detach): New function.
5743 (process_serial_event): Move code out, call handle_detach.
5744
f8a4e119
SM
57452017-09-15 Simon Marchi <simon.marchi@ericsson.com>
5746
5747 * server.c (require_running): Rename to ...
5748 (require_running_or_return): ... this ...
5749 (require_running_or_break): ... and this.
5750 (handle_query, process_serial_event): Adjust.
5751
0eb0a407
SM
57522017-09-15 Simon Marchi <simon.marchi@ericsson.com>
5753
5754 * linux-low.c (linux_set_resume_request): Remove unused
5755 variables.
5756
785922a5
SM
57572017-09-15 Simon Marchi <simon.marchi@ericsson.com>
5758
5759 * server.c (first_thread_of): Remove.
5760 (process_serial_event): Replace usage of first_thread_of with
5761 find_any_thread_of_pid.
5762 * tracepoint.c (same_process_p): Remove.
5763 (gdb_agent_about_to_close): Replace usage of same_process_p with
5764 find_any_thread_of_pid.
5765 * linux-x86-low.c (same_process_callback): Remove.
5766 (x86_arch_setup_process_callback): Replace usage of
5767 same_process_callback with find_any_thread_of_pid.
5768 * thread-db.c (any_thread_of): Remove.
5769 (switch_to_process): Replace usage of any_thread_of with
5770 find_any_thread_of_pid.
5771 * inferiors.c (thread_pid_matches_callback): Remove.
5772 (find_thread_process): Adjust to use find_any_thread_of_pid.
5773
a059f00c
SDJ
57742017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
5775
5776 * regcache.c (get_thread_regcache): Guard calls to "memset"
e79be6e5 5777 with "!VEC_empty".
a059f00c 5778
cc397f3a
SDJ
57792017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
5780
5781 * linux-low.c (handle_extended_wait): Use
5782 "allocate_target_description" instead of "XNEW".
5783 * linux-x86-low.c (initialize_low_arch): Likewise.
5784
22916b07
YQ
57852017-09-05 Yao Qi <yao.qi@linaro.org>
5786
5787 * configure.srv (srv_i386_regobj): Remove.
5788 (srv_amd64_regobj): Remove.
5789 (srv_regobj): Set it to "" for x86 non-linux targets.
5790 * linux-x86-tdesc.c (i386_linux_read_description):
5791 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
5792 (init_registers_i386): Remove the declaration.
5793 (tdesc_i386): Remove the declaration.
5794 (lynx_i386_arch_setup): Call i386_create_target_description.
5795 * nto-x86-low.c: Likewise.
5796 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
5797 [!__x86_64__]: include arch/i386.h.
5798 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
5799
38602d55
YQ
58002017-09-05 Yao Qi <yao.qi@linaro.org>
5801
5802 * configure.srv (srv_amd64_linux_xmlfiles): Remove
5803 i386/amd64-XXX-linux from it.
5804
44b886ff
YQ
58052017-09-05 Yao Qi <yao.qi@linaro.org>
5806
5807 * configure.srv: Empty srv_amd64_linux_regobj if $development is
5808 false.
5809 (ipa_amd64_linux_regobj): Remove.
5810 (ipa_x32_linux_regobj): Remove.
5811
b4570e4b
YQ
58122017-09-05 Yao Qi <yao.qi@linaro.org>
5813
5814 * Makefile.in (arch-amd64.o): New rule.
5815 * configure.srv: Append arch-amd64.o.
5816 * linux-amd64-ipa.c: Include common/x86-xstate.h.
5817 (get_ipa_tdesc): Call amd64_linux_read_description.
5818 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
5819 and init_registers_amd64_XXX.
5820 * linux-x86-low.c (x86_linux_read_description): Call
5821 amd64_linux_read_description.
5822 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
5823 (initialize_low_arch): Don't call init_registers_x32_XXX and
5824 init_registers_amd64_XXX.
5825 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
5826 and tdesc_amd64_XXX.
5827 [__x86_64__] (amd64_tdesc_test): New function.
5828 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
5829 and init_registers_amd64_XXX.
5830 * linux-x86-tdesc.c: Include arch/amd64.h.
5831 (xcr0_to_tdesc_idx): New function.
5832 (i386_linux_read_description): New function.
5833 (amd64_get_ipa_tdesc_idx): New function.
5834 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
5835 (amd64_get_ipa_tdesc): Declare.
5836
d1f28ea2
YQ
58372017-09-05 Yao Qi <yao.qi@linaro.org>
5838
5839 * configure.srv (srv_i386_linux_xmlfiles): Remove
5840 i386/i386-XXX-linux.xml from it.
5841
25a93583
YQ
58422017-09-05 Yao Qi <yao.qi@linaro.org>
5843
5844 * configure.srv: Set srv_i386_linux_regobj empty if $development
5845 is false.
5846 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
5847 initialize_low_tdesc.
5848 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
5849 with #if initialize_low_tdesc.
5850 * linux-x86-tdesc-selftest.c: New file.
5851 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
5852
5f035c07
YQ
58532017-09-05 Yao Qi <yao.qi@linaro.org>
5854
5855 * Makefile.in (arch-i386.o): New rule.
5856 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
5857 (x86_64-*-linux*): Likewise.
5858 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
5859 include arch/i386.h.
5860 (i386_linux_read_description): Remove code and call
5861 i386_create_target_description.
5862 * tdesc.c (allocate_target_description): New function.
5863 * tdesc.h (set_tdesc_architecture): Remove declaration.
5864 (set_tdesc_osabi): Likewise.
5865
0abe8a89
YQ
58662017-09-05 Yao Qi <yao.qi@linaro.org>
5867
5868 * linux-x86-tdesc.c: Don't include <inttypes.h>.
5869 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
5870 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
5871 .xmltarget.
5872 * server.c (get_features_xml): Call tdesc_get_features_xml.
5873 * tdesc.c (set_tdesc_architecture): New function.
5874 (set_tdesc_osabi): New function.
5875 (tdesc_get_features_xml): New function.
5876 (tdesc_create_feature): Add an argument.
5877 * tdesc.h (struct target_desc) <features>: New field.
5878 <arch, osabi>: New field.
5879 (~target_desc): xfree features, arch, and osabi.
5880 (target_desc::oerator==): Don't compare .xmltarget.
5881 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
5882 (set_tdesc_osabi): Likewise.
5883 (tdesc_get_features_xml): Likewise.
5884
0a188386
YQ
58852017-09-05 Yao Qi <yao.qi@linaro.org>
5886
5887 * linux-x86-tdesc.c: Include selftest.h.
5888 (i386_tdesc_test): New function.
5889 (initialize_low_tdesc): Call selftests::register_test.
5890 * tdesc.h: Include regdef.h.
5891 (target_desc): Override operator == and !=.
5892
f49ff000
YQ
58932017-09-05 Yao Qi <yao.qi@linaro.org>
5894
5895 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
5896 (ipa_obj): Likewise.
5897 * linux-i386-ipa.c: Include common/x86-xstate.h
5898 (get_ipa_tdesc): Call i386_linux_read_description.
5899 (initialize_low_tracepoint): Don't call init_registers_XXX
5900 functions, call initialize_low_tdesc instead.
5901 * linux-x86-low.c (x86_linux_read_description): Call
5902 i386_linux_read_description.
5903 (initialize_low_arch): Don't call init_registers_i386_XXX
5904 functions, call initialize_low_tdesc.
5905 * linux-x86-tdesc.c: New file.
5906 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
5907 (i386_get_ipa_tdesc_idx): Declare.
5908 (i386_get_ipa_tdesc): Declare.
5909 (initialize_low_tdesc): Declare.
5910
2b68ef2f
YQ
59112017-09-05 Yao Qi <yao.qi@linaro.org>
5912
5913 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
5914 instead of 0.
5915
f7000548
YQ
59162017-09-05 Yao Qi <yao.qi@linaro.org>
5917
5918 * Makefile.in (IPA_OBJS): Add vec-ipa.o
5919 * regcache.c (get_thread_regcache): Use VEC_length.
5920 (init_register_cache): Likewise.
5921 (regcache_cpy): Likewise.
5922 (registers_to_string): Iterate reg_defs via VEC_iterate.
5923 (find_regno): Likewise.
5924 (find_register_by_number): Use VEC_index.
5925 (register_size): Call find_register_by_number.
5926 (register_data): Call find_register_by_number.
5927 (supply_regblock): Use VEC_length.
5928 (regcache_raw_read_unsigned): Likewise.
5929 * tdesc.c (init_target_desc): Iterate reg_defs via
5930 VEC_iterate.
5931 (default_description): Update initializer.
5932 (copy_target_description): Don't update field num_registers.
5933 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
5934 <num_registers>: Remove.
5935
50a421ac
SM
59362017-09-04 Simon Marchi <simon.marchi@ericsson.com>
5937
5938 * Makefile.in (.SECONDARY): Define target.
5939
23fdd69e
SM
59402017-09-03 Simon Marchi <simon.marchi@ericsson.com>
5941
5942 * linux-low.c (linux_wait_1): Adjust.
5943 * server.c (queue_stop_reply_callback): Adjust.
5944
0a2dde4a
SDJ
59452017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
5946
5947 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
5948 QEnvironmentUnset and QEnvironmentReset packets.
5949 (handle_query): Inform remote that QEnvironmentHexEncoded,
5950 QEnvironmentUnset and QEnvironmentReset are supported.
5951
6afd337d
SM
59522017-08-25 Simon Marchi <simon.marchi@ericsson.com>
5953
5954 * inferiors.h (inferior_target_data): Rename to ...
5955 (thread_target_data): ... this.
5956 (inferior_regcache_data): Rename to ...
5957 (thread_regcache_data): ... this.
5958 (set_inferior_regcache_data): Rename to ...
5959 (set_thread_regcache_data): ... this.
5960 * inferiors.c (inferior_target_data): Rename to ...
5961 (thread_target_data): ... this.
5962 (inferior_regcache_data): Rename to ...
5963 (thread_regcache_data): ... this.
5964 (set_inferior_regcache_data): Rename to ...
5965 (set_thread_regcache_data): ... this.
5966 (free_one_thread): Update.
5967 * linux-low.h (get_thread_lwp): Update.
5968 * regcache.c (get_thread_regcache): Update.
5969 (regcache_invalidate_thread): Update.
5970 (free_register_cache_thread): Update.
5971 * win32-i386-low.c (update_debug_registers_callback): Update.
5972 (win32_get_current_dr): Update.
5973 * win32-low.c (thread_rec): Update.
5974 (delete_thread_info): Update.
5975 (continue_one_thread): Update.
5976 (suspend_one_thread): Update.
5977
a160cc46
SM
59782017-08-24 Simon Marchi <simon.marchi@ericsson.com>
5979
5980 * inferiors.c (set_inferior_target_data): Remove.
5981 * inferiors.h (set_inferior_target_data): Remove.
5982
6d580b63
YQ
59832017-08-18 Yao Qi <yao.qi@linaro.org>
5984
5985 * Makefile.in (OBS): Add selftest.o.
5986 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
5987 * configure, config.in: Re-generated.
5988 * server.c: Include common/sefltest.h.
5989 (captured_main): Handle option --selftest.
5990
f5a29eb0
YQ
59912017-08-09 Yao Qi <yao.qi@linaro.org>
5992
5993 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
5994 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
5995 i386-avx-mpx.o and i386-mmx.o.
5996 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
5997 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
5998 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
5999 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
6000 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
6001 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
6002 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
6003 i386/amd64-avx-mpx.xml.
6004
57757c2f
YQ
60052017-08-09 Yao Qi <yao.qi@linaro.org>
6006
6007 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
6008 and x32-avx-avx512.o.
6009 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
6010 i386/x32-avx-avx512.xml.
6011
229d26fc
SM
60122017-07-26 Simon Marchi <simon.marchi@ericsson.com>
6013
6014 * tracepoint.h (enum class fast_tpoint_collect_result): New
6015 enumeration.
6016 (fast_tracepoint_collecting): Change return type to
6017 fast_tpoint_collect_result.
6018 * tracepoint.c (fast_tracepoint_collecting): Likewise.
6019 * linux-low.h: Include tracepoint.h.
6020 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
6021 fast_tpoint_collect_result.
6022 * linux-low.c (handle_tracepoints): Adjust.
6023 (linux_fast_tracepoint_collecting): Change return type to
6024 fast_tpoint_collect_result.
6025 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
6026 linux_wait_1, stuck_in_jump_pad_callback,
6027 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
6028 proceed_one_lwp): Adjust to type change.
6029
2e1e43e1
YQ
60302017-07-10 Yao Qi <yao.qi@linaro.org>
6031
6032 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
6033
adc764e7
YQ
60342017-06-29 Yao Qi <yao.qi@linaro.org>
6035
6036 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
6037 Remove.
6038 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
6039
a206891a
SM
60402017-06-20 Simon Marchi <simon.marchi@ericsson.com>
6041
6042 * Makefile.in (IPA_OBJS): Sort and format one item per line.
6043
9a6c7d9c
SDJ
60442017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
6045
6046 * linux-low.c (linux_create_inferior): Adjust code to access the
6047 environment information via 'gdb_environ' class.
6048 * lynx-low.c (lynx_create_inferior): Likewise.
6049 * server.c (our_environ): Make it an instance of 'gdb_environ'.
6050 (get_environ): Return a pointer to 'our_environ'.
6051 (captured_main): Initialize 'our_environ'.
6052 * server.h (get_environ): Adjust prototype.
6053 * spu-low.c (spu_create_inferior): Adjust code to access the
6054 environment information via 'gdb_environ' class.
6055
ae3e2ccf
SM
60562017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6057
6058 * linux-low.c (linux_read_memory, linux_write_memory): Remove
6059 usage of "register" keyword.
6060
3e019bdc
SM
60612017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6062
6063 * configure: Re-generate.
6064
8465943a
SM
60652017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6066
6067 * configure: Re-generate.
6068
cf0dd6f0
SM
60692017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6070
6071 * Makefile.in (COMPILE.pre): Add "-x c++".
6072
9845682b
SDJ
60732017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
6074
6075 * fork-child.c: Conditionally include <signal.h>.
6076
aefd8b33
SDJ
60772017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6078
6079 * server.c (handle_general_set): Handle new packet
6080 "QStartupWithShell".
6081 (handle_query): Add "QStartupWithShell" to the list of supported
6082 packets.
6083 (gdbserver_usage): Add help text explaining the
6084 new "--startup-with-shell" and "--no-startup-with-shell" CLI
6085 options.
6086 (captured_main): Recognize and act upon the presence of the new
6087 CLI options.
6088
2090129c
SDJ
60892017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6090 Pedro Alves <palves@redhat.com>
6091
6092 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
6093 * configure: Regenerate.
6094 * configure.srv (srv_linux_obj): Add "fork-child.o" and
6095 "fork-inferior.o".
6096 (i[34567]86-*-lynxos*): Likewise.
6097 (spu*-*-*): Likewise.
6098 * fork-child.c: New file.
6099 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
6100 and "environ.h".
6101 (linux_ptrace_fun): New function.
6102 (linux_create_inferior): Adjust function prototype to reflect
6103 change on "target.h". Adjust function code to use
6104 "fork_inferior".
6105 (linux_request_interrupt): Delete "signal_pid".
6106 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
6107 (lynx_ptrace_fun): New function.
6108 (lynx_create_inferior): Adjust function prototype to reflect
6109 change on "target.h". Adjust function code to use
6110 "fork_inferior".
6111 * nto-low.c (nto_create_inferior): Adjust function prototype and
6112 code to reflect change on "target.h". Update comments.
6113 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
6114 "common-terminal.h" and "environ.h".
6115 (terminal_fd): Moved to fork-child.c.
6116 (old_foreground_pgrp): Likewise.
6117 (restore_old_foreground_pgrp): Likewise.
6118 (last_status): Make it global.
6119 (last_ptid): Likewise.
6120 (our_environ): New variable.
6121 (startup_with_shell): Likewise.
6122 (program_name): Likewise.
6123 (program_argv): Rename to...
6124 (program_args): ...this.
6125 (wrapper_argv): New variable.
6126 (start_inferior): Delete function.
6127 (get_exec_wrapper): New function.
6128 (get_exec_file): Likewise.
6129 (get_environ): Likewise.
6130 (prefork_hook): Likewise.
6131 (post_fork_inferior): Likewise.
6132 (postfork_hook): Likewise.
6133 (postfork_child_hook): Likewise.
6134 (handle_v_run): Update code to deal with arguments coming from the
6135 remote host. Update calls from "start_inferior" to
6136 "create_inferior".
6137 (captured_main): Likewise. Initialize environment variable. Call
6138 "have_job_control".
6139 * server.h (post_fork_inferior): New prototype.
6140 (get_environ): Likewise.
6141 (last_status): Declare.
6142 (last_ptid): Likewise.
6143 (signal_pid): Likewise.
6144 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
6145 (spu_ptrace_fun): New function.
6146 (spu_create_inferior): Adjust function prototype to reflect change
6147 on "target.h". Adjust function code to use "fork_inferior".
6148 * target.c (target_terminal_init): New function.
6149 (target_terminal_inferior): Likewise.
6150 (target_terminal_ours): Likewise.
6151 * target.h: Include <vector>.
6152 (struct target_ops) <create_inferior>: Update prototype.
6153 (create_inferior): Update macro.
6154 * utils.c (gdb_flush_out_err): New function.
6155 * win32-low.c (win32_create_inferior): Adjust function prototype
6156 and code to reflect change on "target.h".
6157
043a4934
SDJ
61582017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6159
6160 * inferiors.c (switch_to_thread): New function.
6161
15652511
SDJ
61622017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6163
6164 * Makefile.in (SFILE): Add "common/job-control.c".
6165 (OBS): Add "job-control.o".
6166
21ea5acd
SDJ
61672017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
6168
6169 * Makefile: Remove "@host_makefile_frag@".
6170
e13cb306
PA
61712017-05-05 Pedro Alves <palves@redhat.com>
6172
6173 * configure: Regenerate.
6174
c94fee56
SDJ
61752017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
6176
6177 * configure: Regenerate.
6178
a0ff9e1a
SM
61792017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6180
6181 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
6182 software_single_step change of return type to
6183 std::vector<CORE_ADDR>.
6184 * linux-low.c (install_software_single_step_breakpoints):
6185 Likewise.
6186 * linux-low.h (install_software_single_step_breakpoints):
6187 Likewise.
6188
be628ab8
SDJ
61892017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
6190
6191 * remote-utils.c: Include "gdb_termios.h" instead of
6192 "terminal.h".
6193 * terminal.h: Delete file.
6194
7c5ded6a
SDJ
61952017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
6196
6197 * server.c: Include <vector>.
6198 <program_argv, wrapper_argv>: Convert to std::vector.
6199 (start_inferior): Rewrite function to use C++.
6200 (handle_v_run): Likewise. Update code that calculates the argv
6201 based on the vRun packet; use C++.
6202 (captured_main): Likewise.
6203
436252de
SM
62042017-04-06 Simon Marchi <simon.marchi@ericsson.com>
6205
6206 * server.c (handle_v_cont): Initialize thread_resume::thread
6207 with null_ptid.
6208
9bf2a700
PA
62092017-04-05 Pedro Alves <palves@redhat.com>
6210
6211 * configure: Regenerate.
6212
a121b7c1
PA
62132017-04-05 Pedro Alves <palves@redhat.com>
6214
6215 * gdbreplay.c (sync_error): Constify.
6216 * linux-x86-low.c (push_opcode): Constify.
6217
21c8a587
PA
62182017-04-05 Pedro Alves <palves@redhat.com>
6219
6220 * win32-low.c (get_child_debug_event)
6221 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
6222 Report TARGET_WAITKIND_SPURIOUS instead.
6223
fb32b4f7
PA
62242017-04-05 Pedro Alves <palves@redhat.com>
6225
e79be6e5
SM
6226 * remote-utils.c (remote_prepare, remote_open): Constify.
6227 * remote-utils.h (remote_prepare, remote_open): Constify.
6228 * server.c (captured_main): Constify 'port' handling.
fb32b4f7 6229
65dd1e59
SM
62302017-04-04 Simon Marchi <simon.marchi@ericsson.com>
6231
6232 * Makefile.in (clean): Clear .deps.
6233
8fa5b777
SM
62342017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
6235
6236 * .gitignore: Remove generated files, replace with wildcard.
6237 * (clean): Replace removal of generated files with wildcard.
6238 (version.c): Replace with...
6239 (version-generated.c): ...this.
6240 (xml-builtin.c): Replace with...
6241 (xml-builtin-generated.c): ...this.
6242 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
6243 (%.c: *regformats*): Replace with...
6244 (%-generated.c: *regformats*): ...this.
6245
a12e714b
MF
62462017-03-27 Max Filippov <jcmvbkbc@gmail.com>
6247
6248 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
6249 (xtensa_fill_gregset): Call collect_register_by_name for
6250 threadptr register.
6251 (xtensa_store_gregset): Call supply_register_by_name for
6252 threadptr register.
6253
1a09b50a
MF
62542017-03-27 Max Filippov <jcmvbkbc@gmail.com>
6255
6256 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
6257 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
6258 (xtensa_store_gregset): Call supply_register for all registers in
6259 a0_regnum..a0_regnum + C0_NREGS range.
6260
1a01e7c6
SM
62612017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6262
6263 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
6264 (ax-ipa.o: ax.c): Remove.
6265 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
6266 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
6267 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
6268 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
6269 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
6270
36bc18a8
SM
62712017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6272
6273 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
6274 (print-utils-ipa.o: ../common/print-utils.c): Remove.
6275 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
6276 (errors-ipa.o: ../common/errors.c): Remove.
6277 (format-ipa.o: ../common/format.c): Remove.
6278 (common-utils-ipa.o: ../common/common-utils.c): Remove.
6279
a8ebe3d5
SM
62802017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6281
6282 * Makefile.in (%-ipa.o: %.c): New rule.
6283 (tracepoint-ipa.o: tracepoint.c): Remove.
6284 (utils-ipa.o: utils.c): Remove.
6285 (remote-utils-ipa.o: remote-utils.c): Remove.
6286 (regcache-ipa.o: regcache.c): Remove.
6287 (i386-linux-ipa.o: i386-linux.c): Remove.
6288 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
6289 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
6290 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
6291 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
6292 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
6293 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
6294 (amd64-linux-ipa.o: amd64-linux.c): Remove.
6295 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
6296 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
6297 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
6298 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
6299 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
6300 (aarch64-ipa.o: aarch64.c): Remove.
6301 (s390-linux32-ipa.o: s390-linux32.c): Remove.
6302 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
6303 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
6304 (s390-linux64-ipa.o: s390-linux64.c): Remove.
6305 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
6306 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
6307 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
6308 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
6309 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
6310 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
6311 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
6312 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
6313 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
6314 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
6315 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
6316 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
6317 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
6318 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
6319 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
6320 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
6321 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
6322 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
6323 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
6324 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
6325 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
6326 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
6327 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
6328 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
6329 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
6330 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
6331 (tdesc-ipa.o: tdesc.c): Remove.
6332 (x32-linux-ipa.o: x32-linux.c): Remove.
6333 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
6334 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
6335
50cfacb7
SM
63362017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6337
6338 * Makefile.in (%.o: ../arch/%.c): New rule.
6339 (arm.o: ../arch/arm.c): Remove.
6340 (arm-linux.o: ../arch/arm-linux.c): Remove.
6341 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
6342 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
6343
c5a22423
SM
63442017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6345
6346 * Makefile.in (%.o: ../nat/%.c): New rule.
6347 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
6348 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
6349 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
6350 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
6351 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
6352 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
6353 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
6354 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
6355 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
6356 (linux-personality.o: ../nat/linux-personality.c): Remove.
6357 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
6358 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
6359 (x86-linux.o: ../nat/x86-linux.c): Remove.
6360 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
6361 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
6362
6bda016b
SM
63632017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6364
6365 * Makefile.in (%.o: ../common/%.c): New rule.
6366 (signals.o: ../common/signals.c): Remove.
6367 (print-utils.o: ../common/print-utils.c): Remove.
6368 (rsp-low.o: ../common/rsp-low.c): Remove.
6369 (common-utils.o: ../common/common-utils.c): Remove.
6370 (posix-strerror.o: ../common/posix-strerror.c): Remove.
6371 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
6372 (vec.o: ../common/vec.c): Remove.
6373 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
6374 (xml-utils.o: ../common/xml-utils.c): Remove.
6375 (ptid.o: ../common/ptid.c): Remove.
6376 (buffer.o: ../common/buffer.c): Remove.
6377 (format.o: ../common/format.c): Remove.
6378 (filestuff.o: ../common/filestuff.c): Remove.
6379 (agent.o: ../common/agent.c): Remove.
6380 (errors.o: ../common/errors.c): Remove.
6381 (environ.o: ../common/environ.c): Remove.
6382 (common-debug.o: ../common/common-debug.c): Remove.
6383 (cleanups.o: ../common/cleanups.c): Remove.
6384 (common-exceptions.o: ../common/common-exceptions.c): Remove.
6385 (fileio.o: ../common/fileio.c): Remove.
6386 (common-regcache.o: ../common/common-regcache.c): Remove.
6387 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
6388 (new-op.o: ../common/new-op.c): Remove.
6389 (btrace-common.o: ../common/btrace-common.c): Remove.
6390
21122961
SM
63912017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6392
6393 * Makefile.in (%.o: ../target/%.c): New rule.
6394 (waitstatus.o: ../target/waitstatus.c): Remove.
6395
c362e621
SM
63962017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6397
6398 * Makefile.in
6399 (%.c: ../regformats/%.dat,
6400 (%.c: ../regformats/arm/%.dat,
6401 (%.c: ../regformats/i386/%.dat,
6402 (%.c: ../regformats/rs6000/%.dat): New rules.
6403 (aarch64.c): Remove.
6404 (reg-arm.c): Remove.
6405 (arm-with-iwmmxt.c): Remove.
6406 (arm-with-vfpv2.c): Remove.
6407 (arm-with-vfpv3.c): Remove.
6408 (arm-with-neon.c): Remove.
6409 (reg-bfin.c): Remove.
6410 (reg-cris.c): Remove.
6411 (reg-crisv32.c): Remove.
6412 (i386.c): Remove.
6413 (i386-linux.c): Remove.
6414 (i386-avx.c): Remove.
6415 (i386-avx-linux.c): Remove.
6416 (i386-avx-avx512.c): Remove.
6417 (i386-avx-avx512-linux.c): Remove.
6418 (i386-mpx.c): Remove.
6419 (i386-mpx-linux.c): Remove.
6420 (i386-avx-mpx-avx512-pku.c): Remove.
6421 (i386-avx-mpx-avx512-pku-linux.c): Remove.
6422 (i386-avx-mpx.c): Remove.
6423 (i386-avx-mpx-linux.c): Remove.
6424 (i386-mmx.c): Remove.
6425 (i386-mmx-linux.c): Remove.
6426 (reg-ia64.c): Remove.
6427 (reg-m32r.c): Remove.
6428 (reg-m68k.c): Remove.
6429 (reg-cf.c): Remove.
6430 (mips-linux.c): Remove.
6431 (mips-dsp-linux.c): Remove.
6432 (mips64-linux.c): Remove.
6433 (mips64-dsp-linux.c): Remove.
6434 (nios2-linux.c): Remove.
6435 (powerpc-32.c): Remove.
6436 (powerpc-32l.c): Remove.
6437 (powerpc-altivec32l.c): Remove.
6438 (powerpc-cell32l.c): Remove.
6439 (powerpc-vsx32l.c): Remove.
6440 (powerpc-isa205-32l.c): Remove.
6441 (powerpc-isa205-altivec32l.c): Remove.
6442 (powerpc-isa205-vsx32l.c): Remove.
6443 (powerpc-e500l.c): Remove.
6444 (powerpc-64l.c): Remove.
6445 (powerpc-altivec64l.c): Remove.
6446 (powerpc-cell64l.c): Remove.
6447 (powerpc-vsx64l.c): Remove.
6448 (powerpc-isa205-64l.c): Remove.
6449 (powerpc-isa205-altivec64l.c): Remove.
6450 (powerpc-isa205-vsx64l.c): Remove.
6451 (s390-linux32.c): Remove.
6452 (s390-linux32v1.c): Remove.
6453 (s390-linux32v2.c): Remove.
6454 (s390-linux64.c): Remove.
6455 (s390-linux64v1.c): Remove.
6456 (s390-linux64v2.c): Remove.
6457 (s390-te-linux64.c): Remove.
6458 (s390-vx-linux64.c): Remove.
6459 (s390-tevx-linux64.c): Remove.
6460 (s390x-linux64.c): Remove.
6461 (s390x-linux64v1.c): Remove.
6462 (s390x-linux64v2.c): Remove.
6463 (s390x-te-linux64.c): Remove.
6464 (s390x-vx-linux64.c): Remove.
6465 (s390x-tevx-linux64.c): Remove.
6466 (tic6x-c64xp-linux.c): Remove.
6467 (tic6x-c64x-linux.c): Remove.
6468 (tic6x-c62x-linux.c): Remove.
6469 (reg-sh.c): Remove.
6470 (reg-sparc64.c): Remove.
6471 (reg-spu.c): Remove.
6472 (amd64.c): Remove.
6473 (amd64-linux.c): Remove.
6474 (amd64-avx.c): Remove.
6475 (amd64-avx-linux.c): Remove.
6476 (amd64-avx-avx512.c): Remove.
6477 (amd64-avx-avx512-linux.c): Remove.
6478 (amd64-mpx.c): Remove.
6479 (amd64-mpx-linux.c): Remove.
6480 (amd64-avx-mpx-avx512-pku.c): Remove.
6481 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
6482 (amd64-avx-mpx.c): Remove.
6483 (amd64-avx-mpx-linux.c): Remove.
6484 (x32.c): Remove.
6485 (x32-linux.c): Remove.
6486 (x32-avx.c): Remove.
6487 (x32-avx-linux.c): Remove.
6488 (x32-avx-avx512.c): Remove.
6489 (x32-avx-avx512-linux.c): Remove.
6490 (reg-xtensa.c): Remove.
6491 (reg-tilegx.c): Remove.
6492 (reg-tilegx32.c): Remove.
6493
1672e0d9
SDJ
64942017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
6495
6496 * Makefile.in (SFILES): Add "common/environ.c".
6497 (OBJS): Add "common/environ.h".
6498
239b6d10
WT
64992017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
6500
6501 * configure.ac: Check if the fs_base and gs_base members of
6502 `struct user_regs_struct' exist.
6503 * config.in: Regenerated.
6504 * configure: Likewise.
6505
694b382c
AT
65062017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
6507
6508 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
6509 target_read_memory.
6510 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
6511 (get_next_pcs_syscall_next_pc): Likewise.
6512
7dc53023
LM
65132016-12-23 Luis Machado <lgustavo@codesourcery.com>
6514
6515 * win32-i386-low.c: Fix incorrect reference to a couple source files.
6516 * nto-x86-low.c: Likewise.
6517
ad02e4fe
SM
65182016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
6519
6520 * Makefile.in: Include disable-implicit-rules.mk.
6521
dcb07cfa
PA
65222016-11-23 Pedro Alves <palves@redhat.com>
6523
6524 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
6525 (debug_vprintf): Use std::chrono::steady_clock instead of
6526 gettimeofday. Use '.' instead of ':'.
6527 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
6528 (get_timestamp): Use std::chrono::steady_clock instead of
6529 gettimeofday.
6530
8629c02c
SM
65312016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
6532
6533 * Makefile.in: Fix whitespace formatting.
6534
b593ecca
SM
65352016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
6536
6537 * Makefile.in (SFILES, OBS): Flatten list and order
6538 alphabetically.
6539
9986ba08
PA
65402016-11-23 Pedro Alves <palves@redhat.com>
6541
6542 * event-loop.c (handle_file_event): Use warning.
6543 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
6544 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6545 Use warning.
6546
4eefa7bc
PA
65472016-11-23 Pedro Alves <palves@redhat.com>
6548
6549 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
6550 output.
6551 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
6552 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
6553 debug_printf and debug_flush for debug output.
6554 * server.c (handle_general_set): Likewise.
6555 * thread-db.c (try_thread_db_load): Use debug_printf for debug
6556 output.
6557
5443506e
SM
65582016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6559
6560 * Makefile.in (.c.o): Replace rule with ...
6561 (%.o: %.c): ... this one.
6562
3b165252
SM
65632016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6564
6565 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
6566 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
6567 make.
6568 * configure.ac: Remove checks for the make program.
6569 * configure: Re-generate.
6570
0bcda685
PA
65712016-10-28 Pedro Alves <palves@redhat.com>
6572
6573 * Makefile.in (CXX_DIALECT): Get from configure.
6574 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
6575 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
6576 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
6577 * config.in: Regenerate.
6578 * configure: Regenerate.
6579
c3805894
YQ
65802016-10-27 Yao Qi <yao.qi@linaro.org>
6581
6582 * linux-low.c (linux_supports_range_stepping): Return true if
6583 can_software_single_step return true.
6584
89342618
YQ
65852016-10-27 Yao Qi <yao.qi@linaro.org>
6586
6587 * inferiors.c (find_inferior_in_random): New function.
6588 * inferiors.h (find_inferior_in_random): Declare.
6589 * linux-low.c (linux_wait_for_event_filtered): Call
6590 find_inferior_in_random instead of find_inferior.
6591
e3652c84
YQ
65922016-10-27 Yao Qi <yao.qi@linaro.org>
6593
6594 * linux-low.c (linux_wait_1): If single-step breakpoints are
6595 inserted, remove them.
6596
5a04c4cf
PA
65972016-10-26 Pedro Alves <palves@redhat.com>
6598
6599 * linux-low.c (handle_extended_wait): Link parent/child fork
6600 threads.
6601 (linux_wait_1): Unlink them.
6602 (linux_set_resume_request): Ignore resume requests for
6603 already-resumed and unhandled fork child threads.
6604 * linux-low.h (struct lwp_info) <fork_relative>: New field.
6605 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
6606 New functions.
6607 (handle_v_requests) <vCont>: Don't call require_running.
6608 * server.h (in_queued_stop_replies): New declaration.
6609
cb93dc7f
YQ
66102016-10-24 Yao Qi <yao.qi@linaro.org>
6611
6612 PR server/20733
6613 * linux-aarch64-low.c (append_insns): Cast the return value to
6614 'uint32_t *'.
6615
a1078bea
YQ
66162016-10-10 Yao Qi <yao.qi@linaro.org>
6617
6618 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
6619
1fb77080
SDJ
66202016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
6621
6622 * target.c (target_supports_multi_process): New function, moved
6623 from...
6624 * target.h (target_supports_multi_process): ... here. Remove
6625 macro.
6626
39b5a3b9
TT
66272016-10-05 Tom Tromey <tom@tromey.com>
6628
6629 PR remote/20655:
6630 * tracepoint.c (handle_tracepoint_bkpts): Check
6631 ipa_error_tracepoint, not ipa_stopping_tracepoint.
6632
c1d0b70a
YQ
66332016-10-05 Yao Qi <yao.qi@linaro.org>
6634
6635 * configure.srv: Update the path of arm-*.xml files.
6636
0a69eedb
YQ
66372016-10-05 Terry Guo <terry.guo@arm.com>
6638 Yao Qi <yao.qi@linaro.org>
6639
6640 * Makefile.in: Adjust the path of rules.
6641 * configure.srv: Update the path of xml files.
6642 * regformats/arm-with-iwmmxt.dat: Regenerated.
6643 * regformats/arm-with-neon.dat: Likewise.
6644 * regformats/arm-with-vfpv2.dat: Likewise.
6645 * regformats/arm-with-vfpv3.dat Likewise.
6646
17e16485
YQ
66472016-09-30 Yao Qi <yao.qi@linaro.org>
6648
6649 PR gdbserver/20627
6650 * target.c (target_stop_and_wait): Don't call
6651 target_continue_no_signal, use resume_stop instead.
6652
edeeb602
YQ
66532016-09-26 Yao Qi <yao.qi@linaro.org>
6654
6655 * linux-low.c (linux_wait_1): Call debug_exit.
6656
503b1c39
PA
66572016-09-23 Pedro Alves <palves@redhat.com>
6658
6659 * Makefile.in (SFILES): Add common/new-op.c.
6660 (OBS): Add common/new-op.o.
6661 (new-op.o): New rule.
6662
74172ecf
SM
66632016-09-21 Simon Marchi <simon.marchi@ericsson.com>
6664
6665 * .gitinore: Ignore more files.
6666
fc6cda2e
YQ
66672016-09-21 Yao Qi <yao.qi@linaro.org>
6668
6669 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
6670 23.
6671
bc1e6c81
SDJ
66722016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
6673
6674 * server.c (start_inferior): Call target_mourn_inferior instead of
6675 mourn_inferior; pass ptid_t argument to it.
6676 (resume): Likewise.
6677 (handle_target_event): Likewise.
6678 * target.c (target_mourn_inferior): New function.
6679 * target.h (mourn_inferior): Delete macro.
6680
0e00e962
AA
66812016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
6682
6683 * linux-low.c (lwp_is_stepping): New function.
6684
1d8cb77d
CL
66852016-09-06 Carl Love <cel@us.ibm.com>
6686
6687 * server.c (start_inferior): Fixed comment, requested comment change
6688 didn't get updated correctly. Removed reference to ptrace () call as
6689 it is only true on Linux systems.
6690
7313bced
CL
66912016-09-06 Carl Love <cel@us.ibm.com>
6692
6693 * server.c (start_inferior): Do not call
6694 function target_post_create_inferior () if the
6695 inferior process has already exited.
6696
cf6de44d
PA
66972016-09-05 Pedro Alves <palves@redhat.com>
6698
6699 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
6700 (COMPILE.pre, CC_LD): Use CXX directly.
6701 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
6702 * acinclude.m4: Don't include build-with-cxx.m4.
6703 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
6704 * configure: Regenerate.
6705
c1da6748
AT
67062016-09-02 Akash Trehan <akash.trehan123@gmail.com>
6707
6708 PR gdb/19495
6709 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
6710 call writing data to own_buf.
6711
f2b9e3df
SDJ
67122016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
6713
6714 * target.c (mywait): Call target_wait instead of
6715 the_target->wait.
6716 (target_wait): New function.
6717
049a8570
SDJ
67182016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
6719
6720 * server.c (start_inferior): New variable 'ptid'. Replace calls
6721 to the_target->resume by target_continue{,_no_signal}, depending
6722 on the case.
6723 * target.c (target_stop_and_wait): Call target_continue_no_signal
6724 instead of the_target->resume.
6725 (target_continue): New function.
6726
3aa5cfa0
AT
67272016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
6728
6729 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
6730
754653a7
AZ
67312016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6732
6733 PR server/20491
6734 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
6735 ps_prochandle.
6736 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
6737 * linux-arm-low.c (ps_get_thread_area): Likewise.
6738 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
6739 * linux-m68k-low.c (ps_get_thread_area): Likewise.
6740 * linux-mips-low.c (ps_get_thread_area): Likewise.
6741 * linux-nios2-low.c (ps_get_thread_area): Likewise.
6742 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
6743 * linux-x86-low.c (ps_get_thread_area): Likewise.
6744 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
6745
ed036b40
PA
67462016-08-19 Pedro Alves <palves@redhat.com>
6747
6748 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
6749
c8ef42ee
PA
67502016-08-19 Pedro Alves <palves@redhat.com>
6751
6752 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
6753 comment. Use memcpy instead of casting through unsigned long.
6754
9c235a72
PA
67552016-08-19 Pedro Alves <palves@redhat.com>
6756
6757 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
6758 allocating around 0x80000000.
6759
201506da
PA
67602016-08-19 Pedro Alves <palves@redhat.com>
6761
6762 PR gdb/20415
6763 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
6764 (x32-avx512-linux-ipa.o): New rules.
6765 * configure.ac (x86_64-*-linux*): New x32 check.
6766 * configure.srv (ipa_x32_linux_regobj): New.
6767 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
6768 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
6769 descriptions.
6770 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
6771 descriptions.
6772 * configure: Regenerate.
6773
f348d89a
PA
67742016-08-09 Pedro Alves <palves@redhat.com>
6775
6776 PR gdb/18653
6777 * Makefile.in (OBS): Add signals-state-save-restore.o.
6778 (signals-state-save-restore.o): New rule.
6779 * config.in: Regenerate.
6780 * configure: Regenerate.
6781 * linux-low.c: Include "signals-state-save-restore.h".
6782 (linux_create_inferior): Call
6783 restore_original_signals_state.
6784 * server.c: Include "dispositions-save-restore.h".
6785 (captured_main): Call save_original_signals_state.
6786
1baf5149
PA
67872016-08-05 Pedro Alves <palves@redhat.com>
6788
6789 * configure: Regenerate.
6790
fcd4a73d
YQ
67912016-08-04 Yao Qi <yao.qi@linaro.org>
6792
6793 * linux-low.c (regsets_fetch_inferior_registers): Check
6794 errno is ESRCH or not.
6795
979659d0
YQ
67962016-08-02 Yao Qi <yao.qi@linaro.org>
6797
6798 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
6799 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
6800 (thread_db_load_search): Update.
6801 (try_thread_db_load_1): Don't look for td_ta_event_addr,
6802 td_ta_set_event and td_ta_event_getmsg.
6803
6598661d
PA
68042016-07-26 Pedro Alves <palves@redhat.com>
6805
6806 PR server/20414
6807 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
6808 of unsigned long for 64-bit registers and use uint32_t instead of
6809 unsigned int for 32-bit registers.
6810
9cf12d57
PA
68112016-07-26 Pedro Alves <palves@redhat.com>
6812
6813 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
6814 to 'ptrace'.
6815
305450ed
TT
68162016-07-21 Tom Tromey <tom@tromey.com>
6817
6818 * configure: Rebuild.
6819
2583da7c
YQ
68202016-07-21 Yao Qi <yao.qi@linaro.org>
6821
6822 * mem-break.c (find_gdb_breakpoint): Cast bp to
6823 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
6824
21536b36
YQ
68252016-07-21 Yao Qi <yao.qi@linaro.org>
6826
6827 * server.c (handle_v_requests): Support s and S actions
6828 if target_supports_software_single_step return true.
6829
8901d193
YQ
68302016-07-21 Yao Qi <yao.qi@linaro.org>
6831
6832 * linux-low.c (resume_stopped_resumed_lwps): If resume request
6833 is resume_step, call maybe_hw_step.
6834 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
6835 and unstop them.
6836 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
6837 breakpoints or not.
6838 (proceed_one_lwp): If resume request is resume_step, install
6839 reinsert breakpoints and call maybe_hw_step.
6840
0e9a339e
YQ
68412016-07-21 Yao Qi <yao.qi@linaro.org>
6842
6843 * linux-low.c (proceed_one_lwp): Declare.
6844 (linux_resume_one_thread): Remove local variable 'step'.
6845 Lift code enqueue signal. Call proceed_one_lwp instead of
6846 linux_resume_one_lwp.
6847
4281b351
YQ
68482016-07-21 Yao Qi <yao.qi@linaro.org>
6849
6850 * linux-low.c (linux_resume_one_thread): Call
6851 enqueue_pending_signal.
6852
984a2c04
YQ
68532016-07-21 Yao Qi <yao.qi@linaro.org>
6854
6855 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
6856 * inferiors.c (do_restore_current_thread_cleanup): New function.
6857 (make_cleanup_restore_current_thread): Likewise.
6858 * linux-low.c (install_software_single_step_breakpoints): Call
6859 make_cleanup_restore_current_thread. Switch current_thread to
6860 thread.
6861
bec903c9
YQ
68622016-07-21 Yao Qi <yao.qi@linaro.org>
6863
6864 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
6865 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
6866 (clone_one_breakpoint): Likewise.
6867 (delete_reinsert_breakpoints): Change parameter to thread.
6868 Callers updated.
6869 (has_reinsert_breakpoints): Likewise.
6870 (uninsert_reinsert_breakpoints): Likewise.
6871 (reinsert_reinsert_breakpoints): Likewise.
6872 * mem-break.h (set_reinsert_breakpoint): Update declaration.
6873 (delete_reinsert_breakpoints): Likewise.
6874 (reinsert_reinsert_breakpoints): Likewise.
6875 (uninsert_reinsert_breakpoints): Likewise.
6876 (has_reinsert_breakpoints): Likewise.
6877
63c40ec7
YQ
68782016-07-21 Yao Qi <yao.qi@linaro.org>
6879
6880 * inferiors.c (get_thread_process): Make parameter const.
6881 * inferiors.h (get_thread_process): Update declaration.
6882 * mem-break.c (clone_all_breakpoints): Remove all parameters.
6883 Add new parameters child_thread and parent_thread. Callers
6884 updated.
6885 * mem-break.h (clone_all_breakpoints): Update declaration.
6886
9aa76cd0
YQ
68872016-07-21 Yao Qi <yao.qi@linaro.org>
6888
6889 * mem-break.c (struct breakpoint) <cond_list>: Remove.
6890 <command_list, handler>: Remove.
6891 (struct gdb_breakpoint): New.
6892 (struct other_breakpoint): New.
6893 (struct reinsert_breakpoint): New.
6894 (is_gdb_breakpoint): New function.
6895 (any_persistent_commands): Update command_list if
6896 is_gdb_breakpoint returns true.
6897 (set_breakpoint): Create breakpoints according to their types.
6898 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
6899 (set_gdb_breakpoint_1): Likewise.
6900 (set_gdb_breakpoint): Likewise.
6901 (clear_breakpoint_conditions): Change parameter type to
6902 'struct gdb_breakpoint *'.
6903 (clear_breakpoint_commands): Likewise.
6904 (clear_breakpoint_conditions_and_commands): Likewise.
6905 (add_condition_to_breakpoint): Likewise.
6906 (add_breakpoint_condition): Likewise.
6907 (add_commands_to_breakpoint): Likewise.
6908 (check_breakpoints): Check other_breakpoint.
6909 (clone_one_breakpoint): Clone breakpopint according to its type.
6910 * mem-break.h (struct gdb_breakpoint): Declare.
6911 (set_gdb_breakpoint): Update declaration.
6912 (clear_breakpoint_conditions_and_commands): Likewise.
6913 (add_breakpoint_condition): Likewise.
6914 (add_breakpoint_commands): Likewise.
6915 * server.c (process_point_options): Change parameter type to
6916 'struct gdb_breakpoint *'.
6917
811f8301
YQ
69182016-07-21 Yao Qi <yao.qi@linaro.org>
6919
6920 * mem-break.c (set_breakpoint_at): Rename it to ...
6921 (set_breakpoint_type_at): ... it.
6922 (set_breakpoint_at): Call set_breakpoint_type_at.
6923 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
6924 * mem-break.h (set_breakpoint_at): Update comments.
6925
b1c51e36
CLT
69262016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
6927
6928 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
6929 to buf parameter.
6930 (nios2_store_gregset): Likewise.
6931
ced2dffb
PA
69322016-07-01 Pedro Alves <palves@redhat.com>
6933 Antoine Tremblay <antoine.tremblay@ericsson.com>
6934
6935 * linux-low.c: Change interface to take the target lwp_info
6936 pointer directly and return void. Handle detaching from a zombie
6937 thread.
6938 (linux_detach_lwp_callback): New function.
6939 (linux_detach): Detach from the leader thread after detaching from
6940 the clone threads.
6941
2ac09a5b
YQ
69422016-06-28 Yao Qi <yao.qi@linaro.org>
6943
6944 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
6945 for variable new_offset.
6946 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
6947 (aarch64_ftrace_insn_reloc_cb): Likewise.
6948 (aarch64_ftrace_insn_reloc_tb): Likewise.
6949 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
6950 PRIx64 instead of PRIx32.
6951
79e7fd4f
YQ
69522016-06-28 Yao Qi <yao.qi@linaro.org>
6953
6954 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
6955 (the_low_target): Install arm_get_syscall_trapinfo.
6956
061fc021
YQ
69572016-06-28 Yao Qi <yao.qi@linaro.org>
6958
6959 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
6960 function.
6961 (the_low_target): Install aarch64_get_syscall_trapinfo.
6962
4cc32bec
YQ
69632016-06-28 Yao Qi <yao.qi@linaro.org>
6964
6965 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
6966 Callers updated.
6967 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
6968 Remove parameter sysno.
6969 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
6970 sysret.
6971
782c1122
AA
69722016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6973
6974 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
6975 (s390_emit_ne_goto): Likewise.
6976 (s390_emit_lt_goto): Likewise.
6977 (s390_emit_le_goto): Likewise.
6978 (s390_emit_gt_goto): Likewise.
6979 (s390_emit_ge_goto): Likewise.
6980 (s390x_emit_eq_goto): Likewise.
6981 (s390x_emit_ne_goto): Likewise.
6982 (s390x_emit_lt_goto): Likewise.
6983 (s390x_emit_le_goto): Likewise.
6984 (s390x_emit_gt_goto): Likewise.
6985 (s390x_emit_ge_goto): Likewise.
6986 (s390_emit_ops_impl): Mark variable static.
6987 (s390x_emit_ops): Likewise.
6988
2e7b624b
YQ
69892016-06-17 Yao Qi <yao.qi@linaro.org>
6990
6991 * linux-low.c (handle_extended_wait): Call
6992 uninsert_reinsert_breakpoints for the parent process. Remove
6993 reinsert breakpoints from the child process. Reinsert them to
6994 the parent process when vfork is done.
6995 * mem-break.c (uninsert_reinsert_breakpoints): New function.
6996 (reinsert_reinsert_breakpoints): New function.
6997 * mem-break.h (uninsert_reinsert_breakpoints): Declare
6998 (reinsert_reinsert_breakpoints): Declare.
6999
8a81c5d7
YQ
70002016-06-17 Yao Qi <yao.qi@linaro.org>
7001
7002 * linux-low.c (handle_extended_wait): If the parent is doing
7003 step-over, remove the reinsert breakpoints from the forked child.
7004
f50bf8e5
YQ
70052016-06-17 Yao Qi <yao.qi@linaro.org>
7006
7007 * linux-low.c (unsuspend_all_lwps): Declare.
7008 (linux_low_filter_event): If thread exited, call finish_step_over.
7009 If step-over is finished, unsuspend other threads.
7010
8376a3cb
YQ
70112016-06-17 Yao Qi <yao.qi@linaro.org>
7012
7013 * linux-low.c (linux_resume_one_lwp_throw): Assert
7014 has_reinsert_breakpoints returns false.
7015 * mem-break.c (delete_disabled_breakpoints): Assert
7016 bp type isn't reinsert_breakpoint.
7017
f79b145d
YQ
70182016-06-17 Yao Qi <yao.qi@linaro.org>
7019
7020 * linux-low.c (maybe_hw_step): New function.
7021 (linux_resume_one_lwp_throw): Call maybe_hw_step.
7022 (finish_step_over): Switch current_thread to lwp temporarily,
7023 and assert has_reinsert_breakpoints returns true.
7024 (proceed_one_lwp): Call maybe_hw_step.
7025 * mem-break.c (has_reinsert_breakpoints): New function.
7026 * mem-break.h (has_reinsert_breakpoints): Declare.
7027
0ae534d2
JT
70282016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
7029
7030 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
7031
fcdad592
YQ
70322016-05-17 Yao Qi <yao.qi@linaro.org>
7033
7034 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
7035 instead of find_inferior.
7036
9e784964
YQ
70372016-05-05 Yao Qi <yao.qi@linaro.org>
7038
7039 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
7040 Initialize res to zero.
7041
cf2ebb6e
YQ
70422016-05-05 Yao Qi <yao.qi@linaro.org>
7043
7044 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
7045 to uint32_t.
7046
c1aebf87
UW
70472016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7048
7049 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
7050 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
7051 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
7052
35fd2deb 70532016-04-28 Par Olsson <par.olsson@windriver.com>
cbe14bcf 7054 Simon Marchi <simon.marchi@ericsson.com>
35fd2deb
PO
7055
7056 * tracepoint.c (write_inferior_int8): New function.
7057 (cmd_qtenable_disable): Write enable flag using
7058 write_inferior_int8.
7059
484b3c32
YQ
70602016-04-25 Yao Qi <yao.qi@linaro.org>
7061
7062 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
7063 (need_step_over_p): Return zero if the LWP has pending signals
7064 can be delivered on software single step target.
7065
85ba7d86
YQ
70662016-04-25 Yao Qi <yao.qi@linaro.org>
7067
7068 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
7069 return instead of error.
7070
3539aa13
YQ
70712016-04-22 Yao Qi <yao.qi@linaro.org>
7072
7073 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
7074 to 23.
7075
5b061e98
YQ
70762016-04-22 Yao Qi <yao.qi@linaro.org>
7077
7078 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
7079 signal when stepping over breakpoint with software single
7080 step.
7081
3451269c
PA
70822016-04-21 Pedro Alves <palves@redhat.com>
7083
7084 * linux-s390-low.c (s390_collect_ptrace_register)
7085 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
7086 add casts.
7087 (s390_check_regset): Use void * instead of gdb_byte *.
7088
a2358508
PA
70892016-04-20 Pedro Alves <palves@redhat.com>
7090
7091 * configure: Renegerate.
7092
6885166d
YQ
70932016-04-20 Yao Qi <yao.qi@linaro.org>
7094
7095 * linux-aarch32-low.c: Include "arch/arm-linux.h".
7096 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
7097 number 16.
7098 (arm_store_gregset): Likewise.
7099
2b863f51
WT
71002016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
7101
7102 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
7103 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
7104 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
7105 (amd64-avx-mpx-linux.c): New rules.
7106 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
7107 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
7108 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
7109 (srv_amd64_regobj): Add amd64-avx-mpx.o.
7110 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
7111 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
7112 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
7113 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
7114 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
7115 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
7116 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
7117 * linux-x86-low.c (x86_linux_read_description): Add case for
7118 X86_XSTATE_AVX_MPX_MASK.
7119 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
7120 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
7121 init_registers_i386_avx_mpx_linux.
7122 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
7123 (initialize_low_tracepoint): Call
7124 init_registers_i386_avx_mpx_linux.
7125 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
7126 (initialize_low_tracepoint): Call
7127 init_registers_amd64_avx_mpx_linux.
7128 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
7129 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
7130 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
7131 declarations.
7132
9b30624b
PA
71332016-04-18 Pedro Alves <palves@redhat.com>
7134
7135 * configure: Regenerate.
7136
45e3745e
AT
71372016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
7138
7139 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
7140 (aarch64_emit_sub): Likewise.
7141
2afc13ff
PA
71422016-04-12 Pedro Alves <palves@redhat.com>
7143
7144 * utils.c (prepare_to_throw_exception): Delete.
7145
6e774b13
SM
71462016-04-05 Simon Marchi <simon.marchi@ericsson.com>
7147
7148 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
7149
4dca19f8
MK
71502016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
7151
7152 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
7153
d0a9981f
MK
71542016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
7155
7156 * linux-aarch64-ipa.c: Add <elf.h> include.
7157 * linux-ppc-ipa.c: Add <elf.h> include.
7158 * linux-s390-ipa.c: Add <elf.h> include.
7159
252db07e
MK
71602016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
7161
7162 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
7163 (get_raw_reg_ptr): Likewise.
7164 (get_trace_state_variable_value_ptr): Likewise.
7165 (set_trace_state_variable_value_ptr): Likewise.
7166 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
7167 char *.
7168
14e2b6d9
MK
71692016-03-31 Wei-cheng Wang <cole945@gmail.com>
7170 Marcin Kościelnicki <koriakin@0x04.net>
7171
7172 PR/17221
7173 * linux-ppc-low.c (emit_insns): New function.
7174 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
7175 (ppc_emit_prologue): New function.
7176 (ppc_emit_epilogue): New function.
7177 (ppc_emit_add): New function.
7178 (ppc_emit_sub): New function.
7179 (ppc_emit_mul): New function.
7180 (ppc_emit_lsh): New function.
7181 (ppc_emit_rsh_signed): New function.
7182 (ppc_emit_rsh_unsigned): New function.
7183 (ppc_emit_ext): New function.
7184 (ppc_emit_zero_ext): New function.
7185 (ppc_emit_log_not): New function.
7186 (ppc_emit_bit_and): New function.
7187 (ppc_emit_bit_or): New function.
7188 (ppc_emit_bit_xor): New function.
7189 (ppc_emit_bit_not): New function.
7190 (ppc_emit_equal): New function.
7191 (ppc_emit_less_signed): New function.
7192 (ppc_emit_less_unsigned): New function.
7193 (ppc_emit_ref): New function.
7194 (ppc_emit_const): New function.
7195 (ppc_emit_reg): New function.
7196 (ppc_emit_pop): New function.
7197 (ppc_emit_stack_flush): New function.
7198 (ppc_emit_swap): New function.
7199 (ppc_emit_stack_adjust): New function.
7200 (ppc_emit_call): New function.
7201 (ppc_emit_int_call_1): New function.
7202 (ppc_emit_void_call_2): New function.
7203 (ppc_emit_if_goto): New function.
7204 (ppc_emit_goto): New function.
7205 (ppc_emit_eq_goto): New function.
7206 (ppc_emit_ne_goto): New function.
7207 (ppc_emit_lt_goto): New function.
7208 (ppc_emit_le_goto): New function.
7209 (ppc_emit_gt_goto): New function.
7210 (ppc_emit_ge_goto): New function.
7211 (ppc_write_goto_address): New function.
7212 (ppc_emit_ops_impl): New static variable.
7213 (ppc64v1_emit_prologue): New function.
7214 (ppc64v2_emit_prologue): New function.
7215 (ppc64_emit_epilogue): New function.
7216 (ppc64_emit_add): New function.
7217 (ppc64_emit_sub): New function.
7218 (ppc64_emit_mul): New function.
7219 (ppc64_emit_lsh): New function.
7220 (ppc64_emit_rsh_signed): New function.
7221 (ppc64_emit_rsh_unsigned): New function.
7222 (ppc64_emit_ext): New function.
7223 (ppc64_emit_zero_ext): New function.
7224 (ppc64_emit_log_not): New function.
7225 (ppc64_emit_bit_and): New function.
7226 (ppc64_emit_bit_or): New function.
7227 (ppc64_emit_bit_xor): New function.
7228 (ppc64_emit_bit_not): New function.
7229 (ppc64_emit_equal): New function.
7230 (ppc64_emit_less_signed): New function.
7231 (ppc64_emit_less_unsigned): New function.
7232 (ppc64_emit_ref): New function.
7233 (ppc64_emit_const): New function.
7234 (ppc64v1_emit_reg): New function.
7235 (ppc64v2_emit_reg): New function.
7236 (ppc64_emit_pop): New function.
7237 (ppc64_emit_stack_flush): New function.
7238 (ppc64_emit_swap): New function.
7239 (ppc64v1_emit_call): New function.
7240 (ppc64v2_emit_call): New function.
7241 (ppc64v1_emit_int_call_1): New function.
7242 (ppc64v2_emit_int_call_1): New function.
7243 (ppc64v1_emit_void_call_2): New function.
7244 (ppc64v2_emit_void_call_2): New function.
7245 (ppc64_emit_if_goto): New function.
7246 (ppc64_emit_eq_goto): New function.
7247 (ppc64_emit_ne_goto): New function.
7248 (ppc64_emit_lt_goto): New function.
7249 (ppc64_emit_le_goto): New function.
7250 (ppc64_emit_gt_goto): New function.
7251 (ppc64_emit_ge_goto): New function.
7252 (ppc64v1_emit_ops_impl): New static variable.
7253 (ppc64v2_emit_ops_impl): New static variable.
7254 (ppc_emit_ops): New function.
7255 (linux_low_target): Wire in ppc_emit_ops.
7256
a2174ba4
MK
72572016-03-31 Wei-cheng Wang <cole945@gmail.com>
7258 Marcin Kościelnicki <koriakin@0x04.net>
7259
7260 PR/17221
7261 * Makefile.in: Add powerpc-*-ipa.o
7262 * configure.srv: Add ipa_obj for powerpc*-linux.
7263 * linux-ppc-ipa.c: New file.
7264 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
7265 includes.
7266 (PPC_FIELD): New macro.
7267 (PPC_SEXT): New macro.
7268 (PPC_OP6): New macro.
7269 (PPC_BO): New macro.
7270 (PPC_LI): New macro.
7271 (PPC_BD): New macro.
7272 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
7273 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
7274 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
7275 (ppc_get_thread_area): New function.
7276 (is_elfv2_inferior): New function.
7277 (gen_ds_form): New function.
7278 (GEN_STD): New macro.
7279 (GEN_STDU): New macro.
7280 (GEN_LD): New macro.
7281 (GEN_LDU): New macro.
7282 (gen_d_form): New function.
7283 (GEN_ADDI): New macro.
7284 (GEN_ADDIS): New macro.
7285 (GEN_LI): New macro.
7286 (GEN_LIS): New macro.
7287 (GEN_ORI): New macro.
7288 (GEN_ORIS): New macro.
7289 (GEN_LWZ): New macro.
7290 (GEN_STW): New macro.
7291 (GEN_STWU): New macro.
7292 (gen_xfx_form): New function.
7293 (GEN_MFSPR): New macro.
7294 (GEN_MTSPR): New macro.
7295 (GEN_MFCR): New macro.
7296 (GEN_MTCR): New macro.
7297 (GEN_SYNC): New macro.
7298 (GEN_LWSYNC): New macro.
7299 (gen_x_form): New function.
7300 (GEN_OR): New macro.
7301 (GEN_MR): New macro.
7302 (GEN_LWARX): New macro.
7303 (GEN_STWCX): New macro.
7304 (GEN_CMPW): New macro.
7305 (gen_md_form): New function.
7306 (GEN_RLDICL): New macro.
7307 (GEN_RLDICR): New macro.
7308 (gen_i_form): New function.
7309 (GEN_B): New macro.
7310 (GEN_BL): New macro.
7311 (gen_b_form): New function.
7312 (GEN_BNE): New macro.
7313 (GEN_LOAD): New macro.
7314 (GEN_STORE): New macro.
7315 (gen_limm): New function.
7316 (gen_atomic_xchg): New function.
7317 (gen_call): New function.
7318 (ppc_relocate_instruction): New function.
7319 (ppc_install_fast_tracepoint_jump_pad): New function.
7320 (ppc_get_min_fast_tracepoint_insn_len): New function.
7321 (ppc_get_ipa_tdesc_idx): New function.
7322 (the_low_target): Wire in the new functions.
7323 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
7324 tdescs.
7325 * linux-ppc-tdesc.h: New file.
7326
a13c4696
MK
73272016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
7328
7329 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
7330 (alloc_jump_pad_buffer): New function.
7331 * linux-amd64-ipa.c: Add <sys/mman.h> include.
7332 (alloc_jump_pad_buffer): New function.
7333 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
7334 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
7335 (alloc_jump_pad_buffer): New function.
7336 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
7337 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
7338 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
7339 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
7340
1cda1512
MK
73412016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
7342
7343 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
7344 * linux-amd64-ipa.c: Likewise.
7345 * linux-i386-ipa.c: Likewise.
7346 * linux-s390-ipa.c: Likewise.
7347 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
7348 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
7349 set_trace_state_variable_value_ptr.
7350 (struct ipa_sym_addresses): Likewise.
7351 (symbol_list): Likewise.
7352 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
7353 accessing gdb_collect directly.
7354 (gdb_collect_ptr_type): New typedef.
7355 (get_raw_reg_ptr_type): New typedef.
7356 (get_trace_state_variable_value_ptr_type): New typedef.
7357 (set_trace_state_variable_value_ptr_type): New typedef.
7358 (gdb_collect_ptr): New global.
7359 (get_raw_reg_ptr): New global.
7360 (get_trace_state_variable_value_ptr): New global.
7361 (set_trace_state_variable_value_ptr): New global.
7362 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
7363 accessing get_raw_reg directly.
7364 (get_get_tsv_func_addr): Likewise for
7365 get_trace_state_variable_value_ptr.
7366 (get_set_tsv_func_addr): Likewise for
7367 set_trace_state_variable_value_ptr.
7368 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
7369
72fb5488
SM
73702016-03-30 Simon Marchi <simon.marchi@ericsson.com>
7371
7372 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
7373
28170b88
MK
73742016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
7375
7376 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
7377 packets.
7378 (relocate_instruction): Remove own_buf.
7379 * server.c (own_buf): Make global.
7380 (handle_v_requests): Make global.
7381 * server.h (own_buf): New declaration.
7382 (handle_v_requests): New prototype.
7383
f39e8743
MK
73842016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
7385
7386 PR 18377
7387 * linux-s390-low.c (add_insns): New function.
7388 (s390_emit_prologue): New function.
7389 (s390_emit_epilogue): New function.
7390 (s390_emit_add): New function.
7391 (s390_emit_sub): New function.
7392 (s390_emit_mul): New function.
7393 (s390_emit_lsh): New function.
7394 (s390_emit_rsh_signed): New function.
7395 (s390_emit_rsh_unsigned): New function.
7396 (s390_emit_ext): New function.
7397 (s390_emit_log_not): New function.
7398 (s390_emit_bit_and): New function.
7399 (s390_emit_bit_or): New function.
7400 (s390_emit_bit_xor): New function.
7401 (s390_emit_bit_not): New function.
7402 (s390_emit_equal): New function.
7403 (s390_emit_less_signed): New function.
7404 (s390_emit_less_unsigned): New function.
7405 (s390_emit_ref): New function.
7406 (s390_emit_if_goto): New function.
7407 (s390_emit_goto): New function.
7408 (s390_write_goto_address): New function.
7409 (s390_emit_litpool): New function.
7410 (s390_emit_const): New function.
7411 (s390_emit_call): New function.
7412 (s390_emit_reg): New function.
7413 (s390_emit_pop): New function.
7414 (s390_emit_stack_flush): New function.
7415 (s390_emit_zero_ext): New function.
7416 (s390_emit_swap): New function.
7417 (s390_emit_stack_adjust): New function.
7418 (s390_emit_set_r2): New function.
7419 (s390_emit_int_call_1): New function.
7420 (s390_emit_void_call_2): New function.
7421 (s390_emit_eq_goto): New function.
7422 (s390_emit_ne_goto): New function.
7423 (s390_emit_lt_goto): New function.
7424 (s390_emit_le_goto): New function.
7425 (s390_emit_gt_goto): New function.
7426 (s390_emit_ge_goto): New function.
7427 (s390x_emit_prologue): New function.
7428 (s390x_emit_epilogue): New function.
7429 (s390x_emit_add): New function.
7430 (s390x_emit_sub): New function.
7431 (s390x_emit_mul): New function.
7432 (s390x_emit_lsh): New function.
7433 (s390x_emit_rsh_signed): New function.
7434 (s390x_emit_rsh_unsigned): New function.
7435 (s390x_emit_ext): New function.
7436 (s390x_emit_log_not): New function.
7437 (s390x_emit_bit_and): New function.
7438 (s390x_emit_bit_or): New function.
7439 (s390x_emit_bit_xor): New function.
7440 (s390x_emit_bit_not): New function.
7441 (s390x_emit_equal): New function.
7442 (s390x_emit_less_signed): New function.
7443 (s390x_emit_less_unsigned): New function.
7444 (s390x_emit_ref): New function.
7445 (s390x_emit_if_goto): New function.
7446 (s390x_emit_const): New function.
7447 (s390x_emit_call): New function.
7448 (s390x_emit_reg): New function.
7449 (s390x_emit_pop): New function.
7450 (s390x_emit_stack_flush): New function.
7451 (s390x_emit_zero_ext): New function.
7452 (s390x_emit_swap): New function.
7453 (s390x_emit_stack_adjust): New function.
7454 (s390x_emit_int_call_1): New function.
7455 (s390x_emit_void_call_2): New function.
7456 (s390x_emit_eq_goto): New function.
7457 (s390x_emit_ne_goto): New function.
7458 (s390x_emit_lt_goto): New function.
7459 (s390x_emit_le_goto): New function.
7460 (s390x_emit_gt_goto): New function.
7461 (s390x_emit_ge_goto): New function.
7462 (s390_emit_ops): New function.
7463 (struct linux_target_ops): Fill in emit_ops hook.
7464
abd9baf9
MK
74652016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
7466
7467 PR 18377
7468 * Makefile.in: Add s390 IPA files.
7469 * configure.srv: Build IPA for s390.
7470 * linux-s390-ipa.c: New file.
7471 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
7472 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
7473 (tdesc_s390_linux32): Likewise.
7474 (init_registers_s390_linux32v1): Likewise.
7475 (tdesc_s390_linux32v1): Likewise.
7476 (init_registers_s390_linux32v2): Likewise.
7477 (tdesc_s390_linux32v2): Likewise.
7478 (init_registers_s390_linux64): Likewise.
7479 (tdesc_s390_linux64): Likewise.
7480 (init_registers_s390_linux64v1): Likewise.
7481 (tdesc_s390_linux64v1): Likewise.
7482 (init_registers_s390_linux64v2): Likewise.
7483 (tdesc_s390_linux64v2): Likewise.
7484 (init_registers_s390_te_linux64): Likewise.
7485 (tdesc_s390_te_linux64): Likewise.
7486 (init_registers_s390_vx_linux64): Likewise.
7487 (tdesc_s390_vx_linux64): Likewise.
7488 (init_registers_s390_tevx_linux64): Likewise.
7489 (tdesc_s390_tevx_linux64): Likewise.
7490 (init_registers_s390x_linux64): Likewise.
7491 (tdesc_s390x_linux64): Likewise.
7492 (init_registers_s390x_linux64v1): Likewise.
7493 (tdesc_s390x_linux64v1): Likewise.
7494 (init_registers_s390x_linux64v2): Likewise.
7495 (tdesc_s390x_linux64v2): Likewise.
7496 (init_registers_s390x_te_linux64): Likewise.
7497 (tdesc_s390x_te_linux64): Likewise.
7498 (init_registers_s390x_vx_linux64): Likewise.
7499 (tdesc_s390x_vx_linux64): Likewise.
7500 (init_registers_s390x_tevx_linux64): Likewise.
7501 (tdesc_s390x_tevx_linux64): Likewise.
7502 (have_hwcap_s390_vx): New static variable.
7503 (s390_arch_setup): Fill have_hwcap_s390_vx.
7504 (s390_get_thread_area): New function.
7505 (s390_ft_entry_gpr_esa): New const.
7506 (s390_ft_entry_gpr_zarch): New const.
7507 (s390_ft_entry_misc): New const.
7508 (s390_ft_entry_fr): New const.
7509 (s390_ft_entry_vr): New const.
7510 (s390_ft_main_31): New const.
7511 (s390_ft_main_64): New const.
7512 (s390_ft_exit_fr): New const.
7513 (s390_ft_exit_vr): New const.
7514 (s390_ft_exit_misc): New const.
7515 (s390_ft_exit_gpr_esa): New const.
7516 (s390_ft_exit_gpr_zarch): New const.
7517 (append_insns): New function.
7518 (s390_relocate_instruction): New function.
7519 (s390_install_fast_tracepoint_jump_pad): New function.
7520 (s390_get_min_fast_tracepoint_insn_len): New function.
7521 (s390_get_ipa_tdesc_idx): New function.
7522 (struct linux_target_ops): Wire in the above functions.
7523 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
7524 * linux-s390-tdesc.h: New file.
7525
a4105d04
MK
75262016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
7527
7528 * linux-s390-low.c (s390_supports_tracepoints): New function.
7529 (struct linux_target_ops): Fill supports_tracepoints hook.
7530
35ac8b3e
YQ
75312016-03-18 Yao Qi <yao.qi@linaro.org>
7532
7533 * linux-low.c (lwp_signal_can_be_delivered): New function.
7534 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
7535
94610ec4
YQ
75362016-03-18 Yao Qi <yao.qi@linaro.org>
7537
7538 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
7539 0 if signal is enqueued. Remove 'signal' from one debugging
7540 message. Move one debugging message to some lines below.
7541 Remove code setting 'signal' to 0.
7542
80aea927
YQ
75432016-03-18 Yao Qi <yao.qi@linaro.org>
7544
7545 * linux-low.c (linux_low_filter_event): Remove redundant
7546 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
7547
b04fd3be
MK
75482016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
7549
7550 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
7551 (struct linux_target_ops): Wire in the above.
7552
c40c8d4b
YQ
75532016-03-03 Yao Qi <yao.qi@linaro.org>
7554
7555 * linux-low.c: Update comments to start_step_over.
7556
0f8288ae
YQ
75572016-03-03 Yao Qi <yao.qi@linaro.org>
7558
7559 PR server/19736
7560 * linux-low.c (handle_extended_wait): Set child suspended
7561 if event_lwp->bp_reinsert isn't zero.
7562
fdbd04a8
YQ
75632016-03-02 Yao Qi <yao.qi@linaro.org>
7564
7565 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
7566 enqueue_pending_signal.
7567
6896a8fa
MK
75682016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
7569
7570 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
7571 is actually loaded.
7572
ab503087
MK
75732016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
7574
7575 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
7576 (s390_regmap_3264) [!__s390x__]: New global.
7577 (s390_collect_ptrace_register): Skip map entries containing -1.
7578 (s390_supply_ptrace_register): Ditto.
7579 (s390_fill_gprs_high): New function.
7580 (s390_store_gprs_high): New function.
7581 (s390_regsets): Add NT_S390_HIGH_GPRS.
7582 (s390_get_hwcap): Enable on 31-bit.
7583 (have_hwcap_s390_high_gprs): Enable on 31-bit.
7584 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
7585 Detect NT_S390_HIGH_GPRS.
7586 (s390_usrregs_info_3264): Enable on 31-bit.
7587 (s390_regs_info): Enable regs_info_3264 on 31-bit.
7588 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
7589
ae91f625
MK
75902016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
7591
7592 PR gdb/13808
7593 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
7594 * configure.srv: Ditto.
7595 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
7596 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
7597 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
7598 (init_registers_amd64_linux): Remove prototype.
7599 (tdesc_amd64_linux): Remove declaration.
7600 (get_ipa_tdesc): New function.
7601 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
7602 initialize remaining tdescs.
7603 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
7604 (init_registers_i386_linux): Remove prototype.
7605 (tdesc_i386_linux): Remove declaration.
7606 (get_ipa_tdesc): New function.
7607 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
7608 initialize remaining tdescs.
7609 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
7610 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
7611 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
7612 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
7613 (x86_get_ipa_tdesc_idx): New function.
7614 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
7615 * linux-x86-tdesc.h: New file.
7616 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
7617 (target_get_ipa_tdesc_idx): New macro.
7618 * tracepoint.c (ipa_tdesc_idx): New macro.
7619 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
7620 (symbol_list): Add ipa_tdesc_idx.
7621 (cmd_qtstart): Write ipa_tdesc_idx in the target.
7622 (ipa_tdesc): Remove.
7623 (ipa_tdesc_idx): New variable.
7624 (get_context_regcache): Use get_ipa_tdesc.
7625 (gdb_collect): Ditto.
7626 (gdb_probe): Ditto.
7627 * tracepoint.h (get_ipa_tdesc): New prototype.
7628 (ipa_tdesc): Remove.
7629
e7ad2f14
PA
76302016-02-24 Pedro Alves <palves@redhat.com>
7631
7632 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
7633 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
7634 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
7635 Factor out common code between the USE_SIGTRAP_SIGINFO and
7636 !USE_SIGTRAP_SIGINFO blocks.
7637 (linux_low_filter_event): Call save_stop_reason instead of
7638 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
7639 Update comments.
7640 (linux_wait_1): Update comments.
7641
657f9cde
WW
76422016-02-24 Wei-cheng Wang <cole945@gmail.com>
7643
7644 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
7645 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
7646 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
7647 ppc_insert_point, ppc_remove_point.
7648
b00b61e1
MK
76492016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
7650
7651 * linux-s390-low.c (s390_supports_z_point_type): New function.
7652 (struct linux_target_ops): Wire s390_supports_z_point_type in.
7653
553cb527
YQ
76542016-02-16 Yao Qi <yao.qi@linaro.org>
7655
7656 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
7657 PC. Get pc from regcache_read_pc.
7658
a5652c21
YQ
76592016-02-12 Yao Qi <yao.qi@linaro.org>
7660
7661 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
7662 or linux_get_pc_32bit.
7663 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
7664
ed443b61
YQ
76652016-02-12 Yao Qi <yao.qi@linaro.org>
7666
7667 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
7668 arm_linux_get_next_pcs_fixup.
7669
020ecd38
MK
76702016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
7671
7672 * tracepoint.c (x_tracepoint_action_download): Change
7673 write_inferior_data_ptr to write_inferior_data_pointer.
7674 (cmd_qtstart): Likewise.
7675 (write_inferior_data_ptr): Remove.
7676 (download_agent_expr): Change write_inferior_data_ptr to
7677 write_inferior_data_pointer.
7678 (download_tracepoint_1): Likewise.
7679 (download_tracepoint): Likewise.
7680 (download_trace_state_variables): Likewise.
7681
7cae9051
WW
76822016-02-11 Wei-cheng Wang <cole945@gmail.com>
7683 Marcin Kościelnicki <koriakin@0x04.net>
7684
7685 * tracepoint.c (struct tracepoint_action_ops): Remove.
7686 (struct tracepoint_action): Remove ops.
7687 (m_tracepoint_action_download, r_tracepoint_action_download)
7688 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
7689 size and offset accordingly.
7690 (m_tracepoint_action_ops, r_tracepoint_action_ops)
7691 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
7692 (tracepoint_action_send, tracepoint_action_download): New functions.
7693 Helpers for trace action handlers.
7694 (add_tracepoint_action): Remove setup actions ops.
7695 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
7696
9f6a71b4
YQ
76972016-02-10 Yao Qi <yao.qi@linaro.org>
7698
7699 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
7700
1e94266c
SM
77012016-02-09 Simon Marchi <simon.marchi@ericsson.com>
7702
7703 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
7704 to AC_OUTPUT.
7705 * configure: Regenerate.
7706
8adce034
SM
77072016-02-09 Simon Marchi <simon.marchi@ericsson.com>
7708
7709 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
7710 void * to gdb_byte *.
7711 * linux-low.c (siginfo_fixup): Likewise.
7712 (linux_xfer_siginfo): Likewise.
7713 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
7714 Likewise.
7715 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
7716
93813b37
WT
77172016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
7718
7719 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
7720 to srv_tgtobj.
7721 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
7722 to srv_tgtobj.
7723 * linux-x86-low.c [__x86_64__]: Include
7724 "nat/amd64-linux-siginfo.h".
7725 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
7726 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
7727 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
7728 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
7729 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
7730 (cpt_si_fd, si_timerid, si_overrun): Move from
7731 nat/amd64-linux-siginfo.c.
7732 * Makefile.in (amd64-linux-siginfo.o:): New rule.
7733
8424cc97
SM
77342016-01-28 Simon Marchi <simon.marchi@ericsson.com>
7735
7736 * server.c (skip_to_semicolon): Remove.
7737 (process_point_options): Use strchrnul instead of
7738 skip_to_semicolon.
7739
4d18591b
YQ
77402016-01-26 Yao Qi <yao.qi@linaro.org>
7741
7742 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
7743 * linux-low.c (install_software_single_step_breakpoints): Don't
7744 call regcache_read_pc.
7745 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
7746 argument pc.
7747
d8020970
YQ
77482016-01-26 Yao Qi <yao.qi@linaro.org>
7749
7750 * linux-low.c (install_software_single_step_breakpoints): Call
7751 regcache_read_pc instead of get_pc.
7752
8b207339
YQ
77532016-01-26 Yao Qi <yao.qi@linaro.org>
7754
7755 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
7756 (unblock_async_io): Rename to ...
7757 (block_unblock_async_io): ... it. New function.
7758 (enable_async_io): Don't install SIGIO handler. Unblock it
7759 instead.
7760 (disable_async_io): Don't ignore SIGIO. Block it instead.
7761 (initialize_async_io): Install SIGIO handler. Don't call
7762 unblock_async_io.
7763
18879fef
YQ
77642016-01-26 Yao Qi <yao.qi@linaro.org>
7765
7766 * remote-utils.c (getpkt): If the buffer isn't empty, and the
7767 first character is '\003', call *the_target->request_interrupt.
7768
a0f8e08a
YQ
77692016-01-25 Yao Qi <yao.qi@linaro.org>
7770
7771 * remote-utils.c (new_thread_notify): Remove.
7772 (dead_thread_notify): Likewise.
7773 * remote-utils.h (new_thread_notify): Remove declaration.
7774 (dead_thread_notify): Likewise.
7775
cc5fd9ab
MK
77762016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
7777
7778 * gdb.trace/pending.exp: Fix expected message on continue.
7779
99e8eb11
MK
77802016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
7781
7782 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
7783 it works properly on big-endian machines where sizeof (CORE_ADDR)
7784 != sizeof (void *).
7785
a994041d
PA
77862016-01-21 Pedro Alves <palves@redhat.com>
7787
7788 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
7789 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
7790 * configure: Regenerate.
7791
f7a6a40d
YQ
77922016-01-21 Yao Qi <yao.qi@linaro.org>
7793
7794 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
7795 is_thumb and set it according to CPSR saved on the stack.
7796 (get_next_pcs_syscall_next_pc): Pass is_thumb to
7797 arm_sigreturn_next_pc.
7798
6f69e520
YQ
77992016-01-18 Yao Qi <yao.qi@linaro.org>
7800
7801 * linux-low.c (linux_set_pc_64bit): New function.
7802 (linux_get_pc_64bit): New function.
7803 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
7804 Declare.
7805 * linux-sparc-low.c (debug_threads): Remove declaration.
7806 (sparc_get_pc): Remove.
7807 (the_low_target): Use linux_get_pc_64bit instead of
7808 sparc_get_pc.
7809 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
7810 (the_low_target): Use linux_get_pc_64bit and
7811 linux_set_pc_64bit.
7812
276d4552
YQ
78132016-01-18 Yao Qi <yao.qi@linaro.org>
7814
7815 * linux-arm-low.c (debug_threads): Remove declaration.
7816 (arm_get_pc, arm_set_pc): Remove.
7817 (the_low_target): Use linux_get_pc_32bit and
7818 linux_set_pc_32bit.
7819 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
7820 (the_low_target): Use linux_get_pc_32bit and
7821 linux_set_pc_32bit.
7822 * linux-cris-low.c (debug_threads): Remove declaration.
7823 (cris_get_pc, cris_set_pc,): Remove.
7824 (the_low_target): Use linux_get_pc_32bit and
7825 linux_set_pc_32bit.
7826 * linux-crisv32-low.c (debug_threads): Remove declaration.
7827 (cris_get_pc, cris_set_pc): Remove.
7828 (the_low_target): Use linux_get_pc_32bit and
7829 linux_set_pc_32bit.
7830 * linux-low.c: Include inttypes.h.
7831 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
7832 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
7833 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
7834 (the_low_target): Use linux_get_pc_32bit and
7835 linux_set_pc_32bit.
7836 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
7837 (the_low_target): Use linux_get_pc_32bit and
7838 linux_set_pc_32bit.
7839 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
7840 (the_low_target): Use linux_get_pc_32bit and
7841 linux_set_pc_32bit.
7842 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
7843 (the_low_target): Use linux_get_pc_32bit and
7844 linux_set_pc_32bit.
7845 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
7846 (the_low_target): Use linux_get_pc_32bit and
7847 linux_set_pc_32bit.
7848
eb0edac8
GB
78492016-01-18 Gary Benson <gbenson@redhat.com>
7850
7851 * configure.ac (AC_FUNC_FORK): New check.
7852 * config.in: Regenerate.
7853 * configure: Likewise.
7854
1b451dda
YQ
78552016-01-14 Yao Qi <yao.qi@linaro.org>
7856
7857 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
7858 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
7859 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
7860 arm_get_next_pcs_ctor.
7861
82075af2
JS
78622016-01-12 Josh Stone <jistone@redhat.com>
7863 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7864
7865 * inferiors.h: Include "gdb_vecs.h".
7866 (struct process_info): Add syscalls_to_catch.
7867 * inferiors.c (remove_process): Free syscalls_to_catch.
7868 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
7869 syscall_return stops.
7870 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
7871 * server.c (handle_general_set): Handle QCatchSyscalls.
7872 (handle_query): Report support for QCatchSyscalls.
7873 * target.h (struct target_ops): Add supports_catch_syscall.
7874 (target_supports_catch_syscall): New macro.
7875 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
7876 (struct lwp_info): Add syscall_state.
7877 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
7878 Maintain syscall_state and syscalls_to_catch across exec.
7879 (get_syscall_trapinfo): New function, proxy to the_low_target.
7880 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
7881 (linux_low_filter_event): Toggle syscall_state entry/return for
7882 syscall traps, and set it ignored for all others.
7883 (gdb_catching_syscalls_p): New function.
7884 (gdb_catch_this_syscall_p): New function.
7885 (linux_wait_1): Handle SYSCALL_SIGTRAP.
7886 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
7887 (linux_supports_catch_syscall): New function.
7888 (linux_target_ops): Install it.
7889 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
7890 (the_low_target): Install it.
7891
8f13a3ce
MF
78922016-01-12 Mike Frysinger <vapier@gentoo.org>
7893
7894 * acinclude.m4: Include new ../warning.m4 file.
7895 * configure: Regenerated.
7896 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
7897
5b3da067
MF
78982016-01-12 Mike Frysinger <vapier@gentoo.org>
7899
7900 * ax.c (is_goto_target): Mark static.
7901 * linux-low.c (register_addr): Likewise.
7902 (linux_fetch_registers, linux_store_registers): Likewise.
7903 * mem-break.c (any_persistent_commands): Fix old prototype.
7904 (add_commands_to_breakpoint): Mark static.
7905 * regcache.c (find_register_by_name): Delete unused func.
7906 * remote-utils.c (hex_or_minus_one): Mark static.
7907 * server.c (monitor_show_help): Mark static.
7908 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
7909 handle_v_requests): Likewise.
7910
bc504a31
PA
79112016-01-12 Pedro Alves <palves@redhat.com>
7912
7913 Remove use of the registered trademark symbol throughout.
7914
5a0dd67a
YQ
79152016-01-08 Yao Qi <yao.qi@linaro.org>
7916
7917 * remote-utils.c (getpkt): If c is '\003', call target hook
7918 request_interrupt.
7919
b2ca446f
YQ
79202016-01-06 Yao Qi <yao.qi@linaro.org>
7921
7922 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
7923 linux-aarch32-low.c.
7924 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
7925 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
7926 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
7927 (thumb2_breakpoint): Declare.
7928 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
7929 linux-aarch32-low.h.
7930 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
7931 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
7932 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
7933
edd88788
JB
79342016-01-01 Joel Brobecker <brobecker@adacore.com>
7935
7936 * gdbreplay.c (gdbreplay_version): Change copyright year in
7937 version message.
7938 * server.c (gdbserver_version): Likewise.
7939
65da7f14
PP
79402015-12-28 Patrick Palka <patrick@parcs.ath.cx>
7941
7942 * server.c (crc32_table): Delete.
7943 (crc32): Use libiberty's xcrc32 function.
7944
4abd5ed2
JB
79452015-12-22 Joel Brobecker <brobecker@adacore.com>
7946
7947 * lynx-low.c (lynx_delete_thread_callback): New function.
7948 (lynx_mourn): Properly delete our process and all of its
7949 threads. Remove call to clear_inferiors.
7950
0e50fe5c
JB
79512015-12-22 Joel Brobecker <brobecker@adacore.com>
7952
7953 * target.c (thread_search_callback): Add check that
7954 the thread_stopped target callback is not NULL before
7955 calling it.
7956
35adc03f
YQ
79572015-12-21 Yao Qi <yao.qi@linaro.org>
7958
7959 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
7960 arm breakpoint.
7961
bd2b2909
AT
79622015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
7963
7964 * server.c (handle_query): Call target_supports_software_single_step.
7965
7fe5e27e
AT
79662015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
7967
7968 * linux-low.c (single_step): New function.
7969 (linux_resume_one_lwp_throw): Call single_step.
7970 (start_step_over): Likewise.
7971
d9311bfa
AT
79722015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
7973
7974 * Makefile.in (SFILES): Append arch/arm-linux.c,
7975 arch/arm-get-next-pcs.c.
7976 (arm-linux.o): New rule.
7977 (arm-get-next-pcs.o): New rule.
7978 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
7979 arm-linux.o.
7980 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
7981 to linux-aarch32-low.c.
7982 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
7983 (arm_breakpoint_len, thumb_breakpoint): Likewise.
7984 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
7985 (thumb2_breakpoint_len): Likewise.
7986 (arm_is_thumb_mode): Make non-static.
7987 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
7988 from linux-aarch32-low.c.
7989 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
7990 (arm_breakpoint_len, thumb_breakpoint): Likewise.
7991 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
7992 (thumb2_breakpoint_len): Likewise.
7993 (arm_is_thumb_mode): New declaration.
7994 * linux-arm-low.c: Include arch/arm-linux.h
7995 aarch/arm-get-next-pcs.h, sys/syscall.h.
7996 (get_next_pcs_ops): New struct.
7997 (get_next_pcs_addr_bits_remove): New function.
7998 (get_next_pcs_is_thumb): New function.
7999 (get_next_pcs_read_memory_unsigned_integer): Likewise.
8000 (arm_sigreturn_next_pc): Likewise.
8001 (get_next_pcs_syscall_next_pc): Likewise.
8002 (arm_gdbserver_get_next_pcs): Likewise.
8003 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
8004 Initialize.
8005 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
8006 * server.h: Include gdb_vecs.h.
8007
68ce2059
AT
80082015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8009
8010 * Makefile.in (SFILES): Append common/common-regcache.c.
8011 (OBS): Append common-regcache.o.
8012 (common-regcache.o): New rule.
8013 * regcache.c (init_register_cache): Initialize cache to
8014 REG_UNAVAILABLE.
8015 (regcache_raw_read_unsigned): New function.
8016 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
8017 register_status enum.
8018
fa5308bd
AT
80192015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8020
8021 * linux-aarch64-low.c (the_low_targets): Rename
8022 breakpoint_reinsert_addr to get_next_pcs.
8023 * linux-arm-low.c (the_low_targets): Likewise.
8024 * linux-bfin-low.c (the_low_targets): Likewise.
8025 * linux-cris-low.c (the_low_targets): Likewise.
8026 * linux-crisv32-low.c (the_low_targets): Likewise.
8027 * linux-low.c (can_software_single_step): Likewise.
8028 (install_software_single_step_breakpoints): New function.
8029 (start_step_over): Use install_software_single_step_breakpoints.
8030 * linux-low.h: New CORE_ADDR vector.
8031 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
8032 get_next_pcs.
8033 * linux-mips-low.c (the_low_targets): Likewise.
8034 * linux-nios2-low.c (the_low_targets): Likewise.
8035 * linux-sparc-low.c (the_low_targets): Likewise.
8036
4a6ed09b
PA
80372015-12-17 Pedro Alves <palves@redhat.com>
8038
8039 * linux-low.c (linux_kill_one_lwp): Remove references to
8040 LinuxThreads.
8041 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
8042 to 'kill'.
8043 (linux_init_signals): Delete.
8044 (initialize_low): Adjust.
8045 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
8046
7544db95
PA
80472015-12-16 Pedro Alves <palves@redhat.com>
8048
8049 * configure.ac (compiler warning flags): When testing a
8050 -Wno-foo option, check whether -Wfoo works instead.
8051 * configure: Regenerate.
8052
8020350c
DB
80532015-12-11 Don Breazeal <donb@codesourcery.com>
8054
8055 * server.c (process_serial_event): Don't exit from gdbserver
8056 in remote mode if there are still active inferiors.
8057
db91f502
YQ
80582015-12-11 Yao Qi <yao.qi@linaro.org>
8059
8060 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
8061 arm_breakpoint_at if the process is 32-bit.
8062
b37a6290
YQ
80632015-12-11 Yao Qi <yao.qi@linaro.org>
8064
8065 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
8066 arm breakpoint.
8067
17b1509a
YQ
80682015-12-07 Yao Qi <yao.qi@linaro.org>
8069
8070 * configure.srv: Append arm.o to srv_tgtobj for
8071 aarch64*-*-linux* target.
8072 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
8073 from linux-arm-low.c.
8074 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8075 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8076 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8077 (thumb2_breakpoint_len): Likewise.
8078 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
8079 (arm_breakpoint_kinds): Likewise.
8080 (arm_breakpoint_kind_from_pc): Likewise.
8081 (arm_sw_breakpoint_from_kind): Likewise.
8082 (arm_breakpoint_kind_from_current_state): Likewise.
8083 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
8084 (arm_sw_breakpoint_from_kind): Declare.
8085 (arm_breakpoint_kind_from_current_state): Declare.
8086 (arm_breakpoint_at): Declare.
8087 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
8088 arm_sw_breakpoint_from_kind if process is 32-bit.
8089 (aarch64_breakpoint_kind_from_pc): New function.
8090 (aarch64_breakpoint_kind_from_current_state): New function.
8091 (the_low_target): Initialize fields breakpoint_kind_from_pc
8092 and breakpoint_kind_from_current_state.
8093 * linux-arm-low.c (arm_breakpoint_kinds): Move to
8094 linux-aarch32-low.c.
8095 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
8096 (arm_breakpoint, arm_breakpoint_len): Likewise.
8097 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
8098 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8099 (arm_is_thumb_mode): Likewise.
8100 (arm_breakpoint_at): Likewise.
8101 (arm_breakpoint_kind_from_pc): Likewise.
8102 (arm_sw_breakpoint_from_kind): Likewise.
8103 (arm_breakpoint_kind_from_current_state): Likewise.
8104
8105 Revert:
8106 2015-08-04 Yao Qi <yao.qi@linaro.org>
8107
8108 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
8109 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
8110 * server.c (extended_protocol): Remove "static".
8111 * server.h (extended_protocol): Declare it.
8112
ece66d65
JS
81132015-12-04 Josh Stone <jistone@redhat.com>
8114
8115 * target.h (struct target_ops) <arch_setup>: Rename to ...
8116 (struct target_ops) <post_create_inferior>: ... this.
8117 (target_arch_setup): Rename to ...
8118 (target_post_create_inferior): ... this, calling post_create_inferior.
8119 * server.c (start_inferior): Update target_arch_setup calls to
8120 target_post_create_inferior.
8121 * linux-low.c (linux_low_ptrace_options): Forward declare.
8122 (linux_arch_setup): Update its comment for general use.
8123 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
8124 (struct linux_target_ops): Use linux_post_create_inferior.
8125 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
8126 to post_create_inferior.
8127 * nto-low.c (struct nto_target_ops): Likewise.
8128 * spu-low.c (struct spu_target_ops): Likewise.
8129 * win32-low.c (struct win32_target_ops): Likewise.
8130
e58c48b4
AT
81312015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
8132
8133 * linux-arm-low.c: Remove duplicate arch/arm.h include.
8134
fbec8956
AT
81352015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
8136
8137 * linux-arm-low.c (arm_reinsert_addr): Remove function.
8138 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
8139 * linux-cris-low.c (cris_reinsert_addr> Remove function.
8140 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8141 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
8142 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8143 * linux-mips-low.c (mips_reinsert_addr): Remove function.
8144 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8145 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
8146 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8147 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
8148 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8149
9b4c5f87
AT
81502015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
8151
8152 * linux-low.c (linux_look_up_symbols): Don't call
8153 linux_supports_traceclone.
8154 * linux-low.h (thread_db_init): Remove use_events argument.
8155 * thread-db.c (thread_db_use_event): Remove global variable.
8156 (struct thread_db) <td_thr_event_enable_p>: Remove field.
8157 (struct thread_db) <td_create_bp>: Remove field.
8158 (thread_db_create_event): Remove function.
8159 (thread_db_enable_reporting): Likewise.
8160 (find_one_thread): Don't check for thread_db_use_events.
8161 (attach_thread): Likewise.
8162 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
8163 (try_thread_db_load_1): Don't check for thread_db_use_events.
8164 (thread_db_init): Remove use_events argument and thread events
8165 handling.
8166 (remove_thread_event_breakpoints): Remove function.
8167 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
8168
7d00775e
AT
81692015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
8170
8171 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
8172 New function.
8173 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8174 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
8175 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8176 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
8177 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
8178 Initialize.
8179 * linux-crisv32-low.c (cris_supports_hardware_single_step):
8180 New function.
8181 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8182 * linux-low.c (can_hardware_single_step): Use
8183 supports_hardware_single_step.
8184 (can_software_single_step): New function.
8185 (start_step_over): Call can_software_single_step.
8186 (linux_supports_hardware_single_step): New function.
8187 (struct target_ops) <supports_software_single_step>: Initialize.
8188 * linux-low.h (struct linux_target_ops)
8189 <supports_hardware_single_step>: Initialize.
8190 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
8191 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8192 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
8193 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
8194 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
8195 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8196 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
8197 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8198 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
8199 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
8200 Initialize.
8201 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
8202 (struct linux_target_ops) <tile_supports_hardware_single_step>:
8203 Initialize.
8204 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
8205 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8206 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
8207 New function.
8208 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8209 * target.h (struct target_ops): <supports_software_single_step>:
8210 New field.
8211 (target_supports_software_single_step): New macro.
8212
2d97cd35
AT
82132015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
8214
8215 * linux-low.c (linux_wait_1): Fix pc advance condition.
8216 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
8217 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
8218
769ef81f
AT
82192015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
8220
8221 * linux-arm-low.c (arm_is_thumb_mode): New function.
8222 (arm_breakpoint_at): Use arm_is_thumb_mode.
8223 (arm_breakpoint_kind_from_current_state): New function.
8224 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
8225 Initialize.
8226 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
8227 (linux_breakpoint_kind_from_current_state): New function.
8228 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
8229 * linux-low.h (struct linux_target_ops)
8230 <breakpoint_kind_from_current_state>: New field.
8231 * target.h (struct target_ops): Likewise.
8232 (target_breakpoint_kind_from_current_state): New macro.
8233
1bebeeca
PA
82342015-11-30 Pedro Alves <palves@redhat.com>
8235
8236 * linux-low.c (linux_resume): Wake up the event loop before
8237 returning.
8238
a67a9fae
PA
82392015-11-30 Pedro Alves <palves@redhat.com>
8240
8241 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
8242 check.
8243 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
8244 to -1.
8245 * target.c (struct thread_search): New structure.
8246 (thread_search_callback): New function.
8247 (prev_general_thread): New global.
8248 (prepare_to_access_memory, done_accessing_memory): New functions.
8249 * target.h (prepare_to_access_memory, done_accessing_memory):
8250 Replace macros with function declarations.
8251
f2faf941
PA
82522015-11-30 Pedro Alves <palves@redhat.com>
8253
8254 PR 14618
8255 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
8256 report TARGET_WAITKIND_NO_RESUMED.
8257 * remote-utils.c (prepare_resume_reply): Handle
8258 TARGET_WAITKIND_NO_RESUMED.
8259 * server.c (report_no_resumed): New global.
8260 (handle_query) <qSupported>: Handle "no-resumed+". Report
8261 "no-resumed+" support.
8262 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
8263 return error if the client doesn't support no-resumed events.
8264 (push_stop_notification): New function.
8265 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
8266 events if the client supports them.
8267
a681f9c9
PA
82682015-11-30 Pedro Alves <palves@redhat.com>
8269
8270 * linux-low.c (thread_still_has_status_pending_p): Don't check
8271 vCont;t here.
8272 (lwp_resumed): New function.
8273 (status_pending_p_callback): Return early if the LWP is not
8274 supposed to be resumed.
8275
65706a29
PA
82762015-11-30 Pedro Alves <palves@redhat.com>
8277
8278 * linux-low.c (handle_extended_wait): Assert that the LWP's
8279 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
8280 thread create events, leave the new child's status pending.
8281 (linux_low_filter_event): If GDB wants to hear about thread exit
8282 events, leave the LWP marked dead and don't delete it.
8283 (linux_wait_for_event_filtered): Don't check for thread exit.
8284 (filter_exit_event): New function.
8285 (linux_wait_1): Use it, when returning an exit event.
8286 (linux_resume_one_lwp_throw): Assert that the LWP's
8287 waitstatus is TARGET_WAITKIND_IGNORE.
8288 * remote-utils.c (prepare_resume_reply): Handle
8289 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
8290 * server.c (report_thread_events): New global.
8291 (handle_general_set): Handle QThreadEvents.
8292 (handle_query) <qSupported>: Handle and report QThreadEvents+;
8293 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
8294 TARGET_WAITKIND_THREAD_EXITED.
8295 * server.h (report_thread_events): Declare.
8296
56cf4bed
PA
82972015-11-30 Pedro Alves <palves@redhat.com>
8298
8299 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
8300 the thread's last_resume_kind was resume_stop.
8301
500c1d85
PA
83022015-11-30 Pedro Alves <palves@redhat.com>
8303
8304 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
8305 before returning.
8306
de979965
PA
83072015-11-30 Pedro Alves <palves@redhat.com>
8308
8309 * server.c (handle_v_requests): Handle vCtrlC.
8310
34c65914
PA
83112015-11-30 Pedro Alves <palves@redhat.com>
8312
8313 * gdbthread.h (find_any_thread_of_pid): Declare.
8314 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
8315 functions.
8316 * server.c (handle_query): If current_thread is NULL, look for
8317 another thread of the selected process.
8318
79efa585 83192015-11-26 Daniel Colascione <dancol@dancol.org>
01a49af8 8320 Simon Marchi <simon.marchi@ericsson.com>
79efa585
SM
8321
8322 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
8323 * server.c (handle_qxfer_threads_worker): Refactor to include thread
8324 name in reply.
8325 * target.h (struct target_ops) <thread_name>: New field.
8326 (target_thread_name): New macro.
8327
80d82c19
JB
83282015-11-23 Joel Brobecker <brobecker@adacore.com>
8329
8330 * regcache.h (regcache_invalidate_pid): Add declaration.
8331 * regcache.c (regcache_invalidate_pid): New function, extracted
8332 from regcache_invalidate.
8333 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
8334 Add trivial documentation comment.
8335 * lynx-low.c: Use regcache_invalidate_pid instead of
8336 regcache_invalidate.
8337
64da5dd5
JB
83382015-11-23 Joel Brobecker <brobecker@adacore.com>
8339
8340 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
8341 and Elf64_auxv_t if the target is Android.
8342
37ce4055
DE
83432015-11-22 Doug Evans <xdje42@gmail.com>
8344
8345 * target.h: #include <sys/types.h>.
8346
06e03fff
PA
83472015-11-19 Pedro Alves <palves@redhat.com>
8348
8349 * linux-low.c (linux_process_qsupported): Change prototype.
8350 Adjust.
8351 * linux-low.h (struct linux_target_ops) <process_qsupported>:
8352 Change prototype.
8353 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
8354 and adjust to loop over all features.
8355 * server.c (handle_query) <qSupported>: Adjust to call
8356 target_process_qsupported once, passing it a vector of unprocessed
8357 features.
8358 * target.h (struct target_ops) <process_qsupported>: Change
8359 prototype.
8360 (target_process_qsupported): Adjust.
8361
9a084706
PA
83622015-11-19 Pedro Alves <palves@redhat.com>
8363
8364 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
8365 mode.
8366 * configure: Regenerate.
8367
dad44a1f
PA
83682015-11-19 Pedro Alves <palves@redhat.com>
8369
8370 * configure: Regenerate.
8371
231c0592
YQ
83722015-11-19 Yao Qi <yao.qi@linaro.org>
8373
8374 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
8375 type to uint32_t.
8376
6c1c9a8b
YQ
83772015-11-19 Yao Qi <yao.qi@linaro.org>
8378
8379 * linux-aarch64-low.c (enum aarch64_operand_type): New.
8380 (struct aarch64_operand): Move enum out.
8381
9caa3311
YQ
83822015-11-19 Yao Qi <yao.qi@linaro.org>
8383
8384 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
8385 struct user_fpsimd_state *.
8386 (aarch64_store_fpregset): Likewise.
8387
6a69a054
YQ
83882015-11-19 Yao Qi <yao.qi@linaro.org>
8389
8390 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
8391 struct user_pt_regs *.
8392 (aarch64_store_gregset): Likewise.
8393
1798301e
PA
83942015-11-18 Pedro Alves <palves@redhat.com>
8395
8396 * Makefile.in (all_object_files): Add $IPA_OBJS.
8397
ce7715e2
PA
83982015-11-17 Pedro Alves <palves@redhat.com>
8399
8400 * win32-low.c (win32_resume): Use gdb_signal_from_host,
8401 GDB_SIGNAL_0 and gdb_signal_to_string.
8402
c0879059
PA
84032015-11-17 Pedro Alves <palves@redhat.com>
8404
8405 * win32-low.c (handle_output_debug_string): Remove parameter.
8406 (win32_kill): Remove our_status local and adjust call to
8407 handle_output_debug_string.
8408 (get_child_debug_event): Adjust call to
8409 handle_output_debug_string.
8410
1996e237
SM
84112015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8412
8413 * linux-mips-low.c (mips_fill_gregset): Add cast.
8414 (mips_store_gregset): Likewise.
8415 (mips_fill_fpregset): Likewise.
8416 (mips_store_fpregset): Likewise.
8417
cbec665b
SM
84182015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8419
8420 * linux-mips-low.c (mips_add_watchpoint): Rename private to
8421 priv.
8422
eb3e3c67
SM
84232015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8424
8425 * linux-mips-low.c (mips_linux_new_thread): Change type of
8426 watch_type to enum target_hw_bp_type.
8427
171de4b8
SM
84282015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8429
8430 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
8431 Change return type to arm_hwbp_type.
8432
04248ead
SM
84332015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8434
8435 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
8436 (arm_store_gregset): Likewise.
8437 * linux-arm-low.c (arm_get_hwcap): Likewise.
8438 (arm_read_description): Likewise.
8439
04b3479c
SM
84402015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8441
8442 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
8443
2bc84e8a
SM
84442015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8445
8446 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
8447 (ppc_fill_vsxregset): Likewise.
8448 (ppc_store_vsxregset): Likewise.
8449 (ppc_fill_vrregset): Likewise.
8450 (ppc_store_vrregset): Likewise.
8451 (ppc_fill_evrregset): Likewise.
8452 (ppc_store_evrregset): Likewise.
8453
e6c5bb05
SM
84542015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8455
8456 * linux-ppc-low.c (ppc_usrregs_info): Remove
8457 forward-declaration.
8458 (ppc_arch_setup): Move lower in file.
8459
7ea45d72
SM
84602015-10-30 Simon Marchi <simon.marchi@ericsson.com>
8461
8462 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
8463 (ps_pdwrite): Likewise.
8464
69291610
HW
84652015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
8466
8467 * linux-arm-low.c (arm_new_thread): Move pointer dereference
8468 to after assert checks.
8469
b42945fd
SM
84702015-10-29 Simon Marchi <simon.marchi@ericsson.com>
8471
8472 * proc-service.c (ps_pdread): Add/adjust casts.
8473 (ps_pdwrite): Add/adjust casts.
8474
d6f85c84
SM
84752015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
8476
8477 * server.c (handle_search_memory_1): Cast return value of
8478 memmem.
8479
f98cd059
SM
84802015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
8481
8482 * server.c (write_qxfer_response): Change type of data to
8483 gdb_byte *.
8484
d2412fa5
PA
84852015-10-29 Pedro Alves <palves@redhat.com>
8486
8487 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
8488
c17414a2
PA
84892015-10-29 Pedro Alves <palves@redhat.com>
8490
8491 * tracepoint.c (clear_installed_tracepoints): Add casts.
8492
e053fbc4
PA
84932015-10-29 Pedro Alves <palves@redhat.com>
8494
8495 * server.c (handle_v_cont, process_serial_event): Add enum
8496 gdb_signal casts to signal parsing code.
8497
add67df8
PA
84982015-10-29 Pedro Alves <palves@redhat.com>
8499
8500 * linux-low.h (NULL_REGSET): Define.
8501 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
8502 * linux-arm-low.c (arm_regsets): Likewise.
8503 * linux-crisv32-low.c (cris_regsets): Likewise.
8504 * linux-m68k-low.c (m68k_regsets): Likewise.
8505 * linux-mips-low.c (mips_regsets): Likewise.
8506 * linux-nios2-low.c (nios2_regsets): Likewise.
8507 * linux-ppc-low.c (ppc_regsets): Likewise.
8508 * linux-s390-low.c (s390_regsets): Likewise.
8509 * linux-sh-low.c (sh_regsets): Likewise.
8510 * linux-sparc-low.c (sparc_regsets): Likewise.
8511 * linux-tic6x-low.c (tic6x_regsets): Likewise.
8512 * linux-tile-low.c (tile_regsets): Likewise.
8513 * linux-x86-low.c (x86_regsets): Likewise.
8514 * linux-xtensa-low.c (xtensa_regsets): Likewise.
8515
50bc912a
PA
85162015-10-29 Pedro Alves <palves@redhat.com>
8517
8518 * linux-low.h (NULL_REGSET): Define.
8519 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
8520 * linux-arm-low.c (arm_regsets): Likewise.
8521 * linux-crisv32-low.c (cris_regsets): Likewise.
8522 * linux-m68k-low.c (m68k_regsets): Likewise.
8523 * linux-mips-low.c (mips_regsets): Likewise.
8524 * linux-nios2-low.c (nios2_regsets): Likewise.
8525 * linux-ppc-low.c (ppc_regsets): Likewise.
8526 * linux-s390-low.c (s390_regsets): Likewise.
8527 * linux-sh-low.c (sh_regsets): Likewise.
8528 * linux-sparc-low.c (sparc_regsets): Likewise.
8529 * linux-tic6x-low.c (tic6x_regsets): Likewise.
8530 * linux-tile-low.c (tile_regsets): Likewise.
8531 * linux-x86-low.c (x86_regsets): Likewise.
8532 * linux-xtensa-low.c (xtensa_regsets): Likewise.
8533
682b2546
DE
85342015-10-26 Doug Evans <dje@google.com>
8535
8536 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
8537
963843d4
DE
85382015-10-26 Doug Evans <dje@google.com>
8539
8540 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
8541
d41401ac
DE
85422015-10-26 Doug Evans <dje@google.com>
8543
8544 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
8545 for debug_printf.
8546 (attach_thread, find_new_threads_callback): Ditto.
8547
3db28855
AT
85482015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
8549
8550 * mem-break.h (set_breakpoint_data): Remove.
8551
fb78e89c
AT
85522015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
8553
8554 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
8555 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
8556 (initialize_low): Remove set_breakpoint_data call.
8557 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
8558 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
8559 (initialize_low): Remove set_breakpoint_data call.
8560 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
8561 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
8562 (initialize_low): Remove set_breakpoint_data call.
8563
2e6ee069
AT
85642015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
8565
8566 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
8567 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
8568 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
8569 * target.h (target_breakpoint_kind_from_pc): New macro.
8570
1652a986
AT
85712015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
8572
8573 * linux-low.c (default_breakpoint_kind_from_pc): New function.
8574 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
8575 the default breakpoint kind.
8576
abeead09
AT
85772015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
8578
8579 * linux-arm-low.c (arm_supports_z_point_type): Add software
8580 breakpoint support.
8581
b0b4b501
AT
85822015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
8583
8584 * linux-arm-low.c: Refactor breakpoint definitions.
8585 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
8586 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
8587
8689682c
AT
85882015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
8589
8590 * Makefile.in: Add arm.c/o.
8591 * configure.srv: Likewise.
8592 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
8593 (arm_breakpoint_kind_from_pc): New function.
8594 (arm_sw_breakpoint_from_kind): Return proper kind.
8595 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
8596
27165294
AT
85972015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
8598
8599 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
8600 removal.
8601 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
8602 (struct raw_breakpoint) <size>: Remove.
8603 (struct raw_breakpoint) <kind>: Add.
8604 (bp_size): New function.
8605 (bp_opcode): Likewise.
8606 (find_raw_breakpoint_at): Adjust for kind.
8607 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
8608 (remove_memory_breakpoint): Adjust for kind call bp_size.
8609 (set_raw_breakpoint_at): Adjust for kind.
8610 (set_breakpoint): Likewise.
8611 (set_breakpoint_at): Call breakpoint_kind_from_pc.
8612 (delete_raw_breakpoint): Adjust for kind.
8613 (delete_breakpoint): Likewise.
8614 (find_gdb_breakpoint): Likewise.
8615 (set_gdb_breakpoint_1): Likewise.
8616 (set_gdb_breakpoint): Likewise.
8617 (delete_gdb_breakpoint_1): Likewise.
8618 (delete_gdb_breakpoint): Likewise.
8619 (uninsert_raw_breakpoint): Likewise.
8620 (reinsert_raw_breakpoint): Likewise.
8621 (set_breakpoint_data): Remove.
8622 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
8623 (check_mem_read): Adjust for kind call bp_size.
8624 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
8625 (clone_one_breakpoint): Adjust for kind.
8626 * mem-break.h (set_gdb_breakpoint): Likewise.
8627 (delete_gdb_breakpoint): Likewise.
8628 * server.c (process_serial_event): Likewise.
8629
dd373349
AT
86302015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
8631
8632 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
8633 (struct linux_target_ops) <breakpoint>: Remove.
8634 (struct linux_target_ops) <breakpoint_len>: Remove.
8635 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8636 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8637 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
8638 (arm_sw_breakpoint_from_kind): New function.
8639 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
8640 (struct linux_target_ops) <breakpoint>: Remove.
8641 (struct linux_target_ops) <breakpoint_len>: Remove.
8642 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8643 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8644 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
8645 (struct linux_target_ops) <breakpoint>: Remove.
8646 (struct linux_target_ops) <breakpoint_len>: Remove.
8647 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8648 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8649 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
8650 (struct linux_target_ops) <breakpoint>: Remove.
8651 (struct linux_target_ops) <breakpoint_len>: Remove.
8652 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8653 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8654 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
8655 and sw_breakpoint_from_kind to increment the pc.
8656 (linux_breakpoint_kind_from_pc): New function.
8657 (linux_sw_breakpoint_from_kind): New function.
8658 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
8659 (initialize_low): Call breakpoint_kind_from_pc and
8660 sw_breakpoint_from_kind to replace breakpoint_data/len.
8661 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
8662 New field.
8663 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
8664 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
8665 (struct linux_target_ops) <breakpoint>: Remove.
8666 (struct linux_target_ops) <breakpoint_len>: Remove.
8667 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8668 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8669 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
8670 (struct linux_target_ops) <breakpoint>: Remove.
8671 (struct linux_target_ops) <breakpoint_len>: Remove.
8672 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8673 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8674 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
8675 (struct linux_target_ops) <breakpoint>: Remove.
8676 (struct linux_target_ops) <breakpoint_len>: Remove.
8677 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8678 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8679 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
8680 (struct linux_target_ops) <breakpoint>: Remove.
8681 (struct linux_target_ops) <breakpoint_len>: Remove.
8682 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8683 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8684 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
8685 (struct linux_target_ops) <breakpoint>: Remove.
8686 (struct linux_target_ops) <breakpoint_len>: Remove.
8687 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8688 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8689 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
8690 (struct linux_target_ops) <breakpoint>: Remove.
8691 (struct linux_target_ops) <breakpoint_len>: Remove.
8692 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8693 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8694 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
8695 (struct linux_target_ops) <breakpoint>: Remove.
8696 (struct linux_target_ops) <breakpoint_len>: Remove.
8697 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8698 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8699 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
8700 (struct linux_target_ops) <breakpoint>: Remove.
8701 (struct linux_target_ops) <breakpoint_len>: Remove.
8702 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8703 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8704 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
8705 (struct linux_target_ops) <breakpoint>: Remove.
8706 (struct linux_target_ops) <breakpoint_len>: Remove.
8707 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8708 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8709 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
8710 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
8711 (struct linux_target_ops) <breakpoint>: Remove.
8712 (struct linux_target_ops) <breakpoint_len>: Remove.
8713 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8714 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8715 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
8716 (struct linux_target_ops) <breakpoint>: Remove.
8717 (struct linux_target_ops) <breakpoint_len>: Remove.
8718 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8719 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8720
4cd98a19
AT
87212015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
8722
8723 * linux-cris-low.c (cris_get_pc): Remove void arg.
8724
774ee6d2
AR
87252015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
8726
8727 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
8728 variable name.
8729
833dcd29
AR
87302015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
8731
8732 * inferiors.c (thread_pid_matches_callback): New function.
8733 (find_thread_process): New function.
8734 (remove_thread): Reset current_thread.
8735 (remove_process): Assert threads have been removed first.
8736
8d689ee5
YQ
87372015-10-15 Yao Qi <yao.qi@linaro.org>
8738
8739 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
8740 if it is 3.
8741 (aarch64_remove_point): Likewise.
8742 * regcache.c (regcache_register_size): New function.
8743
1c2e1515
YQ
87442015-10-12 Yao Qi <yao.qi@linaro.org>
8745
8746 * linux-aarch64-low.c: Update all callers as emit_load_store
8747 is renamed to aarch64_emit_load_store.
8748
e1c587c3
YQ
87492015-10-12 Yao Qi <yao.qi@linaro.org>
8750
8751 * linux-aarch64-low.c: Update all callers of function renaming
8752 from emit_insn to aarch64_emit_insn.
8753
b6542f81
YQ
87542015-10-12 Yao Qi <yao.qi@linaro.org>
8755
8756 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
8757 arch/aarch64-insn.h.
8758 (struct aarch64_memory_operand): Likewise.
8759 (ENCODE): Likewise.
8760 (emit_insn): Move to arch/aarch64-insn.c.
8761 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
8762 (emit_load_store): Move to arch/aarch64-insn.c.
8763 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
8764 (can_encode_int32): Remove.
8765
246994ce
YQ
87662015-10-12 Yao Qi <yao.qi@linaro.org>
8767
8768 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
8769 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
8770 (aarch64_relocate_instruction): Likewise.
8771 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
8772 (struct aarch64_insn_visitor): Likewise.
8773
0badd99f
YQ
87742015-10-12 Yao Qi <yao.qi@linaro.org>
8775
8776 * linux-aarch64-low.c (struct aarch64_insn_data): New.
8777 (struct aarch64_insn_visitor): New.
8778 (struct aarch64_insn_relocation_data): New.
8779 (aarch64_ftrace_insn_reloc_b): New function.
8780 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
8781 (aarch64_ftrace_insn_reloc_cb): Likewise.
8782 (aarch64_ftrace_insn_reloc_tb): Likewise.
8783 (aarch64_ftrace_insn_reloc_adr): Likewise.
8784 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
8785 (aarch64_ftrace_insn_reloc_others): Likewise.
8786 (visitor): New.
8787 (aarch64_relocate_instruction): Use visitor.
8788
dfaffe9d
YQ
87892015-10-12 Yao Qi <yao.qi@linaro.org>
8790
8791 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
8792 int. Add argument buf.
8793 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
8794 aarch64_relocate_instruction.
8795
70b439f0
YQ
87962015-10-12 Yao Qi <yao.qi@linaro.org>
8797
8798 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
8799 argument insn. Remove local variable insn. Don't call
8800 target_read_uint32.
8801 (aarch64_install_fast_tracepoint_jump_pad): Call
8802 target_read_uint32.
8803
7781c06f
YQ
88042015-09-30 Yao Qi <yao.qi@linaro.org>
8805
8806 * linux-aarch64-low.c (emit_movk): Shorten a long line.
8807 (emit_load_store_pair): Likewise.
8808
9a3c8263
SM
88092015-09-25 Simon Marchi <simon.marchi@ericsson.com>
8810
8811 * dll.c (match_dll): Add cast(s).
8812 (unloaded_dll): Likewise.
8813 * linux-low.c (second_thread_of_pid_p): Likewise.
8814 (delete_lwp_callback): Likewise.
8815 (count_events_callback): Likewise.
8816 (select_event_lwp_callback): Likewise.
8817 (linux_set_resume_request): Likewise.
8818 * server.c (accumulate_file_name_length): Likewise.
8819 (emit_dll_description): Likewise.
8820 (handle_qxfer_threads_worker): Likewise.
8821 (visit_actioned_threads): Likewise.
8822 * thread-db.c (any_thread_of): Likewise.
8823 * tracepoint.c (same_process_p): Likewise.
8824 (match_blocktype): Likewise.
8825 (build_traceframe_info_xml): Likewise.
8826
224c3ddb
SM
88272015-09-25 Simon Marchi <simon.marchi@ericsson.com>
8828
8829 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
8830 assignment.
8831 (gdb_unparse_agent_expr): Likewise.
8832 * hostio.c (require_data): Likewise.
8833 (handle_pread): Likewise.
8834 * linux-low.c (disable_regset): Likewise.
8835 (fetch_register): Likewise.
8836 (store_register): Likewise.
8837 (get_dynamic): Likewise.
8838 (linux_qxfer_libraries_svr4): Likewise.
8839 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
8840 (set_fast_tracepoint_jump): Likewise.
8841 (uninsert_fast_tracepoint_jumps_at): Likewise.
8842 (reinsert_fast_tracepoint_jumps_at): Likewise.
8843 (validate_inserted_breakpoint): Likewise.
8844 (clone_agent_expr): Likewise.
8845 * regcache.c (init_register_cache): Likewise.
8846 * remote-utils.c (putpkt_binary_1): Likewise.
8847 (decode_M_packet): Likewise.
8848 (decode_X_packet): Likewise.
8849 (look_up_one_symbol): Likewise.
8850 (relocate_instruction): Likewise.
8851 (monitor_output): Likewise.
8852 * server.c (handle_search_memory): Likewise.
8853 (handle_qxfer_exec_file): Likewise.
8854 (handle_qxfer_libraries): Likewise.
8855 (handle_qxfer): Likewise.
8856 (handle_query): Likewise.
8857 (handle_v_cont): Likewise.
8858 (handle_v_run): Likewise.
8859 (captured_main): Likewise.
8860 * target.c (write_inferior_memory): Likewise.
8861 * thread-db.c (try_thread_db_load_from_dir): Likewise.
8862 * tracepoint.c (init_trace_buffer): Likewise.
8863 (add_tracepoint_action): Likewise.
8864 (add_traceframe): Likewise.
8865 (add_traceframe_block): Likewise.
8866 (cmd_qtdpsrc): Likewise.
8867 (cmd_qtdv): Likewise.
8868 (cmd_qtstatus): Likewise.
8869 (response_source): Likewise.
8870 (response_tsv): Likewise.
8871 (cmd_qtnotes): Likewise.
8872 (gdb_collect): Likewise.
8873 (initialize_tracepoint): Likewise.
8874
afbe19f8
PL
88752015-09-21 Pierre Langlois <pierre.langlois@arm.com>
8876
8877 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
8878 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
8879 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
8880 <NOP>: New.
8881 (enum aarch64_condition_codes): New enum.
8882 (w0): New static global.
8883 (fp): Likewise.
8884 (lr): Likewise.
8885 (struct aarch64_memory_operand) <type>: New
8886 MEMORY_OPERAND_POSTINDEX type.
8887 (postindex_memory_operand): New helper function.
8888 (emit_ret): New function.
8889 (emit_load_store_pair): New function, factored out of emit_stp
8890 with support for MEMORY_OPERAND_POSTINDEX.
8891 (emit_stp): Rewrite using emit_load_store_pair.
8892 (emit_ldp): New function.
8893 (emit_load_store): Likewise.
8894 (emit_ldr): Mention post-index instruction in comment.
8895 (emit_ldrh): New function.
8896 (emit_ldrb): New function.
8897 (emit_ldrsw): Mention post-index instruction in comment.
8898 (emit_str): Likewise.
8899 (emit_subs): New function.
8900 (emit_cmp): Likewise.
8901 (emit_and): Likewise.
8902 (emit_orr): Likewise.
8903 (emit_orn): Likewise.
8904 (emit_eor): Likewise.
8905 (emit_mvn): Likewise.
8906 (emit_lslv): Likewise.
8907 (emit_lsrv): Likewise.
8908 (emit_asrv): Likewise.
8909 (emit_mul): Likewise.
8910 (emit_sbfm): Likewise.
8911 (emit_sbfx): Likewise.
8912 (emit_ubfm): Likewise.
8913 (emit_ubfx): Likewise.
8914 (emit_csinc): Likewise.
8915 (emit_cset): Likewise.
8916 (emit_nop): Likewise.
8917 (emit_ops_insns): New helper function.
8918 (emit_pop): Likewise.
8919 (emit_push): Likewise.
8920 (aarch64_emit_prologue): New function.
8921 (aarch64_emit_epilogue): Likewise.
8922 (aarch64_emit_add): Likewise.
8923 (aarch64_emit_sub): Likewise.
8924 (aarch64_emit_mul): Likewise.
8925 (aarch64_emit_lsh): Likewise.
8926 (aarch64_emit_rsh_signed): Likewise.
8927 (aarch64_emit_rsh_unsigned): Likewise.
8928 (aarch64_emit_ext): Likewise.
8929 (aarch64_emit_log_not): Likewise.
8930 (aarch64_emit_bit_and): Likewise.
8931 (aarch64_emit_bit_or): Likewise.
8932 (aarch64_emit_bit_xor): Likewise.
8933 (aarch64_emit_bit_not): Likewise.
8934 (aarch64_emit_equal): Likewise.
8935 (aarch64_emit_less_signed): Likewise.
8936 (aarch64_emit_less_unsigned): Likewise.
8937 (aarch64_emit_ref): Likewise.
8938 (aarch64_emit_if_goto): Likewise.
8939 (aarch64_emit_goto): Likewise.
8940 (aarch64_write_goto_address): Likewise.
8941 (aarch64_emit_const): Likewise.
8942 (aarch64_emit_call): Likewise.
8943 (aarch64_emit_reg): Likewise.
8944 (aarch64_emit_pop): Likewise.
8945 (aarch64_emit_stack_flush): Likewise.
8946 (aarch64_emit_zero_ext): Likewise.
8947 (aarch64_emit_swap): Likewise.
8948 (aarch64_emit_stack_adjust): Likewise.
8949 (aarch64_emit_int_call_1): Likewise.
8950 (aarch64_emit_void_call_2): Likewise.
8951 (aarch64_emit_eq_goto): Likewise.
8952 (aarch64_emit_ne_goto): Likewise.
8953 (aarch64_emit_lt_goto): Likewise.
8954 (aarch64_emit_le_goto): Likewise.
8955 (aarch64_emit_gt_goto): Likewise.
8956 (aarch64_emit_ge_got): Likewise.
8957 (aarch64_emit_ops_impl): New static global variable.
8958 (aarch64_emit_ops): New target function, return
8959 &aarch64_emit_ops_impl.
8960 (struct linux_target_ops): Install it.
8961
bb903df0
PL
89622015-09-21 Pierre Langlois <pierre.langlois@arm.com>
8963
8964 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
8965 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
8966 aarch64-ipa.o.
8967 * linux-aarch64-ipa.c: New file.
8968 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
8969 and endian.h.
8970 (aarch64_get_thread_area): New target method.
8971 (extract_signed_bitfield): New helper function.
8972 (aarch64_decode_ldr_literal): New function.
8973 (enum aarch64_opcodes): New enum.
8974 (struct aarch64_register): New struct.
8975 (struct aarch64_operand): New struct.
8976 (x0): New static global.
8977 (x1): Likewise.
8978 (x2): Likewise.
8979 (x3): Likewise.
8980 (x4): Likewise.
8981 (w2): Likewise.
8982 (ip0): Likewise.
8983 (sp): Likewise.
8984 (xzr): Likewise.
8985 (aarch64_register): New helper function.
8986 (register_operand): Likewise.
8987 (immediate_operand): Likewise.
8988 (struct aarch64_memory_operand): New struct.
8989 (offset_memory_operand): New helper function.
8990 (preindex_memory_operand): Likewise.
8991 (enum aarch64_system_control_registers): New enum.
8992 (ENCODE): New macro.
8993 (emit_insn): New helper function.
8994 (emit_b): New function.
8995 (emit_bcond): Likewise.
8996 (emit_cb): Likewise.
8997 (emit_tb): Likewise.
8998 (emit_blr): Likewise.
8999 (emit_stp): Likewise.
9000 (emit_ldp_q_offset): Likewise.
9001 (emit_stp_q_offset): Likewise.
9002 (emit_load_store): Likewise.
9003 (emit_ldr): Likewise.
9004 (emit_ldrsw): Likewise.
9005 (emit_str): Likewise.
9006 (emit_ldaxr): Likewise.
9007 (emit_stxr): Likewise.
9008 (emit_stlr): Likewise.
9009 (emit_data_processing_reg): Likewise.
9010 (emit_data_processing): Likewise.
9011 (emit_add): Likewise.
9012 (emit_sub): Likewise.
9013 (emit_mov): Likewise.
9014 (emit_movk): Likewise.
9015 (emit_mov_addr): Likewise.
9016 (emit_mrs): Likewise.
9017 (emit_msr): Likewise.
9018 (emit_sevl): Likewise.
9019 (emit_wfe): Likewise.
9020 (append_insns): Likewise.
9021 (can_encode_int32_in): New helper function.
9022 (aarch64_relocate_instruction): New function.
9023 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
9024 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
9025 (struct linux_target_ops): Install aarch64_get_thread_area,
9026 aarch64_install_fast_tracepoint_jump_pad and
9027 aarch64_get_min_fast_tracepoint_insn_len.
9028
787749ea
PL
90292015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9030
9031 * Makefile.in (aarch64-insn.o): New rule.
9032 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
9033
9812b2e6
YQ
90342015-09-21 Yao Qi <yao.qi@linaro.org>
9035
9036 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
9037
18fe412b
YQ
90382015-09-21 Yao Qi <yao.qi@linaro.org>
9039
9040 * tracepoint.c (max_jump_pad_size): Remove.
9041
a0cc84cd
YQ
90422015-09-18 Yao Qi <yao.qi@linaro.org>
9043
9044 * linux-aarch64-low.c: Don't include sys/uio.h.
9045 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
9046
d78908cf
WW
90472015-09-16 Wei-cheng Wang <cole945@gmail.com>
9048
9049 * tracepoint.c (eval_result_type): Change prototype.
9050 (condition_true_at_tracepoint): Fix argument to compiled_cond.
9051
d57e0d50
PA
90522015-09-15 Pedro Alves <palves@redhat.com>
9053
9054 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
9055 Check whether to report exec events instead of checking whether
9056 multiprocess is enabled.
9057
5a676acc
PA
90582015-09-15 Pedro Alves <palves@redhat.com>
9059
9060 PR remote/18965
9061 * remote-utils.c (prepare_resume_reply): Merge
9062 TARGET_WAITKIND_VFORK_DONE switch case with the
9063 TARGET_WAITKIND_FORKED case.
9064
7c5d0fad
YQ
90652015-09-15 Yao Qi <yao.qi@linaro.org>
9066
9067 * server.c (handle_query): Check string comparison using
9068 "else if" instead of "if".
9069
750ce8d1
YQ
90702015-09-15 Yao Qi <yao.qi@linaro.org>
9071
9072 * server.c (vCont_supported): New global variable.
9073 (handle_query): Set vCont_supported to 1 if "vContSupported+"
9074 matches. Append ";vContSupported+" to own_buf.
9075 (handle_v_requests): Append ";s;S" to own_buf if target supports
9076 hardware single step or vCont_supported is false.
9077 (capture_main): Set vCont_supported to zero.
9078
70b90b91
YQ
90792015-09-15 Yao Qi <yao.qi@linaro.org>
9080
9081 * linux-low.c (linux_supports_conditional_breakpoints): Rename
9082 it to ...
9083 (linux_supports_hardware_single_step): ... New function.
9084 (linux_target_ops): Update.
9085 * lynx-low.c (lynx_target_ops): Set field
9086 supports_hardware_single_step to target_can_do_hardware_single_step.
9087 * nto-low.c (nto_target_ops): Likewise.
9088 * spu-low.c (spu_target_ops): Likewise.
9089 * win32-low.c (win32_target_ops): Likewise.
9090 * target.c (target_can_do_hardware_single_step): New function.
9091 * target.h (struct target_ops) <supports_conditional_breakpoints>:
9092 Remove. <supports_hardware_single_step>: New field.
9093 (target_supports_conditional_breakpoints): Remove.
9094 (target_supports_hardware_single_step): New macro.
9095 (target_can_do_hardware_single_step): Declare.
9096 * server.c (handle_query): Use target_supports_hardware_single_step
9097 instead of target_supports_conditional_breakpoints.
9098
ade90bde
YQ
90992015-09-15 Yao Qi <yao.qi@linaro.org>
9100
9101 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
9102 function.
9103 (struct linux_target_ops the_low_target): Install
9104 aarch64_linux_siginfo_fixup.
9105
94585166
DB
91062015-09-11 Don Breazeal <donb@codesourcery.com>
9107 Luis Machado <lgustavo@codesourcery.com>
9108
9109 * linux-low.c (linux_mourn): Static declaration.
9110 (linux_arch_setup): Move in front of
9111 handle_extended_wait.
9112 (linux_arch_setup_thread): New function.
9113 (handle_extended_wait): Handle exec events. Call
9114 linux_arch_setup_thread. Make event_lwp argument a
9115 pointer-to-a-pointer.
9116 (check_zombie_leaders): Do not check stopped threads.
9117 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
9118 (linux_low_filter_event): Add lwp and thread for exec'ing
9119 non-leader thread if leader thread has been deleted.
9120 Refactor code into linux_arch_setup_thread and call it.
9121 Pass child lwp pointer by reference to handle_extended_wait.
9122 (linux_wait_for_event_filtered): Update comment.
9123 (linux_wait_1): Prevent clobbering exec event status.
9124 (linux_supports_exec_events): New function.
9125 (linux_target_ops) <supports_exec_events>: Initialize new member.
9126 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
9127 new member.
9128 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
9129 * server.c (report_exec_events): New global variable.
9130 (handle_query): Handle qSupported query for exec-events feature.
9131 (captured_main): Initialize report_exec_events.
9132 * server.h (report_exec_events): Declare new global variable.
9133 * target.h (struct target_ops) <supports_exec_events>: New
9134 member.
9135 (target_supports_exec_events): New macro.
9136 * win32-low.c (win32_target_ops) <supports_exec_events>:
9137 Initialize new member.
9138
0568462b
MM
91392015-09-09 Markus Metzger <markus.t.metzger@intel.com>
9140
9141 * linux-low.c (linux_low_enable_btrace): Remove.
9142 (linux_target_ops): Replace linux_low_enable_btrace with
9143 linux_enable_btrace.
9144
39edd165
YQ
91452015-09-03 Yao Qi <yao.qi@linaro.org>
9146
9147 * linux-aarch64-low.c (aarch64_insert_point): Call
9148 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
9149 returns true.
9150
1db33b5a
UW
91512015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9152
9153 * linux-low.c (check_stopped_by_breakpoint): Use
9154 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
9155
ab290430
PA
91562015-08-27 Pedro Alves <palves@redhat.com>
9157
9158 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
9159
8d749320
SM
91602015-08-26 Simon Marchi <simon.marchi@ericsson.com>
9161
6711b7f8
SM
9162 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
9163 the XNEW-family equivalent.
8d749320
SM
9164 (compile_bytecodes): Likewise.
9165 * dll.c (loaded_dll): Likewise.
9166 * event-loop.c (append_callback_event): Likewise.
9167 (create_file_handler): Likewise.
9168 (create_file_event): Likewise.
9169 * hostio.c (handle_open): Likewise.
9170 * inferiors.c (add_thread): Likewise.
9171 (add_process): Likewise.
9172 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
9173 * linux-arm-low.c (arm_new_process): Likewise.
9174 (arm_new_thread): Likewise.
9175 * linux-low.c (add_to_pid_list): Likewise.
9176 (linux_add_process): Likewise.
9177 (handle_extended_wait): Likewise.
9178 (add_lwp): Likewise.
9179 (enqueue_one_deferred_signal): Likewise.
9180 (enqueue_pending_signal): Likewise.
9181 (linux_resume_one_lwp_throw): Likewise.
9182 (linux_resume_one_thread): Likewise.
9183 (linux_read_memory): Likewise.
9184 (linux_write_memory): Likewise.
9185 * linux-mips-low.c (mips_linux_new_process): Likewise.
9186 (mips_linux_new_thread): Likewise.
9187 (mips_add_watchpoint): Likewise.
9188 * linux-x86-low.c (initialize_low_arch): Likewise.
9189 * lynx-low.c (lynx_add_process): Likewise.
9190 * mem-break.c (set_raw_breakpoint_at): Likewise.
9191 (set_breakpoint): Likewise.
9192 (add_condition_to_breakpoint): Likewise.
9193 (add_commands_to_breakpoint): Likewise.
9194 (clone_agent_expr): Likewise.
9195 (clone_one_breakpoint): Likewise.
9196 * regcache.c (new_register_cache): Likewise.
9197 * remote-utils.c (look_up_one_symbol): Likewise.
9198 * server.c (queue_stop_reply): Likewise.
9199 (start_inferior): Likewise.
9200 (queue_stop_reply_callback): Likewise.
9201 (handle_target_event): Likewise.
9202 * spu-low.c (fetch_ppc_memory): Likewise.
9203 (store_ppc_memory): Likewise.
9204 * target.c (set_target_ops): Likewise.
9205 * thread-db.c (thread_db_load_search): Likewise.
9206 (try_thread_db_load_1): Likewise.
9207 * tracepoint.c (add_tracepoint): Likewise.
9208 (add_tracepoint_action): Likewise.
9209 (create_trace_state_variable): Likewise.
9210 (cmd_qtdpsrc): Likewise.
9211 (cmd_qtro): Likewise.
9212 (add_while_stepping_state): Likewise.
9213 * win32-low.c (child_add_thread): Likewise.
9214 (get_image_name): Likewise.
9215
ed8b7b42
YQ
92162015-08-25 Yao Qi <yao.qi@linaro.org>
9217
9218 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
9219
db3cb7cb
YQ
92202015-08-25 Yao Qi <yao.qi@linaro.org>
9221
9222 * Makefile.in (aarch64-linux.o): New rule.
9223 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
9224 srv_tgtobj.
9225 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
9226 (aarch64_init_debug_reg_state): Make it extern.
9227 (aarch64_linux_prepare_to_resume): Remove.
9228
f6011a1c
YQ
92292015-08-25 Yao Qi <yao.qi@linaro.org>
9230
9231 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
9232 lwp_arch_private_info and ptid_of_lwp.
9233
88e2cf7e
YQ
92342015-08-25 Yao Qi <yao.qi@linaro.org>
9235
9236 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
9237 Find proc_info by find_process_pid. All callers updated.
9238
5e35436e
YQ
92392015-08-25 Yao Qi <yao.qi@linaro.org>
9240
9241 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
9242 Remove.
9243 (debug_reg_change_callback): Remove.
9244 (aarch64_notify_debug_reg_change): Remove.
9245
4a8a7965
YQ
92462015-08-25 Yao Qi <yao.qi@linaro.org>
9247
9248 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
9249 Call current_lwp_ptid.
9250
32a271ee
YQ
92512015-08-25 Yao Qi <yao.qi@linaro.org>
9252
9253 * linux-aarch64-low.c (debug_reg_change_callback): Use
9254 debug_printf.
9255
0d51c8d7
YQ
92562015-08-25 Yao Qi <yao.qi@linaro.org>
9257
9258 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
9259
31a43dd5
YQ
92602015-08-25 Yao Qi <yao.qi@linaro.org>
9261
9262 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
9263
8ee52567
YQ
92642015-08-25 Yao Qi <yao.qi@linaro.org>
9265
9266 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
9267 the code.
9268
ff3f0f45
YQ
92692015-08-25 Yao Qi <yao.qi@linaro.org>
9270
9271 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
9272 Remove.
9273 (debug_reg_change_callback): Remove argument entry and add argument
9274 lwp. Remove local variable thread. Don't print thread id in the
9275 debugging output. Don't check whether pid of thread equals to pid.
9276 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
9277 iterate_over_lwps instead find_inferior.
9278
3d40fbb5
PA
92792015-08-24 Pedro Alves <palves@redhat.com>
9280
9281 * inferiors.c (get_first_process): New function.
9282 * inferiors.h (get_first_process): New declaration.
9283 * remote-utils.c (read_ptid): Default to the first process in the
9284 list, instead of to the current thread's process.
9285
438e1e42
PA
92862015-08-24 Pedro Alves <palves@redhat.com>
9287
9288 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
9289 * event-loop.c: Likewise.
9290 * remote-utils.c: Likewise.
9291 * tracepoint.c: Likewise.
9292
a8c6d4fc
PA
92932015-08-24 Pedro Alves <palves@redhat.com>
9294
9295 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
9296 ptid_get_lwp.
9297
99b0bb12
PA
92982015-08-21 Pedro Alves <palves@redhat.com>
9299
9300 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
9301 instead of literal 1.
9302
f8904751
PA
93032015-08-21 Pedro Alves <palves@redhat.com>
9304
9305 * tdesc.c (default_description): Explicitly zero-initialize.
9306
465a859e
PA
93072015-08-21 Pedro Alves <palves@redhat.com>
9308
9309 PR gdb/18749
9310 * inferiors.c (remove_thread): Discard any pending stop reply for
9311 this thread.
9312 * server.c (remove_all_on_match_pid): Rename to ...
9313 (remove_all_on_match_ptid): ... this. Work with a filter ptid
9314 instead of a pid.
9315 (discard_queued_stop_replies): Change parameter to a ptid. Now
9316 extern.
9317 (handle_v_kill, kill_inferior_callback, captured_main)
9318 (process_serial_event): Adjust.
9319 * server.h (discard_queued_stop_replies): Declare.
9320
f0db101d
PA
93212015-08-21 Pedro Alves <palves@redhat.com>
9322
9323 * linux-low.c (wait_for_sigstop): Always switch to no thread
9324 selected if the previously current thread dies.
9325 * lynx-low.c (lynx_request_interrupt): Use the first thread's
9326 process instead of the current thread's.
9327 * remote-utils.c (input_interrupt): Don't check if there's no
9328 current thread.
9329 * server.c (gdb_read_memory, gdb_write_memory): If setting the
9330 current thread to the general thread fails, error out.
9331 (handle_qxfer_auxv, handle_qxfer_libraries)
9332 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
9333 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
9334 (handle_query): Check if there's a thread selected instead of
9335 checking whether there's any thread in the thread list.
9336 (handle_qxfer_threads, handle_qxfer_btrace)
9337 (handle_qxfer_btrace_conf): Don't error out early if there's no
9338 thread in the thread list.
9339 (handle_v_cont, myresume): Don't set the current thread to the
9340 continue thread.
9341 (process_serial_event) <Hg handling>: Also set thread_id if the
9342 previous general thread is still alive.
9343 (process_serial_event) <g/G handling>: If setting the current
9344 thread to the general thread fails, error out.
9345 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
9346 thread's lwp instead of the current thread's.
9347 * target.c (set_desired_thread): If the desired thread was not
9348 found, leave the current thread pointing to NULL. Return an int
9349 (boolean) indicating success.
9350 * target.h (set_desired_thread): Change return type to int.
9351
40045d91
MF
93522015-08-20 Max Filippov <jcmvbkbc@gmail.com>
9353
9354 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
9355 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
9356 #includes.
9357 (ps_get_thread_area): New function.
9358
45face3b
GB
93592015-08-19 Gary Benson <gbenson@redhat.com>
9360
9361 * hostio.c (handle_pread): Do not attempt to read more data
9362 than hostio_reply_with_data can fit in a packet.
9363
16d5f642
JB
93642015-08-18 Joel Brobecker <brobecker@adacore.com>
9365
9366 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
9367
a738da3a
MF
93682015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
9369
9370 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
9371
33ebda9d
PA
93722015-08-06 Pedro Alves <palves@redhat.com>
9373
9374 * tracepoint.c (expr_eval_result): Now an int.
9375
a44892be
PA
93762015-08-06 Pedro Alves <palves@redhat.com>
9377
9378 * gdbthread.h (struct regcache): Forward declare.
9379 (struct thread_info) <regcache_data>: Now a struct regcache
9380 pointer.
9381 * inferiors.c (inferior_regcache_data)
9382 (set_inferior_regcache_data): Now work with struct regcache
9383 pointers.
9384 * inferiors.h (struct regcache): Forward declare.
9385 (inferior_regcache_data, set_inferior_regcache_data): Now work
9386 with struct regcache pointers.
9387 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
9388 (free_register_cache_thread): Remove struct regcache pointer
9389 casts.
9390
608a1e46
PA
93912015-08-06 Pedro Alves <palves@redhat.com>
9392
9393 * server.c (captured_main): On error, print the exception message
9394 to stderr, and if run_once is set, throw a quit.
9395
f0ce0d3a
PA
93962015-08-06 Pedro Alves <palves@redhat.com>
9397
9398 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
9399 the current thread.
9400
bf47e248
PA
94012015-08-06 Pedro Alves <palves@redhat.com>
9402
9403 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
9404 reading beyond the passed in buffer length.
9405
b6b9ffcc
PL
94062015-08-06 Pierre Langlois <pierre.langlois@arm.com>
9407
9408 * tracepoint.c (symbol_list) <required>: Remove.
9409
863d01bd
PA
94102015-08-06 Pedro Alves <palves@redhat.com>
9411
9412 * linux-low.c (handle_extended_wait): Set the fork child's suspend
9413 count if stopping and suspending threads.
9414 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
9415 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
9416 (linux_detach): Complete an ongoing step-over.
9417 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
9418 throughout.
9419 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
9420 (linux_wait_1): If passing a signal to the inferior after
9421 finishing a step-over, unsuspend and re-resume all lwps. If we
9422 see a single-step event but the thread should be continuing, don't
9423 pass the trap to gdb.
9424 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
9425 internal_error instead of gdb_assert.
9426 (enqueue_pending_signal): New function.
9427 (check_ptrace_stopped_lwp_gone): Add debug output.
9428 (start_step_over): Use internal_error instead of gdb_assert.
9429 (complete_ongoing_step_over): New function.
9430 (linux_resume_one_thread): Don't resume a suspended thread.
9431 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
9432 it stepping.
9433
00db26fa
PA
94342015-08-06 Pedro Alves <palves@redhat.com>
9435
9436 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
9437 (linux_thread_alive): Use lwp_is_marked_dead.
9438 (extended_event_reported): Delete.
9439 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
9440 instead of extended_event_reported.
9441 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
9442 as well.
9443 (lwp_is_marked_dead): New function.
9444 (lwp_running): Use lwp_is_marked_dead.
9445 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
9446 comment.
9447
ad071a30
PA
94482015-08-06 Pedro Alves <palves@redhat.com>
9449
9450 * linux-low.c (linux_wait_1): Move fork event output out of the
9451 !report_to_gdb check. Pass event_child->waitstatus to
9452 target_waitstatus_to_string instead of ourstatus.
9453
524b57e6
YQ
94542015-08-04 Yao Qi <yao.qi@linaro.org>
9455
9456 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
9457 if current_thread is 32 bit.
9458
6085d6f6
YQ
94592015-08-04 Yao Qi <yao.qi@linaro.org>
9460
9461 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9462 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9463 * server.c (extended_protocol): Remove "static".
9464 * server.h (extended_protocol): Declare it.
9465
8a7e4587
YQ
94662015-08-04 Yao Qi <yao.qi@linaro.org>
9467
9468 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
9469 both aarch64 and aarch32.
9470 (aarch64_set_pc): Likewise.
9471
3b53ae99
YQ
94722015-08-04 Yao Qi <yao.qi@linaro.org>
9473
9474 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
9475 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
9476 arm-with-neon.xml to srv_xmlfiles.
9477 * linux-aarch64-low.c: Include linux-aarch32-low.h.
9478 (is_64bit_tdesc): New function.
9479 (aarch64_linux_read_description): New function.
9480 (aarch64_arch_setup): Call aarch64_linux_read_description.
9481 (regs_info): Rename to regs_info_aarch64.
9482 (aarch64_regs_info): Return right regs_info.
9483 (initialize_low_arch): Call initialize_low_arch_aarch32.
9484
bd9e6534
YQ
94852015-08-04 Yao Qi <yao.qi@linaro.org>
9486
9487 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
9488 * linux-aarch32-low.c: New file.
9489 * linux-aarch32-low.h: New file.
9490 * linux-arm-low.c (arm_fill_gregset): Move it to
9491 linux-aarch32-low.c.
9492 (arm_store_gregset): Likewise.
9493 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
9494 (arm_store_vfpregset): Call arm_store_vfpregset_num.
9495 (arm_arch_setup): Check if PTRACE_GETREGSET works.
9496 (regs_info): Rename to regs_info_arm.
9497 (arm_regs_info): Return regs_info_aarch32 if
9498 have_ptrace_getregset is 1 and target description is
9499 arm_with_neon or arm_with_vfpv3.
9500 (initialize_low_arch): Don't call init_registers_arm_with_neon.
9501 Call initialize_low_arch_aarch32 instead.
9502
ded48a5e
YQ
95032015-08-04 Yao Qi <yao.qi@linaro.org>
9504
9505 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
9506 * linux-low.c: ... here.
9507 * linux-low.h (have_ptrace_getregset): Declare it.
9508
96e9210f
PA
95092015-08-04 Pedro Alves <palves@redhat.com>
9510
9511 * thread-db.c (struct thread_db): Use new typedefs.
9512 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
9513 CHK calls.
9514 (disable_thread_event_reporting): Cast result of dlsym to
9515 destination function pointer type.
9516 (thread_db_mourn): Use td_ta_delete_ftype.
9517
af60a1ef
SL
95182015-08-03 Sandra Loosemore <sandra@codesourcery.com>
9519
9520 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
9521 arch variant.
9522 (CDX_BREAKPOINT): Define for R2.
9523 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
9524 (the_low_target): Add comments.
9525
e8b41681
YQ
95262015-07-30 Yao Qi <yao.qi@linaro.org>
9527
9528 * linux-arm-low.c (arm_hwcap): Remove it.
9529 (arm_read_description): New local variable arm_hwcap. Don't
9530 set arm_hwcap to zero.
9531
89abb039
YQ
95322015-07-30 Yao Qi <yao.qi@linaro.org>
9533
9534 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
9535 Use regcache->tdesc instead.
9536 (arm_store_wmmxregset): Likewise.
9537 (arm_fill_vfpregset): Likewise.
9538 (arm_store_vfpregset): Likewise.
9539
deca266c
YQ
95402015-07-30 Yao Qi <yao.qi@linaro.org>
9541
9542 * linux-arm-low.c: Include arch/arm.h.
9543 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
9544 (arm_store_gregset): Likewise.
9545
aa58a496
SM
95462015-07-29 Simon Marchi <simon.marchi@ericsson.com>
9547
9548 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
9549 ptrace's 4th parameter.
9550
50904b25
YQ
95512015-07-27 Yao Qi <yao.qi@linaro.org>
9552
9553 * configure.srv (case aarch64*-*-linux*): Don't set
9554 srv_linux_usrregs.
9555
5826e159
PA
95562015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
9557
9558 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
9559 sys/ptrace.h.
9560 * linux-arm-low.c: Likewise.
9561 * linux-cris-low.c: Likewise.
9562 * linux-crisv32-low.c: Likewise.
9563 * linux-low.c: Likewise.
9564 * linux-m68k-low.c: Likewise.
9565 * linux-mips-low.c: Likewise.
9566 * linux-nios2-low.c: Likewise.
9567 * linux-s390-low.c: Likewise.
9568 * linux-sparc-low.c: Likewise.
9569 * linux-tic6x-low.c: Likewise.
9570 * linux-tile-low.c: Likewise.
9571 * linux-x86-low.c: Likewise.
9572
54019719
PA
95732015-07-24 Pedro Alves <palves@redhat.com>
9574
9575 * config.in: Regenerate.
9576 * configure: Regenerate.
9577
eb7aa561
PA
95782015-07-24 Pedro Alves <palves@redhat.com>
9579
9580 * acinclude.m4: Include ../ptrace.m4.
9581 * configure.ac: Call GDB_AC_PTRACE.
9582 * config.in, configure: Regenerate.
9583
55d7b841
YQ
95842015-07-24 Yao Qi <yao.qi@linaro.org>
9585
9586 * linux-low.c (linux_create_inferior): Remove setting to
9587 proc->priv->new_inferior.
9588 (linux_attach): Likewise.
9589 (linux_low_filter_event): Likewise.
9590 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
9591
c06cbd92
YQ
95922015-07-24 Yao Qi <yao.qi@linaro.org>
9593
9594 * linux-low.c (linux_arch_setup): New function.
9595 (linux_low_filter_event): If proc->tdesc is NULL and
9596 proc->attached is true, call the_low_target.arch_setup.
9597 Otherwise, keep status pending, and return.
9598 (linux_resume_one_lwp_throw): Don't call get_pc if
9599 thread->while_stepping isn't NULL. Don't call
9600 get_thread_regcache if proc->tdesc is NULL.
9601 (need_step_over_p): Return 0 if proc->tdesc is NULL.
9602 (linux_target_ops): Install arch_setup.
9603 * server.c (start_inferior): Call the_target->arch_setup.
9604 * target.h (struct target_ops) <arch_setup>: New field.
9605 (target_arch_setup): New marco.
9606 * lynx-low.c (lynx_target_ops): Update.
9607 * nto-low.c (nto_target_ops): Update.
9608 * spu-low.c (spu_target_ops): Update.
9609 * win32-low.c (win32_target_ops): Update.
9610
5ae3ebba
YQ
96112015-07-24 Yao Qi <yao.qi@linaro.org>
9612
9613 * linux-low.c (linux_add_process): Don't set
9614 proc->priv->new_inferior.
9615 (linux_create_inferior): Set proc->priv->new_inferior to 1.
9616 (linux_attach): Likewise.
9617
eb97750b
YQ
96182015-07-24 Yao Qi <yao.qi@linaro.org>
9619
9620 * server.c (start_inferior): Code refactor.
9621
51aee833
YQ
96222015-07-24 Yao Qi <yao.qi@linaro.org>
9623
9624 * server.c (process_serial_event): Set general_thread.
9625
af1b22f3
YQ
96262015-07-21 Yao Qi <yao.qi@linaro.org>
9627
9628 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
9629 aarch64_linux_get_debug_reg_capacity.
9630
554717a3
YQ
96312015-07-17 Yao Qi <yao.qi@linaro.org>
9632
9633 * Makefile.in (aarch64-linux-hw-point.o): New rule.
9634 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
9635 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
9636 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
9637 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
9638 (AARCH64_HWP_ALIGNMENT): Likewise.
9639 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
9640 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
9641 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
9642 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
9643 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
9644 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
9645 (struct aarch64_debug_reg_state): Likewise.
9646 (struct arch_lwp_info): Likewise.
9647 (aarch64_align_watchpoint): Likewise.
9648 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
9649 (aarch64_watchpoint_length): Likewise.
9650 (aarch64_point_encode_ctrl_reg): Likewise
9651 (aarch64_point_is_aligned): Likewise.
9652 (aarch64_align_watchpoint): Likewise.
9653 (aarch64_linux_set_debug_regs):
9654 (aarch64_dr_state_insert_one_point): Likewise.
9655 (aarch64_dr_state_remove_one_point): Likewise.
9656 (aarch64_handle_breakpoint): Likewise.
9657 (aarch64_handle_aligned_watchpoint): Likewise.
9658 (aarch64_handle_unaligned_watchpoint): Likewise.
9659 (aarch64_handle_watchpoint): Likewise.
9660
c67ca4de
YQ
96612015-07-17 Yao Qi <yao.qi@linaro.org>
9662
9663 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
9664 and don't aarch64_get_debug_reg_state. All callers update.
9665 (aarch64_handle_aligned_watchpoint): Likewise.
9666 (aarch64_handle_unaligned_watchpoint): Likewise.
9667 (aarch64_handle_watchpoint): Likewise.
9668 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
9669 (aarch64_remove_point): Likewise.
9670
25abf979
YQ
96712015-07-17 Yao Qi <yao.qi@linaro.org>
9672
9673 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
9674 debug_printf.
9675 (aarch64_handle_unaligned_watchpoint): Likewise.
9676
db1ff28b
JK
96772015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9678
9679 Revert the previous 3 commits:
9680 Move gdb_regex* to common/
9681 Move linux_find_memory_regions_full & co.
9682 gdbserver build-id attribute generator
9683
700ca40f
JK
96842015-07-15 Aleksandar Ristovski <aristovski@qnx.com
9685 Jan Kratochvil <jan.kratochvil@redhat.com>
9686
9687 gdbserver build-id attribute generator.
9688 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
9689 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
9690 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
9691 (find_phdr): New.
9692 (get_dynamic): Use find_pdhr to traverse program headers.
9693 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
9694 (compare_mapping_entry_range, struct find_memory_region_callback_data)
9695 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
9696 (get_hex_build_id): New.
9697 (linux_qxfer_libraries_svr4): Add optional build-id attribute
9698 to reply XML document.
9699
9904185c
JK
97002015-07-15 Aleksandar Ristovski <aristovski@qnx.com
9701 Jan Kratochvil <jan.kratochvil@redhat.com>
9702
9703 * target.c: Include target/target-utils.h and fcntl.h.
9704 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
9705 (target_fileio_read_stralloc): New functions.
9706
6e5b4429
JK
97072015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9708
9709 * Makefile.in (OBS): Add gdb_regex.o.
9710 (gdb_regex.o): New.
9711 * config.in: Rebuilt.
9712 * configure: Rebuilt.
9713
ddc98fbf
JK
97142015-07-15 Aleksandar Ristovski <aristovski@qnx.com
9715 Jan Kratochvil <jan.kratochvil@redhat.com>
9716
9717 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
9718 * Makefile.in (OBS): Add target-utils.o.
9719 (linux-maps.o, target-utils.o): New.
9720 * configure.srv (srv_linux_obj): Add linux-maps.o.
9721
e57bb7a0
PL
97222015-07-15 Pierre Langlois <pierre.langlois@arm.com>
9723
9724 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
9725 function, return 1.
9726 (the_low_target): Install it.
9727
586b02a9
PA
97282015-07-14 Pedro Alves <palves@redhat.com>
9729
9730 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
9731 Instead, ignore ECHILD, and throw an error for other errnos.
9732
58c1b36c
PA
97332015-07-10 Pedro Alves <palves@redhat.com>
9734
9735 * event-loop.c (struct callback_event) <data>: Change type to
9736 gdb_client_data instance instead of gdb_client_data pointer.
9737 (append_callback_event): Adjust.
9738
421530db
PL
97392015-07-10 Pierre Langlois <pierre.langlois@arm.com>
9740
9741 * linux-aarch64-low.c: Add comments for each linux_target_ops
9742 method. Remove comments already covered in target_ops and
9743 linux_target_ops definitions.
9744 (the_low_target): Add comments for each unimplemented method.
9745
c2d65f38
YQ
97462015-07-09 Yao Qi <yao.qi@linaro.org>
9747
9748 * linux-aarch64-low.c (aarch64_regmap): Remove.
9749 (aarch64_usrregs_info): Remove.
9750 (regs_info): Set field usrregs to NULL.
9751
b20a6524
MM
97522015-07-02 Markus Metzger <markus.t.metzger@intel.com>
9753
9754 * linux-low.c: Include "rsp-low.h"
9755 (linux_low_encode_pt_config, linux_low_encode_raw): New.
9756 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
9757 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
9758 (handle_btrace_enable_pt): New.
9759 (handle_btrace_general_set): Support "pt".
9760 (handle_btrace_conf_general_set): Support "pt:size".
9761
96c97461
PL
97622015-06-29 Pierre Langlois <pierre.langlois@arm.com>
9763
9764 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
9765 Z_PACKET_SW_BP.
9766
37d66942
PL
97672015-06-29 Pierre Langlois <pierre.langlois@arm.com>
9768
9769 * linux-aarch64-low.c: Remove comment about endianness.
9770 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
9771 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
9772 memcmp.
9773
dc06243f
GB
97742015-06-24 Gary Benson <gbenson@redhat.com>
9775
9776 * linux-i386-ipa.c (stdint.h): Do not include.
9777 * lynx-i386-low.c (stdint.h): Likewise.
9778 * lynx-ppc-low.c (stdint.h): Likewise.
9779 * mem-break.c (stdint.h): Likewise.
9780 * thread-db.c (stdint.h): Likewise.
9781 * tracepoint.c (stdint.h): Likewise.
9782 * win32-low.c (stdint.h): Likewise.
9783
124e13d9
SM
97842015-06-18 Simon Marchi <simon.marchi@ericsson.com>
9785
9786 * server.c (write_qxfer_response): Update call to
9787 remote_escape_output.
9788
909c2cda
JK
97892015-06-15 Aleksandar Ristovski <aristovski@qnx.com
9790 Jan Kratochvil <jan.kratochvil@redhat.com>
9791
9792 Merge multiple hex conversions.
9793 * gdbreplay.c (tohex): Rename to 'fromhex'.
9794 (logchar): Use fromhex.
9795
24c05f46
JK
97962015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9797
9798 * server.c (handle_qxfer_libraries): Set `version' attribute for
9799 <library-list>.
9800
14d2069a
GB
98012015-06-10 Gary Benson <gbenson@redhat.com>
9802
9803 * target.h (struct target_ops) <multifs_open>: New field.
9804 <multifs_unlink>: Likewise.
9805 <multifs_readlink>: Likewise.
9806 * linux-low.c (nat/linux-namespaces.h): New include.
9807 (linux_target_ops): Initialize the_target->multifs_open,
9808 the_target->multifs_unlink and the_target->multifs_readlink.
9809 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
9810 * hostio.c (hostio_fs_pid): New static variable.
9811 (hostio_handle_new_gdb_connection): New function.
9812 (handle_setfs): Likewise.
9813 (handle_open): Use the_target->multifs_open as appropriate.
9814 (handle_unlink): Use the_target->multifs_unlink as appropriate.
9815 (handle_readlink): Use the_target->multifs_readlink as
9816 appropriate.
9817 (handle_vFile): Handle vFile:setfs packets.
9818 * server.c (handle_query): Call hostio_handle_new_gdb_connection
9819 after target_handle_new_gdb_connection.
9820
4b8b5e72
GB
98212015-06-10 Gary Benson <gbenson@redhat.com>
9822
9823 * configure.ac (AC_CHECK_FUNCS): Add setns.
9824 * config.in: Regenerate.
9825 * configure: Likewise.
9826 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
9827 (linux-namespaces.o): New rule.
9828 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
9829
3ac2e371
GB
98302015-06-09 Gary Benson <gbenson@redhat.com>
9831
9832 * hostio.c (handle_open): Process mode argument with
9833 fileio_to_host_mode.
9834
ca9b78ce
YQ
98352015-06-01 Yao Qi <yao.qi@linaro.org>
9836
9837 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
9838 * linux-x86-low.c: Likewise.
9839
bfacd19d
DB
98402015-05-28 Don Breazeal <donb@codesourcery.com>
9841
9842 * linux-low.c (handle_extended_wait): Initialize
9843 thread_info.last_resume_kind for new fork children.
9844
452003ef
PA
98452015-05-15 Pedro Alves <palves@redhat.com>
9846
9847 * target.h (target_handle_new_gdb_connection): Rewrite using if
9848 wrapped in do/while.
9849
1041a03c
JB
98502015-05-14 Joel Brobecker <brobecker@adacore.com>
9851
9852 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
9853 * configure, config.in: Regenerate.
9854 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
9855 Declare typedef.
9856
c269dbdb
DB
98572015-05-12 Don Breazeal <donb@codesourcery.com>
9858
9859 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
9860 PTRACE_EVENT_VFORK_DONE.
9861 (linux_low_ptrace_options, extended_event_reported): Add vfork
9862 events.
9863 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
9864 and "vforkdone" for RSP 'T' Stop Reply Packet.
9865 * server.h (report_vfork_events): Declare
9866 global variable.
9867
3a8a0396
DB
98682015-05-12 Don Breazeal <donb@codesourcery.com>
9869
9870 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
9871 (the_low_target) <new_fork>: Initialize new member.
9872 * linux-arm-low.c (arm_new_fork): New function.
9873 (the_low_target) <new_fork>: Initialize new member.
9874 * linux-low.c (handle_extended_wait): Call new target function
9875 new_fork.
9876 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
9877 * linux-mips-low.c (mips_add_watchpoint): New function
9878 extracted from mips_insert_point.
9879 (the_low_target) <new_fork>: Initialize new member.
9880 (mips_linux_new_fork): New function.
9881 (mips_insert_point): Call mips_add_watchpoint.
9882 * linux-x86-low.c (x86_linux_new_fork): New function.
9883 (the_low_target) <new_fork>: Initialize new member.
9884
de0d863e
DB
98852015-05-12 Don Breazeal <donb@codesourcery.com>
9886
9887 * linux-low.c (handle_extended_wait): Implement return value,
9888 rename argument 'event_child' to 'event_lwp', handle
9889 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
9890 (linux_low_ptrace_options): New function.
9891 (linux_low_filter_event): Call linux_low_ptrace_options,
9892 use different argument fo linux_enable_event_reporting,
9893 use return value from handle_extended_wait.
9894 (extended_event_reported): New function.
9895 (linux_wait_1): Call extended_event_reported and set
9896 status to report fork events.
9897 (linux_write_memory): Add pid to debug message.
9898 (reset_lwp_ptrace_options_callback): New function.
9899 (linux_handle_new_gdb_connection): New function.
9900 (linux_target_ops): Initialize new structure member.
9901 * linux-low.h (struct lwp_info) <waitstatus>: New member.
9902 * lynx-low.c: Initialize new structure member.
9903 * remote-utils.c (prepare_resume_reply): Implement stop reason
9904 "fork" for "T" stop message.
9905 * server.c (handle_query): Call handle_new_gdb_connection.
9906 * server.h (report_fork_events): Declare global flag.
9907 * target.h (struct target_ops) <handle_new_gdb_connection>:
9908 New member.
9909 (target_handle_new_gdb_connection): New macro.
9910 * win32-low.c: Initialize new structure member.
9911
ddcbc397
DB
99122015-05-12 Don Breazeal <donb@codesourcery.com>
9913
9914 * mem-break.c (APPEND_TO_LIST): Define macro.
9915 (clone_agent_expr): New function.
9916 (clone_one_breakpoint): New function.
9917 (clone_all_breakpoints): New function.
9918 * mem-break.h: Declare new functions.
9919
89245bc0
DB
99202015-05-12 Don Breazeal <donb@codesourcery.com>
9921
9922 * linux-low.c (linux_supports_fork_events): New function.
9923 (linux_supports_vfork_events): New function.
9924 (linux_target_ops): Initialize new structure members.
9925 (initialize_low): Call linux_check_ptrace_features.
9926 * lynx-low.c (lynx_target_ops): Initialize new structure
9927 members.
9928 * server.c (report_fork_events, report_vfork_events):
9929 New global flags.
9930 (handle_query): Add new features to qSupported packet and
9931 response.
9932 (captured_main): Initialize new global variables.
9933 * target.h (struct target_ops) <supports_fork_events>:
9934 New member.
9935 <supports_vfork_events>: New member.
9936 (target_supports_fork_events): New macro.
9937 (target_supports_vfork_events): New macro.
9938 * win32-low.c (win32_target_ops): Initialize new structure
9939 members.
9940
835205d0
GB
99412015-05-12 Gary Benson <gbenson@redhat.com>
9942
9943 * server.c (handle_qxfer_exec_file): Use current process
9944 if annex is empty.
9945
21e94bd9
SL
99462015-05-08 Sandra Loosemore <sandra@codesourcery.com>
9947
9948 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
9949 Remove HAVE_PTRACE_GETREGS conditionals.
9950 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
9951 instead of PTRACE_GETREGS and PTRACE_SETREGS.
9952
45614f15
YQ
99532015-05-08 Yao Qi <yao.qi@linaro.org>
9954
9955 * linux-low.c (linux_supports_conditional_breakpoints): New
9956 function.
9957 (linux_target_ops): Install new target method.
9958 * lynx-low.c (lynx_target_ops): Install NULL hook for
9959 supports_conditional_breakpoints.
9960 * nto-low.c (nto_target_ops): Likewise.
9961 * spu-low.c (spu_target_ops): Likewise.
9962 * win32-low.c (win32_target_ops): Likewise.
9963 * server.c (handle_query): Check
9964 target_supports_conditional_breakpoints.
9965 * target.h (struct target_ops) <supports_conditional_breakpoints>:
9966 New field.
9967 (target_supports_conditional_breakpoints): New macro.
9968
80ad801e
PA
99692015-05-06 Pedro Alves <palves@redhat.com>
9970
9971 PR server/18081
9972 * server.c (start_inferior): If the process exits, mourn it.
9973
819843c7
GB
99742015-04-21 Gary Benson <gbenson@redhat.com>
9975
9976 * hostio.c (fileio_open_flags_to_host): Factored out to
9977 fileio_to_host_openflags in common/fileio.c. Single use
9978 updated.
9979
a2d5a9d7
MF
99802015-04-17 Max Filippov <jcmvbkbc@gmail.com>
9981
9982 * linux-xtensa-low.c (xtensa_fill_gregset)
9983 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
9984 XCHAL_HAVE_LOOP.
9985
deb44829
MF
99862015-04-17 Max Filippov <jcmvbkbc@gmail.com>
9987
9988 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
9989 (regs_info): Replace usrregs pointer with NULL.
9990
e57f1de3
GB
99912015-04-17 Gary Benson <gbenson@redhat.com>
9992
9993 * target.h (struct target_ops) <pid_to_exec_file>: New field.
9994 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
9995 * server.c (handle_qxfer_exec_file): New function.
9996 (qxfer_packets): Add exec-file entry.
9997 (handle_query): Report qXfer:exec-file:read as supported packet.
9998
62828379
RN
99992015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
10000
10001 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
10002
b88bb450
GB
100032015-04-09 Gary Benson <gbenson@redhat.com>
10004
10005 * hostio-errno.c (errno_to_fileio_error): Remove function.
10006 Update caller to use remote_fileio_to_fio_error.
10007
c8f4bfdd
YQ
100082015-04-09 Yao Qi <yao.qi@linaro.org>
10009
10010 * linux-low.c (linux_insert_point): Call
10011 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
10012 (linux_remove_point): Call remove_memory_breakpoint if type is
10013 raw_bkpt_type_sw.
10014 * linux-x86-low.c (x86_insert_point): Don't call
10015 insert_memory_breakpoint.
10016 (x86_remove_point): Don't call remove_memory_breakpoint.
10017
41f98f02
PA
100182015-04-01 Pedro Alves <palves@redhat.com>
10019 Cleber Rosa <crosa@redhat.com>
10020
10021 * server.c (gdbserver_usage): Reorganize and extend the usage
10022 message.
10023
2bf6fb9d
PA
100242015-03-24 Pedro Alves <palves@redhat.com>
10025
10026 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
10027 output. Also dump TRAP_TRACE.
10028 (linux_low_filter_event): In debug output, distinguish a
10029 resume_stop SIGSTOP from a delayed SIGSTOP.
10030
369f6daa
GB
100312015-03-24 Gary Benson <gbenson@redhat.com>
10032
10033 * linux-x86-low.c (x86_linux_new_thread): Moved to
10034 nat/x86-linux.c.
10035 (x86_linux_prepare_to_resume): Likewise.
10036
8e5d4070
GB
100372015-03-24 Gary Benson <gbenson@redhat.com>
10038
10039 * Makefile.in (x86-linux-dregs.o): New rule.
10040 * configure.srv: Add x86-linux-dregs.o to relevant targets.
10041 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
10042 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
10043 (x86_linux_dr_get): Likewise.
10044 (x86_linux_dr_set): Likewise.
10045 (update_debug_registers_callback): Likewise.
10046 (x86_linux_dr_set_addr): Likewise.
10047 (x86_linux_dr_get_addr): Likewise.
10048 (x86_linux_dr_set_control): Likewise.
10049 (x86_linux_dr_get_control): Likewise.
10050 (x86_linux_dr_get_status): Likewise.
10051 (x86_linux_update_debug_registers): Likewise.
10052
2b95d440
GB
100532015-03-24 Gary Benson <gbenson@redhat.com>
10054
10055 * linux-x86-low.c (x86_linux_update_debug_registers):
10056 New function, factored out from...
10057 (x86_linux_prepare_to_resume): ...this.
10058
14b0bc68
GB
100592015-03-24 Gary Benson <gbenson@redhat.com>
10060
10061 * linux-x86-low.c (x86_linux_dr_get): Update comments.
10062 (x86_linux_dr_set): Likewise.
10063 (update_debug_registers_callback): Likewise.
10064 (x86_linux_dr_set_addr): Likewise.
10065 (x86_linux_dr_get_addr): Likewise.
10066 (x86_linux_dr_set_control): Likewise.
10067 (x86_linux_dr_get_control): Likewise.
10068 (x86_linux_dr_get_status): Likewise.
10069 (x86_linux_prepare_to_resume): Likewise.
10070
5dfe6ca8
GB
100712015-03-24 Gary Benson <gbenson@redhat.com>
10072
10073 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
10074 Use perror_with_name. Pass string through gettext.
10075 (x86_linux_dr_set): Likewise.
10076
d33472ad
GB
100772015-03-24 Gary Benson <gbenson@redhat.com>
10078
10079 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
10080 (x86_linux_dr_set_addr): ...this.
10081 (x86_dr_low_get_addr): Rename to...
10082 (x86_linux_dr_get_addr): ...this.
10083 (x86_dr_low_set_control): Rename to...
10084 (x86_linux_dr_set_control): ...this.
10085 (x86_dr_low_get_control): Rename to...
10086 (x86_linux_dr_get_control): ...this.
10087 (x86_dr_low_get_status): Rename to...
10088 (x86_linux_dr_get_status): ...this.
10089 (x86_dr_low): Update with new function names.
10090
4b134ca1
GB
100912015-03-24 Gary Benson <gbenson@redhat.com>
10092
10093 * Makefile.in (x86-linux.o): New rule.
10094 * configure.srv: Add x86-linux.o to relevant targets.
10095 * linux-low.c (lwp_set_arch_private_info): New function.
10096 (lwp_arch_private_info): Likewise.
10097 * linux-x86-low.c: Include nat/x86-linux.h.
10098 (arch_lwp_info): Removed structure.
10099 (update_debug_registers_callback):
10100 Use lwp_set_debug_registers_changed.
10101 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
10102 and lwp_set_debug_registers_changed.
10103 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
10104
34c703da
GB
101052015-03-24 Gary Benson <gbenson@redhat.com>
10106
10107 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
10108 * linux-arm-low.c (arm_new_thread): Likewise.
10109 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
10110 * linux-mips-low.c (mips_linux_new_thread): Likewise.
10111 * linux-x86-low.c (x86_linux_new_thread): Likewise.
10112 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
10113
cff068da
GB
101142015-03-24 Gary Benson <gbenson@redhat.com>
10115
10116 * linux-low.c (ptid_of_lwp): New function.
10117 (lwp_is_stopped): Likewise.
10118 (lwp_stop_reason): Likewise.
10119 * linux-x86-low.c (update_debug_registers_callback):
10120 Use lwp_is_stopped.
10121 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
10122 lwp_stop_reason.
10123
b2f7c7e8
GB
101242015-03-24 Gary Benson <gbenson@redhat.com>
10125
10126 * linux-low.h (linux_stop_lwp): Remove declaration.
10127
6d4ee8c6
GB
101282015-03-24 Gary Benson <gbenson@redhat.com>
10129
10130 * linux-low.h: Include nat/linux-nat.h.
10131 * linux-low.c (iterate_over_lwps_args): New structure.
10132 (iterate_over_lwps_filter): New function.
10133 (iterate_over_lwps): Likewise.
10134 * linux-x86-low.c (update_debug_registers_callback):
10135 Update signature to what iterate_over_lwps expects.
10136 Remove PID check that iterate_over_lwps now performs.
10137 (x86_dr_low_set_addr): Use iterate_over_lwps.
10138 (x86_dr_low_set_control): Likewise.
10139
70a0bb6b
GB
101402015-03-24 Gary Benson <gbenson@redhat.com>
10141
10142 * linux-x86-low.c (x86_debug_reg_state): New function.
10143 (x86_linux_prepare_to_resume): Use the above.
10144
7b669087
GB
101452015-03-24 Gary Benson <gbenson@redhat.com>
10146
10147 * linux-low.c (current_lwp_ptid): New function.
10148 * linux-x86-low.c: Include nat/linux-nat.h.
10149 (x86_dr_low_get_addr): Use current_lwp_ptid.
10150 (x86_dr_low_get_control): Likewise.
10151 (x86_dr_low_get_status): Likewise.
10152
eef49a3d
PA
101532015-03-20 Pedro Alves <palves@redhat.com>
10154
10155 * tracepoint.c (cmd_qtstatus): Make "str" const.
10156
b2333d22
PA
101572015-03-20 Pedro Alves <palves@redhat.com>
10158
10159 * server.c (handle_general_set): Make "req_str" const.
10160
23f238d3
PA
101612015-03-19 Pedro Alves <palves@redhat.com>
10162
10163 * linux-low.c (linux_resume_one_lwp): Rename to ...
10164 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
10165 instead call perror_with_name.
10166 (check_ptrace_stopped_lwp_gone): New function.
10167 (linux_resume_one_lwp): Reimplement as wrapper around
10168 linux_resume_one_lwp_throw that swallows errors if the LWP is
10169 gone.
10170
91baf43f
PA
101712015-03-19 Pedro Alves <palves@redhat.com>
10172
10173 * linux-low.c (count_events_callback, select_event_lwp_callback):
10174 No longer check whether the thread has resume_stop as last resume
10175 kind.
10176
8bf3b159
PA
101772015-03-19 Pedro Alves <palves@redhat.com>
10178
10179 * linux-low.c (count_events_callback, select_event_lwp_callback):
10180 Use the lwp's status_pending_p field, not the thread's.
10181
b90fc188
PA
101822015-03-19 Pedro Alves <palves@redhat.com>
10183
10184 * linux-low.c (select_event_lwp_callback): Update comments to
10185 no longer mention SIGTRAP.
10186
464b0089
GB
101872015-03-18 Gary Benson <gbenson@redhat.com>
10188
10189 * server.c (handle_query): Do not report vFile:fstat as supported.
10190
aa9e327f
GB
101912015-03-11 Gary Benson <gbenson@redhat.com>
10192
10193 * hostio.c (sys/types.h): New include.
10194 (sys/stat.h): Likewise.
10195 (common-remote-fileio.h): Likewise.
10196 (handle_fstat): New function.
10197 (handle_vFile): Handle vFile:fstat packets.
aa9e327f 10198
791c0056
GB
101992015-03-11 Gary Benson <gbenson@redhat.com>
10200
10201 * configure.ac (AC_CHECK_MEMBERS): Add checks for
10202 struct stat.st_blocks and struct stat.st_blksize.
10203 * configure: Regenerate.
10204 * config.in: Likewise.
10205 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
10206 (OBS): Add common-remote-fileio.o.
10207 (common-remote-fileio.o): New rule.
10208
9a9df970
PA
102092015-03-09 Pedro Alves <palves@redhat.com>
10210
10211 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
10212 'struct sockaddr' pointer in 'accept' call.
10213
9eb1356e
PA
102142015-03-09 Pedro Alves <palves@redhat.com>
10215
10216 Revert:
10217 2015-03-07 Pedro Alves <palves@redhat.com>
10218 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
10219 or <winsock2.h> here. Instead include "gdb_socket.h".
10220 (remote_open): Use union gdb_sockaddr_u.
10221 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
10222 or <winsock2.h> here. Instead include "gdb_socket.h".
10223 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
10224 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
10225 or <sys/un.h>.
10226 (init_named_socket, gdb_agent_helper_thread): Use union
10227 gdb_sockaddr_u.
10228
aac331e4
PA
102292015-03-07 Pedro Alves <palves@redhat.com>
10230
10231 * configure.ac (build_warnings): Move
10232 -Wdeclaration-after-statement to the C-specific set.
10233 * configure: Regenerate.
10234
366c75fc
PA
102352015-03-07 Pedro Alves <palves@redhat.com>
10236
10237 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
10238 or <winsock2.h> here. Instead include "gdb_socket.h".
10239 (remote_open): Use union gdb_sockaddr_u.
10240 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
10241 or <winsock2.h> here. Instead include "gdb_socket.h".
10242 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
10243 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
10244 or <sys/un.h>.
10245 (init_named_socket, gdb_agent_helper_thread): Use union
10246 gdb_sockaddr_u.
10247
492d29ea
PA
102482015-03-07 Pedro Alves <palves@redhat.com>
10249
10250 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
10251 instead.
10252
60a191ed
YQ
102532015-03-06 Yao Qi <yao.qi@linaro.org>
10254
10255 * linux-aarch64-low.c (aarch64_insert_point): Use
10256 show_debug_regs as a boolean.
10257 (aarch64_remove_point): Likewise.
10258
f5771b1d
PA
102592015-03-05 Pedro Alves <palves@redhat.com>
10260
10261 * lynx-low.c (lynx_target_ops): Install NULL hooks for
10262 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
10263 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
10264 * nto-low.c (nto_target_ops): Likewise.
10265 * spu-low.c (spu_target_ops): Likewise.
10266 * win32-low.c (win32_target_ops): Likewise.
10267
3e572f71
PA
102682015-03-04 Pedro Alves <palves@redhat.com>
10269
72f4393d 10270 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
3e572f71
PA
10271 Decide whether a breakpoint triggered based on the SIGTRAP's
10272 siginfo.si_code.
72f4393d
L
10273 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
10274 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
3e572f71
PA
10275 (linux_low_filter_event): Check for breakpoints before checking
10276 watchpoints.
10277 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
10278 siginfo.si_code.
72f4393d
L
10279 (linux_stopped_by_sw_breakpoint)
10280 (linux_supports_stopped_by_sw_breakpoint)
10281 (linux_stopped_by_hw_breakpoint)
10282 (linux_supports_stopped_by_hw_breakpoint): New functions.
10283 (linux_target_ops): Install new target methods.
3e572f71 10284
1ec68e26
PA
102852015-03-04 Pedro Alves <palves@redhat.com>
10286
10287 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
10288 * server.c (swbreak_feature, hwbreak_feature): New globals.
10289 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
10290 (captured_main): Clear swbreak_feature and hwbreak_feature.
10291 * server.h (swbreak_feature, hwbreak_feature): Declare.
10292 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
10293 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
10294 supports_stopped_by_hw_breakpoint>: New fields.
10295 (target_supports_stopped_by_sw_breakpoint)
10296 (target_stopped_by_sw_breakpoint)
10297 (target_supports_stopped_by_hw_breakpoint)
10298 (target_stopped_by_hw_breakpoint): Declare.
10299
15c66dd6
PA
103002015-03-04 Pedro Alves <palves@redhat.com>
10301
10302 enum lwp_stop_reason -> enum target_stop_reason
10303 * linux-low.c (check_stopped_by_breakpoint): Adjust.
10304 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
10305 (linux_wait_1, stuck_in_jump_pad_callback)
10306 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
10307 (linux_stopped_by_watchpoint):
10308 * linux-low.h (enum lwp_stop_reason): Delete.
10309 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
10310 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
10311
98fc70d6
YQ
103122015-03-04 Yao Qi <yao.qi@linaro.org>
10313
10314 * Makefile.in (SFILES): Add linux-aarch64-low.c.
10315
dd2ac174
GB
103162015-03-03 Gary Benson <gbenson@redhat.com>
10317
10318 * hostio.c (handle_vFile): Fix prefix lengths.
10319
d68e53f4
MM
103202015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10321
10322 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
10323 ptr_bits.
10324
bf2d68ab
AA
103252015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
10326
10327 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
10328 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
10329 (clean): Add "rm -f" for above C files.
10330 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
10331 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
10332 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
10333 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
10334 * linux-s390-low.c (HWCAP_S390_VX): New macro.
10335 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
10336 (init_registers_s390x_vx_linux64)
10337 (init_registers_s390x_tevx_linux64)
10338 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
10339 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
10340 declarations.
10341 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
10342 (s390_store_vxrs_high): New functions.
10343 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
10344 NT_S390_VXRS_HIGH.
10345 (s390_arch_setup): Add logic for selecting one of the new target
10346 descriptions. Activate the new vector regsets if applicable.
10347 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
10348 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
10349 and init_registers_s390x_tevx_linux64.
10350
c966a859
PA
103512015-03-01 Pedro Alves <palves@redhat.com>
10352
10353 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
10354 parameter.
10355
4180215b
PA
103562015-02-27 Pedro Alves <palves@redhat.com>
10357
10358 * linux-x86-low.c (u_debugreg_offset): New function.
10359 (x86_linux_dr_get, x86_linux_dr_set): Use it.
10360
749bab01
PA
103612015-02-27 Pedro Alves <palves@redhat.com>
10362
10363 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
10364 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
10365 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
10366 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
10367 (ps_lsetfpregs, ps_getpid)
10368 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
10369 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
10370 (ps_lsetxregs, ps_plog): Declare.
10371
3c14e5a3
PA
103722015-02-27 Pedro Alves <palves@redhat.com>
10373
10374 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
10375 IP_AGENT_EXPORT_FUNC.
10376 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
10377 IP_AGENT_EXPORT_FUNC.
10378 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
10379 (IP_AGENT_EXPORT): Delete.
10380 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
10381 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
10382 (gdb_trampoline_buffer_error, collecting, gdb_collect)
10383 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
10384 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
10385 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
10386 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
10387 (traceframe_read_count, traceframe_write_count)
10388 (traceframes_created, trace_state_variables, get_raw_reg)
10389 (get_trace_state_variable_value, set_trace_state_variable_value)
10390 (ust_loaded, helper_thread_id, cmd_buf): Use
10391 IPA_SYM_EXPORTED_NAME.
10392 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
10393 (tracepoints) Use IP_AGENT_EXPORT_VAR.
10394 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
10395 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
10396 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
10397 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
10398 EXTERN_C_PUSH/EXTERN_C_POP.
10399 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
10400 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
10401 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
10402 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
10403 (traceframe_write_count, traceframe_read_count)
10404 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
10405 (about_to_request_buffer_space, get_trace_state_variable_value)
10406 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
10407 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
10408 EXTERN_C_PUSH/EXTERN_C_POP.
10409 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
10410 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
10411 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
10412 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
10413 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
10414 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
10415 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
10416 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
10417 Define.
10418 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
10419 (IP_AGENT_EXPORT_VAR_DECL): Define.
10420 (tracing): Declare.
10421 (gdb_agent_get_raw_reg): Declare.
10422
fe978cb0
PA
104232015-02-27 Tom Tromey <tromey@redhat.com>
10424 Pedro Alves <palves@redhat.com>
10425
10426 Rename symbols whose names are reserved C++ keywords throughout.
10427
3bc3d82a
PA
104282015-02-27 Pedro Alves <palves@redhat.com>
10429
10430 * Makefile.in (COMPILER): New, get it from autoconf.
10431 (CXX): Get from autoconf instead.
10432 (COMPILE.pre): Use COMPILER.
10433 (CC-LD): Rename to ...
10434 (CC_LD): ... this. Use COMPILER.
10435 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
10436 (CXX_FOR_TARGET): Default to g++ instead of gcc.
10437 * acinclude.m4: Include build-with-cxx.m4.
10438 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
10439 Disable -Werror by default if building in C++ mode.
10440 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
10441 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
10442 the C++ compiler. Save/restore CXXFLAGS too.
10443 * configure: Regenerate.
10444
07697489
PA
104452015-02-27 Pedro Alves <palves@redhat.com>
10446
10447 * acinclude.m4: Include libiberty.m4.
10448 * configure.ac: Call libiberty_INIT.
10449 * config.in, configure: Regenerate.
10450
9beb7c4e
PA
104512015-02-26 Pedro Alves <palves@redhat.com>
10452
10453 * linux-low.c (linux_wait_1): When incrementing the PC past a
10454 program breakpoint always use the_low_target.breakpoint_len as
10455 increment, rather than the maximum between that and
10456 the_low_target.decr_pc_after_break.
10457
8090aef2
PA
104582015-02-23 Pedro Alves <palves@redhat.com>
10459
10460 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
10461 thread was doing a step-over; always adjust the PC if
10462 we stepped over a permanent breakpoint.
10463 (linux_wait_1): If we stepped over breakpoint that was on top of a
10464 permanent breakpoint, manually advance the PC past it.
10465
bc9540e8
PA
104662015-02-23 Pedro Alves <palves@redhat.com>
10467
10468 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
10469 modes.
10470 (x86_fill_gregset, x86_store_gregset): Use it when handling
10471 $orig_eax.
10472
2db9a427
PA
104732015-02-20 Pedro Alves <palves@redhat.com>
10474
10475 * thread-db.c: Include "nat/linux-procfs.h".
10476 (thread_db_init): Skip listing new threads if the kernel supports
10477 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
10478
afa8d396
PA
104792015-02-20 Pedro Alves <palves@redhat.com>
10480
10481 * linux-low.c (status_pending_p_callback): Use ptid_match.
10482
c9587f88
AT
104832015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
10484
10485 PR breakpoints/16812
10486 * linux-low.c (wstatus_maybe_breakpoint): Remove.
10487 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
10488 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
10489
b05ec7a5
AT
104902015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
10491
10492 PR breakpoints/15956
10493 * tracepoint.c (cmd_qtinit): Add check for current_thread.
10494
d33501a5
MM
104952015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10496
10497 * linux-low.c (linux_low_btrace_conf): Print size.
10498 * server.c (handle_btrace_conf_general_set): New.
10499 (hanle_general_set): Call handle_btrace_conf_general_set.
10500 (handle_query): Report Qbtrace-conf:bts:size as supported.
10501
f4abbc16
MM
105022015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10503
10504 * linux-low.c (linux_low_enable_btrace): Update parameters.
10505 (linux_low_btrace_conf): New.
10506 (linux_target_ops)<to_btrace_conf>: Initialize.
10507 * server.c (current_btrace_conf): New.
10508 (handle_btrace_enable): Rename to ...
10509 (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
10510 to target_enable_btrace. Update comment. Update users.
10511 (handle_qxfer_btrace_conf): New.
10512 (qxfer_packets): Add btrace-conf entry.
10513 (handle_query): Report qXfer:btrace-conf:read as supported packet.
10514 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
10515 (target_ops)<read_btrace_conf>: New.
10516 (target_enable_btrace): Update parameters.
10517 (target_read_btrace_conf): New.
10518
043c3577
MM
105192015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10520
10521 * server.c (handle_btrace_general_set): Remove call to
10522 target_supports_btrace.
10523 (supported_btrace_packets): New.
10524 (handle_query): Call supported_btrace_packets.
10525 * target.h: include btrace-common.h.
10526 (btrace_target_info): Removed.
10527 (supports_btrace, target_supports_btrace): Update parameters.
10528
734b0e4b
MM
105292015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10530
10531 * Makefile.in (SFILES): Add common/btrace-common.c.
10532 (OBS): Add common/btrace-common.o.
10533 (btrace-common.o): Add build rules.
10534 * linux-low: Include btrace-common.h.
10535 (linux_low_read_btrace): Use struct btrace_data. Call
10536 btrace_data_init and btrace_data_fini.
10537
d6c146e9
PA
105382015-02-06 Pedro Alves <palves@redhat.com>
10539
10540 * thread-db.c (find_new_threads_callback): Add debug output.
10541
20ba1ce6
PA
105422015-02-04 Pedro Alves <palves@redhat.com>
10543
10544 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
10545 (resume_stopped_resumed_lwps): New function.
10546 (linux_wait_for_event_filtered): Use it.
10547
8cc73a39
SDJ
105482015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
10549
10550 * Makefile.in (SFILES): Add linux-personality.c.
10551 (linux-personality.o): New rule.
10552 * configure.srv (srv_linux_obj): Add linux-personality.o to the
10553 list of objects to be built.
10554 * linux-low.c: Include nat/linux-personality.h.
10555 (linux_create_inferior): Remove code to disable address space
10556 randomization (moved to ../nat/linux-personality.c). Create
10557 cleanup to disable address space randomization.
10558
fb23d554
SDJ
105592015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
10560
10561 * Makefile.in (posix-strerror.o): New rule.
10562 (mingw-strerror.o): Likewise.
10563 * configure: Regenerated.
10564 * configure.ac: Source file ../common/common.host. Initialize new
10565 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
10566
cdf43629
YQ
105672015-01-14 Yao Qi <yao@codesourcery.com>
10568
10569 * Makefile.in (SFILES): Add nat/ppc-linux.c.
10570 (ppc-linux.o): New rule.
10571 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
10572 * configure.ac: AC_CHECK_FUNCS(getauxval).
10573 * config.in: Re-generated.
10574 * configure: Re-generated.
10575 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
10576 ppc64_64bit_inferior_p
10577
514c5338
YQ
105782015-01-14 Yao Qi <yao@codesourcery.com>
10579
10580 * linux-ppc-low.c: Include "nat/ppc-linux.h".
10581 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
10582 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
10583 (PT_ORIG_R3, PT_TRAP): Likewise.
10584 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
10585 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
10586 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
10587
3368c1e5
JB
105882015-01-10 Joel Brobecker <brobecker@adacore.com>
10589
10590 * i387-fp.c (i387_cache_to_xsave): In look over
10591 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
10592 zmmh_low_space field by use of zmmh_high_space.
10593
582511be
PA
105942015-01-09 Pedro Alves <palves@redhat.com>
10595
10596 * linux-low.c (step_over_bkpt): Move higher up in the file.
10597 (handle_extended_wait): Don't store the stop_pc here.
10598 (get_stop_pc): Adjust comments and rename to ...
10599 (check_stopped_by_breakpoint): ... this. Record whether the LWP
10600 stopped for a software breakpoint or hardware breakpoint.
10601 (thread_still_has_status_pending_p): New function.
10602 (status_pending_p_callback): Use
10603 thread_still_has_status_pending_p. If the event is no longer
10604 interesting, resume the LWP.
10605 (handle_tracepoints): Add assert.
10606 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
10607 (wstatus_maybe_breakpoint): New function.
10608 (cancel_breakpoint): Delete function.
10609 (check_stopped_by_watchpoint): New function, factored out from
10610 linux_low_filter_event.
10611 (lp_status_maybe_breakpoint): Delete function.
10612 (linux_low_filter_event): Remove filter_ptid argument.
10613 Leave thread group exits pending here. Store the LWP's stop PC.
10614 Always leave events pending.
10615 (linux_wait_for_event_filtered): Pull all events out of the
10616 kernel, and leave them all pending.
10617 (count_events_callback, select_event_lwp_callback): Consider all
10618 events.
10619 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
10620 (select_event_lwp): Only give preference to the stepping LWP in
10621 all-stop mode. Adjust comments.
10622 (ignore_event): New function.
10623 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
10624 references to cancel_breakpoints. Adjust to renames. Also give
10625 equal priority to all LWPs that have had events in non-stop mode.
10626 If reporting a software breakpoint event, unadjust the LWP's PC.
10627 (linux_wait): If linux_wait_1 returned an ignored event, retry.
10628 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
10629 Adjust.
10630 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
10631 (resume_status_pending_p): Use thread_still_has_status_pending_p.
10632 (linux_stopped_by_watchpoint): Adjust.
10633 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
10634 * linux-low.h (enum lwp_stop_reason): New.
10635 (struct lwp_info) <stop_pc>: Adjust comment.
10636 <stopped_by_watchpoint>: Delete field.
10637 <stop_reason>: New field.
10638 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
10639 * mem-break.c (software_breakpoint_inserted_here)
10640 (hardware_breakpoint_inserted_here): New function.
10641 * mem-break.h (software_breakpoint_inserted_here)
10642 (hardware_breakpoint_inserted_here): Declare.
10643 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
10644 (cancel_breakpoints): Delete.
10645 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
10646 (upload_fast_traceframes): Remove references to
10647 cancel_breakpoints.
10648
a33e3959
PA
106492015-01-09 Pedro Alves <palves@redhat.com>
10650
10651 * thread-db.c (find_new_threads_callback): Ignore thread if the
10652 kernel thread ID is -1.
10653
8784d563
PA
106542015-01-09 Pedro Alves <palves@redhat.com>
10655
10656 * linux-low.c (linux_attach_fail_reason_string): Move to
10657 nat/linux-ptrace.c, and rename.
10658 (linux_attach_lwp): Update comment.
10659 (attach_proc_task_lwp_callback): New function.
10660 (linux_attach): Adjust to rename and use
10661 linux_proc_attach_tgid_threads.
10662 (linux_attach_fail_reason_string): Delete declaration.
10663
76f2b779
JB
106642015-01-01 Joel Brobecker <brobecker@adacore.com>
10665
10666 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
10667 * server.c (gdbserver_version): Likewise.
10668
fafcc06a
SDJ
106692014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
10670
10671 * remote-utils.c: Include ctype.h.
10672 (input_interrupt): Explicitly handle the case when the char
10673 received is the NUL byte. Improve the printing of non-ASCII
10674 characters.
10675
beed38b8
JB
106762014-12-16 Joel Brobecker <brobecker@adacore.com>
10677
10678 * linux-low.c (linux_low_filter_event): Update call to
10679 linux_enable_event_reporting following the addition of
10680 a new parameter to that function.
10681
bf330350
CU
106822014-12-16 Catalin Udma <catalin.udma@freescale.com>
10683
10684 PR server/17457
10685 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
10686 (AARCH64_FPCR_REGNO): Likewise.
10687 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
10688 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
10689 (aarch64_store_fpregset): Likewise.
10690
5227d625
JB
106912014-12-15 Joel Brobecker <brobecker@adacore.com>
10692
10693 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
10694 Remove FIXME comment about assumption about N.
10695
f93b65a0
JB
106962014-12-13 Joel Brobecker <brobecker@adacore.com>
10697
10698 * configure.ac: If large-file support is disabled in GDBserver,
10699 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
10700 * configure: Regenerate.
10701
e5a9158d
AA
107022014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
10703
10704 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
10705 warning upon ENODATA from ptrace.
10706 * linux-s390-low.c (s390_store_tdb): New.
10707 (s390_regsets): Add regset for NT_S390_TDB.
10708
feea5f36
AA
107092014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
10710
10711 * linux-low.c (regsets_store_inferior_registers): Skip regsets
10712 without a fill_function.
10713 * linux-s390-low.c (s390_fill_last_break): Remove.
10714 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
10715 (s390_arch_setup): Use regset's size instead of fill_function for
10716 loop end condition.
10717
098dbe61
AA
107182014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
10719
10720 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
10721 the regset's store function when ptrace returned an error.
10722 * regcache.c (get_thread_regcache): Invalidate register cache
10723 before fetching inferior's registers.
10724
28eef672
AA
107252014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
10726
10727 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
10728 while-loop as for-loop.
10729 (regsets_store_inferior_registers): Likewise.
10730
bdca27a2
YQ
107312014-11-28 Yao Qi <yao@codesourcery.com>
10732
10733 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
10734 * config.in, configure: Re-generate.
10735 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
10736 is defined.
10737
9c232dda
YQ
107382014-11-21 Yao Qi <yao@codesourcery.com>
10739
10740 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
10741 (AC_CHECK_HEADERS): Remove malloc.h.
10742 * configure: Re-generated.
10743 * config.in: Re-generated.
10744 * server.h: Don't include alloca.h and malloc.h.
10745 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
10746 Don't include malloc.h.
10747
43968415
JB
107482014-11-17 Joel Brobecker <brobecker@adacore.com>
10749
10750 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
10751 corresponding ERRNO check in same block.
10752
40e91bc7
PA
107532014-11-12 Pedro Alves <palves@redhat.com>
10754
10755 * server.c (cont_thread): Update comment.
10756 (start_inferior, attach_inferior): No longer clear cont_thread.
10757 (handle_v_cont): No longer set cont_thread.
10758 (captured_main): Clear cont_thread each time a GDB connects.
10759
c2c118cf
PA
107602014-11-12 Pedro Alves <palves@redhat.com>
10761
10762 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
10763 thread, and don't resume all threads if the Hc thread has exited.
10764
78708b7c
PA
107652014-11-12 Pedro Alves <palves@redhat.com>
10766
10767 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
10768 the process group instead of to a specific LWP.
10769
a2abc7de
PA
107702014-10-15 Pedro Alves <palves@redhat.com>
10771
10772 PR server/17487
10773 * win32-arm-low.c (arm_set_thread_context): Remove current_event
10774 parameter.
10775 (arm_set_thread_context): Delete.
10776 (the_low_target): Adjust.
10777 * win32-i386-low.c (debug_registers_changed)
10778 (debug_registers_used): Delete.
10779 (update_debug_registers_callback): New function.
10780 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
10781 needing to update their debug registers.
10782 (win32_get_current_dr): New function.
10783 (x86_dr_low_get_addr, x86_dr_low_get_control)
10784 (x86_dr_low_get_status): Fetch the debug register from the thread
10785 record's context.
10786 (i386_initial_stuff): Adjust.
10787 (i386_get_thread_context): Remove current_event parameter. Don't
10788 clear debug_registers_changed nor copy DR values to
10789 debug_reg_state.
10790 (i386_set_thread_context): Delete.
10791 (i386_prepare_to_resume): New function.
10792 (i386_thread_added): Mark the thread as needing to update irs
10793 debug registers.
10794 (the_low_target): Remove i386_set_thread_context and install
10795 i386_prepare_to_resume.
10796 * win32-low.c (win32_get_thread_context): Adjust.
10797 (win32_set_thread_context): Use SetThreadContext
10798 directly.
10799 (win32_prepare_to_resume): New function.
10800 (win32_require_context): New function, factored out from ...
10801 (thread_rec): ... this.
10802 (continue_one_thread): Call win32_prepare_to_resume on each thread
10803 we're about to continue.
10804 (win32_resume): Call win32_prepare_to_resume on the event thread.
10805 * win32-low.h (struct win32_thread_info)
10806 <debug_registers_changed>: New field.
10807 (struct win32_target_ops): Change prototype of set_thread_context,
10808 delete set_thread_context and add prepare_to_resume.
10809 (win32_require_context): New declaration.
10810
a442d071
GB
108112014-10-08 Gary Benson <gbenson@redhat.com>
10812
10813 * server.h: Do not include common-exceptions.h.
10814
6f1947e8
GB
108152014-10-08 Gary Benson <gbenson@redhat.com>
10816
10817 * server.h: Do not include cleanups.h.
10818
63b434a4
JH
108192014-09-30 James Hogan <james.hogan@imgtec.com>
10820
10821 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
10822 mips64-dsp-linux.c.
10823
c4d9ceb6
YQ
108242014-09-23 Yao Qi <yao@codesourcery.com>
10825
10826 * linux-low.c (lp_status_maybe_breakpoint): New function.
10827 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
10828 (count_events_callback): Likewise.
10829 (select_event_lwp_callback): Likewise.
10830 (cancel_breakpoints_callback): Likewise.
10831
89a5711c
DB
108322014-09-19 Don Breazeal <donb@codesourcery.com>
10833
10834 * linux-low.c (handle_extended_wait): Call
10835 linux_ptrace_get_extended_event.
10836 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
10837 linux_is_extended_waitstatus.
10838
bffc0964
JB
108392014-09-16 Joel Brobecker <brobecker@adacore.com>
10840
10841 * Makefile.in (CPPFLAGS): Define.
10842 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
10843 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
10844
0bfdf32f
GB
108452014-09-16 Gary Benson <gbenson@redhat.com>
10846
10847 * inferiors.h (current_inferior): Renamed as...
10848 (current_thread): New variable. All uses updated.
10849 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
10850 (maybe_move_out_of_jump_pad): Likewise.
10851 (cancel_breakpoint): Likewise.
10852 (linux_low_filter_event): Likewise.
10853 (wait_for_sigstop): Likewise.
10854 (linux_resume_one_lwp): Likewise.
10855 (need_step_over_p): Likewise.
10856 (start_step_over): Likewise.
10857 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
10858 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
10859 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
10860 and save_inferior as saved_thread.
10861 * regcache.c (get_thread_regcache): Renamed saved_inferior as
10862 saved_thread.
10863 (regcache_invalidate_thread): Likewise.
10864 * remote-utils.c (prepare_resume_reply): Likewise.
10865 * thread-db.c (thread_db_get_tls_address): Likewise.
10866 (disable_thread_event_reporting): Likewise.
10867 (remove_thread_event_breakpoints): Likewise.
10868 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
10869 as saved_thread.
10870 * target.h (set_desired_inferior): Renamed as...
10871 (set_desired_thread): New declaration. All uses updated.
10872 * server.c (myresume): Updated comment to reference thread instead
10873 of inferior.
10874 (handle_serial_event): Likewise.
10875 (handle_target_event): Likewise.
10876
361c8ade
GB
108772014-09-12 Tom Tromey <tromey@redhat.com>
10878 Gary Benson <gbenson@redhat.com>
10879
10880 * regcache.h: Include common-regcache.h.
10881 (regcache_read_pc): Don't declare.
10882 * regcache.c (get_thread_regcache_for_ptid): New function.
10883
bd9269f7
GB
108842014-09-11 Tom Tromey <tromey@redhat.com>
10885 Gary Benson <gbenson@redhat.com>
10886
10887 * symbol.c: New file.
10888 * Makefile.in (SFILES): Add symbol.c.
10889 (OBS): Add symbol.o.
10890
f8c1d06b
GB
108912014-09-11 Gary Benson <gbenson@redhat.com>
10892
10893 * target.c (target_stop_ptid, target_continue_ptid): New
10894 functions.
10895
721ec300
GB
108962014-09-11 Tom Tromey <tromey@redhat.com>
10897 Gary Benson <gbenson@redhat.com>
10898
10899 * target.h: Include target/target.h.
10900 * target.c (target_read_memory, target_read_uint32)
10901 (target_write_memory): New functions.
10902
c5e92cca
GB
109032014-09-11 Gary Benson <gbenson@redhat.com>
10904
10905 * server.h (debug_hw_points): Don't declare.
10906 * server.c (debug_hw_points): Don't define. Replace all uses
10907 with show_debug_regs.
10908 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
10909 all uses with show_debug_regs.
10910
2e4bb98a
EBM
109112014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
10912
10913 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
10914 endianness into account.
10915 (ppc_supply_ptrace_register): Likewise.
10916
ac740bc7
JH
109172014-09-03 James Hogan <james.hogan@imgtec.com>
10918
10919 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
10920 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
10921
97ea6506
GB
109222014-09-03 Gary Benson <gbenson@redhat.com>
10923
10924 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
10925 ALL_DEBUG_ADDRESS_REGISTERS.
10926
df7e5265
GB
109272014-09-02 Gary Benson <gbenson@redhat.com>
10928
10929 * i386-low.h: Renamed as...
10930 * x86-low.h: New file. All type, function and variable name
10931 prefixes changed from "i386_" to "x86_". All references updated.
10932 * i386-low.c: Renamed as...
10933 * x86-low.c: New file. All type, function and variable name
10934 prefixes changed from "i386_" to "x86_". All references updated.
10935
ed859da7
GB
109362014-09-02 Gary Benson <gbenson@redhat.com>
10937
10938 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
10939 (x86_linux_new_thread): Likewise.
10940
860789c7
GB
109412014-08-29 Gary Benson <gbenson@redhat.com>
10942
10943 * server.h (setjmp.h): Do not include.
10944 (toplevel): Do not declare.
10945 (common-exceptions.h): Include.
10946 (cleanups.h): Likewise.
10947 * server.c (toplevel): Do not define.
10948 (exit_code): New static global.
10949 (detach_or_kill_for_exit_cleanup): New function.
10950 (main): New function. Original main renamed to...
10951 (captured_main): New function.
10952 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
10953
ff55e1b5
GB
109542014-08-29 Gary Benson <gbenson@redhat.com>
10955
10956 * Makefile.in (SFILES): Add common/common-exceptions.c.
10957 (OBS): Add common-exceptions.o.
10958 (common-exceptions.o): New rule.
10959 * utils.c (prepare_to_throw_exception): New function.
10960
e9bcb658
GB
109612014-08-29 Gary Benson <gbenson@redhat.com>
10962
10963 * config.in: Regenerate.
10964 * configure: Likewise.
10965
e3180625
GB
109662014-08-29 Gary Benson <gbenson@redhat.com>
10967
10968 * Makefile.in (SFILES): Add common/cleanups.c.
10969 (OBS): cleanups.o.
10970 (cleanups.o): New rule.
10971
e3d6ba5d
GB
109722014-08-29 Gary Benson <gbenson@redhat.com>
10973
10974 * utils.c (internal_vwarning): New function.
10975
7096e886
GB
109762014-08-28 Gary Benson <gbenson@redhat.com>
10977
10978 * utils.h (fatal): Remove declaration.
10979 * utils.c (fatal): Remove function.
10980
14ce3192
GB
109812014-08-28 Gary Benson <gbenson@redhat.com>
10982
10983 * tracepoint.c (gdb_agent_init): Replace fatal with
10984 perror_with_name.
10985 (initialize_tracepoint): Likewise.
10986
50278d59
GB
109872014-08-28 Gary Benson <gbenson@redhat.com>
10988
10989 * remote-utils.c (remote_prepare): Replace fatal with error.
10990
aa96c426
GB
109912014-08-28 Gary Benson <gbenson@redhat.com>
10992
10993 * linux-low.c (linux_async): Replace fatal with warning.
10994 Tidy up and return.
10995 (linux_start_non_stop): Return -1 if linux_async failed.
10996
f7160e97
GB
109972014-08-28 Gary Benson <gbenson@redhat.com>
10998
10999 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
11000 gdb_assert.
11001 (i386_dr_low_get_addr): Remove vague comment.
11002 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
11003 gdb_assert.
11004
38e08fca
GB
110052014-08-28 Gary Benson <gbenson@redhat.com>
11006
11007 * inferiors.c (get_thread_process): Replace check with gdb_assert.
11008 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
11009 internal_error.
11010 (linux_resume_one_lwp): Likewise.
11011 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
11012 gdb_assert.
11013 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
11014 with internal_error.
11015 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
11016 (init_register_cache): Replace fatal with gdb_assert_not_reached.
11017 (find_register_by_name): Replace fatal with internal_error.
11018 (find_regno): Likewise.
11019 * tdesc.c (init_target_desc): Replace check with gdb_assert.
11020 * thread-db.c (thread_db_create_event): Likewise.
11021 (thread_db_load_search): Likewise.
11022 (try_thread_db_load_1): Likewise.
11023 * tracepoint.c (get_jump_space_head): Replace fatal with
11024 internal_error.
11025 (claim_trampoline_space): Likewise.
11026 (have_fast_tracepoint_trampoline_buffer): Likewise.
11027 (cmd_qtstart): Likewise.
11028 (stop_tracing): Likewise.
11029 (fast_tracepoint_collecting): Likewise.
11030 (target_malloc): Likewise.
11031 (download_tracepoint): Likewise.
11032 (download_trace_state_variables): Replace check with gdb_assert.
11033 (upload_fast_traceframes): Replace fatal with internal_error.
11034
34abf635
GB
110352014-08-19 Tom Tromey <tromey@redhat.com>
11036 Gary Benson <gbenson@redhat.com>
11037
11038 * Makefile.in (SFILES): Add common/common-debug.c.
11039 (OBS): Add common-debug.o.
11040 (common-debug.o): New rule.
11041 * debug.h (debug_printf): Don't declare.
11042 * debug.c (debug_printf): Renamed and rewritten as...
11043 (debug_vprintf): New function.
11044
f6e94d78
GB
110452014-08-19 Gary Benson <gbenson@redhat.com>
11046
11047 * utils.h: Do not include print-utils.h.
11048
9239eeab
GB
110492014-08-19 Tom Tromey <tromey@redhat.com>
11050 Gary Benson <gbenson@redhat.com>
11051
11052 * server.h: Add static assertion.
11053 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
11054
ef87c8bb
GB
110552014-08-19 Tom Tromey <tromey@redhat.com>
11056 Gary Benson <gbenson@redhat.com>
11057
11058 * Makefile.in (SFILES): Add common/errors.c.
11059 (OBS): Add errors.o.
11060 (IPA_OBS): Add errors-ipa.o.
11061 (errors.o): New rule.
11062 (errors-ipa.o): Likewise.
11063 * utils.h (perror_with_name, error, warning): Don't declare.
11064 * utils.c (warning): Renamed and rewritten as...
11065 (vwarning): New function.
11066 (error): Renamed and rewritten as...
11067 (verror): New function.
11068 (internal_error): Renamed and rewritten as...
11069 (internal_verror): New function.
11070
bb974a24
GB
110712014-08-07 Gary Benson <gbenson@redhat.com>
11072
11073 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
11074 * configure: Regenerate.
11075 * config.in: Likewise.
11076 * server.h: Do not include errno.h.
11077 * event-loop.c: Likewise.
11078 * hostio-errno.c: Likewise.
11079 * linux-low.c: Likewise.
11080 * remote-utils.c: Likewise.
11081 * spu-low.c: Likewise.
11082 * utils.c: Likewise.
11083 * gdbreplay.c: Unconditionally include errno.h.
11084
6d3d12eb
GB
110852014-08-07 Gary Benson <gbenson@redhat.com>
11086
11087 * server.h: Do not include string.h.
11088 * event-loop.c: Likewise.
11089 * linux-low.c: Likewise.
11090 * regcache.c: Likewise.
11091 * remote-utils.c: Likewise.
11092 * spu-low.c: Likewise.
11093 * utils.c: Likewise.
11094
dccbb609
GB
110952014-08-07 Gary Benson <gbenson@redhat.com>
11096
11097 * server.h: Do not include gdb_assert.h.
11098
e76df0d0
GB
110992014-08-07 Gary Benson <gbenson@redhat.com>
11100
11101 * server.h: Do not include common-utils.h.
11102
4cb9c816
GB
111032014-08-07 Gary Benson <gbenson@redhat.com>
11104
11105 * server.h: Do not include ptid.h.
11106 * notif.h: Likewise.
11107
3995eeee
GB
111082014-08-07 Gary Benson <gbenson@redhat.com>
11109
11110 * server.h: Do not include gdb_locale.h.
11111
cb9f1a9b
GB
111122014-08-07 Gary Benson <gbenson@redhat.com>
11113
11114 * server.h: Do not include gdb/signals.h.
11115 * win32-low.c: Likewise.
11116
a5fceff8
GB
111172014-08-07 Gary Benson <gbenson@redhat.com>
11118
11119 * server.h: Do not include pathmax.h.
11120
b9391142
GB
111212014-08-07 Gary Benson <gbenson@redhat.com>
11122
11123 * server.h: Do not include libiberty.h.
11124 * linux-bfin-low.c: Likewise.
11125
0e443c87
GB
111262014-08-07 Gary Benson <gbenson@redhat.com>
11127
11128 * server.h: Do not include ansidecl.h.
11129
8ebb3f56
GB
111302014-08-07 Gary Benson <gbenson@redhat.com>
11131
11132 * linux-x86-low.c: Do not include stddef.h.
11133 * lynx-ppc-low.c: Likewise.
11134 * tracepoint.c: Likewise.
11135
8980bdf6
GB
111362014-08-07 Gary Benson <gbenson@redhat.com>
11137
11138 * server.h: Do not include stdarg.h.
11139 * nto-low.c: Likewise.
11140
d7096f71
GB
111412014-08-07 Gary Benson <gbenson@redhat.com>
11142
11143 * server.h: Do not include stdlib.h.
11144 * inferiors.c: Likewise.
11145 * linux-low.c: Likewise.
11146 * regcache.c: Likewise.
11147 * spu-low.c: Likewise.
11148 * tracepoint.c: Likewise.
11149 * utils.c: Likewise.
11150
d02f550d
GB
111512014-08-07 Gary Benson <gbenson@redhat.com>
11152
11153 * server.h: Do not include stdio.h.
11154 * linux-low.c: Likewise.
11155 * remote-utils.c: Likewise.
11156 * spu-low.c: Likewise.
11157 * utils.c: Likewise.
11158 * wincecompat.c: Likewise.
11159
87f6c4e3
GB
111602014-08-06 Gary Benson <gbenson@redhat.com>
11161
11162 * regcache.c (init_register_cache): Move conditionals inside if.
11163
7089dca4
GB
111642014-08-06 Gary Benson <gbenson@redhat.com>
11165
11166 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
11167
462f517e
GB
111682014-07-31 Gary Benson <gbenson@redhat.com>
11169
11170 * ax.h: Do not include server.h.
11171 * gdbthread.h: Likewise.
11172 * lynx-low.h: Likewise.
11173 * notif.h: Likewise.
11174
976411d6
GB
111752014-07-30 Gary Benson <gbenson@redhat.com>
11176
11177 * server.h: Include common-defs.h.
11178 Do not include config.h or build-gnulib-gdbserver/config.h.
11179
d41f6d8e
GB
111802014-07-30 Gary Benson <gbenson@redhat.com>
11181
11182 * hostio-errno.c: Move server.h to top of includes list.
11183 * inferiors.c: Likewise.
11184 * linux-x86-low.c: Likewise.
11185 * notif.c: Include server.h.
11186
314c6a35
TT
111872014-07-24 Tom Tromey <tromey@redhat.com>
11188 Gary Benson <gbenson@redhat.com>
11189
11190 * server.h (CORE_ADDR): Now unsigned.
11191
69ff6be5
PA
111922014-07-16 Pedro Alves <palves@redhat.com>
11193
11194 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
11195
ce9e3fe7
PA
111962014-07-15 Pedro Alves <palves@redhat.com>
11197
11198 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
11199 copy.
11200
e76126e8
PA
112012014-07-11 Pedro Alves <palves@redhat.com>
11202
11203 * linux-low.c (kill_wait_lwp): New function, based on
11204 kill_one_lwp_callback, but use my_waitpid directly.
11205 (kill_one_lwp_callback, linux_kill): Use it.
11206
8e9db26e
PA
112072014-06-23 Pedro Alves <palves@redhat.com>
11208
11209 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
11210 before setting DR0..DR3.
11211
698b3e08
GB
112122014-06-20 Gary Benson <gbenson@redhat.com>
11213
11214 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
11215 * configure: Regenerated.
11216 * config.in: Likewise.
11217
125f8a3d
GB
112182014-06-20 Gary Benson <gbenson@redhat.com>
11219
11220 * Makefile.in (SFILES): Update locations for files moved
11221 from common to nat.
11222 (object file files): Reordered.
11223
42995dbd
GB
112242014-06-20 Gary Benson <gbenson@redhat.com>
11225
11226 * i386-low.h (i386_dr_low_can_set_addr): Removed.
11227 (i386_dr_low_set_addr): Likewise.
11228 (i386_dr_low_get_addr): Likewise.
11229 (i386_dr_low_can_set_control): Likewise.
11230 (i386_dr_low_set_control): Likewise.
11231 (i386_dr_low_get_control): Likewise.
11232 (i386_dr_low_get_status): Likewise.
11233 (i386_get_debug_register_length): Likewise.
11234 * linux-x86-low.c (i386_dr_low_set_addr):
11235 Changed signature. Made static.
11236 (i386_dr_low_get_addr): Likewise.
11237 (i386_dr_low_set_control): Likewise.
11238 (i386_dr_low_get_control): Likewise.
11239 (i386_dr_low_get_status): Likewise.
11240 (i386_dr_low): New global variable.
11241 * win32-i386-low.c (i386_dr_low_set_addr):
11242 Changed signature. Made static.
11243 (i386_dr_low_get_addr): Likewise.
11244 (i386_dr_low_set_control): Likewise.
11245 (i386_dr_low_get_control): Likewise.
11246 (i386_dr_low_get_status): Likewise.
11247 (i386_dr_low): New global variable.
11248
e1d2394b
MS
112492014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
11250
11251 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
11252 * Makefile.in (AR, AR_FLAGS): Define.
11253 * configure: Regenerate.
11254
3a8ee006
GB
112552014-06-19 Gary Benson <gbenson@redhat.com>
11256
11257 * Makefile.in (i386-dregs.o): New rule.
11258 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
11259 * i386-low.c (target.h): Remove include.
11260 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
11261 (DR_CONTROL_SHIFT): Likewise.
11262 (DR_CONTROL_SIZE): Likewise.
11263 (DR_RW_EXECUTE): Likewise.
11264 (DR_RW_WRITE): Likewise.
11265 (DR_RW_READ): Likewise.
11266 (DR_RW_IORW): Likewise.
11267 (DR_LEN_1): Likewise.
11268 (DR_LEN_2): Likewise.
11269 (DR_LEN_4): Likewise.
11270 (DR_LEN_8): Likewise.
11271 (DR_LOCAL_ENABLE_SHIFT): Likewise.
11272 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
11273 (DR_ENABLE_SIZE): Likewise.
11274 (DR_LOCAL_SLOWDOWN): Likewise.
11275 (DR_GLOBAL_SLOWDOWN): Likewise.
11276 (DR_CONTROL_RESERVED): Likewise.
11277 (I386_DR_CONTROL_MASK): Likewise.
11278 (I386_DR_VACANT): Likewise.
11279 (I386_DR_LOCAL_ENABLE): Likewise.
11280 (I386_DR_GLOBAL_ENABLE): Likewise.
11281 (I386_DR_DISABLE): Likewise.
11282 (I386_DR_SET_RW_LEN): Likewise.
11283 (I386_DR_GET_RW_LEN): Likewise.
11284 (I386_DR_WATCH_HIT): Likewise.
11285 (i386_wp_op_t): Likewise.
11286 (i386_show_dr): Likewise.
11287 (i386_length_and_rw_bits): Likewise.
11288 (i386_insert_aligned_watchpoint): Likewise.
11289 (i386_remove_aligned_watchpoint): Likewise.
11290 (i386_handle_nonaligned_watchpoint): Likewise.
11291 i386_update_inferior_debug_regs(): Likewise.
11292 (i386_dr_insert_watchpoint): Likewise.
11293 (i386_dr_remove_watchpoint): Likewise.
11294 (i386_dr_region_ok_for_watchpoint): Likewise.
11295 (i386_dr_stopped_data_address): Likewise.
11296 (i386_dr_stopped_by_watchpoint): Likewise.
11297
8f26655c
GB
112982014-06-19 Gary Benson <gbenson@redhat.com>
11299
11300 * i386-low.c (i386_dr_show): Renamed to
11301 i386_show_dr and made static. All uses updated.
11302 (i386_dr_length_and_rw_bits): Renamed to
11303 i386_length_and_rw_bits and made static.
11304 All uses updated.
11305 (i386_dr_insert_aligned_watchpoint): Renamed to
11306 i386_insert_aligned_watchpoint and made static.
11307 All uses updated.
11308 (i386_dr_remove_aligned_watchpoint): Renamed to
11309 i386_remove_aligned_watchpoint and made static.
11310 All uses updated.
11311 (i386_dr_update_inferior_debug_regs): Renamed to
11312 i386_update_inferior_debug_regs and made static.
11313 All uses updated.
11314
b9228891
GB
113152014-06-18 Gary Benson <gbenson@redhat.com>
11316
5171def3
GB
11317 * i386-low.h (i386_dr_low_can_set_addr): New macro.
11318 (i386_dr_low_can_set_control): Likewise.
11319 (i386_get_debug_register_length): Likewise.
11320 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
11321 (i386_dr_low_can_set_control): Likewise.
11322 (i386_get_debug_register_length): Likewise.
11323
113242014-06-17 Gary Benson <gbenson@redhat.com>
11325
b9228891
GB
11326 * i386-low.h (i386-dregs.h): New include.
11327 (DR_FIRSTADDR): Now in i386-dregs.h.
11328 (DR_LASTADDR): Likewise.
11329 (DR_NADDR): Likewise.
11330 (DR_STATUS): Likewise.
11331 (DR_CONTROL): Likewise.
11332 (i386_debug_reg_state): Likewise.
11333 (i386_dr_insert_watchpoint): Likewise.
11334 (i386_dr_remove_watchpoint): Likewise.
11335 (i386_dr_region_ok_for_watchpoint): Likewise.
11336 (i386_dr_stopped_data_address): Likewise.
11337 (i386_dr_stopped_by_watchpoint): Likewise.
11338 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
11339
4be83cc2
GB
113402014-06-18 Gary Benson <gbenson@redhat.com>
11341
11342 * i386-low.h (i386_low_insert_watchpoint): Renamed to
11343 i386_dr_insert_watchpoint.
11344 (i386_low_remove_watchpoint): Renamed to
11345 i386_dr_remove_watchpoint.
11346 (i386_low_region_ok_for_watchpoint): Renamed to
11347 i386_dr_region_ok_for_watchpoint.
11348 (i386_low_stopped_data_address): Renamed to
11349 i386_dr_stopped_data_address.
11350 (i386_low_stopped_by_watchpoint): Renamed to
11351 i386_dr_stopped_by_watchpoint.
11352 * i386-low.c (i386_show_dr): Renamed to
11353 i386_dr_show and made nonstatic. All uses updated.
11354 (i386_length_and_rw_bits): Renamed to
11355 i386_dr_length_and_rw_bits and made nonstatic.
11356 All uses updated.
11357 (i386_insert_aligned_watchpoint): Renamed to
11358 i386_dr_insert_aligned_watchpoint and made nonstatic.
11359 All uses updated.
11360 (i386_remove_aligned_watchpoint): Renamed to
11361 i386_dr_remove_aligned_watchpoint and made nonstatic.
11362 All uses updated.
11363 (i386_update_inferior_debug_regs): Renamed to
11364 i386_dr_update_inferior_debug_regs and made nonstatic.
11365 All uses updated.
11366 (i386_low_insert_watchpoint): Renamed to
11367 i386_dr_insert_watchpoint. All uses updated.
11368 (i386_low_remove_watchpoint): Renamed to
11369 i386_dr_remove_watchpoint. All uses updated.
11370 (i386_low_region_ok_for_watchpoint): Renamed to
11371 i386_dr_region_ok_for_watchpoint. All uses updated.
11372 (i386_low_stopped_data_address): Renamed to
11373 i386_dr_stopped_data_address. All uses updated.
11374 (i386_low_stopped_by_watchpoint): Renamed to
11375 i386_dr_stopped_by_watchpoint. All uses updated.
11376
131aa0d4
GB
113772014-06-18 Gary Benson <gbenson@redhat.com>
11378
11379 * i386-low.c (i386_dr_low_can_set_addr): New macro.
11380 (i386_dr_low_can_set_control): Likewise.
11381 (i386_insert_aligned_watchpoint): New check.
11382
d9305f7f
GB
113832014-06-18 Gary Benson <gbenson@redhat.com>
11384
11385 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
11386 Renamed to state.
11387
e927c9fc
GB
113882014-06-18 Gary Benson <gbenson@redhat.com>
11389
11390 * i386-low.c (i386_length_and_rw_bits): Use internal_error
11391 instead of fatal and error.
11392 (i386_handle_nonaligned_watchpoint): Likewise.
11393
1b6d4134
GB
113942014-06-18 Gary Benson <gbenson@redhat.com>
11395
11396 * i386-low.c (i386_get_debug_register_length): New macro.
11397 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
11398 (i386_show_dr): Use debug_printf instead of fprintf. Use
11399 phex to format values.
11400
6e62758f
GB
114012014-06-18 Gary Benson <gbenson@redhat.com>
11402
11403 * i386-low.h: Comment changes.
11404 * i386-low.c: Likewise.
11405
fc6e2f03
GB
114062014-06-18 Gary Benson <gbenson@redhat.com>
11407
11408 * i386-low.c: Whitespace changes.
11409
f9d1eeed
TT
114102014-06-12 Tom Tromey <tromey@redhat.com>
11411
11412 * utils.c (freeargv): Remove.
11413
0b04e523
TT
114142014-06-12 Tom Tromey <tromey@redhat.com>
11415
11416 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
11417 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
11418 (parse_debug_format_options): Likewise.
11419 (gdbserver_usage): Likewise.
11420 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
11421 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
11422 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
11423 against libiberty.
11424 ($(LIBGNU)): Depend on libiberty.
11425 (all-lib): Recurse into all subdirs.
11426 (install-only): Invoke "install" target in subdirs.
11427 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
11428 targets.
11429 * configure: Rebuild.
11430 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
11431 for vasprintf, vsnprintf, or gettimeofday.
11432 * configure.srv: Don't add safe-ctype.o or lbasename.o to
11433 srv_tgtobj.
11434
270c9937
JB
114352014-06-05 Joel Brobecker <brobecker@adacore.com>
11436
11437 * development.sh: Delete.
11438 * Makefile.in (config.status): Adjust dependency on development.sh.
11439 * configure.ac: Adjust development.sh source call.
11440 * configure: Regenerate.
11441
0a261ed8
PA
114422014-06-02 Pedro Alves <palves@redhat.com>
11443
11444 * ax.c (gdb_free_agent_expr): New function.
11445 * ax.h (gdb_free_agent_expr): New declaration.
11446 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
11447 list.
11448 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
11449 static.
11450 (clear_breakpoint_conditions_and_commands): New function.
11451 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
11452 (clear_breakpoint_conditions_and_commands): New declaration.
11453
e9dae05e
RR
114542014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11455
11456 * linux-aarch64-low.c (asm/ptrace.h): Include.
11457
5876f503
JK
114582014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11459
11460 Fix TLS access for -static -pthread.
11461 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
11462 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
11463 (thread_db_load_search, try_thread_db_load_1): Initialize it.
11464
802e8e6d
PA
114652014-05-20 Pedro Alves <palves@redhat.com>
11466
11467 * linux-aarch64-low.c (aarch64_insert_point)
11468 (aarch64_remove_point): No longer check whether the type is
11469 supported here. Adjust to new interface.
11470 (the_low_target): Install aarch64_supports_z_point_type as
11471 supports_z_point_type method.
11472 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
11473 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
11474 instead of a Z packet char. Adjust.
11475 (arm_supports_z_point_type): New function.
11476 (arm_insert_point, arm_remove_point): Adjust to new interface.
11477 (the_low_target): Install arm_supports_z_point_type.
11478 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
11479 (cris_insert_point, cris_remove_point): Adjust to new interface.
11480 Don't check whether the type is supported here.
11481 (the_low_target): Install cris_supports_z_point_type.
11482 * linux-low.c (linux_supports_z_point_type): New function.
11483 (linux_insert_point, linux_remove_point): Adjust to new interface.
11484 * linux-low.h (struct linux_target_ops) <insert_point,
11485 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
11486 raw_breakpoint pointer parameter.
11487 <supports_z_point_type>: New method.
11488 * linux-mips-low.c (mips_supports_z_point_type): New function.
11489 (mips_insert_point, mips_remove_point): Adjust to new interface.
11490 Use mips_supports_z_point_type.
11491 (the_low_target): Install mips_supports_z_point_type.
11492 * linux-ppc-low.c (the_low_target): Install NULL as
11493 supports_z_point_type method.
11494 * linux-s390-low.c (the_low_target): Install NULL as
11495 supports_z_point_type method.
11496 * linux-sparc-low.c (the_low_target): Install NULL as
11497 supports_z_point_type method.
11498 * linux-x86-low.c (x86_supports_z_point_type): New function.
11499 (x86_insert_point): Adjust to new insert_point interface. Use
11500 insert_memory_breakpoint. Adjust to new
11501 i386_low_insert_watchpoint interface.
11502 (x86_remove_point): Adjust to remove_point interface. Use
11503 remove_memory_breakpoint. Adjust to new
11504 i386_low_remove_watchpoint interface.
11505 (the_low_target): Install x86_supports_z_point_type.
11506 * lynx-low.c (lynx_target_ops): Install NULL as
11507 supports_z_point_type callback.
11508 * nto-low.c (nto_supports_z_point_type): New.
11509 (nto_insert_point, nto_remove_point): Adjust to new interface.
11510 (nto_target_ops): Install nto_supports_z_point_type.
11511 * mem-break.c: Adjust intro comment.
11512 (struct raw_breakpoint) <raw_type, size>: New fields.
11513 <inserted>: Update comment.
11514 <shlib_disabled>: Delete field.
11515 (enum bkpt_type) <gdb_breakpoint>: Delete value.
11516 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
11517 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
11518 (raw_bkpt_type_to_target_hw_bp_type): New function.
11519 (find_enabled_raw_code_breakpoint_at): New function.
11520 (find_raw_breakpoint_at): New type and size parameters. Use them.
11521 (insert_memory_breakpoint): New function, based off
11522 set_raw_breakpoint_at.
11523 (remove_memory_breakpoint): New function.
11524 (set_raw_breakpoint_at): Reimplement.
11525 (set_breakpoint): New, based on set_breakpoint_at.
11526 (set_breakpoint_at): Reimplement.
11527 (delete_raw_breakpoint): Go through the_target->remove_point
11528 instead of assuming memory breakpoints.
11529 (find_gdb_breakpoint_at): Delete.
11530 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
11531 (find_gdb_breakpoint): New function.
11532 (set_gdb_breakpoint_at): Delete.
11533 (z_type_supported): New function.
11534 (set_gdb_breakpoint_1): New function, loosely based off
11535 set_gdb_breakpoint_at.
11536 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
11537 (delete_gdb_breakpoint_at): Delete.
11538 (delete_gdb_breakpoint_1): New function, loosely based off
11539 delete_gdb_breakpoint_at.
11540 (delete_gdb_breakpoint): New function.
11541 (clear_gdb_breakpoint_conditions): Rename to ...
11542 (clear_breakpoint_conditions): ... this. Don't handle a NULL
11543 breakpoint.
11544 (add_condition_to_breakpoint): Make static.
11545 (add_breakpoint_condition): Take a struct breakpoint pointer
11546 instead of an address. Adjust.
11547 (gdb_condition_true_at_breakpoint): Rename to ...
11548 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
11549 z_type parameter.
11550 (gdb_condition_true_at_breakpoint): Reimplement.
11551 (add_breakpoint_commands): Take a struct breakpoint pointer
11552 instead of an address. Adjust.
11553 (gdb_no_commands_at_breakpoint): Rename to ...
11554 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
11555 parameter. Return true if no breakpoint was found. Change debug
11556 output.
11557 (gdb_no_commands_at_breakpoint): Reimplement.
11558 (run_breakpoint_commands): Rename to ...
11559 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
11560 and change return type to boolean.
11561 (run_breakpoint_commands): New function.
11562 (gdb_breakpoint_here): Also check for Z1 breakpoints.
11563 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
11564 breakpoint. Go through the_target->remove_point instead of
11565 assuming memory breakpoint.
11566 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
11567 software and hardware breakpoints.
11568 (reinsert_raw_breakpoint): Go through the_target->insert_point
11569 instead of assuming memory breakpoint.
11570 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
11571 software and hardware breakpoints.
11572 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
11573 Check both software and hardware breakpoints.
11574 (validate_inserted_breakpoint): Assert the breakpoint is a
11575 software breakpoint. Set the inserted flag to -1 instead of
11576 setting shlib_disabled.
11577 (delete_disabled_breakpoints): Adjust.
11578 (validate_breakpoints): Only validate software breakpoints.
11579 Adjust to inserted flag change.
11580 (check_mem_read, check_mem_write): Skip breakpoint types other
11581 than software breakpoints. Adjust to inserted flag change.
11582 * mem-break.h (enum raw_bkpt_type): New enum.
11583 (raw_breakpoint, struct process_info): Forward declare.
11584 (Z_packet_to_target_hw_bp_type): Delete declaration.
11585 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
11586 (set_gdb_breakpoint, delete_gdb_breakpoint)
11587 (clear_breakpoint_conditions): New declarations.
11588 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
11589 (breakpoint_inserted_here): Update comment.
11590 (add_breakpoint_condition, add_breakpoint_commands): Replace
11591 address parameter with a breakpoint pointer parameter.
11592 (gdb_breakpoint_here): Update comment.
11593 (delete_gdb_breakpoint_at): Delete.
11594 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
11595 * server.c (process_point_options): Take a struct breakpoint
11596 pointer instead of an address. Adjust.
11597 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
11598 delete_gdb_breakpoint.
11599 * spu-low.c (spu_target_ops): Install NULL as
11600 supports_z_point_type method.
11601 * target.h: Include mem-break.h.
11602 (struct target_ops) <prepare_to_access_memory>: Update comment.
11603 <supports_z_point_type>: New field.
11604 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
11605 instead of a char. Also take a raw breakpoint pointer.
11606 * win32-arm-low.c (the_low_target): Install NULL as
11607 supports_z_point_type.
11608 * win32-i386-low.c (i386_supports_z_point_type): New function.
11609 (i386_insert_point, i386_remove_point): Adjust to new interface.
11610 (the_low_target): Install i386_supports_z_point_type.
11611 * win32-low.c (win32_supports_z_point_type): New function.
11612 (win32_insert_point, win32_remove_point): Adjust to new interface.
11613 (win32_target_ops): Install win32_supports_z_point_type.
11614 * win32-low.h (struct win32_target_ops):
11615 <supports_z_point_type>: New method.
11616 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
11617 instead of a char. Also take a raw breakpoint pointer.
11618
932539e3
PA
116192014-05-20 Pedro Alves <palves@redhat.com>
11620
11621 * mem-break.h: Include break-common.h.
11622 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
11623 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
11624 (Z_packet_to_target_hw_bp_type): New declaration.
11625 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
11626 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
11627 (Z_PACKET_ACCESS_WP): Delete macros.
11628 (Z_packet_to_hw_type): Delete function.
11629 * i386-low.h: Don't include break-common.h here.
11630 (Z_packet_to_hw_type): Delete declaration.
11631 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
11632 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
11633 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
11634 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
11635 * linux-aarch64-low.c: Don't include break-common.h here.
11636 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
11637 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
11638 (Z_packet_to_target_hw_bp_type): Delete function.
11639 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
11640 function.
11641 (mips_insert_point, mips_remove_point): Use
11642 Z_packet_to_target_hw_bp_type.
11643
4ff0d3d8
PA
116442014-05-20 Pedro Alves <palves@redhat.com>
11645
11646 * linux-aarch64-low.c: Include break-common.h.
11647 (enum target_point_type): Delete.
11648 (Z_packet_to_point_type): Rename to ...
11649 (Z_packet_to_target_hw_bp_type): ... this, and return a
11650 target_hw_bp_type instead.
11651 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
11652 instead of an enum target_point_type.
11653 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
11654 breakpoint type.
11655 (aarch64_dr_state_insert_one_point)
11656 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
11657 (aarch64_handle_aligned_watchpoint)
11658 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
11659 Take an enum target_hw_bp_type instead of an enum
11660 target_point_type.
11661 (aarch64_supports_z_point_type): New function.
11662 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
11663 use Z_packet_to_target_hw_bp_type.
11664
786dc519
JB
116652014-05-20 Joel Brobecker <brobecker@adacore.com>
11666
11667 * configure.ac: Only use -Werror by default when DEVELOPMENT
11668 is true.
11669 * configure: Regenerate.
11670
9e0aa64f
JK
116712014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
11672
11673 Fix gdbserver qGetTLSAddr for x86_64 -m32.
11674 * linux-x86-low.c (X86_64_USER_REGS): New.
11675 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
11676
2b577b92
YQ
116772014-04-28 Yao Qi <yao@codesourcery.com>
11678
11679 * Makefile.in (i386-avx512.c): Fix the typo of generated file
11680 name.
11681
94611da2
PA
116822014-04-25 Pedro Alves <palves@redhat.com>
11683
11684 PR server/16255
11685 * linux-low.c (linux_attach_fail_reason_string): New function.
11686 (linux_attach_lwp): Delete.
11687 (linux_attach_lwp_1): Rename to ...
11688 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
11689 argument. Remove "initial" parameter. Return int instead of
11690 void. Don't error or warn here.
11691 (linux_attach): Adjust to call linux_attach_lwp. Call error on
11692 failure to attach to the tgid. Call warning when failing to
11693 attach to an lwp.
11694 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
11695 argument. Remove "initial" parameter. Return int instead of
11696 void. Don't error or warn here.
11697 (linux_attach_fail_reason_string): New declaration.
11698 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
11699 interface change. Use linux_attach_fail_reason_string.
11700
01f9f808
MS
117012014-04-24 Michael Sturm <michael.sturm@mintel.com>
11702 Walfred Tedeschi <walfred.tedeschi@intel.com>
11703
11704 * Makefile.in: Added rules to handle new files
11705 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
11706 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
11707 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
11708 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
11709 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
11710 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
11711 x32-avx512-linux.o.
11712 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
11713 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
11714 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
11715 i386/x32-avx512.xml.
11716 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
11717 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
11718 i386/x32-avx512-linux.xml.
11719 * i387-fp.c (num_avx512_k_registers): New constant for number
11720 of K registers.
11721 (num_avx512_zmmh_low_registers): New constant for number of
11722 lower ZMM registers (0-15).
11723 (num_avx512_zmmh_high_registers): New constant for number of
11724 higher ZMM registers (16-31).
11725 (num_avx512_ymmh_registers): New contant for number of higher
11726 YMM registers (ymm16-31 added by avx521 on x86_64).
11727 (num_avx512_xmm_registers): New constant for number of higher
11728 XMM registers (xmm16-31 added by AVX512 on x86_64).
11729 (struct i387_xsave): Add space for AVX512 registers.
11730 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
11731 Add code to handle AVX512 registers.
11732 (i387_xsave_to_cache): Add code to handle AVX512 registers.
11733 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
11734 prototypei from generated file.
11735 (tdesc_amd64_avx512_linux): Likewise.
11736 (init_registers_x32_avx512_linux): Likewise.
11737 (tdesc_x32_avx512_linux): Likewise.
11738 (init_registers_i386_avx512_linux): Likewise.
11739 (tdesc_i386_avx512_linux): Likewise.
11740 (x86_64_regmap): Add AVX512 registers.
11741 (x86_linux_read_description): Add code to handle AVX512 XSTATE
11742 mask.
11743 (initialize_low_arch): Add code to initialize AVX512 registers.
11744
51aa91f9
PA
117452014-04-23 Pedro Alves <palves@redhat.com>
11746
11747 * mem-break.c (find_gdb_breakpoint_at): Make static.
11748 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
11749
a4165e94
PA
117502014-04-23 Pedro Alves <palves@redhat.com>
11751
11752 * i386-low.c: Don't include break-common.h here.
11753 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
11754 prototype to take target_hw_bp_type as argument instead of a Z
11755 packet char.
11756 * i386-low.h: Include break-common.h here.
11757 (Z_packet_to_hw_type): Declare.
11758 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
11759 prototypes.
11760 * linux-x86-low.c (x86_insert_point): Convert the packet number to
11761 a target_hw_bp_type before calling i386_low_insert_watchpoint.
11762 (x86_remove_point): Convert the packet number to a
11763 target_hw_bp_type before calling i386_low_remove_watchpoint.
11764 * win32-i386-low.c (i386_insert_point): Convert the packet number
11765 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
11766 (i386_remove_point): Convert the packet number to a
11767 target_hw_bp_type before calling i386_low_remove_watchpoint.
11768
b8acf843
PA
117692014-04-23 Pedro Alves <palves@redhat.com>
11770
11771 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
11772
d708bcd1
PA
117732014-04-10 Pedro Alves <palves@redhat.com>
11774
11775 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
11776 Check if the condition or command is NULL before checking if the
11777 breakpoint is known. On success, return true.
11778 * mem-break.h (add_breakpoint_condition): Document return.
11779 (add_breakpoint_commands): Add describing comment.
11780 * server.c (skip_to_semicolon): New function.
11781 (process_point_options): Use it.
11782
2eec7d5b
PA
117832014-04-09 Pedro Alves <palves@redhat.com>
11784
11785 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
11786 to lwpid_of.
11787
fa96cb38
PA
117882014-02-27 Pedro Alves <palves@redhat.com>
11789
11790 PR 12702
11791 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
11792 macros.
11793 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
11794 output.
11795 (last_thread_of_process_p): Take a PID argument instead of a
11796 thread pointer.
11797 (linux_wait_for_lwp): Delete.
11798 (num_lwps, check_zombie_leaders, not_stopped_callback): New
11799 functions.
11800 (linux_low_filter_event): New function, party factored out from
11801 linux_wait_for_event.
11802 (linux_wait_for_event): Rename to ...
11803 (linux_wait_for_event_filtered): ... this. Add new filter ptid
11804 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
11805 sigsuspend. Check for zombie leaders.
11806 (linux_wait_for_event): Reimplement as wrapper around
11807 linux_wait_for_event_filtered.
11808 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
11809 a normal or signal exit is seen, it's the whole process exiting.
11810 (wait_for_sigstop): No longer a for_each_inferior callback.
11811 Rewrite on top of linux_wait_for_event_filtered.
11812 (stop_all_lwps): Call wait_for_sigstop directly.
11813 * server.c (resume, handle_target_event): Handle
11814 TARGET_WAITKIND_NO_RESUMED.
11815
d763de10
JB
118162014-02-26 Joel Brobecker <brobecker@adacore.com>
11817
11818 * win32-low.c (psapi_get_dll_name,
11819 * win32_CreateToolhelp32Snapshot): Delete.
11820 (win32_CreateToolhelp32Snapshot, win32_Module32First)
11821 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
11822 Delete.
11823 (handle_load_dll): Add function description.
11824 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
11825
850a0f76
JB
118262014-02-26 Joel Brobecker <brobecker@adacore.com>
11827
11828 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
11829 Add comment.
11830 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
11831 base address when calling win32_add_one_solib.
11832 (handle_load_dll): Delete local variable load_addr.
11833 Remove 0x1000 offset applied to DLL base address when calling
11834 win32_add_one_solib.
11835 (handle_unload_dll): Add comment.
11836
f25b3fc3
JB
118372014-02-26 Joel Brobecker <brobecker@adacore.com>
11838
11839 * win32-low.c (win32_add_all_dlls): Renames
11840 win32_ensure_ntdll_loaded. Rewrite function documentation.
11841 Adjust implementation to always load all DLLs.
11842 Add 0x1000 offset to DLL base address when calling
11843 win32_add_one_solib.
11844 (child_initialization_done): New static global.
11845 (do_initial_child_stuff): Set child_initialization_done to
11846 zero during child initialization, and 1 after. Replace call
11847 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
11848 Add comment.
11849 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
11850 (handle_unload_dll): Add function documentation.
11851 (get_child_debug_event): Ignore load and unload DLL events
11852 during child initialization.
11853
d86d4aaf
DE
118542014-02-20 Doug Evans <dje@google.com>
11855
3bc32da3 11856 Remove global all_lwps.
d86d4aaf
DE
11857 * inferiors.h (ptid_of): Move here from linux-low.h.
11858 (pid_of, lwpid_of): Ditto.
11859 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
11860 parameter is a struct thread_info * now.
11861 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
11862 directly. Pass &all_threads to find_inferior instead of &all_lwps.
11863 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
11864 directly.
11865 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
11866 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
11867 * linux-arm-low.c (update_registers_callback): Update, "entry"
11868 parameter is a struct thread_info * now.
11869 Fetch lwpid from current_inferior directly.
11870 (arm_insert_point): Pass &all_threads to find_inferior instead of
11871 &all_lwps.
11872 (arm_remove_point): Ditto.
11873 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
11874 (arm_prepare_to_resume): Fetch pid from thread.
11875 (arm_read_description): Fetch lwpid from current_inferior directly.
11876 * linux-low.c (all_lwps): Delete.
11877 (delete_lwp): Delete call to remove_inferior.
11878 (handle_extended_wait): Fetch lwpid from thread.
11879 (add_lwp): Don't set lwp->entry.id. Remove call to
11880 add_inferior_to_list.
11881 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
11882 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
11883 (kill_one_lwp_callback): Ditto.
11884 (linux_kill): Don't dereference NULL pointer.
11885 Fetch ptid,lwpid from thread.
11886 (get_detach_signal): Fetch ptid from thread.
11887 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
11888 Simplify call to regcache_invalidate_thread.
11889 (delete_lwp_callback): Update, "entry" parameter is a
11890 struct thread_info * now. Fetch pid from thread.
11891 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
11892 (status_pending_p_callback): Update, "entry" parameter is a
11893 struct thread_info * now. Fetch ptid from thread.
11894 (find_lwp_pid): Update, "entry" parameter is a
11895 struct thread_info * now.
11896 (linux_wait_for_lwp): Fetch pid from thread.
11897 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
11898 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
11899 (enqueue_one_deferred_signal): Fetch lwpid from thread.
11900 (dequeue_one_deferred_signal): Ditto.
11901 (cancel_breakpoint): Fetch ptid from current_inferior.
11902 (linux_wait_for_event): Pass &all_threads to find_inferior,
11903 not &all_lwps. Fetch ptid, lwpid from thread.
11904 (count_events_callback): Update, "entry" parameter is a
11905 struct thread_info * now.
11906 (select_singlestep_lwp_callback): Ditto.
11907 (select_event_lwp_callback): Ditto.
11908 (cancel_breakpoints_callback): Ditto.
11909 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
11910 not &all_lwps.
11911 (select_event_lwp): Ditto. Fetch ptid from event_thread.
11912 (unsuspend_one_lwp): Update, "entry" parameter is a
11913 struct thread_info * now.
11914 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
11915 not &all_lwps.
11916 (linux_stabilize_threads): Ditto. And for for_each_inferior.
11917 Fetch lwpid from thread, not lwp.
11918 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
11919 Pass &all_threads to find_inferior, not &all_lwps.
11920 (send_sigstop): Fetch lwpid from thread, not lwp.
11921 (send_sigstop_callback): Update, "entry" parameter is a
11922 struct thread_info * now.
11923 (suspend_and_send_sigstop_callback): Ditto.
11924 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
11925 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
11926 struct thread_info * now.
11927 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
11928 from thread, lwp.
11929 (lwp_running): Update, "entry" parameter is a
11930 struct thread_info * now.
11931 (stop_all_lwps): Fetch ptid from thread.
11932 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
11933 (linux_resume_one_lwp): Fetch lwpid from thread.
11934 (linux_set_resume_request): Update, "entry" parameter is a
11935 struct thread_info * now. Fetch pid, lwpid from thread.
11936 (resume_status_pending_p): Update, "entry" parameter is a
11937 struct thread_info * now.
11938 (need_step_over_p): Ditto. Fetch lwpid from thread.
11939 (start_step_over): Fetch lwpid from thread.
11940 (linux_resume_one_thread): Update, "entry" parameter is a
11941 struct thread_info * now. Fetch lwpid from thread.
11942 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
11943 (proceed_one_lwp): Update, "entry" parameter is a
11944 struct thread_info * now. Fetch lwpid from thread.
11945 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
11946 struct thread_info * now.
11947 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
11948 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
11949 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
11950 directly.
11951 (regsets_store_inferior_registers): Ditto.
11952 (fetch_register, store_register): Ditto.
11953 (linux_read_memory, linux_write_memory): Ditto.
11954 (linux_request_interrupt): Ditto.
11955 (linux_read_auxv): Ditto.
11956 (linux_xfer_siginfo): Ditto.
11957 (linux_qxfer_spu): Ditto.
11958 (linux_qxfer_libraries_svr4): Ditto.
11959 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
11960 moved to inferiors.h.
11961 (get_lwp): Delete.
11962 (get_thread_lwp): Update.
11963 (struct lwp_info): Delete member "entry". Simplify comment for
11964 member "thread".
11965 (all_lwps): Delete.
11966 * linux-mips-low.c (mips_read_description): Fetch lwpid from
11967 current_inferior directly.
11968 (update_watch_registers_callback): Update, "entry" parameter is a
11969 struct thread_info * now. Fetch pid from thread.
11970 (mips_linux_prepare_to_resume): Fetch ptid from thread.
11971 (mips_insert_point): Fetch lwpid from current_inferior.
11972 Pass &all_threads to find_inferior, not &all_lwps.
11973 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
11974 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
11975 directly.
11976 (mips_stopped_data_address): Ditto.
11977 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
11978 directly.
11979 * linux-tile-low.c (tile_arch_setup): Ditto.
11980 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
11981 (update_debug_registers_callback): Update, "entry" parameter is a
11982 struct thread_info * now. Fetch pid from thread.
11983 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
11984 Pass &all_threads to find_inferior, not &all_lwps.
11985 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
11986 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
11987 Pass &all_threads to find_inferior, not &all_lwps.
11988 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
11989 (i386_dr_low_get_status): Ditto.
11990 (x86_linux_prepare_to_resume): Fetch ptid from thread.
11991 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
11992 (x86_linux_read_description): Ditto.
11993 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
11994
3b8361aa
DE
119952014-02-20 Doug Evans <dje@google.com>
11996
11997 * inferiors.c (get_first_inferior): Fix buglet.
11998
f7667f0d
DE
119992014-02-19 Doug Evans <dje@google.com>
12000
12001 * gdbthread.h (add_thread): Change result type to struct thread_info *.
12002 * inferiors.c (add_thread): Change result type to struct thread_info *.
12003 All callers updated.
12004 (add_lwp): Call add_thread here instead of in callers.
12005 All callers updated.
12006 * linux-low.h (get_lwp_thread): Rewrite.
12007 (struct lwp_info): New member "thread".
12008
b3312d80
DE
120092014-02-19 Doug Evans <dje@google.com>
12010
12011 * linux-low.c (add_lwp): Change result to struct lwp_info *.
12012 All callers updated.
12013
ecc6f45c
DE
120142014-02-19 Doug Evans <dje@google.com>
12015
12016 * inferiors.c (add_thread): Fix whitespace.
12017
649ebbca
DE
120182014-02-19 Doug Evans <dje@google.com>
12019
12020 * dll.c (clear_dlls): Replace accessing list implemention details
12021 with API function.
12022 * gdbthread.h (get_first_thread): Declare.
12023 * inferiors.c (for_each_inferior_with_data): New function.
12024 (get_first_thread): New function.
12025 (find_thread_ptid): Simplify.
12026 (get_first_inferior): New function.
12027 (clear_list): Delete.
12028 (one_inferior_p): New function.
12029 (clear_inferior_list): New function.
12030 (clear_inferiors): Update.
12031 * inferiors.h (for_each_inferior_with_data): Declare.
12032 (clear_inferior_list): Declare.
12033 (one_inferior_p): Declare.
12034 (get_first_inferior): Declare.
12035 * linux-low.c (linux_wait_for_event): Replace accessing list
12036 implemention details with API function.
12037 * server.c (target_running): Ditto.
12038 (accumulate_file_name_length): New function.
12039 (emit_dll_description): New function.
12040 (handle_qxfer_libraries): Replace accessing list implemention
12041 details with API function.
12042 (handle_qxfer_threads_worker): New function.
12043 (handle_qxfer_threads_proper): Replace accessing list implemention
12044 details with API function.
12045 (handle_query): Ditto.
12046 (visit_actioned_threads_callback_ftype): New typedef.
12047 (visit_actioned_threads_data): New struct.
12048 (visit_actioned_threads): Rewrite to be find_inferior callback.
12049 (resume): Call find_inferior.
12050 (handle_status): Replace accessing list implemention
12051 details with API function.
12052 (process_serial_event): Replace accessing list implemention details
12053 with API function.
12054 * target.c (set_desired_inferior): Replace accessing list implemention
12055 details with API function.
12056 * tracepoint.c (same_process_p): New function.
12057 (gdb_agent_about_to_close): Replace accessing list implemention
12058 details with API function.
12059 * win32-low.c (child_delete_thread): Replace accessing list
12060 implemention details with API function.
12061 (match_dll_by_basename): New function.
12062 (dll_is_loaded_by_basename): New function.
12063 (win32_ensure_ntdll_loaded): Replace accessing list implemention
12064 details call to dll_is_loaded_by_basename.
12065
80894984
DE
120662014-02-19 Doug Evans <dje@google.com>
12067
12068 * dll.h (struct dll_info): Add comment.
12069 * gdbthread.h (struct thread_info): Add comment.
12070 (current_ptid): Simplify.
12071 * inferiors.c (add_process): Update.
12072 (remove_process): Update.
12073 * inferiors.h (struct process_info): Rename member "head" to "entry".
12074 * linux-low.c (delete_lwp): Update.
12075 (add_lwp): Update.
12076 (last_thread_of_process_p): Update.
12077 (kill_one_lwp_callback, linux_kill): Update.
12078 (status_pending_p_callback): Update.
12079 (wait_for_sigstop): Update. Simplify read of ptid.
12080 (start_step_over): Update.
12081 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
12082 (get_lwp_thread): Update.
12083 (struct lwp_info): Rename member "head" to "entry".
12084 * regcache.h (inferior_list_entry): Delete.
12085 * server.c (kill_inferior_callback): Update.
12086 (detach_or_kill_inferior_callback): Update.
12087 (print_started_pid): Update.
12088 (print_attached_pid): Update.
12089 (process_serial_event): Simplify read of ptid.
12090 * thread-db.c (thread_db_create_event): Update.
12091 (thread_db_get_tls_address): Update.
12092 * win32-low.c (current_inferior_ptid): Simplify.
12093
46917d26
TT
120942014-02-19 Tom Tromey <tromey@redhat.com>
12095
12096 * target.h (struct target_ops) <supports_btrace>: Add target_ops
12097 argument.
12098 (target_supports_btrace): Update.
12099
0759a81e
YQ
121002014-02-14 Yao Qi <yao@codesourcery.com>
12101
12102 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
12103 (rsp-low-ipa.o): New target.
12104
a7191e8b
TT
121052014-02-12 Tom Tromey <tromey@redhat.com>
12106
12107 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
12108 convert_ascii_to_int.
12109 * regcache.c (registers_to_string): Likewise.
12110 * remote-utils.c (decode_M_packet): Likewise.
12111 * server.c (process_serial_event): Likewise.
12112
ff0e980e
TT
121132014-02-12 Tom Tromey <tromey@redhat.com>
12114
12115 * server.c (handle_query, handle_v_run): Use hex2bin, not
12116 unhexify.
12117 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
12118
e9371aff
TT
121192014-02-12 Tom Tromey <tromey@redhat.com>
12120
12121 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
12122 convert_int_to_ascii.
12123 * regcache.c (registers_to_string, collect_register_as_string):
12124 Likewise.
12125 * remote-utils.c (look_up_one_symbol, relocate_instruction):
12126 Likewise.
12127 * server.c (process_serial_event): Likewise.
12128 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
12129 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
12130
971dc0b8
TT
121312014-02-12 Tom Tromey <tromey@redhat.com>
12132
12133 * remote-utils.c (look_up_one_symbol, monitor_output): Use
12134 bin2hex, not hexify.
12135 * tracepoint.c (cmd_qtstatus): Likewise.
12136
0a822afb
TT
121372014-02-12 Tom Tromey <tromey@redhat.com>
12138
12139 * remote-utils.c (monitor_output): Pass explicit length to
12140 hexify.
12141
9c3d6531
TT
121422014-02-12 Tom Tromey <tromey@redhat.com>
12143
12144 * tracepoint.c: Include rsp-low.h.
12145 * server.c: Include rsp-low.h.
12146 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
12147 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
12148 declare.
12149 * remote-utils.c: Include rsp-low.h.
12150 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
12151 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
12152 (convert_int_to_ascii, convert_ascii_to_int): Move to
12153 common/rsp-low.c.
12154 * regcache.c: Include rsp-low.h.
12155 * ax.c: Include rsp-low.h.
12156 * Makefile.in (SFILES): Add common/rsp-low.c.
12157 (OBS): Add rsp-low.o.
12158 (rsp-low.o): New target.
12159
01fd3ea5
TT
121602014-02-12 Tom Tromey <tromey@redhat.com>
12161
12162 * utils.h (pulongest, plongest, phex_nz): Don't declare.
12163 Include print-utils.h.
12164 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12165 (plongest, thirty_two, phex_nz): Remove.
12166 * Makefile.in (SFILES): Add common/print-utils.c.
12167 (OBS): Add print-utils.o.
12168 (print-utils-ipa.o): New target.
12169 (print-utils.o): New target.
12170 (IPA_OBJS): Add print-utils-ipa.o.
12171
e99dc820
TT
121722014-02-06 Tom Tromey <tromey@redhat.com>
12173
12174 * Makefile.in (SFILES): Fix indentation.
12175
ee1e2d4f
DE
121762014-02-05 Doug Evans <dje@google.com>
12177
12178 * linux-low.c (linux_wait_for_event): Improve comment.
12179 (linux_wait_1): Keep current_inferior in sync with event_child.
12180
f5a02773
DE
121812014-01-22 Doug Evans <dje@google.com>
12182
12183 * gdbthread.h (gdb_id_to_thread): Delete, unused.
12184
87ce2a04
DE
121852014-01-22 Doug Evans <dje@google.com>
12186
12187 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
12188 * configure: Regenerate.
12189 * config.in: Regenerate.
12190 * Makefile.in (SFILES): Add debug.c.
12191 (OBS): Add debug.o.
12192 * debug.c: New file.
12193 * debug.h: New file.
12194 * linux-aarch64-low.c (*): Update all debugging printfs to use
12195 debug_printf instead of fprintf.
12196 * linux-arm-low.c (*): Ditto.
12197 * linux-cris-low.c (*): Ditto.
12198 * linux-crisv32-low.c (*): Ditto.
12199 * linux-m32r-low.c (*): Ditto.
12200 * linux-sparc-low.c (*): Ditto.
12201 * linux-x86.c (*): Ditto.
12202 * linux-low.c (*): Ditto.
12203 (linux_wait_1): Add calls to debug_enter, debug_exit.
12204 (linux_wait): Remove redundant debugging printf.
12205 (stop_all_lwps): Add calls to debug_enter, debug_exit.
12206 (linux_resume, unstop_all_lwps): Ditto.
12207 * mem-break.c (*): Update all debugging printfs to use
12208 debug_printf instead of fprintf.
12209 * remote-utils.c (*): Ditto.
12210 * thread-db.c (*): Ditto.
12211 * server.c #include <ctype.h>, "gdb_vecs.h".
12212 (debug_threads): Moved to debug.c.
12213 (*): Update all debugging printfs to use debug_printf instead of
12214 fprintf.
12215 (start_inferior): Replace call to fflush with call to debug_flush.
12216 (monitor_show_help): Mention set debug-format.
12217 (parse_debug_format_options): New function.
12218 (handle_monitor_command): Handle "monitor set debug-format".
12219 (gdbserver_usage): Mention --debug-format.
12220 (main): Parse --debug-format.
12221 * server.h (debug_threads): Declaration moved to debug.h.
12222 #include "debug.h".
12223 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
12224 trace_debug_1 that uses debug_printf.
12225 (tracepoint_look_up_symbols): Update all debugging printfs to use
12226 debug_printf instead of fprintf.
12227
e671835b
BS
122282014-01-20 Baruch Siach <baruch@tkos.co.il>
12229
12230 * linux-xtensa-low.c: Include asm/ptrace.h instead of
12231 sys/ptrace.h.
12232
b5737fa9
PA
122332014-01-17 Pedro Alves <palves@redhat.com>
12234
ea38d2a9 12235 PR build/16445
c7faa97a
PA
12236 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
12237 defined after including gdb_proc_service.h.
b5737fa9 12238
40ed484e
DE
122392014-01-16 Doug Evans <dje@google.com>
12240
12241 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
12242 (match_dll): Use it.
12243
969c39fb
MM
122442014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12245
12246 * target.h (target_ops) <read_btrace>: Change parameters and
12247 return type to allow error reporting.
12248 * server.c (handle_qxfer_btrace): Support delta reads. Pass
12249 trace reading errors on.
12250 * linux-low.c (linux_low_read_btrace): Pass trace reading
12251 errors on.
12252 (linux_low_disable_btrace): New.
12253
ab7f45ba
DE
122542014-01-15 Doug Evans <dje@google.com>
12255
12256 * inferiors.c (thread_id_to_gdb_id): Delete.
12257 * inferiors.h (thread_id_to_gdb_id): Delete.
12258
66af0f44
EZ
122592014-01-13 Eli Zaretskii <eliz@gnu.org>
12260
12261 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
12262 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
12263 versions.
12264
9939e131
PA
122652014-01-08 Pedro Alves <palves@redhat.com>
12266
12267 * server.c (handle_status): Don't discard previous queued stop
12268 replies or thread's pending status here.
12269 (main) <disconnection>: Do it here instead.
12270
b7ea362b
PA
122712014-01-08 Pedro Alves <palves@redhat.com>
12272
12273 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
12274 * server.c (visit_actioned_threads, handle_pending_status): New
12275 function.
12276 (handle_v_cont): Factor out parts to ...
12277 (resume): ... this new function. If in all-stop, and a thread
12278 being resumed has a pending status, report it without actually
12279 resuming.
12280 (myresume): Adjust to use the new 'resume' function.
12281 (clear_pending_status_callback, set_pending_status_callback)
12282 (find_status_pending_thread_callback): New functions.
12283 (handle_status): Handle the case of multiple threads having
12284 interesting statuses to report. Report threads' real last signal
12285 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
12286 with an interesting thread to report the status for, instead of
12287 always reporting the status of the first thread.
12288
28498c42
JB
122892014-01-01 Joel Brobecker <brobecker@adacore.com>
12290
12291 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
12292 * gdbreplay.c (gdbreplay_version): Likewise.
12293
f45c82da
YZ
122942013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
12295
12296 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
12297 iov.iov_len with the real length in use.
12298
379a5e2d
JB
122992013-12-13 Joel Brobecker <brobecker@adacore.com>
12300
12301 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
12302 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
12303 for all targets that use win32-low.c.
12304 * win32-low.c (win32_ensure_ntdll_loaded): New function.
12305 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
12306
4210d83e
PA
123072013-12-13 Pedro Alves <palves@redhat.com>
12308
12309 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
12310 if equal to TARGET_WAITKIND_LOADED.
12311 * win32-low.c (cached_status): New static global.
12312 (win32_wait): Add declaration.
12313 (do_initial_child_stuff): Flush all initial pending debug events
12314 up to the initial breakpoint.
12315 (win32_wait): If CACHED_STATUS was set, return that instead
12316 of doing a real wait. Remove the code resuming the execution
12317 of the inferior after receiving a TARGET_WAITKIND_LOADED event
12318 during the initial phase. Also remove the code changing
12319 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
12320 TARGET_WAITKIND_STOPPED.
12321
e7f0d979
YQ
123222013-12-11 Yao Qi <yao@codesourcery.com>
12323
12324 * notif.c (handle_notif_ack): Return 0 if no notification
12325 matches.
12326
ebcf782c
DE
123272013-11-20 Doug Evans <dje@google.com>
12328
12329 * linux-low.c (linux_set_resume_request): Fix comment.
12330
20ad9378
DE
123312013-11-20 Doug Evans <dje@google.com>
12332
12333 * linux-low.c (resume_status_pending_p): Tweak comment.
12334
a196ebeb
WT
123352013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
12336
12337 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
12338 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
12339 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
12340 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
12341 (srv_amd64_regobj): Add amd64-mpx.o.
12342 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
12343 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
12344 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
12345 * i387-fp.c (num_pl_bnd_register) Added constant.
12346 (num_pl_bnd_cfg_registers) Added constant.
12347 (struct i387_xsave) Added reserved area and MPX fields.
12348 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
12349 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
12350 function.
12351 (tdesc_i386_mpx_linux): Add MPX amd64 target.
12352 (init_registers_amd64_mpx_linux): Declare new function.
12353 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
12354 (x86_64_regmap): Add MPX registers.
12355 (x86_linux_read_description): Add MPX case.
12356 (initialize_low_arch): Initialize MPX targets.
12357
0080a2f6
TT
123582013-11-18 Tom Tromey <tromey@redhat.com>
12359
12360 * configure: Rebuild.
12361 * configure.ac: Don't check for stdlib.h.
12362 * gdbreplay.c: Unconditionally include stdlib.h.
12363
2978b111
TT
123642013-11-18 Tom Tromey <tromey@redhat.com>
12365
12366 * config.in: Rebuild.
12367 * configure: Rebuild.
12368 * configure.ac: Don't use AC_HEADER_DIRENT.
12369
a3d08894
TT
123702013-11-18 Tom Tromey <tromey@redhat.com>
12371
12372 * server.h: Don't check HAVE_STRING_H.
12373 * gdbreplay.c: Don't check HAVE_STRING_H.
12374 * configure: Rebuild.
12375
0a5dd17d
TT
123762013-11-18 Tom Tromey <tromey@redhat.com>
12377
12378 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
12379 LIBGNU.
12380
1bd2f0ba
TT
123812013-11-08 Tom Tromey <tromey@redhat.com>
12382
12383 * configure, config.in: Rebuild.
12384 * configure.ac: Remove unused configury.
12385
3266f10b
TT
123862013-11-08 Tom Tromey <tromey@redhat.com>
12387
12388 * acinclude.m4: Include common.m4, codeset.m4.
12389 * configure, config.in: Rebuild.
12390 * configure.ac: Use GDB_AC_COMMON.
12391
6682d959
AA
123922013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
12393
12394 * linux-s390-low.c (HWCAP_S390_TE): New define.
12395 (s390_arch_setup): Consider the TE field in the HWCAP for
12396 determining 'have_regset_tdb'.
12397
fd0a4d76
SDJ
123982013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
12399
12400 PR gdb/16014
12401 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
12402 call to sizeof.
12403
1a3d890b
PA
124042013-10-02 Pedro Alves <palves@redhat.com>
12405
12406 * server.c (process_serial_event): Don't output "GDBserver
12407 exiting" if GDB is connected through stdio.
12408 * target.c (mywait): Likewise, be silent if GDB is connected
12409 through stdio.
12410
97ad4581
JB
124112013-10-01 Joel Brobecker <brobecker@adacore.com>
12412
12413 * lynx-low.c (lynx_add_threads_after_attach): New function.
12414 (lynx_attach): Remove call to add_thread. Add call to
12415 lynx_add_threads_after_attach instead.
12416
5b4e221c
MF
124172013-09-28 Mike Frysinger <vapier@gentoo.org>
12418
12419 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
12420 * config.in, configure: Regenerated.
12421
ee47b2f8
YQ
124222013-09-18 Yao Qi <yao@codesourcery.com>
12423
12424 PR server/15959
12425 * server.c (start_inferior): Clear 'resume_info'.
12426
d6707650 124272013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 12428
d6707650
JW
12429 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
12430 for each register.
12431
9243dd0e 124322013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 12433
9243dd0e
JW
12434 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
12435 linux-tile-low.o to srv_tgtobj.
12436
c623a6ef
WN
124372013-09-16 Will Newton <will.newton@linaro.org>
12438
12439 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
12440 out regs.
12441
fb71d39e
PA
124422013-09-06 Pedro Alves <palves@redhat.com>
12443
12444 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
12445 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
12446 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
12447 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
12448 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
12449 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
12450
8e7e9910
PA
124512013-09-06 Pedro Alves <palves@redhat.com>
12452
12453 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
12454 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
12455
7c3a12ca
PA
124562013-09-06 Pedro Alves <palves@redhat.com>
12457
12458 * linux-amd64-ipa.c: Include tracepoint.h.
12459 * linux-i386-ipa.c: Include tracepoint.h.
12460
8eb3d7b6
RW
124612013-09-06 Ricard Wanderlof <ricardw@axis.com>
12462
12463 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
12464 (ps_get_thread_area): New function.
12465
eddddb9d
RW
124662013-09-06 Ricard Wanderlof <ricardw@axis.com>
12467
12468 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
12469 (initialize_low_arch): Call init_registers_crisv32 rather than
12470 init_register_crisv32.
12471
533b0600
PA
124722013-09-05 Pedro Alves <palves@redhat.com>
12473
12474 * server.h (handle_vFile, hostio_last_error_from_errno): Move
12475 to ...
12476 * hostio.h: ... this new file.
12477 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
12478 win32-low.c: Include hostio.h.
12479
0ce3d3b5
PA
124802013-09-05 Pedro Alves <palves@redhat.com>
12481
12482 * server.h (gdb_client_data, handler_func, callback_handler_func)
12483 (delete_file_handler, add_file_handler, append_callback_event)
12484 (delete_callback_event, start_event_loop, initialize_event_loop):
12485 Move to event-loop.h and include it.
12486 * event-loop.h: New file.
12487
799cdc37
PA
124882013-09-05 Pedro Alves <palves@redhat.com>
12489
12490 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
12491 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
12492 (loaded_dll, unloaded_dll): Move to ...
12493 * dll.h: ... this new file.
12494 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
12495
6a6bbd9d
PA
124962013-09-05 Pedro Alves <palves@redhat.com>
12497
12498 * server.h (current_process, get_thread_process, all_processes)
12499 (add_inferior_to_list, for_each_inferior, current_inferior)
12500 (remove_inferior, add_process, remove_process, find_process_pid)
12501 (have_started_inferiors_p, have_attached_inferiors_p)
12502 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
12503 (clear_inferiors, find_inferior, find_inferior_id)
12504 (inferior_target_data, set_inferior_target_data)
12505 (inferior_regcache_data, set_inferior_regcache_data): Move to
12506 inferiors.h, and include it.
12507 * inferiors.h: New file.
12508
f699aaba
PA
125092013-09-05 Pedro Alves <palves@redhat.com>
12510
12511 * server.h (struct emit_ops, current_insn_ptr, emit_error):
12512 Move ...
72f4393d 12513 * ax.h: ... here.
f699aaba 12514
c144c7a0
PA
125152013-09-05 Pedro Alves <palves@redhat.com>
12516
12517 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
12518 tracepoint.h.
12519 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
12520 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
12521 (handle_tracepoint_general_set, handle_tracepoint_query)
12522 (tracepoint_finished_step, tracepoint_was_hit)
12523 (release_while_stepping_state_list, current_traceframe)
12524 (in_readonly_region, traceframe_read_mem)
12525 (fetch_traceframe_registers, traceframe_read_sdata)
12526 (traceframe_read_info, struct fast_tpoint_collect_status)
12527 (fast_tracepoint_collecting, force_unlock_trace_buffer)
12528 (handle_tracepoit_bkpts, initialize_low_tracepoint)
12529 (supply_fast_tracepoint_registers)
12530 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
12531 (ipa_tdesc, claim_trampoline_space)
12532 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
12533 (agent_mem_read, agent_get_trace_state_variable_value)
12534 (agent_set_trace_state_variable_value, agent_tsv_read)
12535 (agent_mem_read_string, get_raw_reg_func_addr)
12536 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
12537 * tracepoint.h: ... this new file.
12538
ff42e6ab
PA
125392013-09-05 Pedro Alves <palves@redhat.com>
12540
12541 * server.h (perror_with_name, error, fatal, warning, paddress)
12542 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
12543 include it.
12544 * utils.h: New file.
12545
541af0f4
PA
125462013-09-05 Pedro Alves <palves@redhat.com>
12547
12548 * server.h (remote_debug, noack_mode, transport_is_reliable)
12549 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
12550 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
12551 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
12552 (write_enn, initialize_async_io, enable_async_io)
12553 (disable_async_io, check_remote_input_interrupt_request)
12554 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
12555 (dead_thread_notify, prepare_resume_reply)
12556 (decode_address_to_semicolon, decode_address, decode_m_packet)
12557 (decode_M_packet, decode_X_packet, decode_xfer_write)
12558 (decode_search_memory_packet, unhexify, hexify)
12559 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
12560 (look_up_one_symbol, relocate_instruction)
12561 (monitor_output): Move to remote-utils.h, and include it.
12562 * remote-utils.h: New file.
12563
eebdf26b
PA
125642013-09-05 Pedro Alves <palves@redhat.com>
12565
12566 * server.h (_): Delete.
12567
3aafd2ff
PA
125682013-09-02 Pedro Alves <palves@redhat.com>
12569
12570 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
12571 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
12572 allocated.
12573 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
12574
cee83bcb
PM
125752013-09-02 Pierre Muller <muller@sourceware.org>
12576
12577 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
12578 or WriteProcessMemory complete successfully and handle
12579 ERROR_PARTIAL_COPY error.
12580
9a13b2fa
PA
125812013-09-02 Pedro Alves <palves@redhat.com>
12582
12583 * server.c (gdb_read_memory): Return -1 on traceframe memory read
12584 error instead of EIO.
12585
602e3198
JK
125862013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
12587
12588 PR server/15604
12589 * linux-low.c: Include filestuff.h.
12590 (linux_create_inferior) <pid == 0>: Call close_most_fds.
12591 * lynx-low.c: Include filestuff.h.
12592 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
12593 * server.c: Include filestuff.h.
12594 (main): Call notice_open_fds.
12595 * spu-low.c: Include filestuff.h.
12596 (spu_create_inferior) <pid == 0>: Call close_most_fds.
12597
96d7229d
LM
125982013-08-22 Luis Machado <lgustavo@codesourcery.com>
12599
12600 * Makefile.in: Explain why ../target and ../nat are not
12601 listed as include file search paths.
12602 (linux-waitpid.o): New object file rule.
12603 * configure.srv (srv_native_linux_obj): New variable.
12604 Replace all occurrences of linux native object files with
12605 $srv_native_linux_obj.
12606 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
12607 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
12608 (linux_enable_event_reporting): Remove declaration.
12609 (my_waitpid): Moved to common/linux-waitpid.c.
12610 (linux_wait_for_event): Pass ptid when calling
12611 linux_enable_event_reporting.
12612 (linux_supports_tracefork_flag): Remove.
12613 (linux_enable_event_reporting): Likewise.
12614 (linux_tracefork_grandchild): Remove.
12615 (STACK_SIZE): Moved to common/linux-ptrace.c.
12616 (linux_tracefork_child): Remove.
12617 (linux_test_for_tracefork): Remove.
12618 (linux_look_up_symbols): Call linux_supports_traceclone.
12619 (initialize_low): Remove call to linux_test_for_tracefork.
12620 * linux-low.h (PTRACE_TYPE_ARG3): Move to
12621 common/linux-ptrace.h.
12622 (PTRACE_TYPE_ARG4): Likewise.
12623 Include linux-ptrace.h.
12624
32940073
PA
126252013-08-21 Pedro Alves <palves@redhat.com>
12626
12627 * config.in: Renegerate.
12628
33b60d58 126292013-08-19 Luis Machado <lgustavo@codesourcery.com>
a261b8f5 12630
33b60d58
LM
12631 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
12632 (SFILES): Remove $(srcdir)/common/target-common.c and
12633 add $(srcdir)/target/waitstatus.c.
12634 (OBS): Remove target-common.o and add waitstatus.o.
12635 (server_h): Remove $(srcdir)/../common/target-common.h and
12636 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
12637 and $(srcdir)/../target/waitstatus.h.
12638 (target-common.o): Remove.
12639 (waitstatus.o): New target object file.
12640 * target.h: Do not include target-common.h and
12641 include target/resume.h, target/wait.h and
12642 target/waitstatus.h.
12643
b8e1b30e
LM
126442013-08-13 Luis Machado <lgustavo@codesourcery.com>
12645
12646 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
12647 to PTRACE_TYPE_ARG3.
12648 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
12649 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
12650 PTRACE_TYPE_ARG4.
12651 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
12652 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
12653
7a60ad40
YQ
126542013-07-27 Jie Zhang <jie@codesourcery.com>
12655 Daniel Jacobowitz <dan@codesourcery.com>
12656 Yao Qi <yao@codesourcery.com>
12657
12658 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
12659 (mips-linux-watch.o): New rule.
12660 (mips_linux_watch_h): New variable.
12661 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
12662 srv_tgtobj.
12663 * linux-mips-low.c: Include mips-linux-watch.h.
12664 (struct arch_process_info, struct arch_lwp_info): New.
12665 (update_watch_registers_callback): New function.
12666 (mips_linux_new_process, mips_linux_new_thread) New functions.
12667 (mips_linux_prepare_to_resume, mips_insert_point): New
12668 functions.
12669 (mips_remove_point, mips_stopped_by_watchpoint): New
12670 functions.
12671 (rsp_bp_type_to_target_hw_bp_type): New function.
12672 (mips_stopped_data_address): New function.
12673 (the_low_target): Add watchpoint support functions.
12674
de6f69ad
YQ
126752013-07-27 Yao Qi <yao@codesourcery.com>
12676
12677 * i386-low.c: Include break-common.h.
12678 (enum target_hw_bp_type): Remove.
12679
3360c0bf
LM
126802013-07-24 Luis Machado <lgustavo@codesourcery.com>
12681
12682 * Makefile.in (SFILES): /common/target-common.c.
12683 (OBS): Add target-common.o.
12684 (server_h): Add $(srcdir)/../common/target-common.h.
12685 (target-common.o): New target.
12686 * server.c (queue_stop_reply_callback): Free
12687 status string after use.
12688 * target.c (target_waitstatus_to_string): Remove.
12689 * target.h: Include target-common.h.
12690 (resume_kind): Likewise.
12691 (target_waitkind): Likewise.
12692 (target_waitstatus): Likewise.
12693 (TARGET_WNOHANG): Likewise.
12694
bd885420
YQ
126952013-07-04 Yao Qi <yao@codesourcery.com>
12696
12697 * Makefile.in (host_alias): Use @host_noncanonical@.
12698 (target_alias): Use @target_noncanonical@.
12699 * configure.ac: Use ACX_NONCANONICAL_TARGET and
12700 ACX_NONCANONICAL_HOST.
12701 * configure: Regenerated.
12702
12703 Revert:
12704 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
12705
12706 * configure.ac (version_host, version_target): Set and AC_SUBST them.
12707 * configure: Rebuild.
12708 * Makefile.in (version_host, version_target): Get from configure.
12709 (version.c): Use $(version_host) and $(version_target).
12710
17ef446e
PA
127112013-07-03 Pedro Alves <palves@redhat.com>
12712
12713 * Makefile.in (config.status): Depend on development.sh.
12714 * acinclude.m4: Include libmcheck.m4.
12715 * configure: Regenerate.
12716
7a9a7487
MG
127172013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
12718
12719 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
12720 attribute inside the parentheses.
12721 (winapi_DebugSetProcessKillOnExit): Ditto.
12722 (winapi_DebugBreakProcess): Ditto.
12723 (winapi_GenerateConsoleCtrlEvent): Ditto.
a261b8f5 12724
49b64de6
MG
127252013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
12726
12727 * notif.h (notif_event): Add a dummy member to avoid compiler
12728 errors.
12729
d5749ee7
PA
127302013-07-01 Pedro Alves <palves@redhat.com>
12731
12732 * hostio.c (HOSTIO_PATH_MAX): Define.
12733 (require_filename, handle_open, handle_unlink, handle_readlink):
12734 Use it.
12735
d8d2a3ee
PA
127362013-07-01 Pedro Alves <palves@redhat.com>
12737
12738 * server.h: Include "pathmax.h".
12739 * linux-low.c: Don't include sys/param.h.
12740 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
12741 MAXPATHLEN.
12742 * win32-low.c: Don't include sys/param.h.
12743 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
12744
bc7dea8d
PA
127452013-07-01 Pedro Alves <palves@redhat.com>
12746
12747 * event-loop.c: Don't check HAVE_UNISTD_H before including
12748 <unistd.h>.
12749 * gdbreplay.c: Likewise.
12750 * remote-utils.c: Likewise.
12751 * server.c: Likewise.
12752 * configure.ac: Don't check for unistd.h.
12753 * configure: Regenerate.
12754
d6c2da54
TT
127552013-06-28 Tom Tromey <tromey@redhat.com>
12756
12757 * Makefile.in (version.c): Use version.in, not
12758 common/version.in.
12759
257b6bec
MG
127602013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
12761
12762 * configure.ac (version_host, version_target): Set and AC_SUBST them.
12763 * configure: Rebuild.
12764 * Makefile.in (version_host, version_target): Get from configure.
12765 (version.c): Use $(version_host) and $(version_target).
12766
86ebe149
DK
127672013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
12768
12769 Fix trace-status to output user name without trailing colon.
12770 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
12771
f30aa5af
DK
127722013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
12773
12774 Fix trace-status to output proper start-time and stop-time.
12775 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
12776 output start time and stop time in hex as gdb expects.
12777
28a93511
YQ
127782013-06-26 Pedro Alves <pedro@codesourcery.com>
12779
12780 * tracepoint.c (build_traceframe_info_xml): Output trace state
12781 variables present in the trace buffer.
12782
01208463
TT
127832013-06-24 Tom Tromey <tromey@redhat.com>
12784
12785 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
12786 create-version.sh.
12787 (version.o): Remove.
12788 * gdbreplay.c: Include version.h.
12789 (version, host_name): Don't declare.
12790 * server.h: Include version.h.
12791 (version, host_name): Don't declare.
12792
760256f9
PA
127932013-06-12 Pedro Alves <palves@redhat.com>
12794
12795 * linux-x86-low.c (linux_is_elf64): Delete global.
12796 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
12797 with local linux_pid_exe_is_elf_64_file use.
12798
030031ee
PA
127992013-06-11 Pedro Alves <palves@redhat.com>
12800
12801 * linux-low.c (regset_disabled, disable_regset): New functions.
12802 (regsets_fetch_inferior_registers)
12803 (regsets_store_inferior_registers): Use them.
12804 (initialize_regsets_info); Don't allocate the disabled_regsets
12805 array here.
12806 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
12807 comment.
12808
5da6eb0a
PA
128092013-06-11 Pedro Alves <palves@redhat.com>
12810
12811 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
12812 xmalloc.
12813
7e5aaa09
PA
128142013-06-11 Pedro Alves <palves@redhat.com>
12815
12816 * linux-x86-low.c (initialize_low_arch): Call
12817 init_registers_x32_avx_linux.
12818
d878444c
JK
128192013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12820
12821 Fix compatibility with Android Bionic.
12822 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
12823 it is not empty.
12824
3aee8918
PA
128252013-06-07 Pedro Alves <palves@redhat.com>
12826
5f2b57b5 12827 PR server/14823
3aee8918
PA
12828 * Makefile.in (OBS): Add tdesc.o.
12829 (IPA_OBJS): Add tdesc-ipa.o.
12830 (tdesc-ipa.o): New rule.
12831 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
12832 interface.
12833 * linux-low.c (new_inferior): Delete.
12834 (disabled_regsets, num_regsets): Delete.
12835 (linux_add_process): Adjust to set the new per-process
12836 new_inferior flag.
12837 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
12838 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
12839 was a stop. When calling arch_setup, switch the current inferior
12840 to the thread that got an event.
12841 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
12842 (regsets_fetch_inferior_registers)
12843 (regsets_store_inferior_registers): New regsets_info parameter.
12844 Adjust to use it.
12845 (linux_register_in_regsets): New regs_info parameter. Adjust to
12846 use it.
12847 (register_addr, fetch_register, store_register): New usrregs_info
12848 parameter. Adjust to use it.
12849 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
12850 parameter regs_info. Adjust to use it.
12851 (linux_fetch_registers): Get the current inferior's regs_info, and
12852 adjust to use it.
12853 (linux_store_registers): Ditto.
12854 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
12855 (initialize_low): Don't initialize the target_regsets here. Call
12856 initialize_low_arch.
12857 * linux-low.h (target_regsets): Delete declaration.
12858 (struct regsets_info): New.
12859 (struct usrregs_info): New.
12860 (struct regs_info): New.
12861 (struct process_info_private) <new_inferior>: New field.
12862 (struct linux_target_ops): Delete the num_regs, regmap, and
12863 regset_bitmap fields. New field regs_info.
12864 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
12865 * i387-fp.c (num_xmm_registers): Delete.
12866 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
12867 calls to new interface.
12868 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
12869 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
12870 Infer the number of xmm registers from the regcache's target
12871 description.
12872 * i387-fp.h (num_xmm_registers): Delete.
12873 * inferiors.c (add_thread): Don't install the thread's regcache
12874 here.
12875 * proc-service.c (gregset_info): Fetch the current inferior's
12876 regs_info. Adjust to use it.
12877 * regcache.c: Include tdesc.h.
12878 (register_bytes, reg_defs, num_registers)
12879 (gdbserver_expedite_regs): Delete.
12880 (get_thread_regcache): If the thread doesn't have a regcache yet,
12881 create one, instead of aborting gdbserver.
12882 (regcache_invalidate_one): Rename to ...
12883 (regcache_invalidate_thread): ... this.
12884 (regcache_invalidate_one): New.
12885 (regcache_invalidate): Only invalidate registers of the current
12886 process.
12887 (init_register_cache): Add target_desc parameter, and use it.
12888 (new_register_cache): Ditto. Assert the target description has a
12889 non zero registers_size.
12890 (regcache_cpy): Add assertions. Adjust.
12891 (realloc_register_cache, set_register_cache): Delete.
12892 (registers_to_string, registers_from_string): Adjust.
12893 (find_register_by_name, find_regno, find_register_by_number)
12894 (register_cache_size): Add target_desc parameter, and use it.
12895 (free_register_cache_thread, free_register_cache_thread_one)
12896 (regcache_release, register_cache_size): New.
12897 (register_size): Add target_desc parameter, and use it.
12898 (register_data, supply_register, supply_register_zeroed)
12899 (supply_regblock, supply_register_by_name, collect_register)
12900 (collect_register_as_string, collect_register_by_name): Adjust.
12901 * regcache.h (struct target_desc): Forward declare.
12902 (struct regcache) <tdesc>: New field.
12903 (init_register_cache, new_register_cache): Add target_desc
12904 parameter.
12905 (regcache_invalidate_thread): Declare.
12906 (regcache_invalidate_one): Delete declaration.
12907 (regcache_release): Declare.
12908 (find_register_by_number, register_cache_size, register_size)
12909 (find_regno): Add target_desc parameter.
12910 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
12911 declarations.
12912 * remote-utils.c: Include tdesc.h.
12913 (outreg, prepare_resume_reply): Adjust.
12914 * server.c: Include tdesc.h.
12915 (gdbserver_xmltarget): Delete declaration.
12916 (get_features_xml, process_serial_event): Adjust.
12917 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
12918 declare.
12919 (struct process_info) <tdesc>: New field.
12920 (ipa_tdesc): Declare.
12921 * tdesc.c: New file.
12922 * tdesc.h: New file.
12923 * tracepoint.c: Include tdesc.h.
12924 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
12925 (get_context_regcache): Adjust to pass ipa_tdesc down.
12926 (do_action_at_tracepoint): Adjust to get the register cache size
12927 from the context regcache's description.
12928 (traceframe_walk_blocks): Adjust to get the register cache size
12929 from the current trace frame's description.
12930 (traceframe_get_pc): Adjust to get current trace frame's
12931 description and pass it down.
12932 (gdb_collect): Adjust to get the register cache size from the
12933 IPA's description.
12934 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
12935 (gdbserver_xmltarget): Delete.
12936 (initialize_low_tracepoint): Set the ipa's target description.
12937 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
12938 (initialize_low_tracepoint): Set the ipa's target description.
12939 * linux-x86-low.c: Include tdesc.h.
12940 [__x86_64__] (is_64bit_tdesc): New.
12941 (ps_get_thread_area, x86_get_thread_area): Use it.
12942 (i386_cannot_store_register): Rename to ...
12943 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
12944 (i386_cannot_fetch_register): Rename to ...
12945 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
12946 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
12947 to new interface.
12948 (target_regsets): Rename to ...
12949 (x86_regsets): ... this.
12950 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
12951 interface.
12952 (x86_siginfo_fixup): Use is_64bit_tdesc.
12953 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
12954 (tdesc_x32_avx_linux, tdesc_x32_linux)
12955 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
12956 Declare.
12957 (x86_linux_update_xmltarget): Delete.
12958 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
12959 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
12960 (AMD64_LINUX_USER64_CS): New.
12961 (x86_linux_read_description): New, based on
12962 x86_linux_update_xmltarget.
12963 (same_process_callback): New.
12964 (x86_arch_setup_process_callback): New.
12965 (x86_linux_update_xmltarget): New.
12966 (x86_regsets_info): New.
12967 (amd64_linux_regs_info): New.
12968 (i386_linux_usrregs_info): New.
12969 (i386_linux_regs_info): New.
12970 (x86_linux_regs_info): New.
12971 (x86_arch_setup): Reimplement.
12972 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
12973 (x86_emit_ops): Ditto.
12974 (the_low_target): Adjust. Install x86_linux_regs_info,
12975 x86_cannot_fetch_register, and x86_cannot_store_register.
12976 (initialize_low_arch): New.
12977 * linux-ia64-low.c (tdesc_ia64): Declare.
12978 (ia64_fetch_register): Adjust.
12979 (ia64_usrregs_info, regs_info): New globals.
12980 (ia64_regs_info): New function.
12981 (the_low_target): Adjust.
12982 (initialize_low_arch): New function.
12983 * linux-sparc-low.c (tdesc_sparc64): Declare.
12984 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
12985 Adjust.
12986 (sparc_arch_setup): New function.
12987 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
12988 (the_low_target): Adjust.
12989 (initialize_low_arch): New function.
12990 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
12991 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
12992 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
12993 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
12994 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
12995 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
12996 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
12997 (tdesc_powerpc_isa205_vsx64l): Declare.
12998 (ppc_cannot_store_register, ppc_collect_ptrace_register)
12999 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
13000 (ppc_set_pc, ppc_get_hwcap): Adjust.
13001 (ppc_usrregs_info): Forward declare.
13002 (!__powerpc64__) ppc_regmap_adjusted: New global.
13003 (ppc_arch_setup): Adjust to the current process'es target
13004 description.
13005 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
13006 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
13007 (ppc_store_evrregset): Adjust.
13008 (target_regsets): Rename to ...
13009 (ppc_regsets): ... this, and make static.
13010 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
13011 (ppc_regs_info): New function.
13012 (the_low_target): Adjust.
13013 (initialize_low_arch): New function.
13014 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
13015 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
13016 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
13017 (tdesc_s390x_linux64v2): Declare.
13018 (s390_collect_ptrace_register, s390_supply_ptrace_register)
13019 (s390_fill_gregset, s390_store_last_break): Adjust.
13020 (target_regsets): Rename to ...
13021 (s390_regsets): ... this, and make static.
13022 (s390_get_pc, s390_set_pc): Adjust.
13023 (s390_get_hwcap): New target_desc parameter, and use it.
13024 [__s390x__] (have_hwcap_s390_high_gprs): New global.
13025 (s390_arch_setup): Adjust to set the current process'es target
13026 description. Don't adjust the regmap.
13027 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
13028 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
13029 (regs_info_3264): New globals.
13030 (s390_regs_info): New function.
13031 (the_low_target): Adjust.
13032 (initialize_low_arch): New function.
13033 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
13034 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
13035 [__mips64] (init_registers_mips_linux)
13036 (init_registers_mips_dsp_linux): Delete defines.
13037 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
13038 (have_dsp): New global.
13039 (mips_read_description): New, based on mips_arch_setup.
13040 (mips_arch_setup): Reimplement.
13041 (get_usrregs_info): New function.
13042 (mips_cannot_fetch_register, mips_cannot_store_register)
13043 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
13044 (mips_fill_fpregset, mips_store_fpregset): Adjust.
13045 (target_regsets): Rename to ...
13046 (mips_regsets): ... this, and make static.
13047 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
13048 (dsp_regs_info, regs_info): New globals.
13049 (mips_regs_info): New function.
13050 (the_low_target): Adjust.
13051 (initialize_low_arch): New function.
13052 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
13053 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
13054 Declare.
13055 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
13056 (arm_read_description): New, with bits factored from
13057 arm_arch_setup.
13058 (arm_arch_setup): Reimplement.
13059 (target_regsets): Rename to ...
13060 (arm_regsets): ... this, and make static.
13061 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
13062 (arm_regs_info): New function.
13063 (the_low_target): Adjust.
13064 (initialize_low_arch): New function.
13065 * linux-m68k-low.c (tdesc_m68k): Declare.
13066 (target_regsets): Rename to ...
13067 (m68k_regsets): ... this, and make static.
13068 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
13069 (m68k_regs_info): New function.
13070 (m68k_arch_setup): New function.
13071 (the_low_target): Adjust.
13072 (initialize_low_arch): New function.
13073 * linux-sh-low.c (tdesc_sharch): Declare.
13074 (target_regsets): Rename to ...
13075 (sh_regsets): ... this, and make static.
13076 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
13077 (sh_regs_info, sh_arch_setup): New functions.
13078 (the_low_target): Adjust.
13079 (initialize_low_arch): New function.
13080 * linux-bfin-low.c (tdesc_bfin): Declare.
13081 (bfin_arch_setup): New function.
13082 (bfin_usrregs_info, regs_info): New globals.
13083 (bfin_regs_info): New function.
13084 (the_low_target): Adjust.
13085 (initialize_low_arch): New function.
13086 * linux-cris-low.c (tdesc_cris): Declare.
13087 (cris_arch_setup): New function.
13088 (cris_usrregs_info, regs_info): New globals.
13089 (cris_regs_info): New function.
13090 (the_low_target): Adjust.
13091 (initialize_low_arch): New function.
13092 * linux-cris-low.c (tdesc_crisv32): Declare.
13093 (cris_arch_setup): New function.
13094 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
13095 (cris_regs_info): New function.
13096 (the_low_target): Adjust.
13097 (initialize_low_arch): New function.
13098 * linux-m32r-low.c (tdesc_m32r): Declare.
13099 (m32r_arch_setup): New function.
13100 (m32r_usrregs_info, regs_info): New globals.
13101 (m32r_regs_info): Adjust.
13102 (initialize_low_arch): New function.
13103 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
13104 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
13105 (tic6x_usrregs_info): Forward declare.
13106 (tic6x_read_description): New function, based on ...
13107 (tic6x_arch_setup): ... this. Reimplement.
13108 (target_regsets): Rename to ...
13109 (tic6x_regsets): ... this, and make static.
13110 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
13111 (tic6x_regs_info): New function.
13112 (the_low_target): Adjust.
13113 (initialize_low_arch): New function.
13114 * linux-xtensa-low.c (tdesc_xtensa): Declare.
13115 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
13116 (target_regsets): Rename to ...
13117 (xtensa_regsets): ... this, and make static.
13118 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
13119 globals.
13120 (xtensa_arch_setup, xtensa_regs_info): New functions.
13121 (the_low_target): Adjust.
13122 (initialize_low_arch): New function.
13123 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
13124 (nios2_arch_setup): Set the current process'es tdesc.
13125 (target_regsets): Rename to ...
13126 (nios2_regsets): ... this.
13127 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
13128 (nios2_regs_info): New function.
13129 (the_low_target): Adjust.
13130 (initialize_low_arch): New function.
a261b8f5
PA
13131 * linux-aarch64-low.c (tdesc_aarch64): Declare.
13132 (aarch64_arch_setup): Set the current process'es tdesc.
13133 (target_regsets): Rename to ...
13134 (aarch64_regsets): ... this.
13135 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
13136 (aarch64_regs_info): New function.
13137 (the_low_target): Adjust.
13138 (initialize_low_arch): New function.
3aee8918
PA
13139 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
13140 globals.
13141 (target_regsets): Rename to ...
13142 (tile_regsets): ... this.
13143 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
13144 (tile_regs_info): New function.
13145 (tile_arch_setup): Set the current process'es tdesc.
13146 (the_low_target): Adjust.
13147 (initialize_low_arch): New function.
13148 * spu-low.c (tdesc_spu): Declare.
13149 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
13150 * win32-arm-low.c (tdesc_arm): Declare.
13151 (arm_arch_setup): New function.
13152 (the_low_target): Install arm_arch_setup instead of
13153 init_registers_arm.
13154 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
13155 (init_windows_x86): Rename to ...
13156 (i386_arch_setup): ... this. Set `win32_tdesc'.
13157 (the_low_target): Adjust.
13158 * win32-low.c (win32_tdesc): New global.
13159 (child_add_thread): Don't create the thread cache here.
13160 (do_initial_child_stuff): Set the new process'es tdesc.
13161 * win32-low.h (struct target_desc): Forward declare.
13162 (win32_tdesc): Declare.
13163 * lynx-i386-low.c (tdesc_i386): Declare global.
13164 (lynx_i386_arch_setup): Set `lynx_tdesc'.
13165 * lynx-low.c (lynx_tdesc): New global.
13166 (lynx_add_process): Set the new process'es tdesc.
13167 * lynx-low.h (struct target_desc): Forward declare.
13168 (lynx_tdesc): Declare global.
13169 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
13170 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
13171 * nto-low.c (nto_tdesc): New global.
13172 (do_attach): Set the new process'es tdesc.
13173 * nto-low.h (struct target_desc): Forward declare.
13174 (nto_tdesc): Declare.
13175 * nto-x86-low.c (tdesc_i386): Declare.
13176 (nto_x86_arch_setup): Set `nto_tdesc'.
13177
b1fbec62
GB
131782013-06-04 Gary Benson <gbenson@redhat.com>
13179
13180 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
13181 to qSupported response when appropriate.
13182 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
13183 with nonzero-length annex.
13184 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
13185 arguments supplied in annex.
13186
d1ec4ce7
DE
131872013-05-31 Doug Evans <dje@google.com>
13188
ac44adcb 13189 PR server/15594
d1ec4ce7
DE
13190 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
13191 64 bits in 64-cross-32 environment.
13192
9b25f2d3
PA
131932013-05-28 Pedro Alves <palves@redhat.com>
13194
13195 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
13196 (aarch64-without-fpu.c): Delete rule.
13197 * configure.srv (aarch64*-*-linux*): Remove references to
13198 aarch64-without-fpu.o and aarch64-without-fpu.xml.
13199 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
13200 declaration.
13201
6740dc9c
PA
132022013-05-24 Pedro Alves <palves@redhat.com>
13203
13204 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
13205 instead of strchr/decode_address. Error if the range isn't split
13206 with a ','. Don't assume there's be a ':' in the action.
13207
c2d6af84
PA
132082013-05-23 Yao Qi <yao@codesourcery.com>
13209 Pedro Alves <palves@redhat.com>
13210
13211 * linux-low.c (lwp_in_step_range): New function.
13212 (linux_wait_1): If the thread was range stepping and stopped
13213 outside the stepping range, report the stop to GDB. Otherwise,
13214 continue stepping. Add range stepping debug output.
13215 (linux_set_resume_request): Copy the step range from the resume
13216 request to the lwp.
13217 (linux_supports_range_stepping): New.
13218 (linux_target_ops) <supports_range_stepping>: Set to
13219 linux_supports_range_stepping.
13220 * linux-low.h (struct linux_target_ops)
13221 <supports_range_stepping>: New field.
13222 (struct lwp_info) <step_range_start, step_range_end>: New fields.
13223 * linux-x86-low.c (x86_supports_range_stepping): New.
13224 (the_low_target) <supports_range_stepping>: Set to
13225 x86_supports_range_stepping.
13226 * server.c (handle_v_cont): Handle 'r' action.
13227 (handle_v_requests): Append ";r" if the target supports range
13228 stepping.
13229 * target.h (struct thread_resume) <step_range_start,
13230 step_range_end>: New fields.
13231 (struct target_ops) <supports_range_stepping>:
13232 New field.
13233 (target_supports_range_stepping): New macro.
13234
58794e1a
JB
132352013-05-17 Joel Brobecker <brobecker@adacore.com>
13236
13237 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
13238 confusion in comment.
13239
d631c5a7
JB
132402013-05-17 Joel Brobecker <brobecker@adacore.com>
13241
13242 * lynx-low.c (struct process_info_private): New type.
13243 (lynx_add_process): New function.
13244 (lynx_create_inferior, lynx_attach): Replace calls to
13245 add_process by calls to lynx_add_process.
13246 (lynx_resume): If PTID is null, then try using
13247 current_process()->private->last_wait_event_ptid.
13248 Add comments.
13249 (lynx_clear_inferiors): Delete. The contents of that function
13250 has been inlined in lynx_mourn;
13251 (lynx_wait_1): Save the ptid in the process's private data.
13252 (lynx_mourn): Free the process' private data. Replace call
13253 to lynx_clear_inferiors by call to clear_inferiors.
13254
96f7a20f
YQ
132552013-05-17 Yao Qi <yao@codesourcery.com>
13256
13257 * i386-low.c (i386_length_and_rw_bits): Move the comment to
13258 the right place.
13259
db0dfaa0
LM
132602013-05-16 Luis Machado <lgustavo@codesourcery.com>
13261
13262 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
13263 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
13264 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
13265 PT_TEXT_END_ADDR guards. Update comments.
13266 (linux_target_op) <read_offsets>: Conditionally define to
13267 linux_read_offsets if the target is UCLIBC and if it defines
13268 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
13269
68f5f838
SL
132702013-05-06 Sandra Loosemore <sandra@codesourcery.com>
13271 Andrew Jenner <andrew@codesourcery.com>
13272
13273 * Makefile.in (SFILES): Add linux-nios2-low.c.
13274 (clean): Add action to delete nios2-linux.c.
13275 (nios2-linux.c): New rule.
13276 * configure.srv: Add nios2*-*-linux*.
13277 * linux-nios2-low.c: New.
13278
1ebff1fd
HAQ
132792013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
13280
13281 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
13282
f6150862
HZ
132832013-04-25 Hui Zhu <hui@codesourcery.com>
13284
13285 PR gdb/15186
f6150862
HZ
13286 * ax.c (ax_printf): Add fflush.
13287
614c279d
TT
132882013-04-22 Tom Tromey <tromey@redhat.com>
13289
13290 * Makefile.in (SFILES): Add filestuff.c.
13291 (OBS): Add filestuff.o.
13292 (filestuff.o): New target.
13293 * config.in, configure: Rebuild.
13294 * configure.ac: Check for fdwalk, pipe2.
13295
7d4e5717
PA
132962013-04-17 Pedro Alves <palves@redhat.com>
13297
13298 * configure.ac (USE_THREAD_DB): Delete variable.
13299 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
13300 Don't AC_SUBST USE_THREAD_DB.
13301 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
13302 * config.in, configure: Regenerate.
13303
d5c93e41
PA
133042013-04-16 Pedro Alves <palves@redhat.com>
13305
13306 * linux-low.h (struct lwp_info) <thread_known>: Move under
13307 the USE_THREAD_DB #ifdef.
13308
04f5fe89
PA
133092013-04-16 Pedro Alves <palves@redhat.com>
13310
13311 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
13312 (linux-low.o): Delete rule.
13313 * linux-low.h: Always include "gdb_thread_db.h" instead of
13314 conditionally including thread_db.h.
13315 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
13316 HAVE_THREAD_DB_H.
13317
480b27bf
JK
133182013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
13319
13320 * Makefile.in (install-only): Fix make install regression.
13321
43662968
JK
133222013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
13323
13324 Convert man pages to texinfo, new gdbinit.5 texinfo page.
13325 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
13326 installation.
13327 * gdbserver.1: Remove.
13328
3e74e146
PA
133292013-03-22 Pedro Alves <palves@redhat.com>
13330
13331 * linux-low.c (handle_extended_wait): Don't call
13332 linux_enable_event_reporting.
13333
a8347a2a
TT
133342013-03-15 Tony Theodore <tonyt@logyst.com>
13335
13336 PR build/9098:
13337 * Makefile.in (SHELL): Use @SHELL@.
13338
eeb56fa7
SDJ
133392013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
13340
13341 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
13342 compiler warning.
13343
4fa7e2ff
JB
133442013-03-13 Joel Brobecker <brobecker@adacore.com>
13345
13346 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
13347 Remove extraneous NULL element.
13348
8ddb1965
YQ
133492013-03-13 Yao Qi <yao@codesourcery.com>
13350
13351 * tracepoint.c (traceframe_read_tsv): Look for the last matched
13352 'V' block in trace frame.
13353
9accd112
MM
133542013-03-11 Markus Metzger <markus.t.metzger@intel.com>
13355
13356 * target.h (struct target_ops): Add btrace ops.
13357 (target_supports_btrace): New macro.
13358 (target_enable_btrace): New macro.
13359 (target_disable_btrace): New macro.
13360 (target_read_btrace): New macro.
13361 * gdbthread.h (struct thread_info): Add btrace field.
13362 * server.c: Include btrace-common.h.
13363 (handle_btrace_general_set): New function.
13364 (handle_btrace_enable): New function.
13365 (handle_btrace_disable): New function.
13366 (handle_general_set): Call handle_btrace_general_set.
13367 (handle_qxfer_btrace): New function.
13368 (struct qxfer qxfer_packets[]): Add btrace entry.
13369 * inferiors.c (remove_thread): Disable btrace.
13370 * linux-low: Include linux-btrace.h.
13371 (linux_low_enable_btrace): New function.
13372 (linux_low_read_btrace): New function.
13373 (linux_target_ops): Add btrace ops.
13374 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
13375 Add srv_linux_btrace=yes.
13376 (x86_64-*-linux*): Add linux-btrace.o.
13377 Add srv_linux_btrace=yes.
13378 * configure.ac: Define HAVE_LINUX_BTRACE.
13379 * config.in: Regenerated.
13380 * configure: Regenerated.
13381
5cc22e4c
MM
133822013-03-11 Markus Metzger <markus.t.metzger@intel.com>
13383
13384 * server.c (handle_qxfer): Preserve error message if -3 is
13385 returned.
13386 (qxfer): Document the -3 return value.
13387
7c97f91e
MM
133882013-03-11 Markus Metzger <markus.t.metzger@intel.com>
13389
13390 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
13391 (linux_btrace_h): New variable.
13392 (linux-btrace.o): New rule.
13393
be9a119c 133942013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
13395 Hafiz Abid Qadeer <abidh@codesourcery.com>
13396
13397 * tracepoint.c (trace_buffer_size): New global.
13398 (DEFAULT_TRACE_BUFFER_SIZE): New define.
13399 (init_trace_buffer): Change to one-argument function. Allocate
13400 trace buffer memory.
13401 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
13402 handle QTBuffer:size packet.
13403 (cmd_bigqtbuffer_size): New function.
13404 (initialize_tracepoint): Call init_trace_buffer with
13405 DEFAULT_TRACE_BUFFER_SIZE.
13406 * server.c (handle_query): Add QTBuffer:size in the
13407 supported packets.
13408
e64f7499
YQ
134092013-03-07 Yao Qi <yao@codesourcery.com>
13410
13411 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
13412 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
13413 of -1.
13414 (cmd_qtsp): Adjust condition. Do post increment.
13415 Set cur_action and cur_step_action back to 0.
13416
f0ae6fc3
PA
134172013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
13418
13419 PR server/15236
13420 * linux-low.c (linux_write_memory): Return early success if LEN is
13421 zero.
13422
b5b0b0af
CV
134232013-03-05 Corinna Vinschen <vinschen@redhat.de>
13424
334ad4a8 13425 * configure.srv: Add x86_64-*-cygwin* as target.
b5b0b0af 13426
589bc927
TT
134272013-02-28 Tom Tromey <tromey@redhat.com>
13428
13429 * configure.ac: Invoke AC_SYS_LARGEFILE.
13430 * configure, config.in: Rebuild.
13431
dfe07582
CV
134322013-02-28 Corinna Vinschen <vinschen@redhat.com>
13433
13434 * win32-low.c: Throughout, fix format strings and casts of
13435 printf-like functions to avoid type related warnings on all
13436 platforms.
13437 (get_child_debug_event): Print dwDebugEventCode as hex since
13438 that's how it's usually documented.
13439
736cd585
YQ
134402013-02-28 Yao Qi <yao@codesourcery.com>
13441
13442 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
13443 pulongest.
13444
e1f58301
JW
134452013-02-27 Jiong Wang <jiwang@tilera.com>
13446
13447 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
13448 (reg-tilegx32.c): New rule.
13449 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
13450 * linux-tile-low.c (tile_arch_setup): New function. Invoke
13451 different register info initializer according to elf class.
13452 (init_registers_tilgx32): New function. The tilegx32 register info
13453 initializer.
13454 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
13455 (tile_store_gregset): Likewise.
13456
d171ca78
YQ
134572013-02-27 Yao Qi <yao@codesourcery.com>
13458
13459 * server.c (process_point_options): Print debug message when
13460 debug_threads is true.
13461
282bbdf3
YQ
134622013-02-26 Yao Qi <yao@codesourcery.com>
13463
13464 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
13465
aca22551
PA
134662013-02-19 Pedro Alves <palves@redhat.com>
13467 Kai Tietz <ktietz@redhat.com>
13468
13469 PR gdb/15161
13470
13471 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
13472 instead of strtoul to extract address from packet.
13473 (process_serial_event) <'z'>: Likewise.
13474
4f3cee1c
YQ
134752013-02-18 Yao Qi <yao@codesourcery.com>
13476
13477 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
13478
8e1d55a3
PA
134792013-02-14 Pedro Alves <palves@redhat.com>
13480
13481 Plug memory leak.
13482
13483 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
13484 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
13485
458820da
PA
134862013-02-14 Pedro Alves <palves@redhat.com>
13487
13488 * tracepoint.c (cmd_qtdpsrc): Use savestring.
13489
baea0dae
PA
134902013-02-14 Pedro Alves <palves@redhat.com>
13491
13492 * tracepoint.c (save_string): Delete.
13493 (add_tracepoint_action): Use savestring instead of save_string.
13494
0b1afbb3
PA
134952013-02-12 Pedro Alves <palves@redhat.com>
13496
13497 * linux-xtensa-low.c: Ditto.
13498 * xtensa-xtregs.c: Ditto.
13499
8a4ac37e
PA
135002013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13501
13502 * thread-db.c (thread_db_get_tls_address): NULL pointer check
13503 thread_db.
13504
148de6bb
MS
135052013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
13506
13507 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
13508 aarch64_num_wp_regs and aarch64_num_bp_regs to
13509 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
13510
55fac6e0
MS
135112013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
13512
13513 * linux-aarch64-low.c (ps_get_thread_area): Replace
13514 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
13515
176eb98c
MS
135162013-02-04 Jim MacArthur <jim.macarthur@arm.com>
13517 Marcus Shawcroft <marcus.shawcroft@arm.com>
13518 Nigel Stephens <nigel.stephens@arm.com>
13519 Yufeng Zhang <yufeng.zhang@arm.com>
13520
13521 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
13522 (aarch64.c, aarch64-without-fpu.c): New targets.
13523 * configure.srv (aarch64*-*-linux*): New.
13524 * linux-aarch64-low.c: New file.
13525
56f7af9c
MS
135262013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
13527
43aaf8b6 13528 * linux-low.c (handle_extended_wait, linux_create_inferior)
56f7af9c
MS
13529 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
13530 (dequeue_one_deferred_signal, linux_resume_one_thread)
13531 (fetch_register, linux_write_memory, linux_enable_event_reporting)
13532 (linux_tracefork_grandchild, linux_test_for_tracefork)
13533 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
13534 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
13535 where the argument is 0.
13536
60f662b0
YQ
135372013-01-25 Yao Qi <yao@codesourcery.com>
13538
13539 * event-loop.c: Include "queue.h".
13540 (gdb_event_p): New typedef.
13541 (struct gdb_event) <next_event>: Remove.
13542 (event_queue): Change to QUEUE(gdb_event_p).
13543 (async_queue_event): Remove.
13544 (gdb_event_xfree): New.
13545 (initialize_event_loop): New.
13546 (process_event): Use API from QUEUE.
13547 (wait_for_event): Likewise.
13548 * server.c (main): Call initialize_event_loop.
13549 * server.h (initialize_event_loop): Declare.
13550
5ae4861a
YQ
135512013-01-18 Yao Qi <yao@codesourcery.com>
13552
13553 * ax.h (struct eval_agent_expr_context): New.
13554 (gdb_eval_agent_expr): Update declaration.
13555 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
13556 TFRAME. Add new argument CTX.
13557 * server.h (struct eval_agent_expr_context): Declare.
13558 (agent_mem_read, agent_tsv_read): Update declaration.
13559 (agent_mem_read_string): Likewise.
13560 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
13561 (add_traceframe_block): Add new argument TPOINT.
13562 Increase TPOINT->traceframe_usage.
13563 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
13564 eval_tracepoint_agent_expr.
13565 (condition_true_at_tracepoint): Likewise.
13566 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
13567 (agent_mem_read_string, agent_tsv_read): Likewise.
13568
85e00e85
YQ
135692013-01-16 Yao Qi <yao@codesourcery.com>
13570
13571 * linux-low.c (linux_resume_one_lwp): Don't check
13572 'lwp->bp_reinsert != 0'.
13573
4039cf45
JB
135742013-01-07 Joel Brobecker <brobecker@adacore.com>
13575 Pedro Alves <palves@redhat.com>
13576
13577 * lynx-low.c (ptrace_request_to_str): Define a temporary
13578 macro and use it to simplify this function's implementation.
13579
9044dee2
JB
135802013-01-07 Joel Brobecker <brobecker@adacore.com>
13581
13582 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
13583 sets errno.
13584
e6352c8f
JB
135852013-01-07 Joel Brobecker <brobecker@adacore.com>
13586
13587 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
13588
50681a27
JB
135892013-01-07 Joel Brobecker <brobecker@adacore.com>
13590
13591 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
13592
3f6e77ef
JB
135932013-01-07 Joel Brobecker <brobecker@adacore.com>
13594
13595 * lynx-low.c (lynx_resume): Use the resume_info parameter
13596 to determine the ptid for the lynx_ptrace call, unless
13597 it is equal to minus_one_ptid, in which case we use the
13598 ptid of the current_inferior.
13599 (lynx_wait_1): After having received a thread create/exit
13600 event, resume the inferior's execution using the signaling
13601 thread's ptid, rather than the old ptid.
13602
7fda33ae
JB
136032013-01-07 Joel Brobecker <brobecker@adacore.com>
13604
13605 * lynx-low.c (lynx_resume): Delete variable ret.
13606
b9786c74
JB
136072013-01-01 Joel Brobecker <brobecker@adacore.com>
13608
13609 * gdbreplay.c (gdbreplay_version): Update copyright year.
13610 * server.c (gdbserver_version): Likewise.
13611
8b93d60f
JB
136122012-12-17 Joel Brobecker <brobecker@adacore.com>
13613
13614 * lynx-low.c (lynx_wait_1): Add debug trace before adding
13615 new thread.
13616
037335a7
JB
136172012-12-17 Joel Brobecker <brobecker@adacore.com>
13618
13619 * lynx-low.c (ptrace_request_to_str): Add handling for
13620 PTRACE_GETTRACESIG.
13621
52d4cbd8
JB
136222012-12-17 Joel Brobecker <brobecker@adacore.com>
13623
13624 * lynx-low.c (lynx_attach): Delete variable new_process.
13625
ab8f6ca9
JB
136262012-12-17 Joel Brobecker <brobecker@adacore.com>
13627
13628 * lynx-low.c (lynx_create_inferior): Delete variable
13629 new_process.
13630
78cbc024
JB
136312012-12-17 Joel Brobecker <brobecker@adacore.com>
13632
13633 * lynx-low.c (ptrace_request_to_str): Do not handle
13634 PTRACE_GETTHREADLIST if this macro does not exist.
13635
14a00470
YQ
136362012-12-15 Yao Qi <yao@codesourcery.com>
13637
13638 * Makefile.in (OBS): Add notif.o.
13639 * notif.c, notif.h: New.
13640 * server.c: Include "notif.h".
13641 (struct vstop_notif) <next>: Remove.
13642 <base>: New field.
13643 (queue_stop_reply): Update.
13644 (push_event, send_next_stop_reply): Remove.
13645 (discard_queued_stop_replies): Update.
13646 (notif_stop): New variable.
13647 (handle_v_stopped): Remove.
13648 (handle_v_requests): Don't call handle_v_stopped. Call
13649 handle_ack_notif instead.
13650 (queue_stop_reply_callback): Call notif_event_enque instead
13651 of queue_stop_reply.
13652 (handle_status): Don't call send_next_stop_reply, call
13653 notif_write_event instead.
13654 (kill_inferior_callback): Likewise.
13655 (detach_or_kill_inferior_callback): Likewise.
13656 (main): Call initialize_notif.
13657 (process_serial_event): Call QUEUE_is_empty.
13658 (handle_target_event): Call notif_push instead of push event.
13659 * server.h (push_event): Remove declaration.
13660
61c125b9
TT
136612012-12-10 Tom Tromey <tromey@redhat.com>
13662
13663 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
13664 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
13665 macros.
13666 (.c.o): Rewrite.
13667 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
13668 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
13669 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
13670 (amd64-linux-ipa.o, ax.o): Rewrite.
13671 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
13672 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
13673 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
13674 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
13675 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
13676 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
13677 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
13678 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
13679 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
13680 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
13681 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
13682 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
13683 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
13684 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
13685 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
13686 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
13687 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
13688 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
13689 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
13690 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
13691 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
13692 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
13693 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
13694 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
13695 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
13696 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
13697 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
13698 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
13699 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
13700 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
13701 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
13702 (reg-tilegx.o): Remove.
13703 (all_object_files): New macro.
13704 Include .deps files.
13705 * aclocal.m4, configure: Rebuild.
13706 * acinclude.m4: Include depstand.m4, lead-dot.m4.
13707 * configure.ac: Invoke ZW_CREATE_DEPDIR,
13708 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
13709
e90e9ad9
TT
137102012-12-05 Tom Tromey <tromey@redhat.com>
13711
13712 PR gdb/14917:
13713 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
13714
02d403bf 137152012-11-28 Markus Metzger <markus.t.metzger@intel.com>
945bf713
MM
13716
13717 * configure.ac: Check for linux/perf_event.h.
13718 * config.in: Regenerated.
13719 * configure: Regenerated.
13720
0270a750
PA
137212012-11-26 Maxime Villard <rustyBSD@gmx.fr>
13722
13723 * hostio.c (handle_readlink): Decrease buffer size
13724 parameter passed to readlink by one byte.
13725
8c29b58e
YQ
137262012-11-26 Yao Qi <yao@codesourcery.com>
13727
13728 * configure.ac (build_warnings): Append '-Wempty-body'.
13729 * configure: Regenerated.
13730 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
13731 body.
13732
8bdce1ff
PM
137332012-11-15 Pierre Muller <muller@sourceware.org>
13734
13735 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
13736 * config.in: Regenerate.
13737 * configure: Regenerate.
13738 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
13739 Use "gdb_wait.h" header instead of <sys/wait.h> header.
13740 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
13741 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
13742 header.
13743 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
13744 instead of <sys/wait.h> header.
13745 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
13746
02d403bf 137472012-11-13 Markus Metzger <markus.t.metzger@intel.com>
3ba6ad0f
MM
13748
13749 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
13750 (various make rules): Remove -DGDBSERVER
13751
fbd5db48
YQ
137522012-11-09 Yao Qi <yao@codesourcery.com>
13753
13754 * spu-low.c (current_ptid): Move it to ..
13755 * gdbthread.h: ... here. New.
13756 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
13757 * server.c (myresume, process_serial_event): Likewise.
13758 * thread-db.c (thread_db_find_new_threads): Likewise.
13759 * tracepoint.c (run_inferior_command): Likewise.
13760
b3dc46ff
AB
137612012-10-01 Andrew Burgess <aburgess@broadcom.com>
13762
13763 * server.c (handle_search_memory_1): Include access length in
13764 warning message.
13765
07c04788
HPN
137662012-09-05 Michael Brandt <michael.brandt@axis.com>
13767
13768 * linux-crisv32-low.c: Fix compile errors.
13769
918d227b
YQ
137702012-09-04 Yao Qi <yao@codesourcery.com>
13771
13772 * tracepoint.c (cmd_qtsv): Adjust debug message.
13773 Don't check CUR_TPOINT.
13774
18c1b81a
YQ
137752012-08-28 Yao Qi <yao@codesourcery.com>
13776
13777 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
13778 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
13779 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
13780 Remove declarations of xmalloc, xreallloc, xstrdup and
13781 freeargv.
13782 * Makefile.in (libiberty_h): New.
13783 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
13784 (linux-bfin-low.o): Append dependency 'libiberty.h'.
13785
dc82f37b
YQ
137862012-08-23 Yao Qi <yao@codesourcery.com>
13787
13788 * server.h: Remove declaration of 'xsnprintf'.
13789
406b1477
KS
137902012-08-22 Keith Seitz <keiths@redhat.com>
13791
13792 * server.h: Include build-gnulib-gbserver/config.h.
13793 * gdbreplay.c: Likewise.
13794
e6712ff1
DE
137952012-08-08 Doug Evans <dje@google.com>
13796
13797 * Makefile.in (SFILES): Add gdb_vecs.c.
13798 (OBS): Add gdb_vecs.o.
13799 (gdb_vecs_h, host_defs_h): New variables.
13800 (thread-db.o): Add $(gdb_vecs_h) dependency.
13801 (gdb_vecs.o): New rule.
13802 * thread-db.c: #include "gdb_vecs.h".
13803 (thread_db_load_search): Use a vector to iterate over path elements.
13804 Handle text appearing after "$pdir".
13805
13806 * configure.ac: Add check for strstr.
13807 * config.in: Regenerate.
13808 * configure: Regenerate.
13809
7c3270ae
UW
138102012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
13811
13812 * hostio.c (handle_pread): If pread fails, fall back to attempting
13813 lseek/read.
13814 (handle_pwrite): Likewise for pwrite.
13815
b62e2b27
UW
138162012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
13817
13818 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
13819 between unsupported TYPE and unimplementable ADDR/LEN combination.
13820 (arm_insert_point): Act on new return value.
13821
78a99e91
PA
138222012-07-31 Pedro Alves <palves@redhat.com>
13823
13824 * server.c (process_point_options): Only skip tokens if we find
13825 one that is unrecognized. Don't treat 'X' specially while
13826 skipping unrecognized tokens.
13827
fcf303ab
UW
138282012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
13829
13830 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
13831 to 4-byte-align HW breakpoint addresses for Thumb.
13832
7255706c
YQ
138332012-07-27 Yao Qi <yao@codesourcery.com>
13834
13835 PR remote/14161.
13836
13837 * server.h: Declare gdb_agent_about_to_close.
13838 * target.c (kill_inferior): Include "agent.h".
13839 New. Send command 'kill'.
13840 * target.h (kill_inferior): Removed macro.
13841 * tracepoint.c (gdb_agent_about_to_close): New.
13842 (gdb_agent_helper_thread): Handle command 'close'.
13843 Wait endlessly until the inferior stops.
13844 Install gdb_agent_remove_socket to atexit hook.
13845 (agent_socket_name): New static variable.
13846 (gdb_agent_socket_init): Replace local variable 'name' with
13847 'agent_socket_name'.
13848 (gdb_agent_remove_socket): New.
13849
5a3f286f
YQ
138502012-07-27 Yao Qi <yao@codesourcery.com>
13851
13852 * server.c (process_point_options): Stop at 'X' when parsing.
13853
961bd387
ME
138542012-07-19 Michael Eager <eager@eagercon.com>
13855
a261b8f5 13856 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
961bd387
ME
13857 to hw_execute.
13858 * linux-x86-low.c (x86_insert_point, x86_remove_point):
13859 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
13860 hardware breakpoint.
13861
aa7c7447
JK
138622012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
13863
13864 * gdbserver/linux-low.c (initialize_low): Call
13865 linux_ptrace_init_warnings.
13866
7f216e7c
DE
138672012-07-02 Doug Evans <dje@google.com>
13868
13869 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
13870 pointer to int.
13871
d3ce09f5
SS
138722012-07-02 Stan Shebs <stan@codesourcery.com>
13873
13874 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
13875 (ax.o): Add it to build rule.
13876 (ax-ipa.o): Ditto.
13877 (OBS): Add format.o.
13878 (IPA_OBS): Add format.o.
13879 * server.c (handle_query): Claim support for breakpoint commands.
13880 (process_point_options): Add command case.
13881 (process_serial_event): Leave running if there are printfs in
13882 effect.
13883 * mem-break.h (any_persistent_commands): Declare.
13884 (add_breakpoint_commands): Declare.
13885 (gdb_no_commands_at_breakpoint): Declare.
13886 (run_breakpoint_commands): Declare.
13887 * mem-break.c (struct point_command_list): New struct.
13888 (struct breakpoint): New field command_list.
13889 (any_persistent_commands): New function.
13890 (add_commands_to_breakpoint): New function.
13891 (add_breakpoint_commands): New function.
13892 (gdb_no_commands_at_breakpoint): New function.
13893 (run_breakpoint_commands): New function.
13894 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
13895 locally.
13896 * ax.c: Include format.h.
13897 (ax_printf): New function.
13898 (gdb_eval_agent_expr): Add printf opcode.
13899
2f8f6aed
YQ
139002012-06-13 Yao Qi <yao@codesourcery.com>
13901
13902 * server.c (start_inferior): Remove duplicated writes to fields
13903 'last_resume_kind' and 'last_status' of 'current_inferior'.
13904
0c9070b3
YQ
139052012-06-12 Yao Qi <yao@codesourcery.com>
13906 Pedro Alves <palves@redhat.com>
13907
13908 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
13909 comment.
13910 * server.c (handle_v_cont): Extend comment.
13911
c52daf70
YQ
139122012-06-11 Yao Qi <yao@codesourcery.com>
13913
13914 * linux-low.c (linux_attach): Add 'static'.
13915
d38bbb0a
YQ
139162012-06-06 Yao Qi <yao@codesourcery.com>
13917
13918 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
13919
89dc0afd
JK
139202012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
13921
13922 Fix gcc -flto compilation warning.
13923 * server.c (main): Make variable multi_mode and attach volatile.
13924
75f62ce7
TJB
139252012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
13926
13927 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
13928 if the platform doesn't know about it.
13929
65f479b6
PA
139302012-05-30 Jeff Kenton <jkenton@tilera.com>
13931
13932 * Makefile.in (SFILES): Add linux-tile-low.c.
13933 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
13934 * configure.srv: Handle tilegx-*-linux*.
13935 * linux-tile-low.c: New file.
13936
0c5bf5a9
JK
139372012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13938
13939 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
13940
a493e3e2
PA
139412012-05-24 Pedro Alves <palves@redhat.com>
13942
13943 PR gdb/7205
13944
43aaf8b6 13945 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 13946
2ea28649
PA
139472012-05-24 Pedro Alves <palves@redhat.com>
13948
13949 PR gdb/7205
13950
13951 Replace target_signal with gdb_signal throughout.
13952
8d409d16
MR
139532012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
13954
13955 * linux-low.c (linux_store_registers): Avoid the copying sequence
13956 when no data has been retrieved by ptrace.
13957
23512c01
MGD
139582012-05-22 Will Deacon <will.deacon@arm.com>
13959
13960 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
13961 Include asm/ptrace.h.
13962 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
13963 already defined.
13964
4934b29e
MR
139652012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
13966
13967 * linux-low.c (linux_store_registers): Don't re-retrieve data
13968 with ptrace that has already been obtained from /proc. Always
13969 copy any data retrieved with ptrace to the buffer supplied.
13970
bde24c0a
PA
139712012-05-11 Yao Qi <yao@codesourcery.com>
13972 Pedro Alves <palves@redhat.com>
13973
13974 * linux-low.c (enum stopping_threads_kind): New.
13975 (stopping_threads): Change type to `enum stopping_threads_kind'.
13976 (handle_extended_wait): If stopping and suspending threads, leave
13977 the new_lwp suspended too.
13978 (linux_wait_for_event): Adjust.
13979 (stop_all_lwps): Set `stopping_threads' to
13980 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
13981 whether we're suspending threads or just stopping them. Assert no
13982 recursion happens.
13983
623b6bdf
YQ
139842012-04-29 Yao Qi <yao@codesourcery.com>
13985
13986 * server.h: Move some code to ...
13987 * gdbthread.h: ... here. New.
13988 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
13989 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
13990 (nto-low.o, win32-low.o): Likewise.
13991 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
13992 * regcache.c, remote-utils.c, server.c: Likewise.
13993 * target.c, tracepoint.c, win32-low.c: Likewise.
13994
f15f9948
TJB
139952012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
13996
13997 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
13998 (PTRACE_ARG4_TYPE): Likewise.
13999 (PTRACE_XFER_TYPE): Likewise.
14000 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
14001 ptrace to PTRACE_ARG3_TYPE.
14002 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
14003 (PTRACE_ARG4_TYPE): Likewise.
14004 (PTRACE_XFER_TYPE): Likewise.
14005 (linux_detach_one_lwp): Cast fourth argument of
14006 ptrace to long then PTRACE_ARG4_TYPE.
14007 (regsets_fetch_inferior_registers): Cast third argument of
14008 ptrace to long then PTRACE_ARG3_TYPE.
14009 (regsets_store_inferior_registers): Likewise.
14010
38ea300a
PA
140112012-04-20 Pedro Alves <palves@redhat.com>
14012
14013 * configure: Regenerate.
14014
c971b7fa
PA
140152012-04-19 Pedro Alves <palves@redhat.com>
14016
43aaf8b6 14017 * Makefile.in (GNULIB_BUILDDIR): New.
c971b7fa 14018 (LIBGNU, INCGNU, GNULIB_H): Adjust.
43aaf8b6
PA
14019 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
14020 (all, install-only, uninstall, clean-info, all-lib, clean): No
14021 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
14022 (maintainer-clean realclean distclean): Use subdir_do.
14023 (subdir_do): New.
14024 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
c971b7fa 14025 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
43aaf8b6
PA
14026 * acinclude.m4: Include acx_configure_dir.m4.
14027 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
14028 calls. Call AC_PROG_RANLIB. Configure gnulib using
14029 ACX_CONFIGURE_DIR.
14030 (GNULIB): New.
14031 (GNULIB_STDINT_H): Adjust.
14032 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
14033 * gdbreplay.c: Include build-gnulib/config.h.
14034 * server.h: Likewise.
14035 * aclocal.m4: Regenerate.
14036 * config.in: Regenerate.
14037 * configure: Regenerate.
c971b7fa 14038
809277f8
PA
140392012-04-19 Pedro Alves <palves@redhat.com>
14040
14041 * Makefile.in (LIBGNU, INCGNU): Adjust.
14042 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
14043 (all, install-only, uninstall, clean-info, all-lib, clean)
14044 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
14045 * configure.ac: Adjust AC_OUTPUT output.
14046 * aclocal.m4: Regenerate.
14047 * configure: Regenerate.
14048
fd9bb8b8
PA
140492012-04-19 Pedro Alves <palves@redhat.com>
14050
14051 * Makefile.in (generated_files): New.
14052 (server_h): Remove the explicit dependency on config.h, and depend
14053 on $generated_files.
14054
1c298c66
PA
140552012-04-19 Pedro Alves <palves@redhat.com>
14056
14057 * Makefile.in (INCGNU): Add -Ignulib.
14058
57c4b50b
PA
140592012-04-19 Pedro Alves <palves@redhat.com>
14060
14061 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
14062 (INCGNU): ... this, and spell out -I here.
14063 (GNULIB_LIB): Rename to ...
14064 (LIBGNU): ... this.
14065 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
14066
1030e047
PA
140672012-04-19 Pedro Alves <palves@redhat.com>
14068
14069 * config.in: Regenerate.
14070
447d4319
PA
140712012-04-19 Pedro Alves <palves@redhat.com>
14072
14073 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
14074 * server.h (memmem): Remove declaration.
14075 * config.in: Regenerate.
14076 * configure: Regenerate.
14077
aad9eab9
YQ
140782012-04-19 Yao Qi <yao@codesourcery.com>
14079
14080 * Makefile.in (SFILES): Add common/vec.c.
14081 (OBS): Add vec.o.
14082 (vec.o): New rule.
14083
3e10640f
YQ
140842012-04-19 Yao Qi <yao@codesourcery.com>
14085
14086 * remote-utils.c (prepare_resume_reply): Replace with macro
14087 target_core_of_thread.
14088 * server.c (handle_qxfer_threads_proper): Likewise.
14089 * target.h (traget_core_of_thread): New macro.
14090
71622373
PA
140912012-04-18 Pedro Alves <palves@redhat.com>
14092
14093 * aclocal.m4: Regenerate.
14094 * configure: Regenerate.
14095
80d26939
YQ
140962012-04-16 Yao Qi <yao@codesourcery.com>
14097
14098 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
14099 duplicated on address.
14100
42476b70
YQ
141012012-04-16 Yao Qi <yao@codesourcery.com>
14102
14103 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
14104 (struct tracepoint_action_ops) <send>: New field.
14105 (m_tracepoint_action_send, r_tracepoint_action_send): New.
14106 (agent_expr_send, x_tracepoint_action_send): New.
14107 (l_tracepoint_action_send): New.
14108 (cmd_qtdp): Download and install tracepoint
14109 according to `use_agent'.
14110 (run_inferior_command): Add one more parameter `len'.
14111 Update callers.
14112 (tracepoint_send_agent): New.
14113 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
14114
7bc83639
YQ
141152012-04-16 Yao Qi <yao@codesourcery.com>
14116
14117 * tracepoint.c (download_tracepoints): Moved to ...
14118 (cmd_qtstart): ... here.
14119
5f18041e
YQ
141202012-04-14 Yao Qi <yao@codesourcery.com>
14121
14122 * tracepoint.c: Include inttypes.h.
14123 (struct collect_memory_action): Use sized types.
14124 (struct tracepoint): Likewise.
14125 (cmd_qtdp, stop_tracing): Update print specifiers.
14126 (cmd_qtp, response_tracepoint): Likewise.
14127 (collect_data_at_tracepoint): Likewise.
14128 (collect_data_at_step): Likewise.
14129
55a8c076
YQ
141302012-04-14 Yao Qi <yao@codesourcery.com>
14131
14132 Import gnulib module inttypes.
14133 * aclocal.m4, config.in, configure: Regenerated.
14134
dc750257
YQ
141352012-04-14 Yao Qi <yao@codesourcery.com>
14136
14137 * Makefile.in (maintainer-clean, realclean, distclean): Remove
14138 Makefile and config.status at last.
14139
0ab5faf9
YQ
141402012-04-13 Yao Qi <yao@codesourcery.com>
14141
14142 * tracepoint.c: Include stdint.h unconditionally.
14143
18f5fd81
TJB
141442012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14145
14146 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
14147 on BFD_HAVE_SYS_PROCFS_TYPE.
14148 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
14149 * configure: Regenerate.
14150 * config.in: Likewise.
14151
4d47af5c
L
141522012-04-13 H.J. Lu <hongjiu.lu@intel.com>
14153
14154 * Makefile.in (clean): Also remove x32.c x32-linux.c
14155 x32-avx.c x32-avx-linux.c.
14156 (x32.o): New target.
14157 (x32.c): Likewise.
14158 (x32-linux.o): Likewise.
14159 (x32-linux.c): Likewise.
14160 (x32-avx.o): Likewise.
14161 (x32-avx.c): Likewise.
14162 (x32-avx-linux.o): Likewise.
14163 (x32-avx-linux.c): Likewise.
14164
14165 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
14166 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
14167 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
14168 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
14169 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
14170 i386/x32-avx-linux.xml.
14171
14172 * linux-x86-low.c (init_registers_x32_linux): New prototype.
14173 (init_registers_x32_avx_linux): Likwise.
14174 (x86_linux_update_xmltarget): Call init_registers_x32_linux
14175 or init_registers_x32_avx_linux if linux_is_elf64 is false.
14176
ecedbe58
PA
141772012-04-13 Pedro Alves <palves@redhat.com>
14178
14179 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
14180 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
14181 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
14182 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
14183 the sub-make.
14184
c92b5177
L
141852012-04-12 H.J. Lu <hongjiu.lu@intel.com>
14186
14187 * linux-x86-low.c (compat_x32_clock_t): New.
14188 (compat_x32_siginfo_t): Likewise.
14189 (compat_x32_siginfo_from_siginfo): Likewise.
14190 (siginfo_from_compat_x32_siginfo): Likewise.
14191 (linux_is_elf64): Likewise.
14192 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
14193 and siginfo_from_compat_x32_siginfo for x32.
14194 (x86_arch_setup): Set linux_is_elf64.
14195
214d508e
L
141962012-04-12 H.J. Lu <hongjiu.lu@intel.com>
14197
14198 PR gdb/13969
14199 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
14200 e_machine field.
14201 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
14202 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
14203 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
14204 compatible with process.
14205
c9a1864a
YQ
142062012-04-12 Yao Qi <yao@codesourcery.com>
14207
14208 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
14209 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
14210 (install-only, install-info, clean): Handle sub dir gnulib.
14211 (all-lib, am--refresh): New targets.
14212 (memmem.o): Remove target.
14213 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
14214 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
14215 (AC_REPLACE_FUNCS): Remove memmem.
14216 Invoke gl_INIT and AM_INIT_AUTOMAKE.
14217 (AC_OUTPUT): Generate Makefile in gnulib/.
14218 * aclocal.m4, config.in, configure: Regenerated.
14219
367ba2c2
MR
142202012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
14221
14222 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
14223
9d236627
PA
142242012-04-05 Pedro Alves <palves@redhat.com>
14225
14226 -Werror=strict-aliasing
14227
14228 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
14229 pointer.
14230
111217b3
PA
142312012-04-04 Pedro Alves <palves@redhat.com>
14232
14233 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
14234 (sparc_store_gregset_from_stack, sparc_store_gregset)
14235 (sparc_breakpoint_at): Fix formatting.
14236
8365dcf5
TJB
142372012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14238
14239 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
14240 are available.
14241 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
14242 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
14243 * config.in: Regenerate.
14244 * configure: Likewise.
14245
689cc2ae
PA
142462012-03-29 Pedro Alves <palves@redhat.com>
14247
14248 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
14249 Correct ptrace arguments.
14250
c14dfd32
PA
142512012-03-28 Pedro Alves <palves@redhat.com>
14252
14253 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
14254 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
14255 (IA64_FR1_REGNUM): New defines.
14256 (ia64_fetch_register): New.
14257 (the_low_target): Install it.
14258 * linux-low.h (struct linux_target_ops) <fetch_register>: New
14259 field.
14260 * linux-low.c (linux_fetch_registers): Try the
14261 the_low_target.fetch_register hook first.
14262
14263 * linux-arm-low.c (the_low_target): Adjust.
14264 * linux-bfin-low.c (the_low_target): Adjust.
14265 * linux-cris-low.c (the_low_target): Adjust.
14266 * linux-crisv32-low.c (the_low_target): Adjust.
14267 * linux-m32r-low.c (the_low_target): Adjust.
14268 * linux-m68k-low.c (the_low_target): Adjust.
14269 * linux-mips-low.c (the_low_target): Adjust.
14270 * linux-ppc-low.c (the_low_target): Adjust.
14271 * linux-s390-low.c (the_low_target): Adjust.
14272 * linux-sh-low.c (the_low_target): Adjust.
14273 * linux-sparc-low.c (the_low_target): Adjust.
14274 * linux-tic6x-low.c (the_low_target): Adjust.
14275 * linux-x86-low.c (the_low_target): Adjust.
14276 * linux-xtensa-low.c (the_low_target): Adjust.
14277
63c88e13
PA
142782012-03-26 Pedro Alves <palves@redhat.com>
14279
14280 * server.c (handle_qxfer_libraries): Don't bail early if
14281 the_target->qxfer_libraries_svr4 is not NULL.
14282
fb723180
PA
142832012-03-26 Pedro Alves <palves@redhat.com>
14284
14285 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
14286
0afae3cf
PA
142872012-03-23 Pedro Alves <palves@redhat.com>
14288
14289 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
14290 "library-list-svr4" element's start tag when the the DSO list is
14291 empty.
14292
485f1ee4
PA
142932012-03-23 Pedro Alves <palves@redhat.com>
14294
14295 * linux-low.c (read_one_ptr): Read the inferior's pointer through
14296 a variable whose type size is the same as the inferior's pointer
14297 size.
14298
a5362b9a
TS
142992012-03-21 Thomas Schwinge <thomas@codesourcery.com>
14300
14301 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
14302 struct siginfo.
14303 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
14304 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
14305 * linux-low.h: Include <signal.h>.
14306 (struct siginfo): Remove forward declaration.
14307 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
14308 struct siginfo.
14309
d226c142
MF
143102012-03-21 Mike Frysinger <vapier@gentoo.org>
14311
14312 * .gitignore: Ignore more files.
14313
122f36ef
PA
143142012-03-19 Pedro Alves <palves@redhat.com>
14315 Jan Kratochvil <jan.kratochvil@redhat.com>
14316
14317 * server.c (cont_thread, general_thread): Add describing comments.
14318 (start_inferior): Clear `cont_thread'.
14319 (handle_v_cont): Don't set `cont_thread' if resuming all threads
14320 of a process.
14321
fc3e5175
YQ
143222012-03-15 Yao Qi <yao@codesourcery.com>
14323
14324 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
14325 handling to ...
14326 (cmd_qtdp): ... here.
14327
8d0d92cd
YQ
143282012-03-15 Yao Qi <yao@codesourcery.com>
14329
14330 * tracepoint.c (struct tracepoint_action_ops): New.
14331 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
14332 (m_tracepoint_action_download): New.
14333 (r_tracepoint_action_download): New.
14334 (x_tracepoint_action_download): New.
14335 (l_tracepoint_action_download): New.
14336 (add_tracepoint_action): Install `action->ops' according type.
14337 (download_tracepoint_1): Move code `download' function pointer
14338 of various tracepoint_action_ops.
14339
87b0bb13
JK
143402012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14341
14342 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
14343 linux_ptrace_attach_warnings.
14344
5f572dec
JK
143452012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14346
14347 * Makefile.in (linux-ptrace.o): New.
14348 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
14349 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
14350 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
14351 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
14352 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
14353 of these targets.
14354 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
14355
f4647387
YQ
143562012-03-08 Yao Qi <yao@codesourcery.com>
14357 Pedro Alves <palves@redhat.com>
14358
14359 Fix PR server/13392.
14360 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
14361 offset of JMP insn.
14362 * tracepoint.c (remove_tracepoint): New.
14363 (cmd_qtdp): Call remove_tracepoint when failed to install.
14364
9b224c5e
PA
143652012-03-07 Pedro Alves <palves@redhat.com>
14366
14367 * linux-low.c (get_detach_signal): New.
14368 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
14369 Pass on pending signals to PTRACE_DETACH. Check the result of the
14370 ptrace call.
14371 * server.c (program_signals, program_signals_p): New.
14372 (handle_general_set): Handle QProgramSignals.
14373 * server.h (program_signals, program_signals_p): Declare.
14374
e237a7e2
JK
143752012-03-05 Pedro Alves <palves@redhat.com>
14376 Jan Kratochvil <jan.kratochvil@redhat.com>
14377
14378 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
14379 New comment why.
14380
5808517f
YQ
143812012-03-03 Yao Qi <yao@codesourcery.com>
14382
14383 * tracepoint.c (tracepoint_look_up_symbols): Update call to
14384 agent_look_up_symbols.
14385
58b4daa5
YQ
143862012-03-03 Yao Qi <yao@codesourcery.com>
14387
14388 * Makefile.in (linux-low.o): Keep dependence on agent.h.
14389 (linux-x86-low.o): Likewise.
14390 * server.h: Remove in_process_agent_loaded.
14391 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
14392 common/agent.c.
14393 Update callers.
14394
8ffcbaaf
YQ
143952012-03-03 Yao Qi <yao@codesourcery.com>
14396
14397 * tracepoint.c (gdb_agent_capability): New global.
14398 (in_process_agent_loaded_ust): Renamed to
14399 `in_process_agent_supports_ust'.
14400 Update callers.
14401 (in_process_agent_supports_ust): Call agent_capability_check.
14402 (clear_installed_tracepoints): Assert that agent supports
14403 agent.
14404
d1feda86
YQ
144052012-03-03 Yao Qi <yao@codesourcery.com>
14406
14407 * linux-low.c (linux_supports_agent): New.
14408 (linux_target_ops): Initialize field `supports_agent' with
14409 linux_supports_agent.
14410 * target.h (struct target_ops) <supports_agent>: New.
14411 (target_supports_agent): New macro.
14412 * server.c (handle_general_set): Handle packet 'QAgent'.
14413 (handle_query): Send `QAgent+'.
14414 * Makefile.in (server.o): Depends on agent.h.
14415
2fa291ac
YQ
144162012-03-03 Yao Qi <yao@codesourcery.com>
14417
14418 * Makefile.in (OBS): Add agent.o.
14419 Add new rule for agent.o.
14420 Track dependence of tracepoint.c on agent.h.
14421 * tracepoint.c (run_inferior_command_1):
14422 (run_inferior_command): Call agent_run_command.
14423 (gdb_ust_connect_sync_socket): Deleted. Move it to
14424 common/agent.c.
14425 (resume_thread, stop_thread): Likewise.
14426 (gdb_ust_socket_init): Renamed to ...
14427 (gdb_agent_socket_init): ... New.
14428 (gdb_ust_thread): Renamed to ...
14429 (gdb_agent_helper_thread): ... New.
14430 (gdb_ust_init): Move some code to ...
14431 (gdb_agent_init): ... here. New.
14432 [HAVE_UST]: Call gdb_ust_init.
14433 (initialize_tracepoint_ftlib): Call gdb_agent_init.
14434 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
14435 * config.in, configure: Regenerated.
14436
05044653
PA
144372012-03-02 Pedro Alves <palves@redhat.com>
14438
14439 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
14440 * linux-low.c (struct simple_pid_list): New.
14441 (stopped_pids): New a struct simple_pid_list pointer.
14442 (add_to_pid_list, pull_pid_from_list): New.
14443 (handle_extended_wait): Don't assume the first signal new children
14444 report is SIGSTOP. Adjust call to pull_pid_from_list.
14445 (linux_wait_for_lwp): Adjust.
14446
8d00225b
YQ
144472012-03-02 Yao Qi <yao@codesourcery.com>
14448
14449 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
14450 debug log.
14451
19560ba5
YQ
144522012-03-02 Yao Qi <yao@codesourcery.com>
14453
14454 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
14455 `stop_pc' and `tpoint'. Update caller.
14456
1faeff08
MR
144572012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
14458
14459 * linux-low.h (linux_target_ops): Add regset_bitmap member.
14460 * linux-low.c (use_linux_regsets): New macro.
14461 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
14462 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
14463 (linux_register_in_regsets): New function.
14464 (usr_fetch_inferior_registers): Skip registers covered by
14465 regsets.
14466 (usr_store_inferior_registers): Likewise.
14467 (usr_fetch_inferior_registers): New macro.
14468 (usr_store_inferior_registers): Likewise.
14469 (linux_fetch_registers): Handle mixed regset/non-regset targets.
14470 (linux_store_registers): Likewise.
14471 * linux-mips-low.c (init_registers_mips_dsp_linux): New
14472 prototype.
14473 (init_registers_mips64_dsp_linux): Likewise.
14474 (init_registers_mips_linux): New macro.
14475 (init_registers_mips_dsp_linux): Likewise.
14476 (mips_dsp_num_regs): Likewise.
14477 (DSP_BASE, DSP_CONTROL): New fallback macros.
14478 (mips_base_regs): New macro.
14479 (mips_regmap): Use it. Fix the size.
14480 (mips_dsp_regmap): New variable.
14481 (mips_dsp_regset_bitmap): Likewise.
14482 (mips_arch_setup): New function.
14483 (mips_cannot_fetch_register): Use the_low_target.regmap rather
14484 than mips_regmap.
14485 (mips_cannot_store_register): Likewise.
14486 (the_low_target): Update .arch_setup, .num_regs and .regmap
14487 initializers. Add .regset_bitmap initializer.
14488 * linux-arm-low.c (the_low_target): Add .regset_bitmap
14489 initializer.
14490 * linux-bfin-low.c (the_low_target): Likewise.
14491 * linux-cris-low.c (the_low_target): Likewise.
14492 * linux-crisv32-low.c (the_low_target): Likewise.
14493 * linux-ia64-low.c (the_low_target): Likewise.
14494 * linux-m32r-low.c (the_low_target): Likewise.
14495 * linux-m68k-low.c (the_low_target): Likewise.
14496 * linux-ppc-low.c (the_low_target): Likewise.
14497 * linux-s390-low.c (the_low_target): Likewise.
14498 * linux-sh-low.c (the_low_target): Likewise.
14499 * linux-sparc-low.c (the_low_target): Likewise.
14500 * linux-tic6x-low.c (the_low_target): Likewise.
14501 * linux-x86-low.c (the_low_target): Likewise.
14502 * linux-xtensa-low.c (the_low_target): Likewise.
14503 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
14504 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
14505 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
14506 srv_xmlfiles.
14507 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
14508 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
14509
c03e6ccc
YQ
145102012-02-29 Yao Qi <yao@codesourcery.com>
14511 Pedro Alves <palves@redhat.com>
14512
14513 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
14514 `step_over_finished' is true.
14515
644cebc9
PA
145162012-02-27 Pedro Alves <palves@redhat.com>
14517
14518 * linux-low.c (pid_is_stopped): Delete, moved to common/.
14519 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
14520
c14d7ab2
PA
145212012-02-27 Pedro Alves <palves@redhat.com>
14522
14523 PR server/9684
14524 * linux-low.c (pid_is_stopped): New.
14525 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
14526
412c89dd
LM
145272012-02-25 Luis Machado <lgustavo@codesourcery.com>
14528
14529 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
14530 of conditions.
14531
b745defe
MR
145322012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
14533
14534 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
14535
9f3a5c85
LM
145362012-02-24 Luis Machado <lgustavo@codesourcery>
14537
14538 * server.c (handle_query): Advertise support for target-side
14539 breakpoint condition evaluation.
14540 (process_point_options): New function.
14541 (process_serial_event): When inserting a breakpoint, check for
14542 a target-side condition that should be evaluated.
14543
14544 * mem-break.c: Include regcache.h and ax.h.
14545 (point_cond_list_t): New data structure.
14546 (breakpoint) <cond_list>: New field.
14547 (find_gdb_breakpoint_at): Make non-static.
14548 (delete_gdb_breakpoint_at): Clear any target-side
14549 conditions.
14550 (clear_gdb_breakpoint_conditions): New function.
14551 (add_condition_to_breakpoint): Likewise.
14552 (add_breakpoint_condition): Likewise.
14553 (gdb_condition_true_at_breakpoint): Likewise.
14554 (gdb_breakpoint_here): Return result directly instead
14555 of going through a local variable.
14556
14557 * mem-break.h (find_gdb_breakpoint_at): New prototype.
14558 (clear_gdb_breakpoint_conditions): Likewise.
14559 (add_breakpoint_condition): Likewise.
14560 (gdb_condition_true_at_breakpoint): Likewise.
14561
14562 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
14563 (need_step_over_p): Take target-side breakpoint condition into
14564 consideration.
14565
5e1dc496
LM
145662012-02-24 Luis Machado <lgustavo@codesourcery>
14567
14568 * server.h: Include tracepoint.h.
14569 (agent_mem_read, agent_get_trace_state_variable_value,
14570 agent_set_trace_state_variable_value,
14571 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
14572 get_set_tsv_func_addr): New prototypes.
14573
14574 * ax.h: New include file.
14575 * ax.c: New source file.
14576
14577 * tracepoint.c: Include ax.h.
14578 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
14579 agent_expr, eval_result_type): Move to ax.h.
14580 (parse_agent_expr): Rename to ...
14581 (gdb_parse_agent_expr): ... this, make it non-static and move
14582 to ax.h.
14583 (unparse_agent_expr) Rename to ...
14584 (gdb_unparse_agent_expr): ... this, make it non-static and move
14585 to ax.h.
14586 (eval_agent_expr): Rename to ...
14587 (eval_tracepoint_agent_expr): ... this.
14588 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
14589 forward declarations.
14590 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
14591 (agent_get_trace_state_variable_value): New function.
14592 (agent_set_trace_state_variable_value): New function.
14593 (cmd_qtdp): Call gdb_parse_agent_expr (...).
14594 (response_tracepoint): Call gdb_unparse_agent_expr (...).
14595 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
14596 (condition_true_at_tracepoint): Likewise.
14597 (parse_agent_expr): Rename to ...
14598 (gdb_parse_agent_expr): ... this and move to ax.c.
14599 (unparse_agent_expr): Rename to ...
14600 (gdb_unparse_agent_expr): ... this and move to ax.c.
14601 (gdb_agent_op_name): Move to ax.c.
14602 (eval_agent_expr): Rename to ...
14603 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
14604 and move to ax.c.
14605 (eval_tracepoint_agent_expr): New function.
14606 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
43aaf8b6 14607 non-static.
5e1dc496
LM
14608 (current_insn_ptr, emit_error, struct bytecode_address): Move to
14609 ax.c.
14610 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
14611 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
14612 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
14613 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
14614 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
14615 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
14616 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
14617 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
14618 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
14619 (compile_bytecodes): Remove forward declaration.
14620 (is_goto_target): Move to ax.c.
14621 (compile_bytecodes): Move to ax.c and call
14622 agent_get_trace_state_variable_value (...) and
14623 agent_set_trace_state_variable_value (...).
14624
14625 * Makefile.in: Update ax.c and IPA dependencies.
14626
277e4e52
PA
146272012-02-24 Pedro Alves <palves@redhat.com>
14628
14629 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
14630 (cmd_bigqtbuffer_circular): ... this. Only handle
14631 'QTBuffer:circular:'.
14632 (handle_tracepoint_general_set): Adjust.
14633
bf4c19f7
YQ
146342012-02-16 Yao Qi <yao@codesourcery.com>
14635
14636 * inferiors.c: Move code to ...
14637 * dll.c: .... here. New.
14638 * server.h: Declare clear_dlls.
14639 * Makefile.in (SFILES): Add dll.c.
14640 (OBS): Add dll.o
14641 (dll.o): New rule.
14642
d73f2619
YQ
146432012-02-11 Yao Qi <yao@codesourcery.com>
14644
14645 * server.c: (handle_monitor_command): Add a new parameter
14646 `own_buf'.
14647 (handle_query): Update caller.
14648
f8255c2a
JB
146492012-02-09 Joel Brobecker <brobecker@adacore.com>
14650
14651 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
14652 * configure, config.in: Regenerate.
14653 * hostio.c: Provide an alternate implementation if HAVE_READLINK
14654 is not defined.
14655
da84f473
PA
146562012-02-02 Pedro Alves <palves@redhat.com>
14657
14658 Try SIGKILL first, then PTRACE_KILL.
14659 * linux-low.c (linux_kill_one_lwp): New.
14660 (linux_kill_one_lwp): Rename to ...
14661 (kill_one_lwp_callback): ... this. Use the new
14662 linux_kill_one_lwp.
14663
e886a173
PA
146642012-02-02 Pedro Alves <palves@redhat.com>
14665
14666 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
14667 inferior.
14668
be07f1a2
PA
146692012-01-27 Pedro Alves <palves@redhat.com>
14670
14671 * linux-low.c (linux_child_pid_to_exec_file): Delete.
14672 (elf_64_file_p): Make static.
14673 (linux_pid_exe_is_elf_64_file): New.
14674 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
14675 Delete declarations.
14676 (linux_pid_exe_is_elf_64_file): Declare.
14677 * linux-x86-low.c (x86_arch_setup): Use
14678 linux_pid_exe_is_elf_64_file.
14679
d8301ad1
JK
146802012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
14681
14682 * linux-low.c (linux_wait_for_event_1): Rename to ...
14683 (linux_wait_for_event): ... here and merge it with former
14684 linux_wait_for_event - new variable wait_ptid, use it.
14685 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
14686
01b17894
PA
146872012-01-23 Pedro Alves <palves@redhat.com>
14688
14689 * server.c (main): Avoid yet another case of infinite loop while
14690 detaching/killing after a longjmp.
14691
e825046f
JK
146922012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
14693
14694 Code cleanup.
14695 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
14696
b9e7b9c3
UW
146972012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
14698
14699 * hostio.c (handle_readlink): New function.
14700 (handle_vFile): Call it to handle "vFile:readlink" packets.
14701
901f9912
UW
147022012-01-20 Pedro Alves <palves@redhat.com>
14703 Ulrich Weigand <ulrich.weigand@linaro.org>
14704
14705 * server.c (handle_v_requests): Only support vAttach and vRun to
14706 start multiple processes when in extended protocol mode.
14707
fc1ab1a0
PA
147082012-01-17 Pedro Alves <palves@redhat.com>
14709
14710 * tracepoint.c (initialize_tracepoint): Use mmap instead of
14711 memalign plus mprotect to allocate the scratch buffer.
14712
7d5d4e98
PA
147132012-01-13 Pedro Alves <palves@redhat.com>
14714
14715 * server.c (attach_inferior): Clear `cont_thread'.
14716
f128d5e9
PA
147172012-01-13 Pedro Alves <palves@redhat.com>
14718
14719 * server.c (main): Avoid infinite loop while detaching/killing
14720 after a longjmp.
14721
06db92f0
DE
147222012-01-09 Doug Evans <dje@google.com>
14723
14724 * server.c (start_inferior): Set last_ptid in --wrapper case.
14725
32d92999
YQ
147262012-01-06 Yao Qi <yao@codesourcery.com>
14727
14728 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
14729 defined.
14730 [IN_PROCESS_AGENT] (debug_agent): New global variable.
14731
5e0a92a9
YQ
147322012-01-04 Yao Qi <yao@codesourcery.com>
14733
14734 * tracepoint.c (cmd_qtdp): Print debug message
14735 for static tracepoint.
14736
ae639e8c
YQ
147372012-01-04 Yao Qi <yao@codesourcery.com>
14738
14739 * tracepoint.c (trace_vdebug): Differentiate debug message
14740 between gdbserver and IPA.
14741
f72429c5
YQ
147422012-01-03 Yao Qi <yao@codesourcery.com>
14743
14744 * tracepoint.c (tracepoint_was_hit): Don't collect for
14745 static tracepoint.
14746
12c3e59c
JB
147472012-01-02 Joel Brobecker <brobecker@adacore.com>
14748
14749 * terminal.h: Reformat copyright header.
14750
67827812
JB
147512012-01-02 Joel Brobecker <brobecker@adacore.com>
14752
14753 * server.c (gdbserver_version): Update copyright year.
14754 * gdbreplay.c (gdbreplay_version): Likewise.
14755
3e52c33d
JK
147562011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
14757
14758 * linux-low.c (linux_create_inferior): Put empty if clause for write.
14759
14760 Revert:
14761 2011-12-18 Hui Zhu <teawater@gmail.com>
14762 * linux-low.c (linux_create_inferior): Save return value to ret.
14763
66f1260e
HZ
147642011-12-18 Hui Zhu <teawater@gmail.com>
14765
14766 * linux-low.c (linux_create_inferior): Save return value to ret.
14767
e77616d7
DE
147682011-12-16 Doug Evans <dje@google.com>
14769
e7b06c57
DE
14770 * linux-low.c (linux_create_inferior): If stdio connection,
14771 redirect stdin from /dev/null, stdout to stderr.
14772 * remote-utils.c (remote_is_stdio): New static global.
14773 (remote_connection_is_stdio): New function.
14774 (remote_prepare): Handle stdio connection.
14775 (remote_open): Ditto.
14776 (remote_close): Don't close stdin for stdio connections.
14777 (read_prim,write_prim): New functions. Replace all calls to
14778 read/write to these.
14779 * server.c (main): Watch for "-" argument. Move call to
14780 remote_prepare before start_inferior.
14781 * server.h (STDIO_CONNECTION_NAME): New macro.
14782 (remote_connection_is_stdio): Declare.
14783
e77616d7
DE
14784 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
14785 in debugging output.
14786
82067193
YQ
147872011-12-15 Yao Qi <yao@codesourcery.com>
14788
14789 * tracepoint.c: Include sys/syscall.h.
14790 (gdb_ust_thread): Remove preprocessor conditional.
14791
82bfbe7e
PA
147922011-12-14 Pedro Alves <pedro@codesourcery.com>
14793
14794 * linux-low.c (linux_detach_one_lwp): Call
14795 the_low_target.prepare_to_resume before detaching.
14796
712c6575
YQ
147972011-12-14 Yao Qi <yao@codesourcery.com>
14798
14799 * tracepoint.c (gdb_ust_thread): Don't ignore return value
14800 of write.
14801
d54d1edf
YQ
148022011-12-14 Yao Qi <yao@codesourcery.com>
14803
14804 * i386-low.c (i386_low_stopped_data_address): Initialize local
14805 variable `control'.
14806
6210a125
PA
148072011-12-13 Pedro Alves <pedro@codesourcery.com>
14808
14809 PR remote/13492
14810
14811 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
14812 DR_CONTROL unless necessary. Extend comments.
14813 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
14814 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
14815
2ece8244
YQ
148162011-12-13 Yao Qi <yao@codesourcery.com>
14817
14818 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
14819 macros.
14820 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
14821
784867a5
JK
148222011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
14823
14824 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
14825 Print new debug message for such case.
14826
6bf36717
JK
148272011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
14828
14829 Fix overlapping memcpy.
14830 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
14831 the read_inferior_memory transfer.
14832 (delete_fast_tracepoint_jump): New variable buf. Use it for the
14833 write_inferior_memory transfer.
14834 (set_fast_tracepoint_jump): New variable buf. Use it for the
14835 read_inferior_memory and write_inferior_memory transfers.
14836 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
14837 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
14838 Use it for the write_inferior_memory transfer.
14839 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
14840 buffers.
14841
50275556
MR
148422011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
14843
14844 * linux-low.c (fetch_register, store_register): Make code
14845 consistent, fix formatting.
14846
7325beb4
MR
148472011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
14848
14849 * linux-low.c (usr_store_inferior_registers): Factor out code
14850 to handle individual registers into...
14851 (store_register): ... this new function.
14852
c642a434
UW
148532011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
14854
14855 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
14856 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
14857 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
14858 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
14859 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
14860 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
14861 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
14862 (srv_xmlfiles): Add new XML files.
14863
14864 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
14865 and <sys/uio.h>.
14866 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
14867 (init_registers_s390_linux32v1): Add prototype.
14868 (init_registers_s390_linux32v2): Likewise.
14869 (init_registers_s390_linux64v1): Likewise.
14870 (init_registers_s390_linux64v2): Likewise.
14871 (init_registers_s390x_linux64v1): Likewise.
14872 (init_registers_s390x_linux64v2): Likewise.
14873 (s390_num_regs): Increment to 52.
14874 (s390_regmap): Add orig_r2 register.
14875 (s390_num_regs_3264): Increment to 68.
14876 (s390_regmap_3264): Add orig_r2 register.
14877 (s390_collect_ptrace_register): Handle orig_r2 register.
14878 (s390_supply_ptrace_register): Likewise.
14879 (s390_fill_last_break): New function.
14880 (s390_store_last_break): Likewise.
14881 (s390_fill_system_call): New function.
14882 (s390_store_system_call): Likewise.
14883 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
14884 register sets.
14885 (s390_check_regset): New function.
14886 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
14887 NT_S390_SYSTEM_CALL regsets and use appropriate description.
14888 Update target_regsets for available register sets.
14889
2268b414
JK
148902011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
14891 Jan Kratochvil <jan.kratochvil@redhat.com>
14892
14893 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
14894 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
14895 New.
14896 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
14897 * linux-low.h (struct process_info_private): New member r_debug.
14898 * server.c (handle_qxfer_libraries): Call
14899 the_target->qxfer_libraries_svr4.
14900 (handle_qxfer_libraries_svr4): New function.
14901 (qxfer_packets): New entry "libraries-svr4".
14902 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
14903 * target.h (struct target_ops): New member qxfer_libraries_svr4.
14904 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
14905 PACKET_qXfer_libraries_svr4.
14906
d6db1fab
UW
149072011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
14908
14909 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
14910 PSW address/mask between 8-byte and 16-byte formats.
14911 (s390_supply_ptrace_register): Likewise.
14912 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
14913 basic addressing mode bit.
14914
242f5f1c
SS
149152011-11-24 Stan Shebs <stan@codesourcery.com>
14916
14917 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
14918
f196051f
SS
149192011-11-17 Stan Shebs <stan@codesourcery.com>
14920
14921 * tracepoint.c (struct tracepoint): New field traceframe_usage.
14922 (tracing_start_time): New global.
14923 (tracing_stop_time): New global.
14924 (tracing_user_name): New global.
14925 (tracing_notes): New global.
14926 (tracing_stop_note): New global.
14927 (cmd_qtstart): Set traceframe_usage, start_time.
14928 (stop_tracing): Set stop_time.
14929 (cmd_qtstatus): Report additional status.
14930 (cmd_qtp): New function.
14931 (handle_tracepoint_query): Call it.
14932 (cmd_qtnotes): New function.
14933 (handle_tracepoint_general_set): Call it.
14934 (get_timestamp): Rename from tsv_get_timestamp.
14935
405f8e94
SS
149362011-11-14 Stan Shebs <stan@codesourcery.com>
14937 Kwok Cheung Yeung <kcy@codesourcery.com>
14938
14939 * linux-x86-low.c (small_jump_insn): New.
14940 (i386_install_fast_tracepoint_jump_pad): Add arguments for
14941 trampoline and error message, build a trampoline and issue a small
14942 jump instruction to it.
14943 (x86_install_fast_tracepoint_jump_pad): Add arguments for
14944 trampoline and error message.
14945 (x86_get_min_fast_tracepoint_insn_len): New.
14946 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
14947 * linux-low.h (struct linux_target_ops): Add arguments to
14948 install_fast_tracepoint_jump_pad operation, add new operation.
14949 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
14950 arguments.
14951 (linux_get_min_fast_tracepoint_insn_len): New function.
14952 (linux_target_op): Add new operation.
14953 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
14954 (gdb_trampoline_buffer_end): Ditto.
14955 (gdb_trampoline_buffer_error): Ditto.
14956 (struct ipa_sym_addresses): Add fields for new IPA variables.
14957 (symbol_list): Add entries for new IPA variables.
14958 (struct tracepoint): Add fields to hold the address range of the
14959 trampoline used by the tracepoint.
14960 (trampoline_buffer_head): New static variable.
14961 (trampoline_buffer_tail): Ditto.
14962 (claim_trampoline_space): New function.
14963 (have_fast_tracepoint_trampoline_buffer): New function.
14964 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
14965 structure.
14966 (install_fast_tracepoint): Ditto, also add error buffer argument.
14967 (cmd_qtminftpilen): New function.
14968 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
14969 (fast_tracepoint_from_trampoline_address): New function.
14970 (fast_tracepoint_collecting): Handle trampoline as part of jump
14971 pad space.
14972 (set_trampoline_buffer_space): New function.
14973 (initialize_tracepoint): Initialize new IPA variables.
14974 * target.h (struct target_ops): Add arguments to
14975 install_fast_tracepoint_jump_pad operation, add new
14976 get_min_fast_tracepoint_insn_len operation.
14977 (target_get_min_fast_tracepoint_insn_len): New.
14978 (install_fast_tracepoint_jump_pad): Add arguments.
14979 * server.h (IPA_BUFSIZ): Define.
14980 * linux-i386-ipa.c: Include extra header files.
14981 (initialize_fast_tracepoint_trampoline_buffer): New function.
14982 (initialize_low_tracepoint): Call it.
14983 * server.h (set_trampoline_buffer_space): Declare.
14984 (claim_trampoline_space): Ditto.
14985 (have_fast_tracepoint_trampoline_buffer): Ditto.
14986
1e4d1764
YQ
149872011-11-14 Yao Qi <yao@codesourcery.com>
14988
14989 * server.c (handle_query): Handle InstallInTrace for qSupported.
14990 * tracepoint.c (add_tracepoint): Sort list.
14991 (install_tracepoint, download_tracepoint): New.
14992 (cmd_qtdp): Call them to install and download tracepoints.
14993 (sort_tracepoints): Removed.
14994 (cmd_qtstart): Update.
14995
5c73ff4e
YQ
149962011-11-14 Yao Qi <yao@codesourcery.com>
14997
14998 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
14999 * mem-break.h: Declare.
15000 * tracepoint.c (cmd_qtstart): Move some code to ...
15001 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
15002 New.
15003 (download_tracepoints): Move some code to ...
15004 (download_tracepoint_1): ... here. New.
15005
86a30030
YQ
150062011-11-08 Yao Qi <yao@codesourcery.com>
15007
15008 * remote-utils.c (relocate_instruction): A comment fix.
15009
8d26e50c
JB
150102011-11-07 Joel Brobecker <brobecker@adacore.com>
15011
15012 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
15013 (i386_dr_low_get_control, i386_dr_low_get_status): Use
15014 dr_status_mirror and dr_control_mirror from debug_reg_state.
15015 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
15016 (i386_initial_stuff): Remove use of deleted globals.
15017 (i386_get_thread_context, i386_set_thread_context,
15018 i386_thread_added): Use dr_status_mirror and dr_control_mirror
15019 from debug_reg_state.
15020
a59306a3
YQ
150212011-11-05 Yao Qi <yao@codesourcery.com>
15022
15023 * tracepoint.c (gdb_collect): Loop over tracepoints of same
15024 address as TPOINT's.
15025
3065dfb6
SS
150262011-11-02 Stan Shebs <stan@codesourcery.com>
15027
15028 * tracepoint.c (agent_mem_read_string): New function.
15029 (eval_agent_expr): Call it for tracenz.
15030 * server.c (handle_query): Report support for tracenz.
15031
fd0d8c7c
YQ
150322011-11-02 Yao Qi <yao@codesourcery.com>
15033
15034 * tracepoint.c (cmd_qtstart): Remove unused local variables.
15035
609086b1
YQ
150362011-11-02 Yao Qi <yao@codesourcery.com>
15037
15038 * target.h: Fix a typo in comment.
15039
b9fd1791
PA
150402011-10-31 Pedro Alves <pedro@codesourcery.com>
15041
15042 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
15043 clobber the breakpoints' shadows with fast tracepoint jumps.
15044 * mem-break.h (check_mem_write): Add `myaddr' parameter.
15045 * target.c (write_inferior_memory): Also pass MYADDR down to
15046 check_mem_write.
15047
03583c20
UW
150482011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
15049
15050 * configure.ac: Check support for personality routine.
15051 * configure: Regenerate.
15052 * config.in: Likewise.
15053 * linux-low.c: Include <sys/personality.h>.
15054 Define ADDR_NO_RANDOMIZE if necessary.
15055 (linux_create_inferior): Disable address space randomization when
15056 forking inferior, if requested.
15057 (linux_supports_disable_randomization): New function.
15058 (linux_target_ops): Install it.
15059 * server.h (disable_randomization): Declare.
15060 * server.c (disable_randomization): New global variable.
15061 (handle_general_set): Handle QDisableRandomization.
15062 (handle_query): Likewise for qSupported.
15063 (main): Support --disable-randomization and --no-disable-randomization
15064 command line arguments.
15065 * target.h (struct target_ops): Add supports_disable_randomization.
15066 (target_supports_disable_randomization): New macro.
15067
723b724b
MF
150682011-09-29 Mike Frysinger <vapier@gentoo.org>
15069
15070 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
15071 ifdef check.
15072 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
15073 [!PT_GETDSBT] (target_loadmap): New definition.
15074 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
15075 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
15076 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
15077 and PT_GETDSBT to LINUX_LOADMAP.
15078 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
15079 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
15080
55329a5c 150812011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
71487fd7
UW
15082
15083 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
15084 (arm_linux_hwbp_cap): New static variable.
15085 (arm_linux_get_hwbp_cap): Replace by ...
15086 (arm_linux_init_hwbp_cap): ... this new function.
15087 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
15088 (arm_linux_get_hw_watchpoint_count): Likewise.
15089 (arm_linux_get_hw_watchpoint_max_length): Likewise.
15090 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
15091 (arm_prepare_to_resume): Use perror_with_name instead of error.
15092
55329a5c 150932011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
09b4ad9f
UW
15094
15095 * linux-arm-low.c: Include <signal.h>.
15096 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
15097 (struct arm_linux_hwbp_cap): New data type.
15098 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
15099 (struct arm_linux_hw_breakpoint): New data type.
15100 (MAX_BPTS, MAX_WPTS): Define.
15101 (struct arch_process_info, struct arch_lwp_info): New data types.
15102 (arm_linux_get_hwbp_cap): New function.
15103 (arm_linux_get_hw_breakpoint_count): Likewise.
15104 (arm_linux_get_hw_watchpoint_count): Likewise.
15105 (arm_linux_get_hw_watchpoint_max_length): Likewise.
15106 (arm_hwbp_control_initialize): Likewise.
15107 (arm_hwbp_control_is_enabled): Likewise.
15108 (arm_hwbp_control_is_initialized): Likewise.
15109 (arm_hwbp_control_disable): Likewise.
15110 (arm_linux_hw_breakpoint_equal): Likewise.
15111 (arm_linux_hw_point_initialize): Likewise.
15112 (struct update_registers_data): New data structure.
15113 (update_registers_callback: New function.
15114 (arm_insert_point): Likewise.
15115 (arm_remove_point): Likewise.
15116 (arm_stopped_by_watchpoint): Likewise.
15117 (arm_stopped_data_address): Likewise.
15118 (arm_new_process): Likewise.
15119 (arm_new_thread): Likewise.
15120 (arm_prepare_to_resume): Likewise.
15121 (the_low_target): Register arm_insert_point, arm_remove_point,
15122 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
15123 arm_new_thread, and arm_prepare_to_resume.
15124
6b9801d4
SS
151252011-09-15 Stan Shebs <stan@codesourcery.com>
15126
15127 * server.h (struct emit_ops): Add compare-goto fields.
15128 * tracepoint.c (gdb_agent_op_sizes): New table.
15129 (emit_eq_goto): New function.
15130 (emit_ne_goto): New function.
15131 (emit_lt_goto): New function.
15132 (emit_le_goto): New function.
15133 (emit_gt_goto): New function.
15134 (emit_ge_goto): New function.
15135 (is_goto_target): New function.
15136 (compile_bytecodes): Recognize special cases of compare-goto
15137 combinations and call specialized emitters for them.
15138 * linux-x86-low.c (amd64_emit_eq_goto): New function.
15139 (amd64_emit_ne_goto): New function.
15140 (amd64_emit_lt_goto): New function.
15141 (amd64_emit_le_goto): New function.
15142 (amd64_emit_gt_goto): New function.
15143 (amd64_emit_ge_goto): New function.
15144 (amd64_emit_ops): Add the new functions.
15145 (i386_emit_eq_goto): New function.
15146 (i386_emit_ne_goto): New function.
15147 (i386_emit_lt_goto): New function.
15148 (i386_emit_le_goto): New function.
15149 (i386_emit_gt_goto): New function.
15150 (i386_emit_ge_goto): New function.
15151 (i386_emit_ops): Add the new functions.
15152
bf15cbda
SS
151532011-09-08 Stan Shebs <stan@codesourcery.com>
15154
15155 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
15156 (i386_emit_epilogue): Restore %ebx.
15157
943ca1dd
JZ
151582011-08-31 Jie Zhang <jzhang918@gmail.com>
15159
15160 * server.c (step_thread): Remove definition.
15161 (process_serial_event): Don't handle Hs.
15162 * server.h (step_thread): Remove declaration.
15163 * target.c (set_desired_inferior): Remove use of step_thread.
15164
e3deef73
LM
151652011-08-24 Luis Machado <lgustavo@codesourcery.com>
15166
15167 * linux-low.c: Include linux-procfs.h.
15168 (linux_attach_lwp_1): Update comments.
15169 (linux_attach): Scan for existing threads when attaching to a
15170 process that is the tgid.
15171 * Makefile.in: Update dependencies.
15172
13da1c97
LM
151732011-08-24 Luis Machado <lgustavo@codesourcery.com>
15174
15175 * configure.srv: Add linux-procfs.o dependencies.
15176
881127c9
YQ
151772011-08-14 Yao Qi <yao@codesourcery.com>
15178
15179 * target.h (struct target_ops): Fix indent.
15180 * win32-low.c (win32_target_ops): Fix comment.
15181
58dbd541
YQ
151822011-08-14 Andrew Jenner <andrew@codesourcery.com>
15183 Yao Qi <yao@codesourcery.com>
15184
15185 * Makefile.in (clean): Remove tic6x-*.c files.
15186 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
15187 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
15188 (tic6x-c64xp-linux.c): Likewise.
15189 * configure.srv: Add support for tic6x-*-uclinux.
15190 * linux-tic6x-low.c: New.
15191 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
15192
78d85199
YQ
151932011-08-14 Andrew Stubbs <ams@codesourcery.com>
15194 Yao Qi <yao@codesourcery.com>
15195
15196 * target.h (struct target_ops): Add read_loadmap.
15197 * linux-low.c (struct target_loadseg): New type.
15198 (struct target_loadmap): New type.
15199 (linux_read_loadmap): New function.
15200 (linux_target_ops): Add linux_read_loadmap.
15201 * server.c (handle_query): Support qXfer:fdpic:read packet.
43aaf8b6
PA
15202 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
15203 to NULL.
78d85199 15204
a959a88d
EZ
152052011-08-05 Eli Zaretskii <eliz@gnu.org>
15206
15207 * win32-low.c: Include <stdint.h>.
15208
1ced966e
PA
152092011-07-22 Pedro Alves <pedro@codesourcery.com>
15210
15211 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
15212 to the inferior here.
15213 (i386_remove_aligned_watchpoint): Ditto.
15214 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
15215 fit part of the watchpoint in the debug registers.
15216 (i386_update_inferior_debug_regs): New.
15217 (i386_low_insert_watchpoint): Work on a local mirror of the debug
15218 registers, and only update the inferior on success.
15219 (i386_low_remove_watchpoint): Ditto.
15220
d26e3629
KY
152212011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
15222
15223 * linux-low.c (compare_ints, unique, list_threads, show_process,
15224 linux_core_of_thread): Delete.
15225 (linux_target_ops): Change linux_core_of_thread to
15226 linux_common_core_of_thread.
15227 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
15228 * utils.c (malloc_failure): Change type of argument.
15229 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
15230 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
15231 common/linux-osdata.c, common/ptid.c and common/buffer.c.
15232 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
15233 (IPA_OBJS): Add common-utils-ipa.o.
15234 (ptid_h, linux_osdata_h): New macros.
15235 (server_h): Add common/common-utils.h, common/xml-utils.h,
15236 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
15237 common/ptid.h.
15238 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
15239 ptid.o, buffer.o): New rules.
15240 (linux-low.o): Add common/linux-osdata.h as a dependency.
15241 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
15242 * configure.ac: Add AC_HEADER_DIRENT check.
15243 * config.in: Regenerate.
15244 * configure: Regenerate.
15245 * remote-utils.c (xml_escape_text): Delete.
15246 (buffer_grow, buffer_free, buffer_init, buffer_finish,
15247 buffer_xml_printf): Move to common/buffer.c.
15248 * server.c (main): Remove call to initialize_inferiors.
15249 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
15250 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
15251 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
15252 internal_error, gdb_assert, gdb_assert_fail): Delete.
15253 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
15254 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
15255 common/buffer.h.
15256 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
15257 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
15258 initialize_inferiors): Delete.
15259
2275a1a7
PA
152602011-07-20 Pedro Alves <pedro@codesourcery.com>
15261
15262 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
15263 symbol error.
15264
0a5b1e09
PA
152652011-05-31 Pedro Alves <pedro@codesourcery.com>
15266
15267 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
15268 assertion.
15269 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
15270
6938fd34
YQ
152712011-05-26 Yao Qi <yao@codesourcery.com>
15272
15273 * Makefile.in (thread-db.o): Track dependence to
15274 common/gdb_thread_db.h.
15275 * thread-db.c: include gdb_thread_db.h from right place.
15276
b481f9e0
TT
152772011-05-16 Adrian Cornish <gnu@bluedreamer.com>
15278
15279 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
15280 __FILE__ and __LINE__ to internal_error.
15281
98a5dd13
DE
152822011-05-13 Doug Evans <dje@google.com>
15283
15284 * thread-db.c (try_thread_db_load_from_sdir): New function.
15285 (try_thread_db_load_from_dir): New function.
15286 (thread_db_load_search): Handle $sdir, ignore $pdir.
15287 Remove trying of system directories if search of
15288 libthread-db-search-path fails, that is now done via $sdir.
15289
d248b706
KY
152902011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
15291
15292 * server.c (handle_query): Add EnableDisableTracepoints to the list
15293 of supported features.
43aaf8b6 15294 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
d248b706 15295 tracepoints.
43aaf8b6
PA
15296 (cmd_qtenable_disable): New.
15297 (cmd_qtstart): Install tracepoints even if disabled.
15298 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
15299 receiving a QTEnable or QTDisable packet.
15300 (gdb_collect): Skip data collection if fast tracepoint is disabled.
15301 (ust_marker_to_static_tracepoint): Do not ignore disabled static
15302 tracepoints.
15303 (gdb_probe): Skip data collection if static tracepoint is disabled.
d248b706 15304
84e578fb
DE
153052011-05-10 Doug Evans <dje@google.com>
15306
15307 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
15308
71f55dd8
DE
153092011-05-04 Doug Evans <dje@google.com>
15310
15311 * linux-low.c (linux_join): Skip process lookup.
15312 * spu-low.c (spu_join): Ditto.
15313 * server.c (join_inferiors_callback): Delete.
15314 (process_serial_event): For 'D' packet (detach) call join_inferior
15315 directly.
15316
4d393d60
JM
153172011-05-04 Joseph Myers <joseph@codesourcery.com>
15318
15319 * README: Don't mention xscale*-*-linux*.
15320 * configure.srv (xscale*-*-linux*): Don't handle target.
15321
b00ad6ff
NF
153222011-04-27 Nathan Froyd <froydnj@codesourcery.com>
15323
15324 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
15325 casting pointers.
15326 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
15327 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
15328 (i386_emit_void_call_2): Likewise.
15329
af96c192
YQ
153302011-04-26 Yao Qi <yao@codesourcery.com>
15331
43aaf8b6
PA
15332 * linux-low.c: Move common macros to linux-ptrace.h.
15333 Include linux-ptrace.h.
af96c192
YQ
15334 * Makefile.in (linux_ptrace_h): New.
15335 (linux-low.o): Depends on linux-ptrace.h.
15336
03f2bd59
JK
153372011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
15338
15339 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
15340 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
15341 (remote_prepare): New function with most of the TCP code from ...
15342 (remote_open): ... here. Detect PORT here unconditionally. Move also
15343 setting transport_is_reliable.
15344 * server.c (run_once): New variable.
15345 (gdbserver_usage): Document it.
15346 (main): Set run_once for `--once'. Call remote_prepare. Exit after
15347 the first run if RUN_ONCE.
15348 * server.h (run_once, remote_prepare): New declarations.
15349
7a9dd1b2
TT
153502011-04-19 Tom Tromey <tromey@redhat.com>
15351
15352 * win32-low.c (handle_load_dll): Remove duplicate "the".
15353
81239425
PM
153542011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
15355
15356 Remove support for old Cygwin 1.5 versions.
15357 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
15358 function to avoid warning.
15359 (win32_add_one_solib): Use cygwin_conv_path function to avoid
15360 warning.
15361
9e0627f1
PM
153622011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
15363
15364 * gdbserver/server.h (Macro _): Define it if not available.
15365
588eebee
MS
153662011-03-14 Michael Snyder <msnyder@vmware.com>
15367
348af9f7 15368 * hostio.c (handle_close): Remove unnecessary null test.
588eebee 15369
43f70d4c
JB
153702011-03-10 Joel Brobecker <brobecker@adacore.com>
15371
15372 * Makefile.in (maintainer-clean realclean distclean): Remove
15373 "make ... subdir_do" command.
15374
348af9f7
MS
153752011-03-10 Michael Snyder <msnyder@vmware.com>
15376
15377 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
15378
15379 * server.c (handle_v_run): Free alloced buffer on early return.
15380
e637a4f5
YQ
153812011-03-09 Yao Qi <yao@codesourcery.com>
15382
15383 Revert:
15384 2011-03-04 Yao Qi <yao@codesourcery.com>
15385
15386 * Makefile.in: Remove GNU make feature --directory.
15387
15388 2011-03-05 Yao Qi <yao@codesourcery.com>
15389
15390 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
15391 (subdir_do): New make target. Copied from gdb/Makefile.
15392 (maintainer-clean, realclean, distclean, clean): Call corresponding
15393 make targets in common/Makefile.
15394
15395 2011-02-11 Yao Qi <yao@codesourcery.com>
15396
15397 * configure.ac: Call AC_PROG_RANLIB.
15398 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
15399 * configure: Regenerate.
15400
e6edda56
JK
154012011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
15402
15403 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
15404
e5141119
JB
154052011-03-06 Yao Qi <yao@codesourcery.com>
15406
15407 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
15408
64794aa4
JB
154092011-03-05 Yao Qi <yao@codesourcery.com>
15410
15411 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
15412 (subdir_do): New make target. Copied from gdb/Makefile.
15413 (maintainer-clean, realclean, distclean, clean): Call corresponding
15414 make targets in common/Makefile.
15415
7a762829
YQ
154162011-03-04 Yao Qi <yao@codesourcery.com>
15417
15418 * Makefile.in: Remove GNU make feature --directory.
15419
348af9f7
MS
154202011-03-04 Michael Snyder <msnyder@vmware.com>
15421
15422 * server.c (queue_stop_reply): Call xmalloc not malloc.
15423
154242011-03-02 Michael Snyder <msnyder@vmware.com>
15425
15426 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
15427
9f72fee2
MS
154282011-02-28 Michael Snyder <msnyder@vmware.com>
15429
588eebee
MS
15430 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
15431 (cmd_qtframe): Ditto.
15432 (cmd_qtbuffer): Ditto.
15433 (cmd_bigqtbuffer): Ditto.
15434
9f72fee2
MS
15435 * utils.c (decimal2str): Initialize 'width' to nine, then
15436 don't mess with it.
15437
8040bd49
UW
154382011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
15439
15440 * hostio.c (require_data): Free *data, not data.
15441
7e52cbd0
JK
154422011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15443
15444 * hostio.c (require_data): Use free, not xfree.
15445
9130f83e
MS
154462011-02-27 Michael Snyder <msnyder@vmware.com>
15447
4b812f4e
MS
15448 * server.c (handle_query): Discard unused value.
15449
9130f83e
MS
15450 * hostio.c (require_data): Free malloc memory before returning
15451 error.
15452
69d37113
MS
154532011-02-26 Michael Snyder <msnyder@vmware.com>
15454
15455 * linux-low.c (list_threads): Call closedir for dirent.
15456
35f5825a
MS
154572011-02-27 Michael Snyder <msnyder@vmware.com>
15458
2a589cef
MS
15459 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
15460 a case statement falls through.
15461
0adea5f7
MS
15462 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
15463
35f5825a
MS
15464 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
15465 in comparison.
15466
238f1c74
MS
154672011-02-26 Michael Snyder <msnyder@vmware.com>
15468
15469 * utils.c (decimal2str): Eliminate dead code and dead param.
15470 (pulongest): Drop dead param from call to decimal2str.
15471 (plongest): Ditto.
15472
633ff500
JB
154732011-02-24 Joel Brobecker <brobecker@adacore.com>
15474
15475 Revert the following patch (not approved yet):
15476 2011-02-21 Hui Zhu <teawater@gmail.com>
15477 * tracepoint.c (tp_printf): New function.
15478 (eval_agent_expr): Handle gdb_agent_op_printf.
15479
f9c6ff72
HZ
154802011-02-21 Hui Zhu <teawater@gmail.com>
15481
15482 * tracepoint.c (tp_printf): New function.
15483 (eval_agent_expr): Handle gdb_agent_op_printf.
15484
94d5e490
TT
154852011-02-18 Tom Tromey <tromey@redhat.com>
15486
15487 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
15488 (tracepoint.o): Likewise.
15489 * tracepoint.c (enum gdb_agent_op): Use ax.def.
15490 (gdb_agent_op_names): Likewise.
15491
c7f96d2b
TT
154922011-02-18 Tom Tromey <tromey@redhat.com>
15493
15494 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
15495 gdb_agent_op_rot>: New constants.
15496 (gdb_agent_op_names): Add pick and roll.
15497 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
15498 cases.
15499
0feedb2c
JK
155002011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
15501
15502 * aclocal.m4: Regenerated with aclocal-1.11.1.
15503
b3b9301e
PA
155042011-02-14 Pedro Alves <pedro@codesourcery.com>
15505
15506 * server.c (handle_qxfer_traceframe_info): New.
15507 (qxfer_packets): Register "traceframe-info".
15508 (handle_query): Report support for qXfer:traceframe-info:read+.
15509 * tracepoint.c (match_blocktype): New.
15510 (traceframe_find_block_type): Rename to ...
15511 (traceframe_walk_blocks): ... this. Add callback filter argument,
15512 and use it.
15513 (traceframe_find_block_type): New, reimplemented on top of
15514 traceframe_walk_blocks.
15515 (build_traceframe_info_xml): New.
15516 (traceframe_read_info): New.
15517 * server.h (traceframe_read_info): Declare.
15518
4f3e6fb7
YQ
155192011-02-11 Yao Qi <yao@codesourcery.com>
15520
15521 * configure.ac: Call AC_PROG_RANLIB.
15522 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
15523 * configure: Regenerate.
15524
764880b7
PA
155252011-02-07 Pedro Alves <pedro@codesourcery.com>
15526
15527 * server.c (gdb_read_memory): Change return semantics to allow
15528 partial transfers.
15529 (handle_search_memory_1): Adjust.
15530 (process_serial_event) <'m' packet>: Handle partial transfers.
15531 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
15532
1c79eb8a
PA
155332011-01-28 Pedro Alves <pedro@codesourcery.com>
15534
15535 * regcache.c (init_register_cache): Initialize
15536 regcache->register_status.
15537 (free_register_cache): Release regcache->register_status.
15538 (regcache_cpy): Copy register_status.
15539 (registers_to_string): Print 'x's for unavailable registers.
15540 (supply_register): Mark the register's status valid or
15541 unavailable, depending on whether a buffer was passed in or not.
15542 (supply_register_zeroed): New.
15543 (supply_regblock): Mark the registers' status valid or
15544 unavailable, depending on whether a buffer was passed in or not.
15545 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
15546 (struct regcache): New `register_status' field.
15547 (supply_register_zeroed): Declare.
15548 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
15549 supply_register_zeroed, rather than passing a NULL buffer to
15550 supply_register.
15551 * tracepoint.c (fetch_traceframe_registers): Update comment.
15552
85724a0e
PA
155532011-01-28 Pedro Alves <pedro@codesourcery.com>
15554
15555 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
15556 buffer explicit.
15557
d08aafef
PA
155582011-01-25 Pedro Alves <pedro@codesourcery.com>
15559
15560 * server.h (decode_xfer_write): Change prototype.
15561 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
15562 and don't extract the annex here.
15563 * server.c (decode_xfer_read): Remove `annex' parameter,
15564 and don't extract the annex here.
15565 (decode_xfer): New.
15566 (struct qxfer): New.
15567 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
15568 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
15569 (handle_qxfer_statictrace): New functions, abstracted out from
15570 handle_query, and made to use the struct qxfer interface.
15571 (handle_threads_qxfer_proper): Rename to ...
15572 (handle_qxfer_threads_proper): ... this.
15573 (handle_threads_qxfer): Rename to ...
15574 (handle_qxfer_threads): ... this. Adjust.
15575 (qxfer_packets): New array.
15576 (handle_qxfer): New function.
15577 (handle_query): Use handle_qxfer.
15578
493e2a69
MS
155792011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
15580
15581 * gdbreplay.c: Shorten lines of >= 80 columns.
15582 * linux-low.c: Ditto.
15583 * linux-ppc-low.c: Ditto.
15584 * linux-s390-low.c: Ditto.
15585 * linux-sparc-low.c: Ditto.
15586 * linux-x86-low.c: Ditto.
15587 * linux-xtensa-low.c: Ditto.
15588 * mem-break.c: Ditto.
15589 * nto-low.c: Ditto.
15590 * regcache.h: Ditto.
15591 * remote-utils.c: Ditto.
15592 * server.c: Ditto.
15593 * server.h: Ditto.
15594 * thread-db.c: Ditto.
15595 * tracepoint.c: Ditto.
15596 * utils.c: Ditto.
15597 * win32-low.h: Ditto.
15598
44944448
JB
155992011-01-05 Joel Brobecker <brobecker@adacore.com>
15600
15601 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
15602 update.
15603
71ce852c
JB
156042011-01-01 Joel Brobecker <brobecker@adacore.com>
15605
15606 * server.c (gdbserver_version): Update copyright year in version
15607 output.
15608 * gdbreplay.c (gdbreplay_version): Ditto.
15609
eb826dc6
MF
156102010-12-29 Jie Zhang <jie.zhang@analog.com>
15611
15612 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
15613 * linux-bfin-low.c: New file.
15614 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
15615 PT_DATA_ADDR for BFIN targets.
15616 * Makefile.in (SFILES): Add linux-bfin-low.c.
15617 (clean): Remove reg-bfin.c.
15618 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
15619 * README: Mention supported Blackfin targets.
15620
39ab222a
MF
156212010-12-23 Mike Frysinger <vapier@gentoo.org>
15622
15623 * .gitignore: New file.
15624
a1f2ce7d
MF
156252010-11-16 Mike Frysinger <vapier@gentoo.org>
15626
15627 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
15628
f474844c
JZ
156292010-10-22 Jie Zhang <jie@codesourcery.com>
15630
15631 * Makefile.in: Add FLAGS_TO_PASS variable.
15632 (install): Remove dependency of install-only and recursively
15633 invoke make for install-only.
15634
f1048712
DE
156352010-10-04 Doug Evans <dje@google.com>
15636
15637 * Makefile.in (uninstall): Use $(DESTDIR).
15638
b53a1623
PA
156392010-09-24 Pedro Alves <pedro@codesourcery.com>
15640
e6ee044d
PA
15641 PR gdb/11842
15642
b53a1623
PA
15643 * linux-x86-low.c (compat_siginfo_from_siginfo)
15644 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
15645 si_code is < 0. Check for si_code == SI_TIMER before checking for
15646 si_code < 0.
15647
fa1bd1e4
JB
156482010-09-13 Joel Brobecker <brobecker@adacore.com>
15649
15650 * lynx-i386-low.c: New file.
15651 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
15652
47fac8f8
JB
156532010-09-13 Joel Brobecker <brobecker@adacore.com>
15654
15655 * lynx-low.c (ptrace_request_to_str): Remove handling for
15656 request values that have been removed in LynxOS 5.x.
15657
1adfc54d
JB
156582010-09-13 Joel Brobecker <brobecker@adacore.com>
15659
15660 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
15661 <ptrace.h>
15662
c2a66c29
NS
156632010-09-09 Nathan Sidwell <nathan@codesourcery.com>
15664
15665 * configure.ac: Add --enable-inprocess-agent option.
15666 * configure: Rebuilt.
15667
32fcada3
YQ
156682010-09-06 Yao Qi <yao@codesourcery.com>
15669
15670 * linux-low.c (linux_kill): Remove unused variable.
15671 (linux_stabilize_threads): Likewise.
15672 * server.c (start_inferior): Likewise.
15673 (queue_stop_reply_callback): Likewise.
15674 * tracepoint.c (do_action_at_tracepoint): Likewise.
15675
0cccb683
YQ
156762010-09-06 Yao Qi <yao@codesourcery.com>
15677
15678 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
15679 on return.
15680
423ec54c
JK
156812010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
15682
15683 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
15684
12ac6819
PA
156852010-09-06 Pedro Alves <pedro@codesourcery.com>
15686
15687 * Makefile.in (install-only): Replace $IPA_DEPFILES with
15688 "$(IPA_DEPFILES)".
15689
8ed54b31
JB
156902010-09-01 Joel Brobecker <brobecker@adacore.com>
15691
15692 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
15693 gdbserver/lynx-ppc-low.c: New files.
15694 * Makefile.in (lynx_low_h): New variable.
15695 (lynx-low.o, lynx-ppc-low.o): New rules.
15696 * configure.ac: On LynxOS, link with -lnetinet.
15697 * configure.srv: Add handling of powerpc-*-lynxos* targets.
15698 * configure: regenerate.
15699
bb0116a4
JB
157002010-09-01 Joel Brobecker <brobecker@adacore.com>
15701
15702 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
15703 * configure.ac: Add check for vasprintf and vsnprintf.
15704 * configure, config.in: Regenerate.
15705 * server.h (vasprintf, vsnprintf): Add conditional declarations.
15706
a778ab81 157072010-09-01 Joel Brobecker <brobecker@adacore.com>
15708
15709 * gdbreplay.c: Move include of alloca.h up, next to include of
15710 malloc.h.
15711 * server.h: Add include of malloc.h.
15712 * mem-break.c: Remove include of malloc.h.
15713 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
15714
8b034a19 157152010-09-01 Joel Brobecker <brobecker@adacore.com>
15716
15717 * Makefile.in (memmem.o): Build with -Wno-error.
15718
157192010-09-01 Joel Brobecker <brobecker@adacore.com>
15720
15721 * utils.c (xsnprintf): Make non-static.
15722 * server.h: Add xsnprintf declaration.
15723 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
15724 replace calls to snprintf by calls to xsnprintf throughout.
15725
157262010-09-01 Joel Brobecker <brobecker@adacore.com>
15727
15728 * configure.ac: Add configure check for alloca.
15729 * configure, config.in: Regenerate.
15730 * server.h: Include alloca.h if it exists.
15731 * gdbreplay.c: Include alloca.h if it exists.
15732
1a981360
PA
157332010-08-28 Pedro Alves <pedro@codesourcery.com>
15734
15735 * linux-low.c (__SIGRTMIN): Define if not already defined.
15736 (linux_create_inferior): Check for __ANDROID__ rather than
15737 __SIGRTMIN.
15738 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
15739 are already deferred.
15740 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
15741 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
15742 stopped and already has a pending signal to report.
15743 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
15744 a pending signal to report or is moving out of a jump pad.
15745 (linux_init_signals): Check for __ANDROID__ rather than
15746 __SIGRTMIN.
15747
b4d51a55
PA
157482010-08-28 Pedro Alves <pedro@codesourcery.com>
15749
15750 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
15751 debug_threads check. Avoid a linear search when not doing debug
15752 output.
15753
ec48365d
PA
157542010-08-27 Pedro Alves <pedro@codesourcery.com>
15755
15756 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
15757 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
15758 (struct file_handler) <fd>: Change type to gdb_fildes_t.
15759 (process_event): Change local fd's type to gdb_fildes_t.
15760 (create_file_handler): Adjust prototype.
15761 (delete_file_handler): Adjust prototype.
15762 (handle_file_event): Adjust prototype. Use pfildes.
15763 (create_file_event): Adjsut prototype.
15764 * remote-utils.c (remote_desc, listen_desc): Change type to
15765 gdb_fildes_t.
15766 * server.h: New gdb_fildes_t typedef.
15767 [USE_WIN32API]: Include winsock2.h.
15768 (delete_file_handler, add_file_handler): Adjust prototypes.
15769 (pfildes): Declare.
15770 * utils.c (pfildes): New.
15771
854d88f0
PA
157722010-08-27 Pedro Alves <pedro@codesourcery.com>
15773
15774 * configure.ac (build_warnings): Add -Wno-char-subscripts.
15775 * configure: Regenerate.
15776
0146f85b
PA
157772010-08-27 Pedro Alves <pedro@codesourcery.com>
15778
15779 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
15780 (linux_done_accessing_memory): ... this.
15781 (linux_target_ops): Adjust.
15782 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
15783 * nto-low.c (nto_target_ops): Adjust comment.
15784 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
15785 * spu-low.c (spu_target_ops): Adjust comment.
15786 * target.h (target_ops): Rename unprepare_to_access_memory field
15787 to done_accessing_memory.
15788 (unprepare_to_access_memory): Rename to ...
15789 (done_accessing_memory): ... this.
15790
90d74c30
PA
157912010-08-26 Pedro Alves <pedro@codesourcery.com>
15792
15793 * linux-low.c (linux_prepare_to_access_memory): New.
15794 (linux_unprepare_to_access_memory): New.
15795 (linux_target_ops): Install them.
15796 * server.c (read_memory): Rename to ...
15797 (gdb_read_memory): ... this. Use
15798 prepare_to_access_memory/prepare_to_access_memory.
15799 (write_memory): Rename to ...
15800 (gdb_write_memory): ... this. Use
15801 prepare_to_access_memory/prepare_to_access_memory.
15802 (handle_search_memory_1): Adjust.
15803 (process_serial_event): Adjust.
15804 * target.h (struct target_ops): New fields
15805 prepare_to_access_memory and unprepare_to_access_memory.
15806 (prepare_to_access_memory, unprepare_to_access_memory): New.
15807 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
15808 prepare_to_access_memory/prepare_to_access_memory.
15809 * nto-low.c (nto_target_ops): Adjust.
15810 * spu-low.c (spu_target_ops): Adjust.
15811 * win32-low.c (win32_target_ops): Adjust.
15812
fd467969
PA
158132010-08-26 Pedro Alves <pedro@codesourcery.com>
15814
15815 * Makefile.in (WARN_CFLAGS): Get it from configure.
15816 (WERROR_CFLAGS): New.
15817 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
15818 * configure.ac: Introduce --enable-werror, which adds -Werror to
15819 the compiler command line. Enabled by default. Disable with
15820 --disable-werror. Add -Wdeclaration-after-statement
15821 Wpointer-arith and -Wformat-nonliteral to warning flags.
15822 * configure: Regenerate.
15823
331e2f5f
PA
158242010-08-26 Pedro Alves <pedro@codesourcery.com>
15825
15826 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
15827
e581f2b4
PA
158282010-08-26 Pedro Alves <pedro@codesourcery.com>
15829
15830 * gdbreplay.c (remote_error): New.
15831 (gdbchar): New.
15832 (expect): Use gdbchar. Check for error reading from GDB.
15833 Clarify sync error output.
15834 (play): Check for errors writing to GDB.
15835 * linux-low.c (sigchld_handler): Really ignore `write' errors.
15836 * remote-utils.c (getpkt): Check for errors writing to the remote
15837 descriptor.
15838
3c11dd79
PA
158392010-08-25 Pedro Alves <pedro@codesourcery.com>
15840
15841 * linux-low.c (linux_wait_1): Move non-debugging code out of
15842 `debug_threads' control.
15843
d20a8ad9
PA
158442010-08-25 Pedro Alves <pedro@codesourcery.com>
15845
15846 * linux-low.c (linux_wait_1): Don't set last_status here.
15847 * server.c (push_event, queue_stop_reply_callback): Assert we're
15848 not pushing a TARGET_WAITKIND_IGNORE event.
15849 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
15850 (myresume, handle_target_event): Set the thread's last_resume_kind
15851 and last_status from the target returned status.
15852
964e4306
PA
158532010-08-25 Pedro Alves <pedro@codesourcery.com>
15854
15855 PR threads/10729
15856
15857 * linux-x86-low.c (update_debug_registers_callback): New.
15858 (i386_dr_low_set_addr): Use it.
15859 (i386_dr_low_get_addr): New.
15860 (i386_dr_low_set_control): Use update_debug_registers_callback.
15861 (i386_dr_low_get_control): New.
15862 (i386_dr_low_get_status): Adjust.
15863 * linux-low.c (linux_stop_lwp): New.
15864 * linux-low.h (linux_stop_lwp): Declare.
15865
15866 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
15867 argument instead of a i386_debug_reg_state.
15868 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
15869 a i386_debug_reg_state.
15870 (i386_insert_aligned_watchpoint): Adjust.
15871 (i386_remove_aligned_watchpoint): Adjust.
15872 (i386_low_stopped_data_address): Read the debug registers from the
15873 inferior instead of from the mirrors.
15874 * i386-low.h (struct i386_debug_reg_state): Extend comment.
15875 (i386_dr_low_get_addr): Declare.
15876 (i386_dr_low_get_control): Declare.
15877 (i386_dr_low_get_status): Change prototype.
15878
15879 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
15880 (i386_dr_low_get_addr): New.
15881 (i386_dr_low_get_control): New.
15882 (i386_dr_low_get_status): Adjust prototype. Return
15883 dr_status_mirror.
15884 (i386_initial_stuff): Clear dr_status_mirror and
15885 dr_control_mirror.
15886 (i386_get_thread_context): Adjust.
15887 (i386_set_thread_context): Adjust.
15888 (i386_thread_added): Adjust.
15889
5f21a75b
PA
158902010-08-24 Pedro Alves <pedro@codesourcery.com>
15891
15892 * linux-low.h (linux_thread_area): Delete declaration.
15893
3e4c1235
TS
158942010-08-11 Thomas Schwinge <thomas@codesourcery.com>
15895
15896 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
15897 after its termination.
15898
1971b033
PA
158992010-08-09 Pedro Alves <pedro@codesourcery.com>
15900
15901 * linux-low.c (gdb_wants_lwp_stopped): Delete.
15902 (gdb_wants_all_stopped): Delete.
15903 (linux_wait_1): Don't call them.
15904 * server.c (handle_v_cont): Tag all threads as want-stopped.
15905 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
15906 stopped as "client-wants-stopped".
15907
310444ac
PA
159082010-07-31 Pedro Alves <pedro@codesourcery.com>
15909
15910 * Makefile.in (signals_h): New.
15911 (server_h): Depend on it.
15912 (server.o): Don't depend on $(signals_def).
15913 (signals.o): Depend on $(signals_def).
15914
a19cae16
JK
159152010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
15916
15917 * Makefile.in (signals_def): New.
15918 (server_h): Append include/gdb/signals.h and signals_def.
15919 (server.o): Append signals_def.
15920
30d50328
JK
159212010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
15922
15923 * server.c (handle_target_event): Use target_signal_to_host for
15924 resume_info.sig initialization.
15925 * target.h (struct thread_resume) <sig>: New comment.
15926
5c3216e2
OS
159272010-07-20 Ozkan Sezer <sezeroz@gmail.com>
15928
c6f46ca0
OS
15929 * server.c (handle_query): strcpy() the returned string from paddress()
15930 instead of sprintf().
5c3216e2
OS
15931 * utils.c (paddress): Return phex_nz().
15932
6bd31874
JB
159332010-07-07 Joel Brobecker <brobecker@adacore.com>
15934
15935 * server.c (handle_v_cont): Call mourn_inferior if process
15936 just exited.
15937 (myresume): Likewise.
15938
0fb4aa4b
PA
159392010-07-01 Pedro Alves <pedro@codesourcery.com>
15940
15941 Static tracepoints, and integration with UST.
15942
15943 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
15944 * mem-break.c (uninsert_all_breakpoints)
15945 (reinsert_all_breakpoints): New.
15946 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
15947 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
15948 (gdb_agent_ust_loaded, helper_thread_id)
15949 (gdb_agent_helper_thread_id): New macros.
15950 (struct ipa_sym_addresses): Add addr_ust_loaded,
15951 addr_helper_thread_id, addr_cmd_buf.
15952 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
15953 (in_process_agent_loaded_ust): New.
15954 (write_e_ust_not_loaded): New.
15955 (maybe_write_ipa_ust_not_loaded): New.
15956 (struct collect_static_trace_data_action): New.
15957 (enum tracepoint_type) <static_tracepoint>: New.
15958 (struct tracepoint) <handle>: Mention static tracepoints.
15959 (struct static_tracepoint_ctx): New.
15960 (CMD_BUF_SIZE): New.
15961 (add_tracepoint_action): Handle static tracepoint actions.
15962 (unprobe_marker_at): New.
15963 (clear_installed_tracepoints): Handle static tracepoints.
15964 (cmd_qtdp): Handle static tracepoints.
15965 (probe_marker_at): New.
15966 (cmd_qtstart): Handle static tracepoints.
15967 (response_tracepoint): Handle static tracepoints.
15968 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
15969 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
15970 (get_context_regcache): Handle static tracepoints.
15971 (do_action_at_tracepoint): Handle static tracepoint actions.
15972 (traceframe_find_block_type): Handle static trace data blocks.
15973 (traceframe_read_sdata): New.
15974 (download_tracepoints): Download static tracepoint actions.
15975 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
15976 (GDB_PROBE_NAME): New.
15977 (ust_ops): New.
15978 (GET_UST_SYM): New.
15979 (USTF): New.
15980 (dlsym_ust): New.
15981 (ust_marker_to_static_tracepoint): New.
15982 (gdb_probe): New.
15983 (collect_ust_data_at_tracepoint): New.
15984 (gdb_ust_probe): New.
15985 (UNIX_PATH_MAX, SOCK_DIR): New.
15986 (gdb_ust_connect_sync_socket): New.
15987 (resume_thread, stop_thread): New.
15988 (run_inferior_command): New.
15989 (init_named_socket): New.
15990 (gdb_ust_socket_init): New.
15991 (cstr_to_hexstr): New.
15992 (next_st): New.
15993 (first_marker, next_marker): New.
15994 (response_ust_marker): New.
15995 (cmd_qtfstm, cmd_qtsstm): New.
15996 (unprobe_marker_at, probe_marker_at): New.
15997 (cmd_qtstmat, gdb_ust_thread): New.
15998 (gdb_ust_init): New.
15999 (initialize_tracepoint_ftlib): Call gdb_ust_init.
16000 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
16001 (ST_REGENTRY): New.
16002 (x86_64_st_collect_regmap): New.
16003 (X86_64_NUM_ST_COLLECT_GREGS): New.
16004 (AMD64_RIP_REGNUM): New.
16005 (supply_static_tracepoint_registers): New.
16006 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
16007 (ST_REGENTRY): New.
16008 (i386_st_collect_regmap): New.
16009 (i386_NUM_ST_COLLECT_GREGS): New.
16010 (supply_static_tracepoint_registers): New.
16011 * server.c (handle_query): Handle qXfer:statictrace:read.
16012 <qSupported>: Report support for StaticTracepoints, and
16013 qXfer:statictrace:read features.
16014 * server.h (traceframe_read_sdata)
16015 (supply_static_tracepoint_registers): Declare.
16016 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
16017 (unpack_varlen_hex): Include in IPA build.
16018 * Makefile.in (ustlibs, ustinc): New.
16019 (IPA_OBJS): Add remote-utils-ipa.o.
16020 ($(IPA_LIB)): Link -ldl and -lpthread.
16021 (UST_CFLAGS): New.
16022 (IPAGENT_CFLAGS): Add UST_CFLAGS.
16023 * config.in, configure: Regenerate.
16024
9e4344e5
PA
160252010-06-20 Ian Lance Taylor <iant@google.com>
16026 Pedro Alves <pedro@codesourcery.com>
16027
16028 * linux-x86-low.c (always_true): Delete.
16029 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
16030 trying to fool the compiler with always_true.
16031
c6beb2cb
PA
160322010-06-20 Pedro Alves <pedro@codesourcery.com>
16033
16034 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
16035 conditions in gdbserver.
16036
d2ed6730
UW
160372010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
16038
16039 * spu-low.c (spu_read_memory): Wrap around local store limit.
16040 (spu_write_memory): Likewise.
16041
4e29fb54
PA
160422010-06-15 Pedro Alves <pedro@codesourcery.com>
16043
16044 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
16045 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
16046 LONGEST uses.
16047 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
16048 uses.
16049 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
16050 uses with LONGEST uses.
16051
6a271cae
PA
160522010-06-14 Stan Shebs <stan@codesourcery.com>
16053 Pedro Alves <pedro@codesourcery.com>
16054
16055 Bytecode compiler.
16056
16057 * linux-x86-low.c: Include limits.h.
16058 (add_insns): New.
16059 (always_true): New.
16060 (EMIT_ASM): New.
16061 (EMIT_ASM32): New.
16062 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
16063 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
16064 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
16065 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
16066 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
16067 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
16068 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
16069 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
16070 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
16071 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
16072 (amd64_emit_void_call_2): New.
16073 (amd64_emit_ops): New.
16074 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
16075 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
16076 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
16077 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
16078 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
16079 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
16080 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
16081 (i386_emit_call, i386_emit_reg, i386_emit_pop)
16082 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
16083 (i386_emit_stack_adjust, i386_emit_int_call_1)
16084 (i386_emit_void_call_2): New.
16085 (i386_emit_ops): New.
16086 (x86_emit_ops): New.
16087 (the_low_target): Install x86_emit_ops.
16088 * server.h (struct emit_ops): New.
16089 (get_raw_reg_func_addr): Declare.
16090 (current_insn_ptr, emit_error): Declare.
16091 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
16092 (set_trace_state_variable_value): New defines.
16093 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
16094 addr_get_trace_state_variable_value and
16095 addr_set_trace_state_variable_value.
16096 (symbol_list): New fields for get_raw_reg,
16097 get_trace_state_variable_value and set_trace_state_variable_value.
16098 (condfn): New typedef.
16099 (struct tracepoint): New field `compiled_cond'.
16100 (do_action_at_tracepoint): Clear compiled_cond.
16101 (get_trace_state_variable_value, set_trace_state_variable_value):
16102 Export in the IPA.
16103 (condition_true_at_tracepoint): If there's a compiled condition,
16104 run that.
16105 (current_insn_ptr, emit_error): New globals.
16106 (struct bytecode_address): New.
16107 (get_raw_reg_func_addr): New.
16108 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
16109 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
16110 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
16111 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
16112 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
16113 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
16114 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
16115 (compile_tracepoint_condition, compile_bytecodes): New.
16116 * target.h (emit_ops): Forward declare.
16117 (struct target_ops): New field emit_ops.
16118 (target_emit_ops): New.
16119 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
16120 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
16121 * linux-low.c (linux_emit_ops): New.
16122 (linux_target_ops): Install it.
16123 * linux-low.h (struct linux_target_ops): New field emit_ops.
16124
92b72907
UW
161252010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
16126
16127 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
16128 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
16129
fa593d66
PA
161302010-06-01 Pedro Alves <pedro@codesourcery.com>
16131 Stan Shebs <stan@codesourcery.com>
16132
16133 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
16134 (all): Depend on $(extra_libraries).
16135 (install-only): Install the IPA.
16136 (IPA_OBJS, IPA_LIB): New.
16137 (clean): Remove the IPA lib.
16138 (IPAGENT_CFLAGS): New.
16139 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
16140 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
16141 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
16142 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
16143 * configure.ac: Check for atomic builtins support in the compiler.
16144 (IPA_DEPFILES, extra_libraries): Define.
16145 * configure.srv (ipa_obj): Add description.
16146 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
16147 (i[34567]86-*-linux*): Set ipa_obj.
16148 (x86_64-*-linux*): Set ipa_obj.
16149 * linux-low.c (stabilizing_threads): New.
16150 (supports_fast_tracepoints): New.
16151 (linux_detach): Stabilize threads before detaching.
16152 (handle_tracepoints): Handle internal tracing breakpoints. Assert
16153 the lwp is either not stabilizing, or is moving out of a jump pad.
16154 (linux_fast_tracepoint_collecting): New.
16155 (maybe_move_out_of_jump_pad): New.
16156 (enqueue_one_deferred_signal): New.
16157 (dequeue_one_deferred_signal): New.
16158 (linux_wait_for_event_1): If moving out of a jump pad, defer
16159 pending signals to later.
16160 (linux_stabilize_threads): New.
16161 (linux_wait_1): Check if threads need moving out of jump pads, and
16162 do it if so.
16163 (stuck_in_jump_pad_callback): New.
16164 (move_out_of_jump_pad_callback): New.
16165 (lwp_running): New.
16166 (linux_resume_one_lwp): Handle moving out of jump pads.
16167 (linux_set_resume_request): Dequeue deferred signals.
16168 (need_step_over_p): Also step over fast tracepoint jumps.
16169 (start_step_over): Also uninsert fast tracepoint jumps.
16170 (finish_step_over): Also reinsert fast tracepoint jumps.
16171 (linux_install_fast_tracepoint_jump): New.
16172 (linux_target_ops): Install linux_stabilize_threads and
16173 linux_install_fast_tracepoint_jump_pad.
16174 * linux-low.h (linux_target_ops) <get_thread_area,
16175 install_fast_tracepoint_jump_pad>: New fields.
16176 (struct lwp_info) <collecting_fast_tracepoint,
16177 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
16178 (linux_get_thread_area): Declare.
16179 * linux-x86-low.c (jump_insn): New.
16180 (x86_get_thread_area): New.
16181 (append_insns): New.
16182 (push_opcode): New.
16183 (amd64_install_fast_tracepoint_jump_pad): New.
16184 (i386_install_fast_tracepoint_jump_pad): New.
16185 (x86_install_fast_tracepoint_jump_pad): New.
16186 (the_low_target): Install x86_get_thread_area and
16187 x86_install_fast_tracepoint_jump_pad.
16188 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
16189 (struct fast_tracepoint_jump): New.
16190 (fast_tracepoint_jump_insn): New.
16191 (fast_tracepoint_jump_shadow): New.
16192 (find_fast_tracepoint_jump_at): New.
16193 (fast_tracepoint_jump_here): New.
16194 (delete_fast_tracepoint_jump): New.
16195 (set_fast_tracepoint_jump): New.
16196 (uninsert_fast_tracepoint_jumps_at): New.
16197 (reinsert_fast_tracepoint_jumps_at): New.
16198 (set_breakpoint_at): Use write_inferior_memory.
16199 (uninsert_raw_breakpoint): Use write_inferior_memory.
16200 (check_mem_read): Mask out fast tracepoint jumps.
16201 (check_mem_write): Mask out fast tracepoint jumps.
16202 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
16203 (set_fast_tracepoint_jump): Declare.
16204 (delete_fast_tracepoint_jump)
16205 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
16206 (reinsert_fast_tracepoint_jumps_at): Declare.
16207 * regcache.c: Don't compile many functions when building the
16208 in-process agent library.
16209 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
16210 the register buffer in the heap.
16211 (free_register_cache): If the register buffer isn't owned by the
16212 regcache, don't free it.
16213 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
16214 pre-existing register caches.
16215 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
16216 type.
16217 (convert_ascii_to_int): : Constify `from' parameter type.
16218 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
16219 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
16220 the needed buffer in-place.
16221 (relocate_instruction): New.
16222 * server.c (handle_query) <qSymbols>: If the target supports
16223 tracepoints, give it a chance of looking up symbols. Report
16224 support for fast tracepoints.
16225 (handle_status): Stabilize threads.
16226 (process_serial_event): Adjust.
16227 * server.h (struct fast_tracepoint_jump): Forward declare.
16228 (struct process_info) <fast_tracepoint_jumps>: New field.
16229 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
16230 (decode_X_packet, decode_M_packet): Adjust.
16231 (relocate_instruction): Declare.
16232 (in_process_agent_loaded): Declare.
16233 (tracepoint_look_up_symbols): Declare.
16234 (struct fast_tpoint_collect_status): Declare.
16235 (fast_tracepoint_collecting): Declare.
16236 (force_unlock_trace_buffer): Declare.
16237 (handle_tracepoint_bkpts): Declare.
16238 (initialize_low_tracepoint)
16239 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
16240 * target.h (struct target_ops) <stabilize_threads,
16241 install_fast_tracepoint_jump_pad>: New fields.
16242 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
16243 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
16244 [HAVE_STDINT_H]: Include stdint.h.
16245 (trace_debug_1): Rename to ...
16246 (trace_vdebug): ... this.
16247 (trace_debug): Rename to ...
16248 (trace_debug_1): ... this. Add `level' parameter.
16249 (trace_debug): New.
16250 (ATTR_USED, ATTR_NOINLINE): New.
16251 (IP_AGENT_EXPORT): New.
16252 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
16253 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
16254 (about_to_request_buffer_space, trace_buffer_is_full)
16255 (stopping_tracepoint, expr_eval_result, error_tracepoint)
16256 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
16257 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
16258 (traceframe_write_count, traceframes_created)
16259 (trace_state_variables)
16260 New renaming defines.
16261 (struct ipa_sym_addresses): New.
16262 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
16263 (symbol_list): New.
16264 (ipa_sym_addrs): New.
16265 (all_tracepoint_symbols_looked_up): New.
16266 (in_process_agent_loaded): New.
16267 (write_e_ipa_not_loaded): New.
16268 (maybe_write_ipa_not_loaded): New.
16269 (tracepoint_look_up_symbols): New.
16270 (debug_threads) [IN_PROCESS_AGENT]: New.
16271 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
16272 (UNKNOWN_SIDE_EFFECTS): New.
16273 (stop_tracing): New.
16274 (flush_trace_buffer): New.
16275 (stop_tracing_bkpt): New.
16276 (flush_trace_buffer_bkpt): New.
16277 (read_inferior_integer): New.
16278 (read_inferior_uinteger): New.
16279 (read_inferior_data_pointer): New.
16280 (write_inferior_data_pointer): New.
16281 (write_inferior_integer): New.
16282 (write_inferior_uinteger): New.
16283 (struct collect_static_trace_data_action): Delete.
16284 (enum tracepoint_type): New.
16285 (struct tracepoint) <type>: New field `type'.
43aaf8b6
PA
16286 <actions_str, step_actions, step_actions_str>: Only include in
16287 GDBserver.
fa593d66
PA
16288 <orig_size, obj_addr_on_target, adjusted_insn_addr>
16289 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
16290 (tracepoints): Use IP_AGENT_EXPORT.
16291 (last_tracepoint): Don't include in the IPA.
16292 (stopping_tracepoint): Use IP_AGENT_EXPORT.
16293 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
16294 (alloced_trace_state_variables): New.
16295 (trace_state_variables): Use IP_AGENT_EXPORT.
16296 (traceframe_t): Delete unused variable.
16297 (circular_trace_buffer): Don't include in the IPA.
16298 (trace_buffer_start): Delete.
16299 (struct trace_buffer_control): New.
16300 (trace_buffer_free): Delete.
16301 (struct ipa_trace_buffer_control): New.
16302 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
16303 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
16304 New.
16305 (trace_buffer_ctrl): New.
16306 (TRACE_BUFFER_CTRL_CURR): New.
16307 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
16308 Reimplement as macros.
16309 (trace_buffer_wrap): Delete.
16310 (traceframe_write_count, traceframe_read_count)
16311 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
16312 (struct tracepoint_hit_ctx) <type>: New field.
16313 (struct fast_tracepoint_ctx): New.
16314 (memory_barrier): New.
16315 (cmpxchg): New.
16316 (record_tracepoint_error): Update atomically in the IPA.
16317 (clear_inferior_trace_buffer): New.
16318 (about_to_request_buffer_space): New.
16319 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
16320 updating the same buffer.
16321 (add_tracepoint): Default the tracepoint's type to trap
16322 tracepoint, and orig_size to -1.
16323 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
16324 internal variables.
16325 (create_trace_state_variable): New parameter `gdb'. Handle it.
16326 (clear_installed_tracepoints): Clear fast tracepoint jumps.
16327 (cmd_qtdp): Handle fast tracepoints.
16328 (cmd_qtdv): Adjust.
16329 (max_jump_pad_size): New.
16330 (gdb_jump_pad_head): New.
16331 (get_jump_space_head): New.
16332 (claim_jump_space): New.
16333 (sort_tracepoints): New.
16334 (MAX_JUMP_SIZE): New.
16335 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
16336 IPA.
16337 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
16338 support. Upload fast traceframes, and delete internal IPA
16339 breakpoints.
16340 (stop_tracing_handler): New.
16341 (flush_trace_buffer_handler): New.
16342 (cmd_qtstop): Upload fast tracepoints.
16343 (response_tracepoint): Handle fast tracepoints.
16344 (tracepoint_finished_step): Upload fast traceframes. Set the
16345 tracepoint hit context's tracepoint type.
16346 (handle_tracepoint_bkpts): New.
16347 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
16348 type. Add comment about fast tracepoints.
16349 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
16350 non-existing action_str field.
16351 (get_context_regcache): Handle fast tracepoints.
16352 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
16353 to the regcache.
16354 (fast_tracepoint_from_jump_pad_address): New.
16355 (fast_tracepoint_from_ipa_tpoint_address): New.
16356 (collecting_t): New.
16357 (force_unlock_trace_buffer): New.
16358 (fast_tracepoint_collecting): New.
16359 (collecting): New.
16360 (gdb_collect): New.
16361 (write_inferior_data_ptr): New.
16362 (target_tp_heap): New.
16363 (target_malloc): New.
16364 (download_agent_expr): New.
16365 (UALIGN): New.
16366 (download_tracepoints): New.
16367 (download_trace_state_variables): New.
16368 (upload_fast_traceframes): New.
16369 (IPA_FIRST_TRACEFRAME): New.
16370 (IPA_NEXT_TRACEFRAME_1): New.
16371 (IPA_NEXT_TRACEFRAME): New.
16372 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
16373 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
16374 (gdb_jump_pad_buffer_end): New.
16375 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
16376 (initialize_tracepoint): Adjust.
16377 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
16378 buffer. Initialize the low module.
16379 * utils.c (PREFIX, TOOLNAME): New.
16380 (malloc_failure): Use PREFIX.
16381 (error): In the IPA, an error causes an exit.
16382 (fatal, warning): Use PREFIX.
16383 (internal_error): Use TOOLNAME.
16384 (NUMCELLS): Increase to 10.
16385 * configure, config.in: Regenerate.
16386
d149dd1d
PA
163872010-06-01 Pedro Alves <pedro@codesourcery.com>
16388
16389 * server.c (handle_query) <qSupported>: Do two passes over the
16390 qSupported string to avoid nesting strtok.
16391
f6528abd
JK
163922010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16393
16394 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
16395 (CDEPS): New.
16396 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
16397 -Wl,--dynamic-list.
16398 * configure: Regenerate.
16399 * proc-service.list: New.
16400
ca2a87a0
JK
164012010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16402
16403 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
16404 New comment.
16405
363a6e9f
OS
164062010-05-26 Ozkan Sezer <sezeroz@gmail.com>
16407
16408 * gdbreplay.c (remote_open): Check error return from socket() call by
16409 its equality to -1 not by it being negative.
16410 * remote-utils.c (remote_open): Likewise.
16411
d23b6cb1
PA
164122010-05-23 Pedro Alves <pedro@codesourcery.com>
16413
16414 * config.h: Regenerate.
16415
28d3cf85
MK
164162010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
16417
16418 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
16419 doesn't provide PTRACE_GET_THREAD_AREA.
16420
fea36a59
MK
164212010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
16422
16423 * linux-m68k-low.c: Include <asm/ptrace.h>
16424 (ps_get_thread_area): Implement.
16425
24b066ba
DE
164262010-05-03 Doug Evans <dje@google.com>
16427
16428 * event-loop.c (struct callback_event): New struct.
16429 (callback_list): New global.
16430 (append_callback_event, delete_callback_event): New functions.
16431 (process_callback): New function.
16432 (start_event_loop): Call it.
16433 * remote-utils.c (NOT_SCHEDULED): Define.
16434 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
16435 moved out of readchar.
16436 (readchar): Rewrite. Call reschedule before returning.
16437 (reset_readchar): New function.
16438 (remote_close): Call it.
16439 (process_remaining, reschedule): New functions.
16440 * server.h (callback_handler_func): New typedef.
16441 (append_callback_event, delete_callback_event): Declare.
16442
9836d6ea
PA
164432010-05-03 Pedro Alves <pedro@codesourcery.com>
16444
16445 * proc-service.c (ps_pglobal_lookup): Use
16446 thread_db_look_up_one_symbol.
16447 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
16448 parameter. Use it instead of all_symbols_looked_up.
16449 * server.h (struct process_info) <all_symbols_looked_up>: Delete
16450 field.
16451 (all_symbols_looked_up): Don't declare.
16452 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
16453 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
16454 field.
16455 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
16456 Set all_symbols_looked_up here.
16457 (thread_db_look_up_one_symbol): New.
16458 (thread_db_get_tls_address): Adjust.
16459 (thread_db_load_search, try_thread_db_load_1): Always allocate the
16460 thread_db object on the heap, and tentatively set it in the
16461 process structure.
16462 (thread_db_init): Don't set all_symbols_looked_up here.
16463 * linux-low.h (thread_db_look_up_one_symbol): Declare.
16464
7984d532
PA
164652010-05-03 Pedro Alves <pedro@codesourcery.com>
16466
16467 * linux-low.c (linux_kill, linux_detach): Adjust.
16468 (status_pending_p_callback): Remove redundant statement. Check
16469 for !TARGET_WAITIKIND_IGNORE, instead of
16470 TARGET_WAITKIND_STOPPED.
16471 (handle_tracepoints): Make sure LWP is locked. Adjust.
16472 (linux_wait_for_event_1): Adjust.
16473 (linux_cancel_breakpoints): New.
16474 (unsuspend_one_lwp): New.
16475 (unsuspend_all_lwps): New.
16476 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
16477 (send_sigstop_callback): Change return type to int, add new
16478 `except' parameter and handle it.
16479 (suspend_and_send_sigstop_callback): New.
16480 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
16481 pass them down. If SUSPEND, also increment the lwp's suspend
16482 count.
16483 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
16484 (need_step_over_p): Don't consider suspended LWPs.
16485 (start_step_over): Adjust.
16486 (proceed_one_lwp): Change return type to int, add new `except'
16487 parameter and handle it.
16488 (unsuspend_and_proceed_one_lwp): New.
16489 (proceed_all_lwps): Use find_inferior instead of
16490 for_each_inferior.
16491 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
16492 also decrement the suspend count of LWPs. Pass `except' down,
16493 instead of hacking its suspend count.
16494 (linux_pause_all): Add `freeze' parameter. Adjust.
16495 (linux_unpause_all): New.
16496 (linux_target_ops): Install linux_unpause_all.
16497 * server.c (handle_status): Adjust.
16498 * target.h (struct target_ops): New fields `unpause_all' and
16499 `cancel_breakpoints'. Add new parameter to `pause_all'.
16500 (pause_all): Add new `freeze' parameter.
16501 (unpause_all): New.
16502 (cancel_breakpoints): New.
16503 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
16504 cancel breakpoints.
16505 (cmd_qtstart): Pause threads.
16506 (stop_tracing): Pause threads, and cancel breakpoints.
16507 * win32-low.c (win32_target_ops): Adjust.
16508
e471f25b
PA
165092010-05-03 Pedro Alves <pedro@codesourcery.com>
16510
16511 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
16512 the inferior right away from here...
16513 (linux_wait_1): ... to here, and adjust to check the thread's
16514 last_resume_kind instead of the lwp's step or stop_expected flags.
16515
1915ef4f
PA
165162010-05-02 Pedro Alves <pedro@codesourcery.com>
16517
16518 * README: Use consistent `GDB' and `GDBserver' spellings.
16519
f9e39928
PA
165202010-05-02 Pedro Alves <pedro@codesourcery.com>
16521
16522 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
16523 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
16524 (linux_detach_one_lwp): Assume the lwp is stopped.
16525 (any_thread_of): Delete.
16526 (linux_detach): Stop all lwps here. Don't blindly delete all
16527 breakpoints.
16528 (delete_lwp_callback): New.
16529 (linux_mourn): Delete all lwps of the process that is gone.
16530 (linux_wait_1): Don't delete the last lwp of the process here.
16531 * mem-break.h (mark_breakpoints_out): Declare.
16532 * mem-break.c (mark_breakpoints_out): New.
16533 (free_all_breakpoints): Use it.
16534 * server.c (handle_target_event): If the process is gone, mark
16535 breakpoints out.
16536 * thread-db.c (struct thread_db) <create_bp>: New field.
16537 (thread_db_enable_reporting): Fix prototype. Store a thread event
16538 breakpoint reference in the thread_db struct.
16539 (thread_db_load_search): Clear the thread_db object.
16540 (try_thread_db_load_1): Ditto.
16541 (switch_to_process): New.
16542 (disable_thread_event_reporting): Use it.
16543 (remove_thread_event_breakpoints): New.
16544 (thread_db_detach, thread_db_mourn): Use it.
16545
1e7fc18c
PA
165462010-05-01 Pedro Alves <pedro@codesourcery.com>
16547
16548 * linux-low.c (linux_enable_event_reporting): New.
16549 (linux_wait_for_event_1, handle_extended_wait): Use it.
16550
02fc4de7
PA
165512010-04-30 Pedro Alves <pedro@codesourcery.com>
16552
16553 * linux-low.c (linux_kill_one_lwp, linux_kill)
16554 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
16555 (send_sigstop): Take an lwp_info as parameter instead. Queue a
16556 SIGSTOP even if the LWP is stopped.
16557 (send_sigstop_callback): New.
16558 (stop_all_lwps): Use send_sigstop_callback instead.
16559 (linux_resume_one_thread): Adjust.
16560 (proceed_one_lwp): Still proceed an LWP that the client has
16561 requested to stop, if we haven't reported it as stopped yet. Make
16562 sure that LWPs the client want stopped, have a pending SIGSTOP.
16563
bc3b5632
DE
165642010-04-26 Doug Evans <dje@google.com>
16565
ae1ada35
DE
16566 * server.c (handle_general_set): Make static.
16567
bc3b5632
DE
16568 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
16569 Print received char after testing for error/eof instead of before.
16570 (input_interrupt): Tweak comment.
16571
65730243
DE
165722010-04-23 Doug Evans <dje@google.com>
16573
16574 * server.c (start_inferior): Print inferior argv if --debug.
16575
a8ae7dc0
AR
165762010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
16577
16578 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
16579 * nto-x86-low.c: Include server.h
16580
1c07cc19
PM
165812010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
16582
16583 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
16584 be consistent with other sources of this directory.
16585 (init_registers_amd64): Correct name of source file of this function
16586 in the comment.
16587
e0a61e09
PM
165882010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
16589
16590 * configure.srv (x86_64-*-mingw*): New configuration for Windows
16591 64-bit executables.
16592
54709339
PM
165932010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
16594
16595 * win32-i386-low.c: Add 64-bit support.
16596 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
16597 (init_registers_amd64): Declare.
16598 (mappings): Add 64-bit version of array.
16599 (init_windows_x86): New function.
16600 (the_low_target): Change init_arch field to init_windows_x86.
16601
e8f0053d
PM
166022010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
16603
16604 * win32-low.c: Adapt to support also 64-bit architecture.
16605 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
16606 (get_image_name): Use SIZE_T type for local variable `done'.
16607 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
16608 (toolhelp_get_dll_name): Idem.
16609 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
16610 Use uintptr_t typecast to avoid warning.
16611 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
16612 (handle_exception): Use phex_nz to avoid warning.
16613 (win32_wait): Remove unused local variable `process'.
16614
c481e77e
PM
166152010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
16616
16617 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
16618 `amd64-avx.o'.
16619
12ea4b69
PM
166202010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
16621
16622 * configure.ac: Use `ws2_32' library for srv_mingw.
16623 * configure: Regenerate.
16624 * gdbreplay.c: Include winsock2.h instead of winsock.h.
16625 * remote-utils.c: Likewise.
16626
f6d1620c
L
166272010-04-17 H.J. Lu <hongjiu.lu@intel.com>
16628
16629 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
16630 if __x86_64__ is defined.
16631
8e642873
PM
166322010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
16633
16634 * configure: Regenerate.
16635
711e434b
PM
166362010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
16637
16638 * server.c (handle_query): Handle 'qGetTIBAddr' query.
16639 * target.h (target_ops): New get_tib_address field.
16640 * win32-low.h (win32_thread_info): Add thread_local_base field.
16641 * win32-low.c (child_add_thread): Add tlb argument.
16642 Set thread_local_base field to TLB.
16643 (get_child_debug_event): Adapt to child_add_thread change.
16644 (win32_get_tib_address): New function.
16645 (win32_target_ops): Set get_tib_address field to
16646 win32_get_tib_address.
16647 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
16648
505106cd
PA
166492010-04-12 Pedro Alves <pedro@codesourcery.com>
16650
505106cd
PA
16651 * linux-low.c (linux_mourn): Also remove the process.
16652 * server.c (handle_target_event): Don't remove the process here.
16653 * nto-low.c (nto_mourn): New.
16654 (nto_target_ops): Install it.
16655 * spu-low.c (spu_mourn): New.
16656 (spu_target_ops): Install it.
16657 * win32-low.c (win32_mourn): New.
16658 (win32_target_ops): Install it.
16659
e8470a06
PA
166602010-04-12 Pedro Alves <pedro@codesourcery.com>
16661
16662 * server.h (buffer_xml_printf): Remove redundant `;'.
16663
45ba0d02
PA
166642010-04-12 Pedro Alves <pedro@codesourcery.com>
16665
16666 * regcache.c (set_register_cache): Invalidate regcaches before
16667 changing the register cache layout.
16668 (regcache_invalidate_one): Allow a NULL regcache.
16669 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
16670 regcaches before changing the register cache layout or the target
16671 regsets.
16672
59e04013
L
166732010-04-12 H.J. Lu <hongjiu.lu@intel.com>
16674
16675 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
16676 variable warning on Linux/x86-64.
16677
8336d594
PA
166782010-04-11 Pedro Alves <pedro@codesourcery.com>
16679
16680 GDBserver disconnected tracing support.
16681
16682 * linux-low.c (linux_remove_process): Delete.
16683 (add_lwp): Don't set last_resume_kind here.
16684 (linux_kill): Use `mourn'.
16685 (linux_detach): Use `thread_db_detach', and `mourn'.
16686 (linux_mourn): New.
16687 (linux_attach_lwp_1): Adjust comment.
16688 (linux_attach): last_resume_kind moved the thread_info; adjust.
16689 (status_pending_p_callback): Adjust.
16690 (linux_wait_for_event_1): Adjust.
16691 (count_events_callback, select_singlestep_lwp_callback)
16692 (select_event_lwp_callback, cancel_breakpoints_callback)
16693 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
16694 (proceed_one_lwp): Adjust.
16695 (linux_async): Add debug output.
16696 (linux_thread_stopped): New.
16697 (linux_pause_all): New.
16698 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
16699 linux_pause_all.
16700 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
16701 (thread_db_free): Delete declaration.
16702 (thread_db_detach, thread_db_mourn): Declare.
16703 * thread-db.c (thread_db_init): Use thread_db_mourn.
16704 (thread_db_free): Delete, split in two.
16705 (disable_thread_event_reporting): New.
16706 (thread_db_detach): New.
16707 (thread_db_mourn): New.
16708
16709 * server.h (struct thread_info) <last_resume_kind>: New field.
16710 <attached>: Add comment.
16711 <gdb_detached>: New field.
16712 (handler_func): Change return type to int.
16713 (handle_serial_event, handle_target_event): Ditto.
16714 (gdb_connected): Declare.
16715 (tracing): Delete.
16716 (disconnected_tracing): Declare.
16717 (stop_tracing): Declare.
16718
16719 * server.c (handle_query) <qSupported>: Report support for
16720 disconnected tracing.
16721 (queue_stop_reply_callback): Account for running threads.
16722 (gdb_wants_thread_stopped): New.
16723 (gdb_wants_all_threads_stopped): New.
16724 (gdb_reattached_process): New.
16725 (handle_status): Clear the `gdb_detached' flag of all processes.
16726 In all-stop, stop all threads.
16727 (main): Be sure to leave tfind mode. Handle disconnected tracing.
16728 (process_serial_event): If the remote connection breaks, or if an
16729 exit was forced with "monitor exit", force an event loop exit.
16730 Handle disconnected tracing on detach.
16731 (handle_serial_event): Adjust.
16732 (handle_target_event): If GDB isn't connected, forward events back
16733 to the inferior, unless the last process exited, in which case,
16734 exit gdbserver. Adjust interface.
16735
16736 * remote-utils.c (remote_open): Don't block in accept. Instead
16737 register an event loop source on the listen socket file
16738 descriptor. Refactor bits into ...
16739 (listen_desc): ... this new global.
16740 (gdb_connected): ... this new function.
16741 (enable_async_notification): ... this new function.
16742 (handle_accept_event): ... this new function.
16743 (remote_close): Clear remote_desc.
16744
16745 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
16746
16747 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
16748 New fields.
16749 (mourn_inferior): Define.
16750 (target_process_qsupported): Avoid the dangling else problem.
16751 (thread_stopped): Define.
16752 (pause_all): Define.
16753 (target_waitstatus_to_string): Declare.
16754 * target.c (target_waitstatus_to_string): New.
16755
16756 * tracepoint.c (tracing): Make extern.
16757 (disconnected_tracing): New.
16758 (stop_tracing): Make extern. Handle tracing stops due to GDB
16759 disconnecting.
16760 (cmd_qtdisconnected): New.
16761 (cmd_qtstatus): Report disconnected tracing status in trace reply.
16762 (handle_tracepoint_general_set): Handle QTDisconnected.
16763
16764 * event-loop.c (event_handler_func): Change return type to int.
16765 (process_event): Bail out if the event handler wants the event
16766 loop to stop.
16767 (handle_file_event): Ditto.
16768 (start_event_loop): Bail out if the event handler wants the event
16769 loop to stop.
16770
16771 * nto-low.c (nto_target_ops): Adjust.
16772 * spu-low.c (spu_wait): Don't remove the process here.
16773 (spu_target_ops): Adjust.
16774 * win32-low.c (win32_wait): Don't remove the process here.
16775 (win32_target_ops): Adjust.
16776
5d267c4c
PA
167772010-04-11 Pedro Alves <pedro@codesourcery.com>
16778
16779 * regcache.c (realloc_register_cache): Invalidate inferior's
16780 regcache before recreating it.
16781
623ccd72
PA
167822010-04-09 Pedro Alves <pedro@codesourcery.com>
16783
16784 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
16785
219f2f23
PA
167862010-04-09 Stan Shebs <stan@codesourcery.com>
16787 Pedro Alves <pedro@codesourcery.com>
16788
16789 * server.h (LONGEST): New.
16790 (struct thread_info) <while_stepping>: New field.
16791 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
16792 Declare.
16793 (initialize_tracepoint, handle_tracepoint_general_set)
16794 (handle_tracepoint_query, tracepoint_finished_step)
16795 (tracepoint_was_hit, release_while_stepping_state_list):
16796 (current_traceframe): Declare.
16797 * server.c (handle_general_set): Handle tracepoint packets.
16798 (read_memory): New.
16799 (write_memory): New.
16800 (handle_search_memory_1): Use read_memory.
16801 (handle_query): Report support for conditional tracepoints, trace
16802 state variables, and tracepoint sources. Handle tracepoint
16803 queries.
16804 (main): Initialize the tracepoints module.
16805 (process_serial_event): Handle traceframe reads/writes.
16806
16807 * linux-low.c (handle_tracepoints): New.
16808 (linux_wait_1): Call it.
16809 (linux_resume_one_lwp): Handle while-stepping.
16810 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
16811 (linux_target_ops): Install them.
16812 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
16813 New field.
16814 * linux-x86-low.c (x86_supports_tracepoints): New.
16815 (the_low_target). Install it.
16816
16817 * mem-break.h (delete_breakpoint): Declare.
16818 * mem-break.c (delete_breakpoint): Make external.
16819
16820 * target.h (struct target_ops): Add `supports_tracepoints',
16821 `read_pc', and `write_pc' fields.
16822 (target_supports_tracepoints): Define.
16823 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
16824 (phex_nz): New.
16825
16826 * regcache.h (struct regcache) <registers_owned>: New field.
16827 (init_register_cache, regcache_cpy): Declare.
16828 (regcache_read_pc, regcache_write_pc): Declare.
16829 (register_cache_size): Declare.
16830 (supply_regblock): Declare.
16831 * regcache.c (init_register_cache): New.
16832 (new_register_cache): Use it.
16833 (regcache_cpy): New.
16834 (register_cache_size): New.
16835 (supply_regblock): New.
16836 (regcache_read_pc, regcache_write_pc): New.
889bf7c5 16837
219f2f23
PA
16838 * tracepoint.c: New.
16839
16840 * Makefile.in (OBS): Add tracepoint.o.
16841 (tracepoint.o): New rule.
16842
3a13a53b
L
168432010-04-08 H.J. Lu <hongjiu.lu@intel.com>
16844
16845 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
16846 (i386-mmx.o): New.
16847 (i386-mmx.c): Likewise.
16848 (i386-mmx-linux.o): Likewise.
16849 (i386-mmx-linux.c): Likewise.
16850
16851 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
16852 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
16853 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
16854 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
16855
16856 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
16857 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
16858 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
16859
1570b33e
L
168602010-04-07 H.J. Lu <hongjiu.lu@intel.com>
16861
16862 * Makefile.in (clean): Updated.
16863 (i386-avx.o): New.
16864 (i386-avx.c): Likewise.
16865 (i386-avx-linux.o): Likewise.
16866 (i386-avx-linux.c): Likewise.
16867 (amd64-avx.o): Likewise.
16868 (amd64-avx.c): Likewise.
16869 (amd64-avx-linux.o): Likewise.
16870 (amd64-avx-linux.c): Likewise.
16871
16872 * configure.srv (srv_i386_regobj): Add i386-avx.o.
16873 (srv_i386_linux_regobj): Add i386-avx-linux.o.
16874 (srv_amd64_regobj): Add amd64-avx.o.
16875 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
16876 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
16877 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
16878 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
16879 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
16880 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
16881 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
16882
16883 * i387-fp.c: Include "i386-xstate.h".
16884 (i387_xsave): New.
16885 (i387_cache_to_xsave): Likewise.
16886 (i387_xsave_to_cache): Likewise.
16887 (x86_xcr0): Likewise.
16888
16889 * i387-fp.h (i387_cache_to_xsave): Likewise.
16890 (i387_xsave_to_cache): Likewise.
16891 (x86_xcr0): Likewise.
16892
16893 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
16894 * linux-crisv32-low.c (target_regsets): Likewise.
16895 * linux-m68k-low.c (target_regsets): Likewise.
16896 * linux-mips-low.c (target_regsets): Likewise.
16897 * linux-ppc-low.c (target_regsets): Likewise.
16898 * linux-s390-low.c (target_regsets): Likewise.
16899 * linux-sh-low.c (target_regsets): Likewise.
16900 * linux-sparc-low.c (target_regsets): Likewise.
16901 * linux-xtensa-low.c (target_regsets): Likewise.
16902
16903 * linux-low.c: Include <sys/uio.h>.
16904 (regsets_fetch_inferior_registers): Support nt_type.
16905 (regsets_store_inferior_registers): Likewise.
16906 (linux_process_qsupported): New.
16907 (linux_target_ops): Add linux_process_qsupported.
16908
16909 * linux-low.h (regset_info): Add nt_type.
16910 (linux_target_ops): Add process_qsupported.
16911
16912 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
16913 and <sys/uio.h>.
16914 (init_registers_i386_avx_linux): New.
16915 (init_registers_amd64_avx_linux): Likewise.
16916 (xmltarget_i386_linux_no_xml): Likewise.
16917 (xmltarget_amd64_linux_no_xml): Likewise.
16918 (PTRACE_GETREGSET): Likewise.
16919 (PTRACE_SETREGSET): Likewise.
16920 (x86_fill_xstateregset): Likewise.
16921 (x86_store_xstateregset): Likewise.
16922 (use_xml): Likewise.
16923 (x86_linux_update_xmltarget): Likewise.
16924 (x86_linux_process_qsupported): Likewise.
16925 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
16926 (x86_arch_setup): Don't call init_registers_amd64_linux nor
16927 init_registers_i386_linux here. Call
16928 x86_linux_update_xmltarget.
16929 (the_low_target): Add x86_linux_process_qsupported.
16930
16931 * server.c (handle_query): Call target_process_qsupported.
16932
16933 * target.h (target_ops): Add process_qsupported.
16934 (target_process_qsupported): New.
16935
fc7238bb
PA
169362010-04-03 Pedro Alves <pedro@codesourcery.com>
16937
16938 * inferiors.c (add_thread): Set last_status kind to
16939 TARGET_WAITKIND_IGNORE.
16940 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
16941 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
16942 (linux_wait_1): Move `thread' local definition to block that uses
16943 it. Don't NULL initialize `event_child'.
16944 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
16945 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
16946 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
16947
bdabb078
PA
169482010-04-01 Pedro Alves <pedro@codesourcery.com>
16949
16950 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
16951 an extended waitstatus, or by a watchpoint.
16952 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
16953 thread was stepping or has been stopped by a watchpoint.
16954
d3bbe7a0
PA
169552010-04-01 Pedro Alves <pedro@codesourcery.com>
16956
16957 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
16958 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
16959 of another, then delete the previous, and validate all
16960 breakpoints.
16961 (validate_inserted_breakpoint): New.
16962 (delete_disabled_breakpoints): New.
16963 (validate_breakpoints): New.
16964 (check_mem_read): Validate breakpoints before trusting their
16965 shadow. Delete disabled breakpoints.
16966 (check_mem_write): Validate breakpoints before trusting they
16967 should be inserted. Delete disabled breakpoints.
16968 * mem-break.h (validate_breakpoints):
16969 * server.c (handle_query): Validate breakpoints when we see a
16970 qSymbol query.
16971
8b07ae33
PA
169722010-04-01 Pedro Alves <pedro@codesourcery.com>
16973
16974 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
16975 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
16976 if we could tell there's a GDB breakpoint at stop_pc.
16977 (need_step_over_p): Don't do a step over if we find a GDB
16978 breakpoint at the resume PC.
16979
16980 * mem-break.c (struct raw_breakpoint): New.
16981 (enum bkpt_type): New type `gdb_breakpoint'.
16982 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
16983 fields. New field `raw'.
16984 (find_raw_breakpoint_at): New.
16985 (set_raw_breakpoint_at): Handle refcounting. Create a raw
16986 breakpoint instead.
16987 (set_breakpoint_at): Adjust.
16988 (delete_raw_breakpoint): New.
16989 (release_breakpoint): New.
16990 (delete_breakpoint): Rename to...
16991 (delete_breakpoint_1): ... this. Add proc parameter. Use
16992 release_breakpoint. Return ENOENT.
16993 (delete_breakpoint): Reimplement.
16994 (find_breakpoint_at): Delete.
16995 (find_gdb_breakpoint_at): New.
16996 (delete_breakpoint_at): Delete.
16997 (set_gdb_breakpoint_at): New.
16998 (delete_gdb_breakpoint_at): New.
16999 (gdb_breakpoint_here): New.
17000 (set_reinsert_breakpoint): Use release_breakpoint.
17001 (uninsert_breakpoint): Rename to ...
17002 (uninsert_raw_breakpoint): ... this.
17003 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
17004 (reinsert_raw_breakpoint): Change parameter type to
17005 raw_breakpoint.
17006 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
17007 instead.
17008 (check_breakpoints): Adjust. Use release_breakpoint.
17009 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
17010 (breakpoint_inserted_here): Ditto.
17011 (check_mem_read): Adjust to iterate over raw breakpoints instead.
17012 Don't trust the breakpoint's shadow if it is not inserted.
17013 (check_mem_write): Adjust to iterate over raw breakpoints instead.
17014 (delete_all_breakpoints): Adjust.
17015 (free_all_breakpoints): Mark all breakpoints as uninserted, and
17016 use delete_breakpoint_1.
17017
17018 * mem-break.h (breakpoints_supported): Delete declaration.
17019 (set_gdb_breakpoint_at): Declare.
17020 (gdb_breakpoint_here): Declare.
17021 (delete_breakpoint_at): Delete.
17022 (delete_gdb_breakpoint_at): Declare.
17023
17024 * server.h (struct raw_breakpoint): Forward declare.
17025 (struct process_info): New field `raw_breakpoints'.
17026
17027 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
17028 breakpoints.
17029
6bf5e0ba
PA
170302010-03-24 Pedro Alves <pedro@codesourcery.com>
17031
17032 * linux-low.c (status_pending_p_callback): Fix comment.
17033 (linux_wait_for_event_1): Move most of the internal breakpoint
17034 handling from here...
17035 (linux_wait_1): ... to here.
17036 (count_events_callback): New.
17037 (select_singlestep_lwp_callback): New.
17038 (select_event_lwp_callback): New.
17039 (cancel_breakpoints_callback): New.
17040 (select_event_lwp): New.
17041 (linux_wait_1): Simplify internal breakpoint handling. Give equal
17042 priority to all LWPs that have had events that should be reported
17043 to the client. Cancel breakpoints when about to reporting the
17044 event to the client, not while stopping lwps. No longer cancel
17045 finished single-steps here.
17046 (cancel_finished_single_step): Delete.
17047 (cancel_finished_single_steps): Delete.
17048
414a389f
PA
170492010-03-24 Pedro Alves <pedro@codesourcery.com>
17050
17051 * mem-break.c (enum bkpt_type): New.
17052 (struct breakpoint): New field `type'.
17053 (set_breakpoint_at): Change return type to struct breakpoint
17054 pointer. Set type to `other_breakpoint' by default.
17055 (delete_breakpoint): Rewrite, supporting more than one breakpoint
17056 in the breakpoint list.
17057 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
17058 (reinsert_breakpoint): Rename to ...
17059 (reinsert_raw_breakpoint): ... this.
17060 (reinsert_breakpoints_at): Adjust.
17061 * mem-break.h (struct breakpoint): Declare.
17062 (set_breakpoint_at): Change return type to struct breakpoint
17063 pointer.
17064
2280c721
PA
170652010-03-24 Pedro Alves <pedro@codesourcery.com>
17066
17067 * server.c (handle_query): Assign, not compare.
17068
d50171e4
PA
170692010-03-24 Pedro Alves <pedro@codesourcery.com>
17070
17071 Teach linux gdbserver to step-over-breakpoints.
17072
17073 * linux-low.c (can_hardware_single_step): New.
17074 (supports_breakpoints): New.
17075 (handle_extended_wait): If stopping threads, read the stop pc of
17076 the new cloned LWP.
17077 (get_pc): New.
17078 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
17079 low target doesn't support retrieving the PC.
17080 (add_lwp): Set last_resume_kind to resume_continue.
17081 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
17082 (linux_attach): Don't clear stop_expected. Set the lwp's
17083 last_resume_kind to resume_stop.
17084 (linux_detach_one_lwp): Don't check for removed breakpoints.
17085 (check_removed_breakpoint): Delete.
17086 (status_pending_p): Rename to ...
17087 (status_pending_p_callback): ... this. Don't check for removed
17088 breakpoints. Don't consider threads that are stopped from GDB's
17089 perspective.
17090 (linux_wait_for_lwp): Always read the stop_pc here.
17091 (cancel_breakpoint): New.
17092 (step_over_bkpt): New global.
17093 (linux_wait_for_event_1): Implement stepping over breakpoints.
17094 (gdb_wants_lwp_stopped): New.
17095 (gdb_wants_all_stopped): New.
17096 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
17097 single-step traps here. Store the thread's last reported target
17098 wait status.
17099 (send_sigstop): Don't clear stop_expected. Always set it,
17100 instead.
17101 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
17102 (cancel_finished_single_step): New.
17103 (cancel_finished_single_steps): New.
17104 (wait_for_sigstop): Don't cancel finished single-step traps here.
17105 (linux_resume_one_lwp): Don't check for removed breakpoints.
17106 Don't set `step' on non-hardware step archs.
17107 (linux_set_resume_request): Ignore resume_stop requests if already
17108 stopping or stopped. Set the lwp's last_resume_kind.
17109 (resume_status_pending_p): Don't check for removed breakpoints.
17110 (need_step_over_p): New.
17111 (start_step_over): New.
17112 (finish_step_over): New.
17113 (linux_resume_one_thread): Always queue a sigstop for resume_stop
17114 requests. Clear the thread's last reported target waitstatus.
17115 Don't use the `suspended' flag. Don't consider pending breakpoints.
17116 (linux_resume): Start a step-over if necessary.
17117 (proceed_one_lwp): New.
17118 (proceed_all_lwps): New.
17119 (unstop_all_lwps): New.
17120 * linux-low.h (struct lwp_info): Rewrite comment for the
17121 `suspended' flag. Add the `stop_pc' field. Delete the
17122 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
17123 Add `'last_resume_kind' and `need_step_over' fields.
17124 * inferiors.c (struct thread_info): Delete, moved elsewhere.
17125 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
17126 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
17127 (set_raw_breakpoint_at): New.
17128 (set_breakpoint_at): Rewrite to use it.
17129 (reinsert_breakpoint_handler): Delete.
17130 (set_reinsert_breakpoint): New.
17131 (reinsert_breakpoint_by_bp): Delete.
17132 (delete_reinsert_breakpoints): New.
17133 (uninsert_breakpoint): Rewrite.
17134 (uninsert_breakpoints_at): New.
17135 (reinsert_breakpoint): Rewrite.
17136 (reinsert_breakpoints_at): New.
17137 (check_breakpoints): Rewrite.
17138 (breakpoint_here): New.
17139 (breakpoint_inserted_here): New.
17140 (check_mem_read): Adjust.
17141 * mem-break.h (breakpoints_supported, breakpoint_here)
17142 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
17143 (reinsert_breakpoint_by_bp): Delete declaration.
17144 (delete_reinsert_breakpoints): Declare.
17145 (reinsert_breakpoint): Delete declaration.
17146 (reinsert_breakpoints_at): Declare.
17147 (uninsert_breakpoint): Delete declaration.
17148 (uninsert_breakpoints_at): Declare.
17149 (check_breakpoints): Adjust prototype.
17150 * server.h: Adjust include order.
17151 (struct thread_info): Declare here. Add a `last_status' field.
17152
30ba68cb
MS
171532010-03-23 Michael Snyder <msnyder@vmware.com>
17154
17155 * server.c (crc32): New function.
17156 (handle_query): Add handling for 'qCRC:' request.
17157
b9a881c2
PA
171582010-03-23 Pedro Alves <pedro@codesourcery.com>
17159
17160 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
17161 lwp had been stopped by a watchpoint.
17162
e92d13d5
PA
171632010-03-16 Pedro Alves <pedro@codesourcery.com>
17164
17165 * server.h (internal_error): Declare.
17166 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
17167 * utils.c (internal_error): New function.
17168
64daa791
AS
171692010-03-15 Andreas Schwab <schwab@redhat.com>
17170
17171 * configure.srv: Fix typo setting srv_regobj.
17172
f52cd8cd
PA
171732010-03-15 Pedro Alves <pedro@codesourcery.com>
17174
17175 * linux-low.c (fetch_register): Avoid passing a non string literal
17176 format to `error'.
17177 (usr_store_inferior_registers): Ditto.
17178
93ae6fdc
PA
171792010-03-14 Pedro Alves <pedro@codesourcery.com>
17180
17181 * linux-low.c (linux_write_memory): Bail out early if peeking
17182 memory failed.
17183
c3adc08c
PA
171842010-03-14 Pedro Alves <pedro@codesourcery.com>
17185
17186 * linux-low.h (struct lwp_info): New fields
17187 `stopped_by_watchpoint' and `stopped_data_address'.
17188 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
17189 here, and cache them in the lwp object.
17190 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
17191 directly.
17192 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
17193 field.
17194 (linux_stopped_by_watchpoint): Rewrite.
17195 (linux_stopped_data_address): Rewrite.
17196
bce522a2
PA
171972010-03-06 Simo Melenius <simo.melenius@iki.fi>
17198
17199 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
17200 switching the current inferior, not before.
17201
90884b2b
L
172022010-03-01 H.J. Lu <hongjiu.lu@intel.com>
17203
17204 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
17205 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
17206 i386-linux.c and amd64-linux.c.
17207 (reg-i386.o): Removed.
17208 (reg-i386.c): Likewise.
17209 (reg-i386-linux.o): Likewise.
17210 (reg-i386-linux.c): Likewise.
17211 (reg-x86-64.o): Likewise.
17212 (reg-x86-64.c): Likewise.
17213 (reg-x86-64-linux.o): Likewise.
17214 (reg-x86-64-linux.c): Likewise.
17215 (i386.o): New.
17216 (i386.c): Likewise.
17217 (i386-linux.o): Likewise.
17218 (i386-linux.c): Likewise.
17219 (amd64.o): Likewise.
17220 (amd64.c): Likewise.
17221 (amd64-linux.o): Likewise.
17222 (amd64-linux.c): Likewise.
17223
17224 * configure.srv (srv_i386_regobj): New.
17225 (srv_i386_linux_regobj): Likewise.
17226 (srv_amd64_regobj): Likewise.
17227 (srv_amd64_linux_regobj): Likewise.
17228 (srv_i386_32bit_xmlfiles): Likewise.
17229 (srv_i386_64bit_xmlfiles): Likewise.
17230 (srv_i386_xmlfiles): Likewise.
17231 (srv_amd64_xmlfiles): Likewise.
17232 (srv_i386_linux_xmlfiles): Likewise.
17233 (srv_amd64_linux_xmlfiles): Likewise.
17234 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
17235 srv_xmlfiles to $srv_i386_xmlfiles.
17236 (i[34567]86-*-mingw32ce*): Likewise.
17237 (i[34567]86-*-mingw*): Likewise.
17238 (i[34567]86-*-nto*): Likewise.
17239 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
17240 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
17241 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
17242 (x86_64-*-linux*): Likewise.
17243
17244 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
17245 (init_registers_amd64_linux): New.
17246 (x86_arch_setup): Replace init_registers_x86_64_linux with
17247 init_registers_amd64_linux.
17248
193f13e6
MK
172492010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
17250
17251 * configure.ac: Check for libdl. If it is not available link against
17252 static libthread_db.
17253 * configure: Regenerate.
17254
85d721b8
PA
172552010-02-22 Pedro Alves <pedro@codesourcery.com>
17256
17257 PR9605
17258
17259 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
17260 handing a read watchpoint.
17261 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
17262
6076632b
DE
172632010-02-12 Doug Evans <dje@google.com>
17264
17265 * linux-low.c (linux_supports_tracefork_flag): Document.
17266 (linux_look_up_symbols): Add comment.
17267
3327ccf7
L
172682010-02-03 H.J. Lu <hongjiu.lu@intel.com>
17269
17270 * regcache.c (supply_register): Clear regcache if buf is NULL.
17271
0718675c 172722010-02-02 Nicolas Roche <roche@sourceware.org>
3327ccf7 17273 Joel Brobecker <brobecker@adacore.com>
0718675c
JB
17274
17275 * inferiors.c (find_inferior): Add function documentation.
17276 (unloaded_dll): Handle the case where the unloaded dll has not
17277 been previously registered in the dll list.
17278
177321bd
DJ
172792010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
17280
17281 * linux-arm-low.c (thumb_breakpoint_len): Delete.
17282 (thumb2_breakpoint): New.
17283 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
17284
2b009048
DJ
172852010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
17286
17287 * linux-low.c (get_stop_pc): Check for SIGTRAP.
17288 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
17289 breakpoints.
17290
3be029c7
PA
172912010-01-21 Pedro Alves <pedro@codesourcery.com>
17292
17293 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
17294
18f5de3b
JK
172952010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
17296
17297 * linux-s390-low.c (s390_collect_ptrace_register)
17298 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
17299
3743bb4f
DE
173002010-01-21 Doug Evans <dje@google.com>
17301
14ce3065
DE
17302 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
17303 (PTRACE_ARG4_TYPE): New macro.
17304 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
17305 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
17306 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
17307 (usr_store_inferior_registers): Ditto.
17308 (linux_read_memory, linux_write_memory): Ditto.
17309 (linux_test_for_tracefork): Ditto.
17310
3743bb4f
DE
17311 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
17312 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
17313
8b315be5
PA
173142010-01-21 Pedro Alves <pedro@codesourcery.com>
17315
17316 * proc-service.c (ps_lgetregs): Don't refetch registers from the
17317 target.
17318
85492558
PA
173192010-01-21 Pedro Alves <pedro@codesourcery.com>
17320
17321 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
17322 prototype to take a regcache. Adjust.
17323
442ea881
PA
173242010-01-20 Pedro Alves <pedro@codesourcery.com>
17325
17326 * regcache.h (struct thread_info): Forward declare.
17327 (struct regcache): New.
17328 (new_register_cache): Adjust prototype.
17329 (get_thread_regcache): Declare.
17330 (free_register_cache): Adjust prototype.
17331 (registers_to_string, registers_from_string): Ditto.
17332 (supply_register, supply_register_by_name, collect_register)
17333 (collect_register_as_string, collect_register_by_name): Ditto.
17334 * regcache.c (struct inferior_regcache_data): Delete.
17335 (get_regcache): Rename to ...
17336 (get_thread_regcache): ... this. Adjust. Switch inferior before
17337 fetching registers.
17338 (regcache_invalidate_one): Adjust.
17339 (regcache_invalidate): Fix prototype.
17340 (new_register_cache): Return the new register cache.
17341 (free_register_cache): Change prototype.
17342 (realloc_register_cache): Adjust.
17343 (registers_to_string): Change prototype to take a regcache. Adjust.
17344 (registers_from_string): Ditto.
17345 (register_data): Ditto.
17346 (supply_register): Ditto.
17347 (supply_register_by_name): Ditto.
17348 (collect_register): Ditto.
17349 (collect_register_as_string): Ditto.
17350 (collect_register_by_name): Ditto.
17351 * server.c (process_serial_event): Adjust.
17352 * linux-low.h (regset_fill_func, regset_store_func): Change
17353 prototype.
17354 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
17355 Change prototype.
17356 * linux-low.c (get_stop_pc): Adjust.
17357 (check_removed_breakpoint): Adjust.
17358 (linux_wait_for_event): Adjust.
17359 (linux_resume_one_lwp): Adjust.
17360 (fetch_register): Add regcache parameter. Adjust.
17361 (usr_store_inferior_registers): Ditto.
17362 (regsets_fetch_inferior_registers): Ditto.
17363 (regsets_store_inferior_registers): Ditto.
17364 (linux_fetch_registers, linux_store_registers): Ditto.
17365 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
17366 regcache. Adjust.
43aaf8b6
PA
17367 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
17368 Ditto.
442ea881
PA
17369 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
17370 prototype to take a regcache.
17371 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
17372 * remote-utils.c (convert_ascii_to_int, outreg)
17373 (prepare_resume_reply): Change prototype to take a regcache.
17374 Adjust.
17375 * target.h (struct target_ops) <fetch_registers, store_registers>:
17376 Change prototype to take a regcache.
17377 (fetch_inferior_registers, store_inferior_registers): Change
17378 prototype to take a regcache. Adjust.
17379 * proc-service.c (ps_lgetregs): Adjust.
17380 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
17381 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
17382 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
17383 take a regcache. Adjust.
17384 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
17385 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
17386 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
17387 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
17388 * linux-cris-low.c (cris_get_pc, cris_set_pc)
17389 (cris_cannot_fetch_register):
17390 (cris_breakpoint_at): Change prototype to take a regcache.
17391 Adjust.
17392 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
17393 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
17394 to take a regcache. Adjust.
17395 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
17396 Adjust.
17397 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
17398 take a regcache. Adjust.
17399 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
17400 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
17401 (m68k_set_pc): Change prototype to take a regcache. Adjust.
17402 * linux-mips-low.c (mips_get_pc):
17403 (mips_set_pc): Change prototype to take a regcache. Adjust.
17404 (mips_reinsert_addr): Adjust.
17405 (mips_collect_register): Change prototype to take a regcache.
17406 Adjust.
17407 (mips_supply_register):
17408 (mips_collect_register_32bit, mips_supply_register_32bit)
17409 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
17410 (mips_store_fpregset): Ditto.
43aaf8b6
PA
17411 * linux-ppc-low.c (ppc_supply_ptrace_register)
17412 (ppc_supply_ptrace_register): Ditto.
442ea881
PA
17413 (parse_spufs_run): Adjust.
17414 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
17415 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
17416 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
17417 take a regcache. Adjust.
17418 * linux-s390-low.c (s390_collect_ptrace_register)
17419 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
17420 (s390_set_pc): Change prototype to take a regcache. Adjust.
17421 (s390_arch_setup): Adjust.
17422 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
17423 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
17424 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
17425 (sparc_fill_gregset, sparc_store_gregset_from_stack)
17426 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
17427 regcache. Adjust.
17428 (sparc_breakpoint_at): Adjust.
17429 * linux-xtensa-low.c (xtensa_fill_gregset):
17430 (xtensa_store_gregset):
17431 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
17432 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
17433 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
17434 prototype to take a regcache. Adjust.
17435 * win32-arm-low.c (arm_fetch_inferior_register)
17436 (arm_store_inferior_register): Change prototype to take a
17437 regcache. Adjust.
17438 * win32-i386-low.c (i386_fetch_inferior_register)
17439 (i386_store_inferior_register): Change prototype to take a
17440 regcache. Adjust.
17441 * win32-low.c (child_fetch_inferior_registers)
17442 (child_store_inferior_registers): Change prototype to take a
17443 regcache. Adjust.
17444 (win32_wait): Adjust.
17445 (win32_fetch_inferior_registers): Change prototype to take a
17446 regcache. Adjust.
17447 (win32_store_inferior_registers): Adjust.
17448 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
17449 store_inferior_register>: Change prototype to take a regcache.
17450
60c3d7b0
DE
174512010-01-20 Doug Evans <dje@google.com>
17452
17453 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
17454 #ifdef.
17455 (linux_wait_for_event1, linux_init_signals): Ditto.
ec8ebe72 17456 (W_STOPCODE): Provide definition if missing.
60c3d7b0 17457
dc146f7c
VP
174582010-01-13 Vladimir Prus <vladimir@codesourcery.com>
17459
17460 * linux-low.c (linux_core_of_thread): New.
17461 (compare_ints, show_process, list_threads): New.
17462 (linux_qxfer_osdata): Report threads and cores.
17463 (linux_target_op): Register linux_core_of_thread.
17464 * remote-utils.c (prepare_resume_reply): Report the core.
17465 (buffer_xml_printf): Support %d specifier.
17466 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
17467 New.
17468 (handle_query): Handle qXfer:threads. Announce availability
17469 thereof.
17470 * target.h (struct target_ops): New field core_of_thread.
17471
7803799a
UW
174722010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
17473
17474 * Makefile.in (clean): Remove new generated files.
17475 (reg-s390.o, reg-s390.c): Remove rules.
17476 (reg-s390x.o, reg-s390x.c): Likewise.
17477 (s390-linux32.o, s390-linux32.c): Add rules.
17478 (s390-linux64.o, s390-linux64.c): Likewise.
17479 (s390x-linux64.o, s390x-linux64.c): Likewise.
17480 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
17481 * linux-s390-low.c: Include <elf.h>.
17482 (HWCAP_S390_HIGH_GPRS): Define if undefined.
17483 (init_registers_s390): Remove prototype.
17484 (init_registers_s390x): Likewise.
17485 (init_registers_s390_linux32): Add prototype.
17486 (init_registers_s390_linux64): Likewise.
17487 (init_registers_s390x_linux64): Likewise.
17488 (s390_num_regs_3264): New define.
17489 (s390_regmap_3264): New global variable.
17490 (s390_cannot_fetch_register): Remove obsolete check.
17491 (s390_cannot_store_register): Likewise.
17492 (s390_collect_ptrace_register): Handle upper/lower register halves.
17493 (s390_supply_ptrace_register): Likewise.
17494 (s390_fill_gregset): Update to register number changes.
17495 (s390_get_hwcap): New routine.
17496 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
17497 Install appropriate regmap and register set.
17498
6e7ffa39
JB
174992010-01-01 Joel Brobecker <brobecker@adacore.com>
17500
17501 * server.c (gdbserver_version): Update copyright year to 2010.
17502 * gdbreplay.c (gdbreplay_version): Likewise.
17503
957f3f49
DE
175042009-12-28 Doug Evans <dje@google.com>
17505
17506 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
17507 elf/external.h. Include <elf.h> instead but only if necessary.
17508
ca5c370d
PA
175092009-12-28 Pedro Alves <pedro@codesourcery.com>
17510
17511 * linux-low.c (linux_remove_process): Remove `detaching'
17512 parameter. Don't release/detach from thread_db here.
17513 (linux_kill): Release/detach from thread_db here, ...
17514 (linux_detach): ... and here, before actually detaching.
17515 (linux_wait_1): ... and here, when a process exits.
17516 * thread-db.c (any_thread_of): New.
17517 (thread_db_free): Switch the current inferior to a thread of the
17518 passed in process.
17519
4ee62156
DE
175202009-12-21 Doug Evans <dje@google.com>
17521
d90e6a88
DE
17522 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
17523
c5f62d5f
DE
17524 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
17525 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
17526 warning ifndef __NR_tkill. Move setting of errno there too.
17527 Delete unnecessary resetting of errno after syscall.
17528 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
17529
10e86dd7
DE
17530 * configure.ac: Check for dladdr.
17531 * config.in: Regenerate.
17532 * configure: Regenerate.
17533 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
17534 (try_thread_db_load): Update.
17535
4ee62156
DE
17536 * linux-low.c (my_waitpid): Delete unnecessary prototype.
17537
00f515da
DE
175382009-12-18 Doug Evans <dje@google.com>
17539
e9464885
DE
17540 * event-loop.c: Include unistd.h if it exists.
17541
07d4f67e
DE
17542 * linux-low.c (my_waitpid): Move definition away from being in
17543 between linux_tracefork_child/linux_test_for_tracefork.
17544
00f515da
DE
17545 * gdb_proc_service.h (psaddr_t): Fix type.
17546 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
17547 signature to match glibc.
17548
1de1badb
DE
175492009-12-16 Doug Evans <dje@google.com>
17550
17551 * linux-low.c (linux_read_memory): Fix argument to read.
17552
aeeb81d1
PA
175532009-11-26 Pedro Alves <pedro@codesourcery.com>
17554
17555 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
17556 events, don't leave current_inferior pointing at null.
17557
10357975
PA
175582009-11-26 Pedro Alves <pedro@codesourcery.com>
17559
17560 * win32-low.c (LOG): Delete.
17561 (OUTMSG): Output to stderr.
17562 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
17563 on compile time LOG macro.
17564 (win32_wait): Fix debug output.
17565
cf6e3471
PA
175662009-11-26 Pedro Alves <pedro@codesourcery.com>
17567
17568 * win32-low.c (win32_add_one_solib): If the dll name is
17569 "ntdll.dll", prepend the system directory to the dll path.
17570
0c85e18e
MK
175712009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
17572
17573 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
17574
9ac544ce 175752009-11-17 Nathan Sidwell <nathan@codesourcery.com>
889bf7c5 17576 Vladimir Prus <vladimir@codesourcery.com>
9ac544ce
MK
17577
17578 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
17579 * configure.ac: Check for __mcoldfire__ and set
17580 gdb_cv_m68k_is_coldfire.
17581 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
17582 reg-cf.o and reg-m68k.o.
17583 * configure: Regenerated.
17584
fd7dd3e6
PA
175852009-11-16 Pedro Alves <pedro@codesourcery.com>
17586
17587 * linux-low.c (linux_remove_process): Add `detaching' parameter.
17588 Pass it to thread_db_free.
17589 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
17590 proper `detaching' argument to linux_remove_process.
17591 * linux-low.h (thread_db_free): Add `detaching' parameter.
17592 * thread-db.c (thread_db_init): Pass false as `detaching' argument
17593 to thread_db_free.
17594 (thread_db_free): Add `detaching' parameter. Only
17595 call td_ta_clear_event if detaching from process.
17596
75aa492e
MK
175972009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
17598
17599 * thread-db.c (thread_db_free): Fix typo.
17600
21e1bee4
PP
176012009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
17602
17603 PR gdb/10838
17604 * thread-db.c (thread_db_free): Call td_ta_clear_event.
17605
8838b45e
NS
176062009-11-03 Nathan Sidwell <nathan@codesourcery.com>
17607
17608 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
17609 with an i686 compiler.
17610 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
17611 needed.
17612 * configure: Rebuilt.
17613
8a35fb51
SL
176142009-10-29 Sandra Loosemore <sandra@codesourcery.com>
17615
17616 PR gdb/10783
17617
17618 * server.c (handle_search_memory_1): Correct read_addr initialization
17619 in loop for searching subsequent chunks.
17620
96f15937
PP
176212009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
17622
17623 * configure.ac: New --with-libthread-db option.
17624 * thread-db.c: Allow direct dependence on libthread_db.
17625 (thread_db_free): Adjust.
17626 * config.in: Regenerate.
17627 * configure: Likewise.
889bf7c5 17628
5f7d1694
PP
176292009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
17630
17631 PR gdb/10757
17632 * thread-db.c (attach_thread): New function.
17633 (maybe_attach_thread): Return success/failure.
17634 (find_new_threads_callback): Adjust.
889bf7c5
PA
17635 (thread_db_find_new_threads): Loop until no new threads.
17636
88e3b899
PA
176372009-10-13 Pedro Alves <pedro@codesourcery.com>
17638
17639 * proc-service.c (ps_lgetregs): Formatting.
17640
cdbfd419
PP
176412009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
17642
17643 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
17644 * configure.ac: Adjust.
17645 * linux-low.h (struct process_info_private): Move members to struct
17646 thread_db.
17647 (thread_db_free, thread_db_handle_monitor_command): New prototype.
17648 * linux-low.c (linux_remove_process): Adjust.
17649 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
17650 * server.c (handle_query): Move code ...
17651 (handle_monitor_command): ... here. New function.
17652 * target.h (struct target_ops): New member.
17653 * thread-db.c (struct thread_db): New.
17654 (libthread_db_search_path): New variable.
17655 (thread_db_create_event, thread_db_enable_reporting)
17656 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
17657 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
17658 (try_thread_db_load_1, dladdr_to_soname): New functions.
17659 (try_thread_db_load, thread_db_load_search): New functions.
17660 (thread_db_init): Search for libthread_db.
17661 (thread_db_free): New function.
17662 (thread_db_handle_monitor_command): Likewise.
17663 * config.in: Regenerate.
17664 * configure: Regenerate.
889bf7c5 17665
4168d2d6
UW
176662009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
17667
17668 * spu-low.c (spu_kill): Wait for inferior to terminate.
17669 Call clear_inferiors.
17670 (spu_detach): Call clear_inferiors.
17671
81ecdfbb
RW
176722009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17673
17674 * aclocal.m4: Regenerate.
17675 * config.in: Likewise.
17676 * configure: Likewise.
17677
0b9ff2c0
UW
176782009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
17679
17680 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
17681 (parse_spufs_run): New function.
17682 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
17683 (ppc_breakpoint_at): Handle SPU breakpoints.
17684
efcbbd14
UW
176852009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
17686
17687 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
17688 (SPUFS_MAGIC): Define.
17689 (spu_enumerate_spu_ids): New function.
17690 (linux_qxfer_spu): New function.
17691 (linux_target_ops): Install linux_qxfer_spu.
17692
f4d9bade
UW
176932009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
17694
17695 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
17696 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
17697 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
17698 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
17699 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
17700 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
17701 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
17702 (init_registers_powerpc_cell32l): Add prototype.
17703 (init_registers_powerpc_cell64l): Likewise.
17704 (ppc_arch_setup): Detect Cell/B.E. architecture.
17705
96e946ca
RW
177062009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17707
17708 * Makefile.in (datarootdir): New variable.
17709
58d6951d
DJ
177102009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
17711
17712 * linux-low.c (linux_write_memory): Update debugging output.
17713 * Makefile.in (clean): Add new descriptions.
17714 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
17715 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
17716 * configure.srv: Add new files for arm*-*-linux*.
17717 * linux-arm-low.c: Add new declarations.
17718 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
17719 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
17720 (HWCAP_VFPv3D16): New.
17721 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
17722 instead of __IWMMXT__.
17723 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
17724 (arm_arch_setup): New.
17725 (target_regsets): Remove #ifdef. Add VFP regset.
17726 (the_low_target): Use arm_arch_setup.
17727
12b42a12
DJ
177282009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
17729
17730 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
17731 the main thread again.
17732
ac8c974e
AR
177332009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
17734
17735 Adding Neutrino gdbserver.
17736 * configure: Regenerated.
17737 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
17738 * configure.srv (i[34567]86-*-nto*): New target.
17739 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
17740 * remote-utils.c [__QNX__]: Include sys/iomgr.h
17741 (nto_comctrl) [__QNX__]: New function.
17742 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
17743
4424e0c3 177442009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
7437790a
PA
17745
17746 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
17747 srv_tgtobj.
17748
912cf4ba
PA
177492009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
17750 Pedro Alves <pedro@codesourcery.com>
17751
17752 * win32-i386-low.c (i386_get_thread_context): Handle systems that
17753 don't support CONTEXT_EXTENDED_REGISTERS.
17754 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
17755 (the_low_target): Install them.
17756 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
17757 failing with ERROR_PIPE_NOT_CONNECTED.
17758
aa5ca48f
DE
177592009-06-30 Doug Evans <dje@google.com>
17760 Pierre Muller <muller@ics.u-strasbg.fr>
17761
17762 Add h/w watchpoint support to x86-linux, win32-i386.
17763 * Makefile.in (SFILES): Add i386-low.c
17764 (i386_low_h): Define.
17765 (i386-low.o): Add dependencies.
17766 (linux-x86-low.o): Add i386-low.h dependency.
17767 (win32-i386-low.o): Ditto.
17768 * i386-low.c: New file.
17769 * i386-low.h: New file.
17770 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
17771 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
17772 * linux-low.c (linux_add_process): Initialize arch_private.
17773 (linux_remove_process): Free arch_private.
17774 (add_lwp): Initialize arch_private.
17775 (delete_lwp): Free arch_private.
17776 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
17777 provided.
17778 * linux-low.h (process_info_private): New member arch_private.
17779 (lwp_info): New member arch_private.
17780 (linux_target_ops): New members new_process, new_thread,
17781 prepare_to_resume.
17782 (ptid_of): New macro.
17783 * linux-x86-low.c: Include stddef.h, i386-low.h.
17784 (arch_process_info): New struct.
17785 (arch_lwp_info): New struct.
17786 (x86_linux_dr_get, x86_linux_dr_set): New functions.
17787 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
17788 (i386_dr_low_get_status): New function.
17789 (x86_insert_point, x86_remove_point): New functions.
17790 (x86_stopped_by_watchpoint): New function.
17791 (x86_stopped_data_address): New function.
17792 (x86_linux_new_process, x86_linux_new_thread): New functions.
17793 (x86_linux_prepare_to_resume): New function.
17794 (the_low_target): Add entries for insert_point, remove_point,
17795 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
17796 prepare_to_resume.
17797 * server.c (debug_hw_points): New global.
17798 (monitor_show_help): Document set debug-hw-points.
17799 (handle_query): Process "set debug-hw-points".
17800 * server.h (debug_hw_points): Declare.
17801 (paddress): Declare.
17802 * utils.c (NUMCELLS, CELLSIZE): New macros.
17803 (get_sell, xsnprintf, paddress): New functions.
17804 * win32-arm-low.c (the_low_target): Add entries for insert_point,
17805 remove_point, stopped_by_watchpoint, stopped_data_address.
17806 * win32-i386-low.c: Include i386-low.h.
17807 (debug_reg_state): Replaces dr.
17808 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
17809 (i386_dr_low_get_status): New function.
17810 (i386_insert_point, i386_remove_point): New functions.
17811 (i386_stopped_by_watchpoint): New function.
17812 (i386_stopped_data_address): New function.
17813 (i386_initial_stuff): Update.
17814 (get_thread_context,set_thread_context,i386_thread_added): Update.
17815 (the_low_target): Add entries for insert_point,
17816 remove_point, stopped_by_watchpoint, stopped_data_address.
17817 * win32-low.c (win32_insert_watchpoint): New function.
17818 (win32_remove_watchpoint): New function.
17819 (win32_stopped_by_watchpoint): New function.
17820 (win32_stopped_data_address): New function.
17821 (win32_target_ops): Add entries for insert_watchpoint,
17822 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
17823 * win32-low.h (win32_target_ops): New members insert_point,
17824 remove_point, stopped_by_watchpoint, stopped_data_address.
17825
d993e290
PA
178262009-06-25 Pedro Alves <pedro@codesourcery.com>
17827
17828 * server.c (process_serial_event): Re-return unsupported, not
17829 error, if the type isn't recognized. Re-allow supporting only
17830 insert or remove packets. Also call require_running for
17831 breakpoints. Add missing break statement to default case. Tidy.
17832 * target.h (struct target_ops): Rename insert_watchpoint to
17833 insert_point, and remove_watchpoint to remove_point.
17834
17835 * linux-low.h (struct linux_target_ops): Likewise.
17836 * linux-low.c (linux_insert_watchpoint): Rename to ...
17837 (linux_insert_point): ... this. Adjust.
17838 (linux_remove_watchpoint): Rename to ...
17839 (linux_remove_point): ... this. Adjust.
17840 (linux_target_ops): Adjust.
17841 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
17842 (cris_insert_point): ... this.
17843 (cris_remove_watchpoint): Rename to ...
17844 (cris_remove_point): ... this.
17845 (the_low_target): Adjust.
17846
0f54c268
PM
178472009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
17848
17849 * server.c (handle_v_kill): Pass signal_pid to
17850 kill_inferior if multi_process is zero.
17851
c6314022
AR
178522009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
17853
17854 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
17855 * target.h (target_ops): Comment for *_watchpoint to make it clear
17856 the functions can get types '0' and '1'.
17857
4463ce24
AR
178582009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
17859
17860 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
17861 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
17862 * regcache.c (get_regcache): Likewise.
17863 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
17864 * win32-low.c (child_fetch_inferior_registers): Remove check for
17865 regno 0.
17866
cf8fd78b
PA
178672009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
17868 Pedro Alves <pedro@codesourcery.com>
17869
17870 * target.h (struct target_ops) <supports_multi_process>: New
17871 callback.
17872 (target_supports_multi_process): New.
17873 * server.c (handle_query): Even if GDB reports support, only
17874 enable multi-process if the target also supports it. Report
17875 multi-process support only if the target backend supports it.
17876 * linux-low.c (linux_supports_multi_process): New function.
17877 (linux_target_ops): Install it as target_supports_multi_process
17878 callback.
17879
47c0c975
DE
178802009-05-24 Doug Evans <dje@google.com>
17881
e09875d4
DE
17882 Global renaming of find_thread_pid to find_thread_ptid.
17883 * server.h (find_thread_ptid): Renamed from find_thread_pid.
17884 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
17885 All callers updated.
17886
e27d73f6
DE
17887 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
17888 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
17889 directly.
17890
47c0c975
DE
17891 * linux-low.c (get_stop_pc): Print pc if debug_threads.
17892 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
17893 (linux_resume_one_lwp): Ditto.
17894
2acc282a
DE
178952009-05-23 Doug Evans <dje@google.com>
17896
17897 * linux-low.c (linux_resume_one_lwp): Change type of first arg
17898 from struct inferior_list_entry * to struct lwp_info *.
17899 All callers updated.
17900
9f1036c1
DE
179012009-05-13 Doug Evans <dje@google.com>
17902
17903 * linux-x86-low.c: Don't include assert.h.
17904 (x86_siginfo_fixup): Use fatal, not assert.
17905 (x86_arch_setup): Fix comment.
17906
d0722149
DE
179072009-05-12 Doug Evans <dje@google.com>
17908
17909 Biarch support for i386/amd64 gdbserver.
17910 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
17911 Add linux-x86-low.c.
17912 (linux-i386-low.o, linux-x86-64-low.o): Delete.
17913 (linux-x86-low.o): Add.
17914 * linux-x86-64-low.c: Delete.
17915 * linux-i386-low.c: Delete.
17916 * linux-x86-low.c: New file.
17917 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
17918 linux-x86-low.o.
17919 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
17920 linux-x86-low.o.
17921 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
17922 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
17923 (linux_child_pid_to_exec_file): New function.
17924 (elf_64_header_p, elf_64_file_p): New functions.
17925 (siginfo_fixup): New function.
17926 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
17927 give target a chance to convert layout.
17928 * linux-low.h (linux_target_ops): New member siginfo_fixup.
17929 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
17930
fdeb2a12
DE
179312009-05-07 Doug Evans <dje@google.com>
17932
17933 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
17934 (regsets_store_inferior_registers): Ditto.
17935
a6dbe5df
PA
179362009-05-06 Pedro Alves <pedro@codesourcery.com>
17937
17938 PR server/10048
17939
17940 * linux-low.c (must_set_ptrace_flags): Delete.
17941 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
17942 of the global.
17943 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
17944 `lwp->must_set_ptrace_flags' instead.
ba42693b 17945 (linux_wait_for_event_1): Set ptrace options here.
a6dbe5df
PA
17946 (linux_wait_1): ... not here.
17947
5091eb23
DE
179482009-04-30 Doug Evans <dje@google.com>
17949
9f767825
DE
17950 * inferiors.c (started_inferior_callback): New function.
17951 (attached_inferior_callback): New function.
17952 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
17953 * server.c (print_started_pid, print_attached_pid): New functions.
17954 (detach_or_kill_for_exit): New function.
17955 (main): Call it instead of for_each_inferior (kill_inferior_callback).
17956 * server.h (have_started_inferiors_p): Declare.
17957 (have_attached_inferiors_p): Declare.
17958
5091eb23
DE
17959 * inferiors.c (remove_process): Fix memory leak, free process.
17960 * linux-low.c (linux_remove_process): New function.
17961 (linux_kill): Call it instead of remove_process.
17962 (linux_detach, linux_wait_1): Ditto.
17963
155c8968
PA
179642009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
17965
17966 * configure.srv: Add x86 Windows CE target.
17967
7fe519cb
UW
179682009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
17969
17970 * inferiors.c (get_thread_process): Make global.
17971 * server.h (get_thread_process): Add prototype.
17972 * thread-db.c (find_one_thread): Use get_thread_process
17973 instead of current_process.
17974 (thread_db_get_tls_address): Do not crash if called when
17975 thread layer is not yet initialized.
17976
5472f405
UW
179772009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
17978
17979 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
17980 * spu-low.c (current_tid): Rename to ...
17981 (current_ptid): ... this.
17982 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
17983 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
17984 ptid_get_lwp (current_ptid) instead of current_tid.
17985 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
17986 instead of current_tid. Use find_process_pid to verify pid
17987 argument is valid. Pass proper argument to remove_process.
17988 (spu_thread_alive): Compare current_ptid instead of current_tid.
17989 (spu_resume): Likewise.
17990
55ac2b99
PA
179912009-04-02 Pedro Alves <pedro@codesourcery.com>
17992
17993 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
17994 variable.
17995
95954743
PA
179962009-04-01 Pedro Alves <pedro@codesourcery.com>
17997
17998 Implement the multiprocess extensions, and add linux multiprocess
17999 support.
18000
18001 * server.h (ULONGEST): Declare.
18002 (struct ptid, ptid_t): New.
18003 (minus_one_ptid, null_ptid): Declare.
18004 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
18005 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
18006 (struct inferior_list_entry): Change `id' type from unsigned from
18007 to ptid_t.
18008 (struct sym_cache, struct breakpoint, struct
18009 process_info_private): Forward declare.
18010 (struct process_info): Declare.
18011 (current_process): Declare.
18012 (all_processes): Declare.
18013 (initialize_inferiors): Declare.
18014 (add_thread): Adjust to use ptid_t.
18015 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
18016 (add_process, remove_process, find_thread_pid): Declare.
18017 (find_inferior_id): Adjust to use ptid_t.
18018 (cont_thread, general_thread, step_thread): Change type to ptid_t.
18019 (multi_process): Declare.
18020 (push_event): Adjust to use ptid_t.
18021 (read_ptid, write_ptid): Declare.
18022 (prepare_resume_reply): Adjust to use ptid_t.
18023 (clear_symbol_cache): Declare.
18024 * inferiors.c (all_processes): New.
18025 (null_ptid, minus_one_ptid): New.
18026 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
18027 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
18028 (add_thread): Change unsigned long to ptid. Remove gdb_id
18029 parameter. Adjust.
18030 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
18031 (gdb_id_to_thread): Rename to ...
18032 (find_thread_pid): ... this. Change unsigned long to ptid.
18033 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
18034 (loaded_dll, pull_pid_from_list): Adjust.
18035 (add_process, remove_process, find_process_pid)
18036 (get_thread_process, current_process, initialize_inferiors): New.
18037 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
18038 (struct target_waitstatus) <related_pid>: Ditto.
18039 (struct target_ops) <kill, detach>: Add `pid' argument. Change
18040 return type to int.
18041 (struct target_ops) <join>: Add `pid' argument.
18042 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
18043 (struct target_ops) <wait>: Add `ptid' field. Change return type
18044 to ptid.
18045 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
18046 (mywait): Add `ptid' argument. Change return type to ptid_t.
18047 (target_pid_to_str): Declare.
18048 * target.c (set_desired_inferior): Adjust to use ptids.
18049 (mywait): Add new `ptid' argument. Adjust.
18050 (target_pid_to_str): New.
18051 * mem-break.h (free_all_breakpoints): Declare.
18052 * mem-break.c (breakpoints): Delelete.
18053 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
18054 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
18055 to use per-process breakpoint list.
18056 (free_all_breakpoints): New.
18057 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
18058 (symbol_cache, all_symbols_looked_up): Delete.
18059 (hexchars): New.
18060 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
18061 read_ptid): New.
18062 (prepare_resume_reply): Change ptid argument's type from unsigned
18063 long to ptid_t. Adjust. Implement W;process and X;process.
18064 (free_sym_cache, clear_symbol_cache): New.
18065 (look_up_one_symbol): Adjust to per-process symbol cache. *
18066 * server.c (cont_thread, general_thread, step_thread): Change type
18067 to ptid_t.
18068 (attached): Delete.
18069 (multi_process): New.
18070 (last_ptid): Change type to ptid_t.
18071 (struct vstop_notif) <ptid>: Change type to ptid_t.
18072 (queue_stop_reply, push_event): Change `ptid' argument's type to
18073 ptid_t.
18074 (discard_queued_stop_replies): Add `pid' argument.
18075 (start_inferior): Adjust to use ptids. Adjust to mywait interface
18076 changes. Don't reference the `attached' global.
18077 (attach_inferior): Adjust to mywait interface changes.
18078 (handle_query): Adjust to use ptids. Parse GDB's qSupported
18079 features. Handle and report "multiprocess+". Handle
18080 "qAttached:PID".
18081 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
18082 changes.
18083 (handle_v_kill): New.
18084 (handle_v_stopped): Adjust to use target_pid_to_str.
18085 (handle_v_requests): Allow multiple attaches and runs when
18086 multiprocess extensions are in effect. Handle "vKill".
18087 (myresume): Adjust to use ptids.
18088 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
18089 (handle_status): Adjust to discard_queued_stop_replies interface
18090 change.
18091 (first_thread_of, kill_inferior_callback)
18092 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
18093 (main): Call initialize_inferiors. Adjust to use ptids, killing
18094 and detaching from all inferiors. Handle multiprocess packet
18095 variants.
18096 * linux-low.h: Include gdb_proc_service.h.
18097 (struct process_info_private): New.
18098 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
18099 <lwpid_of>: Use ptid_get_lwp.
18100 (get_lwp_thread): Adjust.
18101 (struct lwp_info): Add `dead' member.
18102 (find_lwp_pid): Declare.
18103 * linux-low.c (thread_db_active): Delete.
18104 (new_inferior): Adjust comment.
18105 (inferior_pid): Delete.
18106 (linux_add_process): New.
18107 (handle_extended_wait): Adjust.
18108 (add_lwp): Change unsigned long to ptid.
18109 (linux_create_inferior): Add process to processes table. Adjust
18110 to use ptids. Don't set new_inferior here.
18111 (linux_attach_lwp): Rename to ...
18112 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
18113 it. Adjust to use ptids.
18114 (linux_attach_lwp): New.
18115 (linux_attach): Add process to processes table. Don't set
18116 new_inferior here.
18117 (struct counter): New.
18118 (second_thread_of_pid_p, last_thread_of_process_p): New.
18119 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
18120 multiple processes.
18121 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
18122 processes. Remove process from process table.
18123 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
18124 to multiple processes.
18125 (any_thread_of): New.
18126 (linux_detach): Add `pid' argument, and handle it. Remove process
18127 from processes table.
18128 (linux_join): Add `pid' argument. Handle it.
18129 (linux_thread_alive): Change unsighed long argument to ptid_t.
18130 Consider dead lwps as not being alive.
18131 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
18132 threads we're not interested in.
18133 (same_lwp, find_lwp_pid): New.
18134 (linux_wait_for_lwp): Change `pid' argument's type from int to
18135 ptid_t. Adjust.
18136 (linux_wait_for_event): Rename to ...
18137 (linux_wait_for_event_1): ... this. Change `pid' argument's type
18138 from int to ptid_t. Adjust.
18139 (linux_wait_for_event): New.
18140 (linux_wait_1): Add `ptid' argument. Change return type to
18141 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
18142 that exit from the process table.
18143 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
18144 Adjust.
18145 (mark_lwp_dead): New.
18146 (wait_for_sigstop): Adjust to use ptids. If a process exits while
18147 stopping all threads, mark its main lwp as dead.
18148 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
18149 ptids.
18150 (fetch_register, usr_store_inferior_registers)
18151 (regsets_fetch_inferior_registers)
18152 (regsets_store_inferior_registers, linux_read_memory)
18153 (linux_write_memory): Inline `inferior_pid'.
18154 (linux_look_up_symbols): Adjust to use per-process
18155 `thread_db_active'.
18156 (linux_request_interrupt): Adjust to use ptids.
18157 (linux_read_auxv): Inline `inferior_pid'.
18158 (initialize_low): Don't reference thread_db_active.
18159 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
18160 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
18161 (ps_getpid): Return the pid of the current inferior.
18162 * thread-db.c (proc_handle, thread_agent): Delete.
18163 (thread_db_create_event, thread_db_enable_reporting): Adjust to
18164 per-process data.
18165 (find_one_thread): Change argument type to ptid_t. Adjust to
18166 per-process data.
18167 (maybe_attach_thread): Adjust to per-process data and ptids.
18168 (thread_db_find_new_threads): Ditto.
18169 (thread_db_init): Ditto.
18170 * spu-low.c (spu_create_inferior, spu_attach): Add process to
18171 processes table. Adjust to use ptids.
18172 (spu_kill, spu_detach): Adjust interface. Remove process from
18173 processes table.
18174 (spu_join, spu_thread_alive): Adjust interface.
18175 (spu_wait): Adjust interface. Remove process from processes
18176 table. Adjust to use ptids.
18177 * win32-low.c (current_inferior_tid): Delete.
18178 (current_inferior_ptid): New.
18179 (debug_event_ptid): New.
18180 (thread_rec): Take a ptid. Adjust.
18181 (child_add_thread): Add `pid' argument. Adjust to use ptids.
18182 (child_delete_thread): Ditto.
18183 (do_initial_child_stuff): Add `attached' argument. Add process to
18184 processes table.
18185 (child_fetch_inferior_registers, child_store_inferior_registers):
18186 Adjust.
18187 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
18188 (win32_attach): Pass 1 to do_initial_child_stuff.
18189 (win32_kill): Adjust interface. Remove process from processes
18190 table.
18191 (win32_detach): Ditto.
18192 (win32_join): Adjust interface.
18193 (win32_thread_alive): Take a ptid.
18194 (win32_resume): Adjust to use ptids.
18195 (get_child_debug_event): Ditto.
18196 (win32_wait): Adjust interface. Remove exiting process from
18197 processes table.
18198
bd99dc85
PA
181992009-04-01 Pedro Alves <pedro@codesourcery.com>
18200
18201 Non-stop mode support.
18202
18203 * server.h (non_stop): Declare.
18204 (gdb_client_data, handler_func): Declare.
18205 (delete_file_handler, add_file_handler, start_event_loop):
18206 Declare.
18207 (handle_serial_event, handle_target_event, push_event)
18208 (putpkt_notif): Declare.
18209 * target.h (enum resume_kind): New.
18210 (struct thread_resume): Replace `step' field by `kind' field.
18211 (TARGET_WNOHANG): Define.
18212 (struct target_ops) <wait>: Add `options' argument.
18213 <supports_non_stop, async, start_non_stop>: New fields.
18214 (target_supports_non_stop, target_async): New.
18215 (start_non_stop): Declare.
18216 (mywait): Add `options' argument.
18217 * target.c (mywait): Add `options' argument. Print child exit
18218 notifications here.
18219 (start_non_stop): New.
18220 * server.c (non_stop, own_buf, mem_buf): New globals.
18221 (struct vstop_notif): New.
18222 (notif_queue): New global.
18223 (queue_stop_reply, push_event, discard_queued_stop_replies)
18224 (send_next_stop_reply): New.
18225 (start_inferior): Adjust to use resume_kind. Adjust to mywait
18226 interface changes.
18227 (attach_inferior): In non-stop mode, don't wait for the target
18228 here.
18229 (handle_general_set): Handle QNonStop.
18230 (handle_query): When handling qC, return the current general
18231 thread, instead of the first thread of the list.
18232 (handle_query): If the backend supports non-stop mode, include
18233 QNonStop+ in the qSupported query response.
18234 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
18235 and non-stop mode.
18236 (handle_v_attach, handle_v_run): Handle non-stop mode.
18237 (handle_v_stopped): New.
18238 (handle_v_requests): Report support for vCont;t. Handle vStopped.
18239 (myresume): Adjust to use resume_kind. Handle non-stop.
18240 (queue_stop_reply_callback): New.
18241 (handle_status): Handle non-stop mode.
18242 (main): Clear non_stop flag on reconnection. Use the event-loop.
18243 Refactor serial protocol handling from here ...
18244 (process_serial_event): ... to this new function. When GDB
18245 selects any thread, select one here. In non-stop mode, wait until
18246 GDB acks all pending events before exiting.
18247 (handle_serial_event, handle_target_event): New.
18248 * remote-utils.c (remote_open): Install remote_desc in the event
18249 loop.
18250 (remote_close): Remove remote_desc from the event loop.
18251 (putpkt_binary): Rename to...
18252 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
18253 (putpkt_binary): New as wrapper around putpkt_binary_1.
18254 (putpkt_notif): New.
18255 (prepare_resume_reply): In non-stop mode, don't change the
18256 general_thread.
18257 * event-loop.c: New.
18258 * Makefile.in (OBJ): Add event-loop.o.
18259 (event-loop.o): New rule.
18260
18261 * linux-low.h (pid_of): Moved here.
18262 (lwpid_of): New.
18263 (get_lwp_thread): Use lwpid_of.
18264 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
18265 * linux-low.c (pid_of): Delete.
18266 (inferior_pid): Use lwpid_of.
18267 (linux_event_pipe): New.
18268 (target_is_async_p): New.
18269 (delete_lwp): New.
18270 (handle_extended_wait): Use lwpid_of.
18271 (add_lwp): Don't set lwpid field.
18272 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
18273 (linux_kill_one_lwp): If killing a running lwp, stop it first.
18274 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
18275 (linux_detach_one_lwp): If detaching from a running lwp, stop it
18276 first. Adjust to linux_wait_for_event interface changes. Use
18277 lwpid_of.
18278 (linux_detach): Don't delete the main lwp here.
18279 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
18280 (status_pending_p): Don't consider explicitly suspended lwps.
18281 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
18282 pointer. Add OPTIONS argument. Change return type to int. Use
18283 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
18284 (linux_wait_for_event): Take an integer pid instead of a lwp_info
18285 pointer. Add status pointer argument. Return a pid instead of a
18286 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
18287 changes. In non-stop mode, don't switch to a random thread.
18288 (linux_wait): Rename to...
18289 (linux_wait_1): ... this. Add target_options argument, and handle
18290 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
18291 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
18292 clean exit and signal exit code. Don't stop all threads in
18293 non-stop mode. In all-stop mode, only stop all threads when
18294 reporting a stop to GDB. Handle explicit thread stop requests.
18295 (async_file_flush, async_file_mark): New.
18296 (linux_wait): New.
18297 (send_sigstop): Use lwpid_of.
18298 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
18299 interface changes. In non-stop mode, don't switch to a random
18300 thread.
18301 (linux_resume_one_lwp): Use lwpid_of.
18302 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
18303 (linux_resume_one_thread): ... this. Handle resume_stop. In
18304 non-stop mode, don't look for pending flag in all threads.
18305 (resume_status_pending_p): Don't consider explicitly suspended
18306 threads.
18307 (my_waitpid): Reimplement. Emulate __WALL.
18308 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
18309 Use lwpid_of.
18310 (sigchld_handler, linux_supports_non_stop, linux_async)
18311 (linux_start_non_stop): New.
18312 (linux_target_ops): Register linux_supports_non_stop, linux_async
18313 and linux_start_non_stop.
18314 (initialize_low): Install SIGCHLD handler.
18315 * thread-db.c (thread_db_create_event, find_one_thread)
18316 (thread_db_get_tls_address): Use lwpid_of.
18317 * win32-low.c (win32_detach): Adjust to use resume_kind.
18318 (win32_wait): Add `options' argument.
18319 * spu-low.c (spu_resume): Adjust to use resume_kind.
18320 (spu_wait): Add `options' argument.
18321
5b1c542e
PA
183222009-04-01 Pedro Alves <pedro@codesourcery.com>
18323
18324 Decouple target code from remote protocol.
18325
18326 * target.h (enum target_waitkind): New.
18327 (struct target_waitstatus): New.
18328 (struct target_ops) <wait>: Return an unsigned long. Take a
18329 target_waitstatus pointer instead of a char pointer.
18330 (mywait): Likewise.
18331 * target.c (mywait): Change prototype to return an unsigned long.
18332 Take a target_waitstatus pointer instead of a char pointer. Adjust.
18333 * server.h (thread_from_wait, old_thread_from_wait): Delete
18334 declarations.
18335 (prepare_resume_reply): Change prototype to take a
18336 target_waitstatus.
18337 * server.c (thread_from_wait, old_thread_from_wait): Delete.
18338 (last_status, last_ptid): New.
18339 (start_inferior): Remove "statusptr" argument. Adjust. Return a
18340 pid instead of a signal.
18341 (attach_inferior): Remove "status" and "signal" parameters.
18342 Adjust.
18343 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
18344 not as an address.
18345 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
18346 (handle_v_requests, myresume): Remove "status" and "signal"
18347 parameters. Adjust.
18348 (handle_status): New.
18349 (main): Delete local `status'. Adjust.
18350 * remote-utils.c: Include target.h.
18351 (prepare_resume_reply): Change prototype to take a
18352 target_waitstatus. Adjust.
18353
18354 * linux-low.c (linux_wait): Adjust to new target_ops->wait
18355 interface.
18356 * spu-low.c (spu_wait): Adjust.
18357 * win32-low.c (enum target_waitkind, struct target_waitstatus):
18358 Delete.
18359 (win32_wait): Adjust.
18360
2bd7c093
PA
183612009-04-01 Pedro Alves <pedro@codesourcery.com>
18362
18363 * target.h (struct thread_resume): Delete leave_stopped member.
18364 (struct target_ops): Add a `n' argument to the `resume' callback.
18365 * server.c (start_inferior): Adjust.
18366 (handle_v_cont, myresume): Adjust.
18367 * linux-low.c (check_removed_breakpoint): Adjust to resume
18368 interface change, and to removed leave_stopped field.
18369 (resume_ptr): Delete.
18370 (struct thread_resume_array): New.
18371 (linux_set_resume_request): Add new `arg' parameter. Adjust to
18372 resume interface change.
18373 (linux_continue_one_thread, linux_queue_one_thread)
18374 (resume_status_pending_p): Check if the resume field is NULL
18375 instead of checking the leave_stopped member.
18376 (linux_resume): Adjust to the target resume interface change.
18377 * spu-low.c (spu_resume): Adjust to the target resume interface
18378 change.
18379 * win32-low.c (win32_detach, win32_resume): Ditto.
18380
c35fafde
PA
183812009-04-01 Pedro Alves <pedro@codesourcery.com>
18382
18383 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
18384 flag.
18385 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
18386 pending.
18387 (linux_continue_one_thread): Only preserve the stepping flag if
18388 there's a pending breakpoint.
18389
0a59d50b
PA
183902009-03-31 Pedro Alves <pedro@codesourcery.com>
18391
18392 * server.c (main): After the inferior having exited, call
18393 remote_close before exiting gdbserver.
18394
f04c6d38
TJB
183952009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
18396
18397 Fix size of FPSCR in Power 7 processors.
18398 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
18399 (PPC_FEATURE_HAS_DFP): New #define.
18400 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
18401 size of the FPSCR.
18402
78e5cee6
PA
184032009-03-23 Pedro Alves <pedro@codesourcery.com>
18404
18405 * server.c (handle_query) Whitespace and formatting.
18406
1b3f6016
PA
184072009-03-22 Pedro Alves <pedro@codesourcery.com>
18408
18409 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
18410 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
18411 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
18412 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
18413 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
18414 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
18415 Makefile.in, configure.ac: Fix whitespace throughout.
18416 * configure: Regenerate.
18417
a07b2135
PA
184182009-03-22 Pedro Alves <pedro@codesourcery.com>
18419
18420 * inferiors.c (find_inferior): Make it safe for the callback
18421 function to delete the currently iterated inferior.
18422
67cc2626
PA
184232009-03-22 Pedro Alves <pedro@codesourcery.com>
18424
18425 * Makefile.in (linuw_low_h): Move higher.
18426 (thread-db.o): Depend on $(linux_low_h).
18427
54a0b537
PA
184282009-03-17 Pedro Alves <pedro@codesourcery.com>
18429
18430 Rename "process" to "lwp" throughout.
18431
18432 * linux-low.c (all_processes): Rename to...
18433 (all_lwps): ... this.
18434 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
18435 (add_process): Rename to ...
18436 (add_lwp): ... this. Adjust.
18437 (linux_create_inferior): Adjust.
18438 (linux_attach_lwp): Adjust.
18439 (linux_attach): Adjust.
18440 (linux_kill_one_process): Rename to ...
18441 (linux_kill_one_lwp): ... this. Adjust.
18442 (linux_kill): Adjust.
18443 (linux_detach_one_process): Rename to ...
18444 (linux_detach_one_lwp): ... this. Adjust.
18445 (linux_detach): Adjust.
18446 (check_removed_breakpoint): Adjust.
18447 (status_pending_p): Adjust.
18448 (linux_wait_for_process): Rename to ...
18449 (linux_wait_for_lwp): ... this. Adjust.
18450 (linux_wait_for_event): Adjust.
18451 (send_sigstop): Adjust.
18452 (wait_for_sigstop): Adjust.
18453 (stop_all_processes): Rename to ...
18454 (stop_all_lwps): ... this.
18455 (linux_resume_one_process): Rename to ...
18456 (linux_resume_one_lwp): ... this. Adjust.
18457 (linux_set_resume_request, linux_continue_one_thread)
18458 (linux_queue_one_thread, resume_status_pending_p)
18459 (usr_store_inferior_registers, regsets_store_inferior_registers)
18460 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
18461 Adjust.
18462 * linux-low.h (get_process): Rename to ...
18463 (get_lwp): ... this. Adjust.
18464 (get_thread_process): Rename to ...
18465 (get_thread_lwp): ... this. Adjust.
18466 (get_process_thread): Rename to ...
18467 (get_lwp_thread): ... this. Adjust.
18468 (struct process_info): Rename to ...
18469 (struct lwp_info): ... this.
18470 (all_processes): Rename to ...
18471 (all_lwps): ... this.
18472 * proc-service.c (ps_lgetregs): Adjust.
18473 * thread-db.c (thread_db_create_event, find_one_thread)
18474 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
18475
0b16c5cf
PA
184762009-03-14 Pedro Alves <pedro@codesourcery.com>
18477
18478 * server.c (handle_query): Handle "qAttached".
18479
32de4b9d
NS
184802009-03-13 Nathan Sidwell <nathan@codesourcery.com>
18481
18482 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
18483 GPLv3, update license URL.
18484
2aecd87f
DE
184852009-03-01 Doug Evans <dje@google.com>
18486
93efd302 18487 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
2aecd87f
DE
18488 (server_h): Add gdb_signals.h.
18489 (signals.o): Update.
18490 * server.h (target_signal_from_host,target_signal_to_host_p)
18491 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
18492
86b1f9c5
PM
184932009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
18494
18495 * remote-utils.c (getpkt): Also generate remote-debug
18496 information if noack_mode is set.
18497
4aa995e1
PA
184982009-02-06 Pedro Alves <pedro@codesourcery.com>
18499
18500 * server.c (handle_query): Report qXfer:siginfo:read and
18501 qXfer:siginfo:write as supported and handle them.
18502 * target.h (struct target_ops) <qxfer_siginfo>: New field.
18503 * linux-low.c (linux_xfer_siginfo): New.
18504 (linux_target_ops): Set it.
18505
62709adf
PA
185062009-01-26 Pedro Alves <pedro@codesourcery.com>
18507
18508 * server.c (gdbserver_usage): Mention --remote-debug.
18509 (main): Accept '--remote-debug' switch.
18510
aef93bd7
DE
185112009-01-18 Doug Evans <dje@google.com>
18512
18513 * regcache.c (new_register_cache): No need to check result of xcalloc.
18514 * server.c (handle_search_memory): Back out calls to xmalloc,
18515 result is checked and error is returned to user upon failure.
18516 (handle_query): Ditto. Add more checks for result of malloc.
18517 (handle_v_cont): Check result of malloc, report error back to
18518 user upon failure.
18519 (handle_v_run): Ditto. Call freeargv.
18520 * server.h (freeargv): Declare.
18521 * utils.c (freeargv): New fn.
18522
54363045
DE
185232009-01-15 Doug Evans <dje@google.com>
18524
f626972c
DE
18525 * gdbreplay.c (perror_with_name): Make arg const char *.
18526 * server.h (target_signal_to_name): Make return type const char *.
0842e787 18527 * thread-db.c (thread_db_err_str): Make return type const char *.
f626972c 18528 * utils.c (perror_with_name): Make arg const char *.
54363045 18529
18aae699
PA
185302009-01-14 Pedro Alves <pedro@codesourcery.com>
18531
18532 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
18533 when handling a EXIT_PROCESS_DEBUG_EVENT.
18534
ff703abe
JB
185352009-01-06 Joel Brobecker <brobecker@adacore.com>
18536
18537 * gdbreplay.c (gdbreplay_version): Update copyright year.
18538 * server.c (gdbserver_version): Likewise.
18539
f21cc1a2 185402009-01-05 Doug Evans <dje@google.com>
0e21c1ec
DE
18541
18542 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
f21cc1a2 18543 (handle_extended_wait): Improve comment.
0e21c1ec 18544
bca929d3
DE
185452008-12-13 Doug Evans <dje@google.com>
18546
18547 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
18548 * server.h (ATTR_MALLOC): New macro.
18549 (xmalloc,xcalloc,xstrdup): Declare.
18550 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
18551 * inferiors.c: Ditto.
18552 * linux-low.c: Ditto.
18553 * mem-break.c: Ditto.
18554 * regcache.c: Ditto.
18555 * remote-utils.c: Ditto.
18556 * server.c: Ditto.
18557 * target.c: Ditto.
18558 * win32-low.c: Ditto.
18559
97438e3f
DE
185602008-12-12 Doug Evans <dje@google.com>
18561
896c7fbb
DE
18562 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
18563 in debugging printf.
18564
97438e3f
DE
18565 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
18566
e3b886f8
DE
185672008-12-09 Doug Evans <dje@google.com>
18568
18569 * linux-low.h (struct process_info): Delete member tid, unused.
18570 * thread-db.c (find_one_thread): Update.
18571 (maybe_attach_thread): Update.
18572
07e059b5
VP
185732008-12-02 Pedro Alves <pedro@codesourcery.com>
18574
889bf7c5
PA
18575 * target.h (struct target_ops): Add qxfer_osdata member.
18576 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
18577 and dirent.h.
18578 (linux_qxfer_osdata): New functions.
18579 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
18580 callback.
18581 * server.c (handle_query): Handle "qXfer:osdata:read:".
18582 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
18583 (buffer_xml_printf): New functions.
18584 * server.h (struct buffer): New.
18585 (buffer_grow_str, buffer_grow_str0): New macros.
18586 (buffer_grow, buffer_free, buffer_init, buffer_finish)
18587 (buffer_xml_printf): Declare.
07e059b5 18588
4cab47ab
DE
185892008-11-24 Doug Evans <dje@google.com>
18590
18591 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
18592
f142445f
DJ
185932008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
18594
18595 * server.c (handle_v_run): Always use the supplied argument list.
18596
d0107bb6 185972008-11-19 Bob Wilson <bob.wilson@acm.org>
889bf7c5 18598
d0107bb6
BW
18599 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
18600 (xtensa_regmap_table): Add entry for scompare1.
889bf7c5 18601
2c4ad781
TJB
186022008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
18603
18604 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
18605 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
18606 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
18607 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
18608 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
18609 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
18610 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
18611 XML target descriptions.
18612 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
18613 when inferior is running on an ISA 2.05 or later processor. Add
18614 special case to return offset for full 64-bit slot of FPSCR when
18615 in 32-bits.
18616
dfb64f85
DJ
186172008-11-14 Daniel Gutson <dgutson@codesourcery.com>
18618
18619 * Makefile.in (SFILES, clean): Added sparc64 files.
18620 (reg-sparc64.o, reg-sparc64.c): New.
18621 * configure.srv (sparc*-*-linux*): New configuration.
18622 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
18623 syscall arguments for SPARC.
18624 (regsets_store_inferior_registers): Likewise.
18625 * linux-sparc-low.c: New file.
18626
66b6e1dd
DE
186272008-10-21 Doug Evans <dje@google.com>
18628
18629 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
18630 (READLINE_DIR,READLINE_DEP): Delete.
18631 (INTERNAL_CFLAGS): Update.
18632 (LINTFLAGS): Update.
18633
9b710a42
PA
186342008-10-10 Pedro Alves <pedro@codesourcery.com>
18635
18636 * server.c (handle_v_run): If GDB didn't specify an argv, use the
18637 whole argv from the last run, not just argv[0].
18638
5822d809
PA
186392008-09-08 Pedro Alves <pedro@codesourcery.com>
18640
18641 * regcache.c (new_register_cache): Return NULL if the register
18642 cache size isn't known yet.
18643 (free_register_cache): Avoid dereferencing a NULL regcache.
18644
74aac56f
DJ
186452008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
18646
18647 * configure.srv: Merge MIPS and MIPS64.
18648
400b20f5
MR
186492008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
18650
18651 * Makefile.in (uninstall): Apply $(EXEEXT) too.
18652
677c5bb1
LM
186532008-08-18 Luis Machado <luisgpm@br.ibm.com>
18654
18655 * Makefile.in: Add required vsx dependencies.
18656
18657 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
18658 Declare init_registers_powerpc_vsx32l.
18659 Declare init_registers_powerpc_vsx64l.
18660 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
18661 (ppc_arch_setup): Check for VSX in hwcap.
18662 (ppc_fill_vsxregset): New function.
18663 (ppc_store_vsxregset): New function.
18664 Add new VSX entry in regset_info target_regsets.
18665
18666 * configure.srv: Add new VSX dependencies.
18667
a6f3e723
SL
186682008-08-12 Pedro Alves <pedro@codesourcery.com>
18669
18670 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
18671 (remote_open): Set or clear transport_is_reliable.
18672 (putpkt_binary): Don't expect acks in noack mode.
18673 (getpkt): Don't send ack/nac in noack mode.
18674 * server.c (handle_general_set): Handle QStartNoAckMode.
18675 (handle_query): If connected by tcp pass QStartNoAckMode+ in
18676 qSupported.
18677 (main): Reset noack_mode on every connection.
18678 * server.h (noack_mode): Declare.
18679
a417dc56
RW
186802008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18681
18682 * Makefile.in (GDBREPLAY_OBS): New variable.
18683 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
18684
3221518c
UW
186852008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
18686 Daniel Jacobowitz <dan@codesourcery.com>
18687
18688 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
18689 (usr_store_inferior_registers): Likewise.
18690 (regsets_store_inferior_registers): Likewise.
18691
ec56be1b
PA
186922008-07-31 Rolf Jansen <rj@surtec.com>
18693 Pedro Alves <pedro@codesourcery.com>
18694
18695 * configure.ac: Check for memmem declaration.
18696 * server.c [HAVE_MALLOC_H]: Include malloc.h.
18697 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
18698 (disable_packet_qfThreadInfo): Unconditionally compile.
18699 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
18700 * configure, config.in: Regenerate.
18701
2fe5e3ff
DE
187022008-07-28 Doug Kwan <dougkwan@google.com>
18703
18704 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
18705 (linux_write_memory): Remove declaration of errno.
18706
836acd6d
UW
187072008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
18708
18709 * linux-low.c (handle_extended_wait): Do not use "status"
18710 variable uninitialized.
18711
aeba519e
PA
187122008-07-07 Pedro Alves <pedro@codesourcery.com>
18713
18714 * server.c (handle_v_attach): Inhibit reporting dll changes.
18715
db42f210
PA
187162008-06-27 Pedro Alves <pedro@codesourcery.com>
18717
18718 * remote-utils.c (prepare_resume_reply): If requested, don't
18719 output "thread:TID" in the T stop reply.
18720
18721 * server.c (disable_packet_vCont, disable_packet_Tthread)
18722 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
18723 (handle_query): If requested, disable support for qC, qfThreadInfo
18724 and qsThreadInfo.
18725 (handle_v_requests): If requested, disable support for vCont.
18726 (gdbserver_show_disableable): New.
18727 (main): Handle --disable-packet and --disable-packet=LIST.
18728
18729 * server.h (disable_packet_vCont, disable_packet_Tthread)
18730 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
18731
8e4c5421
CD
187322008-06-20 Carlos O'Donell <carlos@codesourcery.com>
18733
18734 * server.c (gdbserver_usage): Mention --version.
18735
6e23a804
DJ
187362008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
18737
18738 * Makefile.in (gdbreplay.o): New rule.
18739
90aa6a40
JM
187402008-06-06 Joseph Myers <joseph@codesourcery.com>
18741
18742 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
18743 message, not gdbserver.
18744
c16158bc 187452008-06-05 Vladimir Prus <vladimir@codesourcery.com>
889bf7c5
PA
18746 Nathan Sidwell <nathan@codesourcery.com>
18747 Joseph Myers <joseph@codesourcery.com>
c16158bc
JM
18748
18749 * acinclude.m4: Include ../../config/acx.m4.
18750 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
18751 * configure, config.in: Regenerate.
18752 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
18753 * server.c (gdbserver_version): Print PKGVERSION.
18754 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
18755 (main): Adjust gdbserver_usage calls.
18756 * gdbreplay.c (version, host_name): Add declarations.
18757 (gdbreplay_version, gdbreplay_usage): New.
18758 (main): Accept --version and --help options.
18759
aeb75bf5
DJ
187602008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
18761
18762 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
18763 (arm_breakpoint_at): Handle Thumb.
18764 (the_low_target): Add comment.
18765
76b233dd
UW
187662008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
18767
18768 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
18769
08388c79
DE
187702008-05-09 Doug Evans <dje@google.com>
18771
a3c83fae
DE
18772 * server.h (decode_search_memory_packet): Declare.
18773 * remote-utils.c (decode_search_memory_packet): New fn.
18774 * server.c (handle_search_memory_1): New fn.
08388c79
DE
18775 (handle_search_memory): New fn.
18776 (handle_query): Process qSearch:memory packets.
18777
bb9c3d36
UW
187782008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
18779
18780 * regcache.c (registers_length): Remove.
18781 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
18782 full register packet.
18783 * regcache.h (registers_length): Remove prototype.
18784 * server.h (PBUFSIZ): Define to 16384.
18785
7284e1be
UW
187862008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
18787
18788 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
18789 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
18790 powerpc-64l.o, and powerpc-altivec64l.o.
18791 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
18792 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
18793 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
18794 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
18795 rs6000/power-linux.xml, and rs6000/power64-linux.xml
18796 to srv_xmlfiles.
18797
18798 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
18799 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
18800 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
18801 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
18802 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
18803 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
18804 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
18805 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
18806 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
18807 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
18808 (clean): Update.
18809
18810 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
18811 (init_registers_powerpc_32l): ... this new prototype.
18812 (init_registers_powerpc_32): Remove, replace by ...
18813 (init_registers_powerpc_altivec32l): ... this new prototype.
18814 (init_registers_powerpc_e500): Remove, replace by ...
18815 (init_registers_powerpc_e500l): ... this new prototype.
18816 (init_registers_ppc64): Remove, replace by ...
18817 (init_registers_powerpc_64l): ... this new prototype.
18818 (init_registers_powerpc_64): Remove, replace by ...
18819 (init_registers_powerpc_altivec64l): ... this new prototype.
18820 (ppc_num_regs): Set to 73.
18821 (PT_ORIG_R3, PT_TRAP): Define if necessary.
18822 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
18823 (ppc_cannot_store_register): Handle orig_r3 and trap.
18824 (ppc_arch_setup): Update init_registers_... calls.
18825 (ppc_fill_gregset): Handle orig_r3 and trap.
18826
18827 * inferiors.c (clear_inferiors): Reset current_inferior.
18828
fdc59709
PB
188292008-04-23 Paolo Bonzini <bonzini@gnu.org>
18830
889bf7c5
PA
18831 * acinclude.m4: Add override.m4.
18832 * configure: Regenerate.
fdc59709 18833
c9b2f845
UW
188342008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
18835
18836 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
18837 initial call to init_register_ppc64.
18838
550512b8
UW
188392008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
18840
43aaf8b6
PA
18841 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
18842 single powerpc*-*-linux* case.
550512b8
UW
18843 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
18844
b6430ec3
UW
188452008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
18846
18847 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
889bf7c5 18848 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
b6430ec3
UW
18849 from reg_xmlfiles.
18850 * linux-ppc-low.c: Include <elf.h>.
18851 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
18852 (ppc_hwcap): New global variable.
18853 (ppc_regmap): Remove __SPE__ #ifdef sections.
18854 (ppc_regmap_e500): New global variable.
18855 (ppc_cannot_store_register): Update __SPE__ special case.
18856 (ppc_get_hwcap): New function.
18857 (ppc_arch_setup): Use it to determine whether inferior supports
18858 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
18859 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
18860 Do not access registers if target does not support AltiVec.
18861 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
18862 Do not access registers if target does not support SPE.
18863 (target_regsets): Unconditionally include AltiVec and SPE regsets.
18864
52fa2412
UW
188652008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
18866
18867 * linux-low.c (disabled_regsets, num_regsets): New.
18868 (use_regsets_p): Delete.
18869 (linux_wait_for_process): Clear disabled_regsets.
18870 (regsets_fetch_inferior_registers): Check and set it.
18871 (regsets_store_inferior_registers): Likewise.
18872 (linux_fetch_registers, linux_store_registers): Do not use
18873 use_regsets_p.
18874 (initialize_low): Allocate disabled_regsets.
18875
e28b3332
DJ
188762008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
18877
18878 * Makefile.in (LIBOBJS): New.
18879 (OBS): Use LIBOBJS.
18880 (memmem.o): New rule.
18881 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
18882 * configure: Regenerated.
18883
4536995d
UW
188842008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
18885
18886 * server.c (handle_query): Never return "unsupported" for
18887 qXfer:features:read queries.
18888
221c031f
UW
188892008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
18890
18891 * server.c (get_features_xml): Fix inverted condition.
18892 (handle_query): Always support qXfer:feature:read.
18893
ccd213ac
DJ
188942008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
18895
18896 * server.c (wrapper_argv): New.
18897 (start_inferior): Handle wrapper_argv. If set, expect an extra
18898 trap.
18899 (gdbserver_usage): Document --wrapper.
18900 (main): Parse --wrapper.
18901
6fe305f7
UW
189022008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
18903
18904 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
18905 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
18906 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
18907 (ppc_set_pc): Likewise.
18908 (ppc_arch_setup): New function.
18909 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
18910 of collect_register.
889bf7c5 18911 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
6fe305f7 18912
5b0a002e
UW
189132008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
18914
18915 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
18916 instead of linux-ppc64-low.o.
18917 * linux-ppc64-low.c: Remove file.
18918 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
18919 (linux-ppc64-low.o): Remove rule.
18920
18921 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
18922 (init_registers_powerpc_64): Likewise.
18923 (ppc_regmap): Conditionally define depending on __powerpc64__.
18924 (ppc_cannot_store_register): Do not special-case "fpscr" when
18925 compiled on __powerpc64__.
18926 (ppc_collect_ptrace_register): New function.
18927 (ppc_supply_ptrace_register): New function.
18928 (ppc_breakpoint): Change type to "unsigned int".
18929 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
18930 (the_low_target): Conditionally provide initializers for the
889bf7c5 18931 arch_setup member depending on __powerpc64__. Install
5b0a002e
UW
18932 collect_ptrace_register and supply_ptrace_register members.
18933
9b4b61c8
UW
189342008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
18935
18936 * regcache.h (gdbserver_xmltarget): Add extern declaration.
18937 * server.c (gdbserver_xmltarget): Define.
18938 (get_features_xml): Use it to replace "target.xml" and arch_string.
18939
18940 * configure.srv: Remove srv_xmltarget. Add XML files that were
18941 mentioned there to srv_xmlfiles instead. Remove conditional tests
18942 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
18943 srv_xmlfiles and srv_regobj to include all possible choices.
18944 * configure.ac (srv_xmltarget): Remove.
18945 (srv_xmlfiles): Do not add "target.xml".
18946 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
18947 checks for supplementary target information.
18948 * configure: Regenerate.
18949 * Makefile.in (XML_TARGET): Remove.
18950 (target.xml): Remove rule.
18951 (clean): Do not clean up target.xml.
18952 (.PRECIOUS): Do not mention target.xml.
18953
18954 * target.h (struct target_ops): Remove arch_string member.
18955 * linux-low.c (linux_arch_string): Remove.
18956 (linux_target_ops): Remove arch_string initializer.
18957 * linux-low.h (struct linux_target_ops): Remove arch_string member.
18958 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
18959 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
18960 * spu-low.c (spu_arch_string): Remove.
18961 (spu_target_ops): Remove arch_string initializer.
18962 * win32-low.c (win32_arch_string): Remove.
18963 (win32_target_ops): Remove arch_string initializer.
18964 * win32-low.h (struct win32_target_ops): Remove arch_string member.
18965 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
18966 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
18967
ee1a7ae4
UW
189682008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
18969
18970 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
18971 by collect_ptrace_register and supply_ptrace_register hooks.
18972 * linux-low.c (fetch_register): Use supply_ptrace_register callback
18973 instead of checking for the_low_target.left_pad_xfer.
18974 (usr_store_inferior_registers): Use collect_ptrace_register callback
18975 instead of checking for the_low_target.left_pad_xfer.
18976
18977 * linux-s390-low.c (s390_collect_ptrace_register): New function.
18978 (s390_supply_ptrace_register): Likewise.
18979 (s390_fill_gregset): Call s390_collect_ptrace_register.
18980 (the_low_target): Update.
18981
18982 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
18983 (ppc_supply_ptrace_register): Likewise.
18984 (the_low_target): Update.
18985
18986 * linux-i386-low.c (the_low_target): Update.
18987 * linux-x86-64-low.c (the_low_target): Update.
18988
d61ddec4
UW
189892008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
18990
18991 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
18992 reg-s390.o and reg-s390x.o.
18993
18994 * linux-low.c (new_inferior): New global variable.
18995 (linux_create_inferior, linux_attach): Set it.
18996 (linux_wait_for_process): Call the_low_target.arch_setup after the
18997 target has stopped for the first time.
18998 (initialize_low): Do not call the_low_target.arch_setup.
18999
19000 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
19001 (s390_set_pc): Likewise.
19002 (s390_arch_setup): New function.
19003 (the_low_target): Use s390_arch_setup as arch_setup routine.
19004
19005 * regcache.c (realloc_register_cache): New function.
19006 (set_register_cache): Call it for each existing regcache.
19007
d05b4ac3
UW
190082008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19009
19010 * server.h (init_registers): Remove prototype.
19011
19012 * linux-low.h (struct linux_target_ops): Add arch_setup field.
19013 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
19014 instead of init_registers ().
19015 * linux-arm-low.c (init_registers_arm): Add prototype.
19016 (init_registers_arm_with_iwmmxt): Likewise.
19017 (the_low_target): Add initializer for arch_setup field.
19018 * linux-cris-low.c (init_registers_cris): Add prototype.
19019 (the_low_target): Add initializer for arch_setup field.
19020 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
19021 (the_low_target): Add initializer for arch_setup field.
19022 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
19023 (the_low_target): Add initializer for arch_setup field.
19024 * linux-ia64-low.c (init_registers_ia64): Add prototype.
19025 (the_low_target): Add initializer for arch_setup field.
19026 * linux-m32r-low.c (init_registers_m32r): Add prototype.
19027 (the_low_target): Add initializer for arch_setup field.
19028 * linux-m68k-low.c (init_registers_m68k): Add prototype.
19029 (the_low_target): Add initializer for arch_setup field.
19030 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
19031 (init_registers_mips64_linux): Likewise.
19032 (the_low_target): Add initializer for arch_setup field.
19033 * linux-ppc-low.c (init_registers_ppc): Add prototype.
19034 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
19035 (the_low_target): Add initializer for arch_setup field.
19036 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
19037 (init_registers_powerpc_64): Likewise.
19038 (the_low_target): Add initializer for arch_setup field.
19039 * linux-s390-low.c (init_registers_s390): Add prototype.
19040 (init_registers_s390x): Likewise.
19041 (the_low_target): Add initializer for arch_setup field.
19042 * linux-sh-low.c (init_registers_sh): Add prototype.
19043 (the_low_target): Add initializer for arch_setup field.
19044 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
19045 (the_low_target): Add initializer for arch_setup field.
19046 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
19047 (the_low_target): Add initializer for arch_setup field.
19048
19049 * win32-low.h (struct win32_target_ops): Add arch_setup field.
19050 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
19051 instead of init_registers ().
19052 * win32-arm-low.c (init_registers_arm): Add prototype.
19053 (the_low_target): Add initializer for arch_setup field.
19054 * win32-i386-low.c (init_registers_i386): Add prototype.
19055 (the_low_target): Add initializer for arch_setup field.
19056
19057 * spu-low.c (init_registers_spu): Add prototype.
19058 (initialize_low): Call initialie_registers_spu () instead of
19059 initialize_registers ().
19060
fd96d250
PA
190612008-02-19 Pedro Alves <pedro@codesourcery.com>
19062
19063 * server.c (handle_v_requests): When handling the vRun and vAttach
19064 packets, if already debugging a process, don't kill it. Return an
19065 error instead.
19066
d41b6bb4
DJ
190672008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
19068
19069 * server.c (handle_query): Correct length check.
19070
5ac588cf
PA
190712008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
19072
19073 * win32-low.c (do_initial_child_stuff): Add process handle
19074 parameter. Set current_process_handle and current_process_id from the
19075 parameters. Clear globals.
19076 (win32_create_inferior): Don't set current_process_handle and
19077 current_process_id here. Instead pass them on the call to
19078 do_initial_child_stuff.
19079 (win32_attach): Likewise.
19080 (win32_clear_inferiors): New.
19081 (win32_kill): Don't close the current process handle or the
19082 current thread handle here. Instead call win32_clear_inferiors.
19083 (win32_detach): Don't open a new handle to the process. Call
19084 win32_clear_inferiors.
19085 (win32_join): Don't rely on current_process_handle; open a new
19086 handle using the process id.
19087 (win32_wait): Call win32_clear_inferiors when the inferior process
19088 has exited.
19089
ecd7ecbc
DJ
190902008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
19091
19092 * server.c (monitor_show_help): Add "exit".
19093
1525d545
MG
190942008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
19095
ecd7ecbc 19096 * Makefile.in (SFILES): Add linux-xtensa-low.c.
1525d545
MG
19097 (clean): Add reg-xtensa.c.
19098 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
ecd7ecbc
DJ
19099 * configure.srv (xtensa*-*-linux*) New target.
19100 * linux-xtensa-low.c: New.
19101 * xtensa-xtregs.c: New.
1525d545 19102
59a016f0
PA
191032008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
19104
19105 * hostio.c: Don't include errno.h.
19106 (errno_to_fileio_errno): Move to hostio-errno.
19107 * hostio.c: (hostio_error): Remove the error parameter. Defer the
19108 error number outputting to the target->hostio_last_error callback.
19109 (hostio_packet_error): Use FILEIO_EINVAL directly.
19110 (handle_open, handle_pread, hostio_error, handle_unlink): Update
19111 calls to hostio_error.
19112 * hostio-errno.c: New.
19113 * server.h (hostio_last_error_from_errno): Declare.
19114 * target.h (target_ops): Add hostio_last_error member.
19115 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
19116 as hostio_last_error handler.
889bf7c5 19117 * spu-low.c (spu_target_ops): Likewise.
59a016f0
PA
19118 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
19119 (wince_hostio_last_error): New functions.
19120 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
19121 as hostio_last_error handler.
19122 (win32_target_ops) [!_WIN32_WCE]: Register
19123 hostio_last_error_from_errno as hostio_last_error handler.
19124 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
19125 (hostio-errno.o): New rule.
19126 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
19127 * configure.srv (srv_hostio_err_objs): New variable. Default to
19128 hostio-errno.o.
19129 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
19130 * configure: Regenerate.
19131
2d717e4f
DJ
191322008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
19133
19134 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
19135 (linux_kill, linux_detach): Clean up the process list.
19136 * remote-utils.c (remote_open): Improve port number parsing.
19137 (putpkt_binary, input_interrupt): Only send interrupts if the target
19138 is running.
19139 * server.c (extended_protocol): Make static.
19140 (attached): Define earlier.
19141 (exit_requested, response_needed, program_argv): New variables.
19142 (target_running): New.
19143 (start_inferior): Clear attached here.
19144 (attach_inferior): Set attached here.
19145 (require_running): Define.
19146 (handle_query): Use require_running and target_running. Implement
19147 "monitor exit".
19148 (handle_v_attach, handle_v_run): New.
19149 (handle_v_requests): Use require_running. Handle vAttach and vRun.
19150 (gdbserver_usage): Update.
19151 (main): Redo argument parsing. Handle --debug and --multi. Handle
19152 --attach along with other options or after the port. Save
19153 program_argv. Support no initial program. Resynchronize
19154 communication with GDB after an error. Handle "monitor exit".
19155 Use require_running and target_running. Always allow the extended
19156 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
19157 restart in extended mode.
19158 * README: Refer to the GDB manual. Update --attach usage.
19159
7407e2de
AS
191602007-12-20 Andreas Schwab <schwab@suse.de>
19161
19162 * linux-low.c (STACK_SIZE): Define.
19163 (linux_tracefork_child): Use it. Use __clone2 on ia64.
19164 (linux_test_for_tracefork): Likewise.
19165
b65d95c5
DJ
191662007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
19167
19168 * linux-low.c (linux_wait_for_event): Update messages. Do not
19169 reinsert auto-delete breakpoints.
19170 * mem-break.c (struct breakpoint): Change return type of handler to
19171 int.
19172 (set_breakpoint_at): Update handler type.
19173 (reinsert_breakpoint_handler): Return 1 instead of calling
19174 delete_breakpoint.
19175 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
19176 setting a new one.
19177 (check_breakpoints): Delete auto-delete breakpoints and return 2.
19178 * mem-break.h (set_breakpoint_at): Update handler type.
19179 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
19180 * win32-low.c (auto_delete_breakpoint): New.
19181 (get_child_debug_event): Use it.
19182
4e799345
DJ
191832007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
19184
19185 * configure.ac: Check for pread and pwrite.
19186 * hostio.c (handle_pread): Fall back to lseek and read.
19187 (handle_pwrite): Fall back to lseek and write.
19188 * config.in, configure: Regenerated.
19189
27524b67
DJ
191902007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
19191
19192 * server.c (myresume): Add own_buf argument.
19193 (main): Update calls.
19194
a20d5e98
DJ
191952007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
19196
19197 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
19198 * remote-utils.c (remote_open): Do not call disable_async_io.
19199 (block_async_io): Delete.
19200 (unblock_async_io): Make static.
19201 (initialize_async_io): New.
19202 * server.c (handle_v_cont): Handle async I/O here.
19203 (myresume): Likewise. Move other common resume tasks here...
19204 (main): ... from here. Call initialize_async_io. Disable async
19205 I/O before the main loop.
19206 * server.h (initialize_async_io): Declare.
19207 (block_async_io, unblock_async_io): Delete prototypes.
19208 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
19209
b79d787e
DJ
192102007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
19211
19212 * remote-utils.c (readchar): Allow binary data in received messages.
19213
d97903b2
PA
192142007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
19215
19216 * win32-low.c (attaching): New global.
19217 (win32_create_inferior): Clear the `attaching' global.
19218 (win32_attach): Set the `attaching' global.
19219 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
19220 attaching. Only set a breakpoint at the entry point if not
19221 attaching.
19222
311de423
PA
192232007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
19224
19225 * server.c (main): Don't report dll events on the initial
19226 connection on attaches.
19227
6c2d16d2
PA
192282007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
19229
19230 * server.c (main): Relax numerical bases supported for the pid of
19231 the --attach command line argument.
19232
5ca906e6
PA
192332007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
19234
19235 * win32-low.c (win32_attach): Call OpenProcess before
19236 DebugActiveProcess, not after. Add last error output to error
19237 call.
19238
9c6c8194
PA
192392007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
19240
19241 * win32-low.c (win32_get_thread_context)
19242 (win32_set_thread_context): New functions.
19243 (thread_rec): Use win32_get_thread_context.
19244 (continue_one_thread, win32_resume): Use win32_set_thread_context.
19245 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
19246 field.
19247
4d5d1aaa
PA
192482007-12-03 Leo Zayas
19249 Pedro Alves <pedro_alves@portugalmail.pt>
19250
19251 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
19252 global variables.
19253 (child_add_thread): Minor cleanup.
19254 (child_continue): Resume artificially suspended threads before
19255 calling ContinueDebugEvent.
19256 (suspend_one_thread): New.
19257 (fake_breakpoint_event): New.
19258 (get_child_debug_event): Change return type to int. Check here if
19259 gdb sent an interrupt request. If a soft interrupt was requested,
19260 fake a breakpoint event. Return 0 if there is no event to handle,
19261 and 1 otherwise.
19262 (win32_wait): Don't check here if gdb sent an interrupt request.
19263 Ensure there is a valid event to handle.
19264 (win32_request_interrupt): Add soft interruption method as last
19265 resort.
19266
c436e841
PA
192672007-12-03 Leo Zayas
19268 Pedro Alves <pedro_alves@portugalmail.pt>
19269
19270 * win32-low.h (win32_thread_info): Add descriptions to the
19271 structure members. Replace `suspend_count' counter by a
19272 `suspended' flag.
19273 * win32-low.c (thread_rec): Update condition of when to get the
19274 context from the inferior. Rely on ContextFlags being set if it
19275 has already been retrieved. Only suspend the inferior thread if
19276 we haven't already. Warn if that fails.
19277 (continue_one_thread): s/suspend_count/suspended/. Only call
19278 ResumeThread once. Warn if that fails.
19279
e7b5fa67
PA
192802007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
19281
19282 * win32-low.c (win32_wait): Don't read from the inferior when it
19283 has already exited.
19284
a385171d
PA
192852007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
19286
19287 * Makefile.in (win32_low_h): New variable.
19288 (win32-low.o): Add dependency on $(win32_low_h).
19289 (win32-arm-low.o, win32-i386-low.o): New rules.
19290
f80c84b3
DJ
192912007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
19292
19293 * hostio.c: Correct copyright year.
19294
a6b151f1
DJ
192952007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
19296
19297 * Makefile.in (OBS): Add hostio.o.
19298 (hostio.o): New rule.
19299 * server.h (handle_vFile): Declare.
19300 * hostio.c: New file.
19301 * server.c (handle_v_requests): Take packet_len and new_packet_len
19302 for binary packets. Call handle_vFile.
19303 (main): Update call to handle_v_requests.
19304
f9387fc3
DJ
193052007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
19306
19307 * linux-low.c: Include <sched.h>.
19308
51c2684e
DJ
193092007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
19310
19311 * linux-low.c (linux_tracefork_grandchild): New.
19312 (linux_tracefork_child): Use clone.
19313 (linux_test_for_tracefork): Use clone; allocate and free a stack.
19314
75f83163
JB
193152007-10-31 Joel Brobecker <brobecker@adacore.com>
19316
19317 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
19318
da5898ce
DJ
193192007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
19320
19321 * linux-low.c (handle_extended_wait): Handle unexpected signals.
19322
24a09b5f
DJ
193232007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
19324
19325 * inferiors.c (change_inferior_id): Delete.
19326 (add_pid_to_list, pull_pid_from_list): New.
19327 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
19328 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
19329 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
19330 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
19331 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
19332 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
19333 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
19334 (using_threads): Always set to 1.
19335 (handle_extended_wait): New.
19336 (add_process): Do not set TID.
19337 (linux_create_inferior): Set must_set_ptrace_flags.
19338 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
19339 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
19340 (linux_thread_alive): Rename TID argument to LWPID.
19341 (linux_wait_for_process): Handle unknown processes. Do not use TID.
19342 (linux_wait_for_event): Do not use TID or check using_threads. Update
19343 call to dead_thread_notify. Call handle_extended_wait.
19344 (linux_create_inferior): Use PTRACE_SETOPTIONS.
19345 (send_sigstop): Delete sigstop_sent.
19346 (wait_for_sigstop): Avoid TID.
19347 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
19348 (linux_test_for_tracefork): New.
19349 (linux_lookup_signals): Use thread_db_active and
19350 linux_supports_tracefork_flag.
19351 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
19352 * linux-low.h (get_process_thread): Avoid TID.
19353 (struct process_ifo): Move thread_known and tid to the end. Remove
19354 sigstop_sent.
19355 (linux_attach_lwp, thread_db_init): Update prototypes.
19356 * server.h (change_inferior_id): Delete prototype.
19357 (add_pid_to_list, pull_pid_from_list): New prototypes.
19358 * thread-db.c (thread_db_use_events): New.
19359 (find_first_thread): Rename to...
19360 (find_one_thread): ...this. Update callers and messages. Do not
19361 call fatal. Check thread_db_use_events. Do not call
19362 change_inferior_id or new_thread_notify.
19363 (maybe_attach_thread): Update. Do not call new_thread_notify.
19364 (thread_db_init): Set thread_db_use_events. Check use_events.
19365 * utils.c (fatal, warning): Correct message prefix.
19366
30ed0a8f
DJ
193672007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
19368
19369 * Makefile.in (clean): Remove new files.
19370 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
19371 (powerpc-64.o, powerpc-64.c): New rules.
19372 * configure.srv: Use alternate register sets for powerpc64-*-linux*
19373 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
19374 with SPE.
19375 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
19376 SPE targets.
19377 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
19378 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
19379 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
19380 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
19381 (target_regsets): Add AltiVec and SPE register sets.
19382 * configure.ac: Check for AltiVec and SPE.
19383 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
19384 (ppc_fill_vrregset, ppc_store_vrregset): New.
19385 (target_regsets): Add AltiVec register set.
19386 * configure: Regenerated.
19387
fd462a61
DJ
193882007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
19389
19390 * linux-low.c (O_LARGEFILE): Define.
19391 (linux_read_memory): Use /proc/PID/mem.
19392 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
19393 * configure, config.in: Regenerated.
19394
69f223ed
DJ
193952007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
19396
19397 * linux-low.c (linux_wait_for_event): Do not pass signals while
19398 single-stepping.
19399
aec18585
PA
194002007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
19401
19402 * win32-low.c (create_process): New.
19403 (win32_create_inferior): Use create_process instead of
19404 CreateProcess. If create_process failed retry appending an ".exe"
19405 suffix. Store the GetLastError result immediatelly after
19406 create_process calls and use it on the call to error.
19407
34d86ddd
PA
194082007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
19409
19410 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
19411
5a0e3bd0
JB
194122007-08-23 Joel Brobecker <brobecker@adacore.com>
19413
19414 * configure.ac: Switch license to GPLv3.
19415
f88c79e6
MS
194162007-08-01 Michael Snyder <msnyder@access-company.com>
19417
19418 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
19419
6b3d9b83
PA
194202007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
19421
19422 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
19423 typedef.
19424 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
19425 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
19426 CloseToolhelp32Snapshot.
19427 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
19428 CloseToolhelp32Snapshot.
19429
c588c53c
MS
194302007-07-27 Michael Snyder <michael.snyder@access-company.com>
19431
19432 * server.c (main): Check for inferior exit before main loop.
19433
aa0403d9
PA
194342007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
19435
19436 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
19437 instead of on tmp_desc.
19438
255e7678
DJ
194392007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
19440 Daniel Jacobowitz <dan@codesourcery.com>
19441
19442 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
19443 (add_thread): Minor cleanups.
19444 (clear_inferiors): Move lower in the file. Clear the DLL
19445 list.
19446 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
19447 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
19448 (xml_escape_text): New.
19449 * server.c (handle_query): Handle qXfer:libraries:read. Report it
19450 for qSupported.
19451 (handle_v_cont): Report errors.
19452 (gdbserver_version): Update.
19453 (main): Correct size of own_buf. Do not report initial DLL events.
19454 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
19455 (unloaded_dll, xml_escape_text): New.
19456 * win32-low.c (enum target_waitkind): Update comments.
19457 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
19458 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
19459 (win32_EnumProcessModules, win32_GetModuleInformation)
19460 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
19461 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
19462 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
19463 (win32_Module32First, win32_Module32Next, load_toolhelp)
19464 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
19465 (get_child_debug_event): Handle DLL events.
19466 (win32_wait): Likewise.
19467
0d37add9
DJ
194682007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
19469
19470 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
19471 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
19472
45e2715e
PA
194732007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
19474
19475 * win32-low.c (handle_output_debug_string): Ignore event if not
19476 waiting.
19477
c5674cf1
PA
194782007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
19479
19480 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
19481
2bbe3cc1
DJ
194822007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
19483
19484 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
19485
ae13219e
DJ
194862007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
19487
19488 * inferiors.c (change_inferior_id): Add comment.
19489 * linux-low.c (check_removed_breakpoint): Add an early
19490 prototype. Improve debug output.
19491 (linux_attach): Doc update.
19492 (linux_detach_one_process, linux_detach): Clean up before releasing
19493 each process.
19494 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
19495 * linux-low.h (struct process_info): Doc improvement.
19496 * mem-break.c (delete_all_breakpoints): New.
19497 * mem-break.h (delete_all_breakpoints): New prototype.
19498 * thread-db.c (find_first_thread): New.
19499 (thread_db_create_event): Call it instead of
19500 thread_db_find_new_threads. Clean up unused variables.
19501 (maybe_attach_thread): Remove first thread handling.
19502 (thread_db_find_new_threads): Use find_first_thread.
19503 (thread_db_get_tls_address): Likewise.
19504
4105de34
DJ
195052007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
19506
19507 * thread-db.c (thread_db_find_new_threads): Add prototype.
19508 (thread_db_create_event): Check for the main thread before adding
19509 a new thread.
19510 (maybe_attach_thread): Only enable event reporting if TID == 0.
19511 (thread_db_get_tls_address): Check for new threads.
19512
2b876972
DJ
195132007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
19514
19515 * linux-low.c (linux_create_inferior): Try execv before execvp.
19516 * spu-low.c (spu_create_inferior): Likewise.
19517
7a245884
DJ
195182007-06-13 Mike Frysinger <vapier@gentoo.org>
19519
19520 * linux-low.c (linux_create_inferior): Change execv to execvp.
19521 * spu-low.c (spu_create_inferior): Likewies.
19522
117ce543
DJ
195232007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
19524
19525 * Makefile.in (clean): Clean new files instead of deleted ones.
19526 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
19527 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
19528 rules.
19529 * configure.srv: Specify XML files and new regformats for MIPS and
19530 MIPS64 GNU/Linux.
19531 * linux-mips-low.c (mips_num_regs): Set to only used registers.
19532 (mips_regmap): Do not fetch $0. Remove unused registers. Add
19533 an entry for the restart register.
19534 (mips_cannot_fetch_register, mips_cannot_store_register)
19535 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
19536 register names to match the XML descriptions.
19537 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
19538 restart register instead of $0.
19539
0e7f50da
UW
195402007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
19541 Markus Deuling <deuling@de.ibm.com>
19542
19543 * remote-utils.c (decode_xfer_write): New function.
19544 * server.h (decode_xfer_write): Add prototype.
19545 * server.c (handle_query): Add PACKET_LEN argument. Support
19546 qXfer:spu:read and qXfer:spu:write packets.
19547 (main): Pass packet_len to handle_query.
19548 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
19549 * target.h (target_ops): Add qxfer_spu.
19550
374c1d38
UW
195512007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
19552
19553 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
19554 accessing non-seekable spufs files.
19555
bb63802a
UW
195562007-05-16 Markus Deuling <deuling@de.ibm.com>
19557
889bf7c5 19558 * server.c (handle_query): Add reply for qC packet.
bb63802a 19559
7390519e
PA
195602007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
19561 Leo Zayas <lerele@champenstudios@com>
19562
19563 * server.h (check_remote_input_interrupt_request): New function.
19564 * remote_utils.c (INVALID_DESCRIPTOR): New define.
19565 (remote_desc): Initialize with INVALID_DESCRIPTOR.
19566 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
19567 (check_remote_input_interrupt_request): New function.
19568 * server.h (check_remote_input_interrupt_request): Declare.
3ecf0694 19569 * win32-low.c (winapi_DebugBreakProcess,
7390519e
PA
19570 winapi_GenerateConsoleCtrlEvent): New typedefs.
19571 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
19572 to 250 ms.
19573 (win32_wait): Check for remote interrupt request
19574 with check_remote_input_interrupt_request.
19575 (win32_request_interrupt): New function.
19576 (win32_target_op): Set request_interrupt to win32_request_interrupt.
19577
34b34921
PA
195782007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
19579
19580 * win32-low.c (debug_registers_changed,
19581 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
19582 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
19583 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
19584 (thread_rec): Get context using the low target.
19585 (child_add_thread): Call thread_added on the low target,
19586 which does the same thing.
19587 (regptr): Delete.
19588 (do_initial_child_stuff): Remove debug registers references.
19589 Set context using the low target. Resume threads after
19590 setting the contexts.
19591 (child_continue): Remove dead variable. Remove debug
19592 registers references.
19593 (child_fetch_inferior_registers): Go through the low target.
19594 (do_child_store_inferior_registers): Remove.
19595 (child_store_inferior_registers): Go through the low target.
19596 (win32_resume): Remove debug registers references.
19597 Set context using the low target.
19598 (handle_exception): Change return type to void. Don't record
19599 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
19600 first chance exception.
889bf7c5 19601 (get_child_debug_event): Change return type to void. Remove
34b34921
PA
19602 goto loop. Always return after waiting for debug event.
19603 (win32_wait): Convert to switch statement. Handle spurious
19604 events.
19605
19606 * win32-i386-low.c (debug_registers_changed,
19607 debug_registers_used): New.
19608 (initial_stuff): Rename to ...
19609 (i386_initial_stuff): ... this. Clear debug registers
19610 state variables.
19611 (store_debug_registers): Delete.
19612 (i386_get_thread_context): New.
19613 (load_debug_registers): Delete.
19614 (i386_set_thread_context): New.
19615 (i386_thread_added): New.
19616 (single_step): Rename to ...
19617 (i386_single_step): ... this.
19618 (do_fetch_inferior_registers): Rename to ...
19619 (i386_fetch_inferior_register): ... this.
19620 (i386_store_inferior_register): New.
19621 (the_low_target): Adapt to new interface.
19622
19623 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
19624 (arm_get_thread_context): New.
19625 (arm_set_thread_context): New.
19626 (regptr): New.
19627 (do_fetch_inferior_registers): Rename to ...
19628 (arm_fetch_inferior_register): ... this.
19629 (arm_store_inferior_register): New.
19630 (arm_wince_breakpoint): Reimplement as unsigned long.
19631 (arm_wince_breakpoint_len): Define.
19632 (the_low_target): Adapt to new interface.
19633
19634 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
19635 load_debug_registers. Add get_thread_context, set_thread_context,
19636 thread_added and store_inferior_register. Rename
19637 fetch_inferior_registers to fetch_inferior_register.
19638 (regptr): Remove declaration.
19639
dd6953e1
PA
196402007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
19641
19642 * linux-low.c (linux_detach): Change return type to int. Return 0.
19643 * spu-low.c (spu_detach): Likewise.
19644
444d6139
PA
196452007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
19646
19647 * target.h (target_ops): Change return type of detach to int.
19648 Add join.
19649 (join_inferior): New.
19650 * server.c (main): Don't skip detach support on mingw32.
19651 If the inferior doesn't support detaching return error.
19652 Call join_inferior instead of using waitpid.
19653 * linux-low.c (linux_join): New.
19654 (linux_target_op): Add linux_join.
19655 * spu-low.c (spu_join): New.
19656 (spu_target_ops): Add spu_join.
19657 * win32-low.c (win32_detach): Adapt to new interface.
19658 Reopen current_process_handle before detaching. Issue a child
19659 resume before detaching.
19660 (win32_join): New.
19661 (win32_target_op): Add win32_join.
19662
1d5315fe
PA
196632007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
19664
19665 * win32-low.c (win32-attach): Fix return value.
19666 * target.h (target_ops): Describe ATTACH return values.
19667
bf914831
PA
196682007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
19669
19670 * win32-low.c (GETPROCADDRESS): Define.
19671 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
19672 (winapi_DebugSetProcessKillOnExit): Likewise.
19673 (win32_create_inferior): Force usage of ansi CreateProcessA.
19674 (win32_attach): Use GETPROCADDRESS.
19675 (win32_detach): Likewise.
19676
f72f3e60
PA
196772007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
19678
19679 * win32-low.c (win32_wait): Don't use WSTOPSIG.
19680
ed50f18f
PA
196812007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
19682
19683 * win32-low.c: Commit leftover changes from 2007-03-29.
19684
0c2ead7e
DJ
196852007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
19686
19687 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
19688 fields short instead of int. Add explicit padding.
19689 (i387_cache_to_fsave): Remove unnecessary casts.
19690 (i387_fsave_to_cache): Doc fix.
19691 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
19692
73725ff3
DJ
196932007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
19694
19695 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
19696 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
19697
d99f33d8
PA
196982007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
19699
19700 * configure.srv (arm*-*-mingw32ce*): Move near the other
19701 arm targets.
19702
68070c10
PA
197032007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
19704
2482afc6 19705 * configure.ac: Add errno checking.
68070c10
PA
19706 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
19707 sys/file.h and malloc.h.
19708 (AC_CHECK_DECLS): Add perror.
19709 (srv_mingwce): Handle.
2482afc6 19710 * configure.srv (i[34567]86-*-cygwin*): Add
68070c10
PA
19711 win32-i386-low.o to srv_tgtobj.
19712 (i[34567]86-*-mingw*): Likewise.
19713 (arm*-*-mingw32ce*): Add case.
19714 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
19715 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
19716 [__MINGW32CE__] (strerror): New function.
19717 [__MINGW32CE__] (errno): Define to GetLastError.
19718 [__MINGW32CE__] (COUNTOF): New macro.
19719 (remote_open): Remove extra close call.
19720 * mem-break.c (delete_breakpoint_at): New function.
19721 * mem-break.h (delete_breakpoint_at): Declare.
19722 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
19723 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
19724 [USE_WIN32API] (read, write): Add char* casts.
19725 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
19726 * server.h: Include wincecompat.h on Windows CE.
19727 [HAVE_ERRNO_H]: Check.
19728 (perror): Declare if not declared.
19729 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
19730 (perror_with_name): Remove errno declaration.
19731 * wincecompat.h: New.
19732 * wincecompat.c: New.
19733 * win32-low.h: New.
19734 * win32-arm-low.c: New.
19735 * win32-i386-low.c: New.
19736 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
19737 (OUTMSG2): Make it safe.
19738 (_T): New macro.
19739 (COUNTOF): New macro.
19740 (NUM_REGS): Get it from the low target.
19741 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
19742 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
19743 (thread_rec): Let low target handle debug registers.
19744 (child_add_thread): Likewise.
19745 (child_init_thread_list): Likewise.
19746 (continue_one_thread): Likewise.
19747 (regptr): New.
19748 (do_child_fetch_inferior_registers): Move to ...
19749 * win32-i386-low.c: ... here, and rename to ...
19750 (do_fetch_inferior_registers): ... this.
889bf7c5 19751 * win32-low.c (child_fetch_inferior_registers):
68070c10
PA
19752 Go through the low target.
19753 (do_child_store_inferior_registers): Use regptr.
19754 (strwinerror): New function.
19755 (win32_create_inferior): Handle Windows CE.
19756 Use strwinerror instead of strerror on Windows error
19757 codes. Add program to the error output.
19758 Don't close the main thread handle on Windows CE.
19759 (win32_attach): Use coredll.dll on Windows CE.
19760 (win32_kill): Close current process and current
19761 thread handles.
19762 (win32_detach): Use coredll.dll on Windows CE.
19763 (win32_resume): Let low target handle debug registers, and
19764 step request.
19765 (handle_exception): Add/Remove initial breakpoint. Avoid
19766 non-existant WSTOPSIG on Windows CE.
19767 (win32_read_inferior_memory): Cast to remove warning.
19768 (win32_arch_string): Go through the low target.
19769 (initialize_low): Call set_breakpoint_data with the low
19770 target's breakpoint.
19771 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
19772 FOP_REGNUM, mappings): Move to ...
19773 * win32-i386-low.c: ... here.
19774 * win32-low.c (win32_thread_info): Move to ...
19775 * win32-low.h: ... here.
19776 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
19777 win32-arm-low.c and wincecompat.c.
19778 (all:): Add $EXEEXT.
19779 (install-only:): Likewise.
19780 (gdbserver:): Likewise.
19781 (gdbreplay:): Likewise.
19782 * config.in: Regenerate.
19783 * configure: Regenerate.
19784
41093d81
PA
197852007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
19786
19787 * win32-low.c: Rename typedef thread_info to
19788 win32_thread_info throughout.
19789
544afa54
PA
197902007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
19791
19792 * win32-i386-low.c: Rename to ...
19793 * win32-low.c: ... this.
19794 * configure.srv: Replace win32-i386-low.o with win32-low.o.
19795 * Makefile.in: Likewise.
19796
bce7165d
PA
197972007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
19798
19799 * remote-utils.c (monitor_output): Constify msg parameter.
19800 * server.h (monitor_output): Likewise.
19801 * win32-i386-low.c (handle_output_debug_string): New.
19802 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
19803 handle_output_debug_string.
19804 (get_child_debug_event): Likewise.
19805
506c7aa0
DJ
198062007-03-27 Mat Hostetter <mat@lcs.mit.edu>
19807
19808 * server.c (main): Correct strtoul check.
19809
42c81e2a
DJ
198102007-03-27 Jon Ringle <jon@ringle.org>
19811
19812 * linux-low.c: Check __ARCH_HAS_MMU__ also.
19813
9453113a
DJ
198142007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
19815
19816 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
19817
64a69107
DJ
198182007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
19819
19820 * terminal.h: Check HAVE_SGTTY_H.
19821
198222007-02-27 Mat Hostetter <mat@lcs.mit.edu>
6f8486da
DJ
19823
19824 * remote-utils.c (remote_open): Print out the assigned port number.
19825
c74d0ad8
DJ
198262007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
19827
19828 * remote-utils.c (monitor_output): New function.
19829 * server.c (debug_threads): Define here.
19830 (monitor_show_help): New function.
19831 (handle_query): Handle qRcmd.
19832 (main): Do not handle 'd' packet.
19833 * server.h (debug_threads, remote_debug, monitor_output): Declare.
19834 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
19835 of debug_threads.
19836
de7c3b4a
PA
198372007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
19838
19839 * Makefile.in (EXEEXT): New.
19840 (clean): Use $(EXEEXT).
19841
ef57601b
PA
198422007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
19843
19844 * target.h (target_ops): Rename send_signal to request_interrupt,
19845 and remove enum target_signal parameter.
19846 * linux-low.c (linux_request_interrupt): Rename from
19847 linux_send_signal, and always send SIGINT.
19848 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
19849 and always send SIGINT.
19850 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
19851 of send_signal.
19852 (input_interrupt): Likewise.
19853
820f2bda
PA
198542007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
19855
19856 * server.c (get_features_xml): Check if target implemented
19857 arch_string.
19858 * win32-i386-low.c (win32_arch_string): New.
19859 (win32_target_ops): Add win32_arch_string as arch_string member.
19860
ab39bf24
UW
198612007-02-22 Markus Deuling <deuling@de.ibm.com>
19862
19863 * spu-low.c (spu_arch_string): New.
19864 (spu_target_ops): Add spu_arch_string.
19865
61ff6e04
DJ
198662007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
19867
19868 * remote-utils.c: Remove HAVE_TERMINAL_H check.
19869 * configure.ac: Do not check for terminal.h.
19870 * configure, config.in: Regenerated.
19871
fb1e4ffc
DJ
198722007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
19873
19874 * Makefile.in (OBS): Add $(XML_BUILTIN).
19875 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
19876 (clean): Update.
19877 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
19878 (arm-with-iwmmxt.c): New.
19879 * config.in, configure: Regenerate.
19880 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
19881 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
19882 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
19883 (arm*-*-linux*): Add iWMMXt and regset support.
19884 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
19885 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
19886 (arm_store_wmmxregset, target_regsets): New.
19887 * server.c (get_features_xml): Take annex argument. Check builtin
19888 XML documents.
19889 (handle_query): Handle multiple annexes.
19890
0f48aa01
DJ
198912007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
19892
19893 * remote-utils.c [USE_WIN32API] (read, write): Define.
19894 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
19895 write.
19896
23181151
DJ
198972007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
19898
19899 * linux-i386-low.c (the_low_target): Set arch_string.
19900 * linux-x86-64-low.c (the_low_target): Likewise.
19901 * linux-low.c (linux_arch_string): New.
19902 (linux_target_ops): Add it.
19903 * linux-low.h (struct linux_target_ops): Add arch_string.
19904 * server.c (write_qxfer_response): Use const void * for DATA.
19905 (get_features_xml): New.
19906 (handle_query): Handle qXfer:features:read. Report it for qSupported.
19907 * target.h (struct target_ops): Add arch_string method.
19908
9d606399
DJ
199092007-01-03 Denis Pilat <denis.pilat@st.com>
19910 Daniel Jacobowitz <dan@codesourcery.com>
19911
19912 * linux-low.c (linux_kill): Handle being called with no threads.
19913 * win32-i386-low.c (win32_kill): Likewise.
19914 (get_child_debug_event): Clear current_process_handle.
19915
199162006-12-30 Denis PILAT <denis.pilat@st.com>
8264bb58
DJ
19917 Daniel Jacobowitz <dan@codesourcery.com>
19918
19919 * remote-utils.c (remote_open): Check the type of specified
19920 serial port devices before opening them.
19921 * server.c (main): Kill the inferior if an error occurs during
19922 the first remote_open.
19923
a5e13d24
DJ
199242006-12-05 Markus Deuling <deuling@de.ibm.com>
19925
19926 * README: Update supported targets.
19927
186947f7
DJ
199282006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
19929
19930 * Makefile.in (clean): Remove reg-mips64.c.
19931 (reg-mips64.c, reg-mips64.o): New rules.
19932 * configure.srv: Handle mips64. Include regset support for mips.
19933 * linux-mips-low.c (union mips_register): New.
19934 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
19935 (mips_breakpoint, mips_breakpoint_at): Use int.
19936 (mips_collect_register, mips_supply_register)
19937 (mips_collect_register_32bit, mips_supply_register_32bit)
19938 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
19939 (mips_store_fpregset, target_regsets): New.
19940 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
19941
a13e2c95
UW
199422006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
19943
19944 * configure.srv: Add target "spu*-*-*".
19945 * Makefile.in (clean): Remove reg-spu.c.
19946 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
19947 * spu-low.c: New file.
19948
cb7283db
DJ
199492006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
19950
19951 * configure.ac: Correct td_thr_tls_get_addr test.
19952 * configure: Regenerated.
19953
89be2091
DJ
199542006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
19955
19956 * linux-low.c (linux_wait_for_event): Reformat. Use the
19957 pass_signals array.
19958 * remote-utils.c (decode_address_to_semicolon): New.
19959 * server.c (pass_signals, handle_general_set): New.
19960 (handle_query): Mention QPassSignals for qSupported.
19961 (main): Call handle_general_set.
19962 * server.h (pass_signals, decode_address_to_semicolon): New.
19963
000ef4f0
DJ
199642006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
19965
19966 * server.c (handle_query): Correct error handling for read_auxv.
19967
b7149293
UW
199682005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
19969
19970 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
19971 and srv_linux_thread_db to yes.
19972 * linux-s390-low.c (s390_fill_gregset): New function.
19973 (target_regsets): Define data structure.
19974
dae5f5cf
DJ
199752006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
19976
19977 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
19978 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
19979 * config.in, configure: Regenerated.
19980 * inferiors.c (gdb_id_to_thread): New function.
19981 (gdb_id_to_thread_id): Use it.
19982 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
19983 * linux-low.h (struct process_info): Add th member.
19984 (thread_db_get_tls_address): New prototype.
19985 * remote-utils.c (decode_address): Make non-static.
19986 * server.c (handle_query): Handle qGetTLSAddr.
19987 * server.h (gdb_id_to_thread, decode_address): New prototypes.
19988 * target.h (struct target_ops): Add get_tls_address.
19989 * thread-db.c (maybe_attach_thread): Save the thread handle.
19990 (thread_db_get_tls_address): New.
19991
32ca6d61
DJ
199922006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
19993
19994 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
19995 (linux_resume_one_process): Take a siginfo_t *. Update all
19996 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
19997 (struct pending_signals): Add a siginfo_t.
19998 (linux_wait_for_process): Always set last_status.
19999 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
20000 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
20001 * linux-low.h (struct process_info): Add last_status.
20002
5ffff7c1
DJ
200032006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
20004
20005 * remote-utils.c (try_rle): New function.
20006 (putpkt_binary): Use it.
20007
8695c747
DJ
200082006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
20009
20010 * Makefile.in (clean): Clean reg-x86-64-linux.c.
20011 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
20012 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
20013 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
20014 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
20015 point registers.
20016
290fadea
RS
200172006-08-08 Richard Sandiford <richard@codesourcery.com>
20018
20019 * server.c (terminal_fd): New variable.
20020 (old_foreground_pgrp): Likewise.
20021 (restore_old_foreground_pgrp): New function.
20022 (start_inferior): Record the terminal file descriptor in terminal_fd
20023 and its original foreground group in old_foreground_pgrp. Register
20024 restore_old_foreground_pgrp with atexit().
20025
9f2e1e63
DJ
200262006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
20027
20028 * server.c (handle_query): Correct qPart to qXfer.
20029
b80864fb
DJ
200302006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
20031
20032 * configure.ac: Check for more headers which are missing on
20033 Windows. Automatically supply -lwsock32 and USE_WIN32API.
20034 * configure.srv: Add Cygwin and mingw32.
20035 * remote-utils.c: Don't include headers unconditionally which
20036 are missing on mingw32. Include <winsock.h> for mingw32.
20037 (remote_open): Adjust for mingw32 support. Flush
20038 standard error after writing to it.
20039 (remote_close, putpkt_binary, input_interrupt, block_async_io)
20040 (unblock_async_io, enable_async_io, disable_async_io)
20041 (readchar, getpkt): Update for Winsock support.
20042 (prepare_resume_reply): Expect a protocol signal number.
20043 * server.c: Disable <sys/wait.h> on mingw32.
20044 (start_inferior): Adjust for mingw32 support. Flush
20045 standard error after writing to it.
20046 (attach_inferior): Likewise. Use protocol signal
20047 numbers.
20048 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
20049 and names.
20050 * win32-i386-low.c: New file.
20051 * Makefile.in (XM_CLIBS): Set.
20052 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
20053 (win32-i386-low.o): New dependency rule.
20054 * linux-low.c (linux_wait): Use target signal numbers.
20055 * target.h (struct target_ops): Doc fix.
20056 * server.h (target_signal_to_name): New prototype.
20057 * gdbreplay.c: Don't include headers unconditionally which
20058 are missing on mingw32. Include <winsock.h> for mingw32.
20059 (remote_close, remote_open): Adjust for Winsock support.
20060 * configure, config.in: Regenerated.
20061
0876f84a
DJ
200622006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20063
20064 * server.c (decode_xfer_read, write_qxfer_response): New.
20065 (handle_query): Take a packet length argument. Handle
20066 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
20067 the qSupported response.
20068 (main): Update call to handle_query.
20069
01f9e8fa
DJ
200702006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
20071
20072 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
20073 (putpkt_binary): Renamed from putpkt and adjusted for binary
20074 data.
20075 (putpkt): New wrapper for putpkt_binary.
20076 (readchar): Don't mask off the high bit.
20077 (decode_X_packet): New function.
20078 * server.c (main): Call putpkt_binary if a handler sets the packet
20079 length. Save the length of the incoming packet. Handle 'X'.
20080 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
20081
be2a5f71
DJ
200822006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
20083
20084 * server.c (handle_query): Handle qSupported.
20085
ea025f5f
DJ
200862006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
20087
20088 * remote-utils.c (all_symbols_looked_up): New variable.
20089 (look_up_one_symbol): Check it.
20090 * server.h (look_up_one_symbol): New declaration.
20091 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
20092
9308fc88
DJ
200932006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
20094
20095 * Makefile.in (linux-arm-low.o): Update dependencies.
66f338c7 20096 * linux-arm-low.c: Include "gdb_proc_service.h".
9308fc88
DJ
20097 (PTRACE_GET_THREAD_AREA): Define.
20098 (ps_get_thread_area): New function.
20099
52fb6437
NS
201002006-05-09 Nathan Sidwell <nathan@codesourcery.com>
20101
20102 * configure.srv (m68k*-*-uclinux*): New target.
20103 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
20104 (linux_resume_one_process): Remove extraneous cast.
20105 (linux_read_offsets): New.
20106 (linux_target_op): Add linux_read_offsets on mmuless systems.
20107 * server.c (handle_query): Add qOffsets logic.
20108 * target.h (struct target_ops): Add read_offsets.
20109
21b0f40c
DJ
201102006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
20111
20112 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
20113 (PTRACE_GET_THREAD_AREA): Define.
20114 (ps_get_thread_area): New function.
20115 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
20116 (linux-x86-64-low.o): Update.
20117
0050a760
DJ
201182006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
20119
20120 * configure.ac: Remove checks for prfpregset_t.
20121 * gdb_proc_service.h: New file.
20122 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
20123 new "gdb_proc_service.h".
20124 * proc-service.c: Likewise.
20125 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
20126 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
20127 * Makefile.in (gdb_proc_service_h): Updated.
20128 * configure, config.in: Regenerated.
20129
b92a518e
DJ
201302006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
20131
20132 * remote-utils.c (prepare_resume_reply): Move declaration
20133 of gdb_id_from_wait to the top of the block.
20134
545587ee
DJ
201352006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
20136
20137 * linux-low.c (regsets_store_inferior_registers): Read the regset
20138 from the target before filling it.
20139
9db87ebd
DJ
201402006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
20141
20142 * server.c (attach_inferior): Return SIGTRAP for a successful
20143 attach.
20144
dd24457d
DJ
201452006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
20146
20147 * Makefile.in (OBS): Add version.o.
20148 (STAGESTUFF): Delete.
20149 (version.o): Add dependencies.
20150 (version.c): Replace rule.
20151 (clean): Remove version.c.
20152 * server.c (gdbserver_version): New.
20153 (gdbserver_usage): Use printf.
20154 (main): Handle --version and --help.
20155 * server.h (version, host_name): Add declarations.
20156
6f0f660e
EZ
201572005-12-23 Eli Zaretskii <eliz@gnu.org>
20158
889bf7c5
PA
20159 * linux-arm-low.c:
20160 * linux-arm-low.c:
20161 * inferiors.c:
20162 * i387-fp.h:
20163 * i387-fp.c:
20164 * gdbreplay.c:
20165 * regcache.c:
20166 * proc-service.c:
20167 * mem-break.h:
20168 * mem-break.c:
20169 * linux-x86-64-low.c:
20170 * linux-sh-low.c:
20171 * linux-s390-low.c:
20172 * linux-ppc64-low.c:
20173 * linux-ppc-low.c:
20174 * linux-mips-low.c:
20175 * linux-m68k-low.c:
20176 * linux-m32r-low.c:
20177 * linux-low.h:
20178 * linux-low.c:
20179 * linux-ia64-low.c:
20180 * linux-i386-low.c:
20181 * linux-crisv32-low.c:
20182 * thread-db.c:
20183 * terminal.h:
20184 * target.h:
20185 * target.c:
20186 * server.h:
20187 * server.c:
20188 * remote-utils.c:
20189 * regcache.h:
20190 * utils.c:
20191 * Makefile.in:
20192 * configure.ac:
6f0f660e
EZ
20193 * gdbserver.1: Add (C) after Copyright. Update the FSF
20194 address.
20195
9d1fb177
DJ
201962005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
20197
20198 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
20199 (arm_breakpoint_at): Recognize both breakpoints.
20200 (the_low_target): Use the correct breakpoint instruction.
20201
011a70c2
DJ
202022005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
20203
20204 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
20205 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
20206 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
20207 (the_low_target): Update.
20208
7fb85e41
AS
202092005-10-25 Andreas Schwab <schwab@suse.de>
20210
20211 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
20212
20213 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
20214 (ia64_num_regs): Reduce to 462.
20215
3db0444b
DJ
202162005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
20217
20218 * acinclude.m4: Correct quoting.
20219 * aclocal.m4: Regenerated.
20220
20221 Suggested by SZOKOVACS Robert <szo@ies.hu>:
20222 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
20223 (thread_db_init): Call thread_db_err_str.
20224 * configure.ac: Check for TD_VERSION.
20225 * config.in, configure: Regenerated.
20226
bee0189a
DJ
202272005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20228
20229 * server.h (error, fatal, warning): Add ATTR_FORMAT.
20230
e9d25b98
DJ
202312005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
20232
20233 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
20234 is not available. Define HAVE_PTRACE_GETREGS if it is.
20235 * config.in, configure: Regenerated.
20236 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
20237 * linux-i386-low.c, linux-m68k-low.c: Update to use
20238 HAVE_PTRACE_GETREGS.
20239 * linux-low.c (regsets_fetch_inferior_registers)
20240 (regsets_store_inferior_registers): Only return 0 if we processed
20241 GENERAL_REGS.
20242 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
20243 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
20244
a06660f7
DJ
202452005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
20246
20247 * inferiors.c (struct thread_info): Add gdb_id.
20248 (add_thread): Add gdb_id argument.
20249 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
20250 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
20251 calls to add_thread.
20252 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
20253 * server.c (handle_query): Use thread_to_gdb_id.
20254 (handle_v_cont, main): Use gdb_id_to_thread_id.
20255 * server.h (add_thread): Update prototype.
20256 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
20257 prototypes.
20258
5a1f5858
DJ
202592005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
20260
20261 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
20262 left-padded registers.
20263 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
20264 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
20265
e122f1f5
SE
202662005-07-01 Steve Ellcey <sje@cup.hp.com>
20267
20268 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
20269 * configure: Regenerate.
20270 * config.in: Regenerate.
20271 * server.h (NEED_DECLARATION_STRERROR):
20272 Replace with !HAVE_DECL_STRERROR.
20273
d592fa2f
DJ
202742005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
20275
20276 * linux-low.c (linux_wait, linux_send_signal): Don't test
20277 an unsigned long variable for > 0 if it could be MAX_ULONG.
20278 * server.c (myresume): Likewise.
20279 * target.c (set_desired_inferior): Likewise.
20280
ccbd4912
MK
202812005-06-13 Mark Kettenis <kettenis@gnu.org>
20282
20283 * configure.ac: Simplify and improve check for socklen_t.
20284 * configure, config.in: Regenerate.
20285
f450004a
DJ
202862005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
20287
20288 * acconfig.h: Remove.
20289 * configure.ac: Add a test for socklen_t. Use three-argument
20290 AC_DEFINE throughout.
20291 * config.in: Regenerated using autoheader 2.59.
20292 * configure: Regenerated.
20293
20294 * gdbreplay.c (socklen_t): Provide a default.
20295 (remote_open): Use socklen_t.
20296 * remote-utils.c (socklen_t): Provide a default.
20297 (remote_open): Use socklen_t.
20298 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
20299 unsigned char.
20300
20301 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
20302 char for buffers.
20303 * linux-low.c (linux_read_memory, linux_write_memory)
20304 (linux_read_auxv): Likewise.
20305 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
20306 (check_mem_write): Likewise.
20307 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
20308 Likewise.
20309 * regcache.c (struct inferior_rgcache_data, registers_to_string)
20310 (registers_from_string, register_data): Likewise.
20311 * server.c (handle_query, main): Likewise.
20312 * server.h (convert_ascii_to_int, convert_int_to_ascii)
20313 (decode_M_packet): Likewise.
20314 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
20315 * target.h (struct target_ops): Update read_memory, write_memory,
20316 and read_auxv.
20317 (read_inferior_memory, write_inferior_memory): Update.
20318 * linux-low.h (struct linux_target_ops): Change type of breakpoint
20319 to unsigned char *.
20320 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
20321 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
20322 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
20323 linux-s390-low.c, linux-sh-low.c: Update for changes in
20324 read_inferior_memory and the_low_target->breakpoint.
20325
eee84df1
DJ
203262005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
20327
20328 * Makefile.in (SFILES): Add linux-ppc64-low.c.
20329 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
20330 * configure.srv: Add powerpc64-*-linux*.
20331 * linux-ppc64-low.c: New file.
20332
45b134e5
OF
203332005-05-23 Orjan Friberg <orjanf@axis.com>
20334
20335 * linux-cris-low.c: New file with support for CRIS.
20336 * linux-crisv32-low.c: Ditto for CRISv32.
20337 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
20338 (clean): Add reg-cris.c and reg-crisv32.c.
889bf7c5 20339 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
45b134e5
OF
20340 reg-crisv32.o, and reg-crisv32.c to make rules.
20341 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
20342 recognized targets.
20343
48d93c75
UW
203442005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
20345
20346 * linux-low.c (fetch_register): Ensure buffer size is a multiple
20347 of sizeof (PTRACE_XFER_TYPE).
20348 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
20349
e013ee27
OF
203502005-05-12 Orjan Friberg <orjanf@axis.com>
20351
889bf7c5 20352 * target.h (struct target_ops): Add insert_watchpoint,
e013ee27
OF
20353 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
20354 pointers for hardware watchpoint support.
20355 * linux-low.h (struct linux_target_ops): Ditto.
20356 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
20357 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
20358 to linux_target_ops.
20359 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
20360 reply packet.
20361 * server.c (main): Recognize 'Z' and 'z' packets.
20362
b0ded00b
UW
203632005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
20364
20365 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
20366 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
20367 (the_low_target): Add new members.
20368
8643e2ad
DJ
203692005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
20370
20371 * proc-service.c (ps_lgetregs): Search all_processes instead of
20372 all_threads.
20373
fc620387
DJ
203742005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
20375
20376 * server.c (start_inferior): Change return type to int.
20377 (attach_inferior): Change sigptr to int *.
20378 (handle_v_cont, handle_v_requests): Change signal to int *.
20379 (main): Change signal to int.
20380
203812005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
7cfbc4a0
KI
20382
20383 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
20384 * configure.srv: Add m32r*-*-linux*.
20385 * linux-m32r-low.c: New file.
20386
e0e76420
DJ
203872005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
20388
20389 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
20390
a1928bad
DJ
203912005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
20392
20393 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
20394 Take unsigned long arguments for PIDs.
20395 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
20396 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
20397 (wait_for_sigstop, linux_resume_one_process)
20398 (regsets_fetch_inferior_registers, linux_send_signal)
20399 (linux_read_auxv): Likewise. Update the types of variables holding
20400 PIDs. Update format string specifiers.
20401 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
20402 * remote-utils.c (prepare_resume_reply): Likewise.
20403 * server.c (cont_thread, general_thread, step_thread)
20404 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
20405 unsigned long.
20406 (handle_query): Update format specifiers.
20407 (handle_v_cont, main): Use strtoul for thread IDs.
20408 * server.h (struct inferior_list_entry): Use unsigned long for ID.
20409 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
20410 (general_thread, step_thread, thread_from_wait)
20411 (old_thread_from_wait): Update.
20412 * target.h (struct thread_resume): Use unsigned long for THREAD.
20413 (struct target_ops): Use unsigned long for arguments to attach and
20414 thread_alive.
20415
dcdb98d2
DJ
204162005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
20417
20418 * acinclude.m4: Include bfd/bfd.m4 directly.
20419 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
20420 <agriffis@toolchain.org>.
20421 * aclocal.m4, configure: Regenerated.
20422
bec39cab
AC
204232005-01-07 Andrew Cagney <cagney@gnu.org>
20424
20425 * configure.ac: Rename configure.in, require autoconf 2.59.
20426 * configure: Re-generate.
20427
434c4c77
DJ
204282004-12-08 Daniel Jacobowitz <dan@debian.org>
20429
20430 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
20431 LIBS when finished.
20432 * aclocal.m4: Regenerated.
20433 * configure: Regenerated.
20434
db1d3e1b
AS
204352004-11-21 Andreas Schwab <schwab@suse.de>
20436
20437 * linux-m68k-low.c (m68k_num_gregs): Define.
20438 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
20439 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
20440 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
20441 (m68k_breakpoint_at): New. Add to the_low_target.
20442
20443 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
20444 srv_linux_thread_db to yes.
20445
43360365
JB
204462004-10-20 Joel Brobecker <brobecker@gnat.com>
20447
20448 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
20449 (ARCH_SET_FS): Likewise.
20450 (ARCH_GET_FS): Likewise.
20451 (ARCH_GET_GS): Likewise.
20452
fd500816
DJ
204532004-10-16 Daniel Jacobowitz <dan@debian.org>
20454
20455 * linux-i386-low.c (ps_get_thread_area): New.
20456 * linux-x86-64-low.c (ps_get_thread_area): New.
20457 * linux-low.c: Include <sys/syscall.h>.
20458 (linux_kill_one_process): Don't kill the first thread here.
20459 (linux_kill): Kill the first thread here.
20460 (kill_lwp): New function.
20461 (send_sigstop, linux_send_signal): Use it.
20462 * proc-service.c: Clean up #ifdefs.
20463 (fpregset_info): Delete.
20464 (ps_lgetregs): Update and enable implementation.
20465 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
20466 implementations.
20467 * remote-utils.c (struct sym_cache, symbol_cache): New.
20468 (input_interrupt): Print a clearer message.
20469 (async_io_enabled): New variable.
20470 (enable_async_io, disable_async_io): Use it. Update comments.
20471 (look_up_one_symbol): Use the symbol cache.
20472 * thread-db.c (thread_db_look_up_symbols): New function.
20473 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
20474
f6de3c42
DJ
204752004-10-16 Daniel Jacobowitz <dan@debian.org>
20476
20477 * configure.in: Test for -rdynamic.
20478 * configure: Regenerated.
20479 * Makefile (INTERNAL_LDFLAGS): New.
20480 (gdbserver, gdbreplay): Use it.
20481
2c0fc042
AC
204822004-09-02 Andrew Cagney <cagney@gnu.org>
20483
20484 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
20485
075b3282
DJ
204862004-03-23 Daniel Jacobowitz <drow@mvista.com>
20487
20488 * linux-low.c (linux_wait): Clear all_processes list also.
20489
fa6a77dc
DJ
204902004-03-12 Daniel Jacobowitz <drow@mvista.com>
20491
20492 * linux-low.c: Include <errno.h>. Remove extern declaration of
20493 errno.
20494
6d782a97
DJ
204952004-03-12 Daniel Jacobowitz <drow@mvista.com>
20496
20497 * gdbreplay.c, server.h, utils.c: Update copyright years.
20498
3a7fb99b
DJ
204992004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
20500
20501 * server.c (main): Print child status or termination signal from
20502 variable 'signal', not 'sig'.
20503
c3e735a6
DJ
205042004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
20505
20506 * linux-low.c (linux_read_memory): Change return type to
20507 int. Check for and return error from ptrace().
20508 * target.c (read_inferior_memory): Change return type to int. Pass
20509 back return status from the_target->read_memory().
20510 * target.h (struct target_ops): Adapt *read_memory() prototype.
20511 Update comment.
20512 (read_inferior_memory): Adapt prototype.
20513 * server.c (main): Return an error packet if
20514 read_inferior_memory() returns an error.
20515
a59d1c82
DJ
205162004-03-04 Daniel Jacobowitz <drow@mvista.com>
20517
20518 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
20519 Unify with other clean targets.
20520
dc3f8883
DJ
205212004-02-29 Daniel Jacobowitz <drow@mvista.com>
20522
20523 * server.c (handle_v_cont): Call set_desired_inferior.
20524
89a208da
DJ
205252004-02-29 Daniel Jacobowitz <drow@mvista.com>
20526
20527 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
20528
62ea82f5
DJ
205292004-02-29 Daniel Jacobowitz <drow@mvista.com>
20530
20531 * linux-low.c (linux_wait): Unblock async I/O.
20532 (linux_resume): Block and enable async I/O.
20533 * remote-utils.c (block_async_io, unblock_async_io): New functions.
20534 * server.h (block_async_io, unblock_async_io): Add prototypes.
20535
6910d122
DJ
205362004-02-29 Daniel Jacobowitz <drow@mvista.com>
20537
20538 * remote-utils.c (remote_open): Print a status notice after
20539 opening a TCP port.
20540 * server.c (attach_inferior): Print a status notice after
20541 attaching.
20542
205432004-02-29 Daniel Jacobowitz <drow@mvista.com>
d677d77d
DJ
20544
20545 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
20546
c89dc5d4
DJ
205472004-02-26 Daniel Jacobowitz <drow@mvista.com>
20548
20549 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
20550 error packet.
20551 * server.c, target.h: Update copyright years.
20552
4b8dad4a
RM
205532004-02-25 Roland McGrath <roland@redhat.com>
20554
20555 * target.h (struct target_ops): New member `read_auxv'.
20556 * server.c (handle_query): Handle qPart:auxv:read: query using that.
20557 * linux-low.c (linux_read_auxv): New function.
20558 (linux_target_ops): Initialize `read_auxv' member to that.
20559
d7446758
JB
205602004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20561
20562 Committed by Jim Blandy <jimb@redhat.com>.
20563
20564 * linux-s390-low.c (s390_num_regs): Update.
4b8dad4a 20565 (s390_regmap): Remove control registers. Use __s390x__ predefine
d7446758
JB
20566 instead of GPR_SIZE to distiguish s390 and s390x targets.
20567
5544ad89
DJ
205682004-01-31 Daniel Jacobowitz <drow@mvista.com>
20569
20570 * linux-low.c: Update copyright year.
20571 (check_removed_breakpoint): Clear pending_is_breakpoint.
20572 (linux_set_resume_request, linux_queue_one_thread)
20573 (resume_status_pending_p): New functions.
20574 (linux_continue_one_thread): Use process->resume.
20575 (linux_resume): Only resume threads if there are no pending events.
20576 * linux-low.h (struct process_info): Add resume request
20577 pointer.
20578
2a68b70e
DJ
205792004-01-30 Daniel Jacobowitz <drow@mvista.com>
20580
20581 * regcache.c (new_register_cache): Clear the allocated register
20582 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
20583
64386c31
DJ
205842003-10-13 Daniel Jacobowitz <drow@mvista.com>
20585
20586 * linux-low.c (linux_resume): Take a struct thread_resume *
20587 argument.
20588 (linux_wait): Update call.
20589 (resume_ptr): New static variable.
20590 (linux_continue_one_thread): Renamed from
20591 linux_continue_one_process. Use resume_ptr.
20592 (linux_resume): Use linux_continue_one_thread.
20593 * server.c (handle_v_cont, handle_v_requests): New functions.
20594 (myresume): New function.
20595 (main): Handle 'v' case.
20596 * target.h (struct thread_resume): New type.
20597 (struct target_ops): Change argument of "resume" to struct
20598 thread_resume *.
20599 (myresume): Delete macro.
20600
c938e9b0
L
206012003-08-08 H.J. Lu <hongjiu.lu@intel.com>
20602
20603 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
20604 (uninstall): Support DESTDIR.
20605
7f313d07
BC
20606Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
20607
20608 * configure.srv: Add xscale*linux copy of arm*linux entry.
20609
3b2fc2ea
DJ
206102003-07-24 Daniel Jacobowitz <drow@mvista.com>
20611
20612 * linux-arm-low.c (arm_reinsert_addr): New function.
20613 (the_low_target): Add arm_reinsert_addr.
20614
1c0a559e
MK
206152003-07-08 Mark Kettenis <kettenis@gnu.org>
20616
20617 * mem-break.c: Remove whitespace at end of file.
20618
43d5792c
DJ
206192003-06-28 Daniel Jacobowitz <drow@mvista.com>
20620
20621 * configure.in: Check whether we need to prototype strerror.
20622 * server.h: Optionally prototype strerror.
20623 * gdbreplay.c (perror_with_name): Use strerror.
20624 * linux-low.c (linux_attach_lwp): Use strerror.
20625 * utils.c (perror_with_name): Use strerror.
20626 * config.in, configure: Regenerated.
20627
c8a86edf
DJ
206282003-06-28 Daniel Jacobowitz <drow@mvista.com>
20629
20630 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
20631 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
20632
73d37363
DJ
206332003-06-20 Daniel Jacobowitz <drow@mvista.com>
20634
20635 * Makefile.in (SFILES): Update.
20636 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
20637 low-sun3.c: Remove files.
20638
6ad8ae5c
DJ
206392003-06-17 Daniel Jacobowitz <drow@mvista.com>
20640
20641 * linux-low.c: Move comment to linux_thread_alive where it belonged.
20642 (linux_detach_one_process, linux_detach): New functions.
20643 (linux_target_ops): Add linux_detach.
20644 * server.c (main): Handle 'D' packet.
20645 * target.h (struct target_ops): Add "detach" member.
20646 (detach_inferior): Define.
20647
1581182a
MK
206482003-06-13 Mark Kettenis <kettenis@gnu.org>
20649
20650 From Kelley Cook <kelleycook@wideopenwest.com>:
20651 * configure.srv: Accept i[34567]86 variants.
20652
e5379b03
DJ
206532003-06-05 Daniel Jacobowitz <drow@mvista.com>
20654
20655 * linux-low.c (linux_wait_for_event): Correct comment typos.
20656 (linux_resume_one_process): Call check_removed_breakpoint.
20657 (linux_send_signal): New function.
20658 (linux_target_ops): Add linux_send_signal.
20659 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
20660 of kill.
20661 * target.h (struct target_ops): Add send_signal.
20662
2ff29de4
JB
206632003-05-29 Jim Blandy <jimb@redhat.com>
20664
20665 * linux-low.c (usr_store_inferior_registers): Transfer buf in
20666 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
20667 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
20668 away part of the register's value.
20669
254787d4
DJ
206702003-03-26 Daniel Jacobowitz <drow@mvista.com>
20671
20672 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
20673 (linux_wait_for_event, linux_init_signals): Likewise.
20674
94e10508
DJ
206752003-03-17 Daniel Jacobowitz <drow@mvista.com>
20676
20677 * configure.in: Check for stdlib.h.
20678 * configure: Regenerated.
20679 * config.in: Regenerated.
20680
4c0711e0
DJ
206812003-01-04 Andreas Schwab <schwab@suse.de>
20682
20683 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
20684
ef66e766
AC
206852003-01-02 Andrew Cagney <ac131313@redhat.com>
20686
20687 * Makefile.in: Remove obsolete code.
20688
a1358604
DJ
206892002-11-20 Daniel Jacobowitz <drow@mvista.com>
20690
20691 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
20692 defined(PT_FPR0_HI).
20693
23ce3b1c
DJ
206942002-11-17 Stuart Hughes <seh@zee2.com>
20695
20696 * linux-arm-low.c (arm_num_regs): Increase.
20697 (arm_regmap): Include status register.
20698
206992002-11-17 Daniel Jacobowitz <drow@mvista.com>
20700
20701 * linux-low.c (register_addr): Remove incorrect -1 check.
20702
a9fa9f7d
DJ
207032002-08-29 Daniel Jacobowitz <drow@mvista.com>
20704
20705 * linux-low.c (linux_create_inferior): Call setpgid. Return
20706 the new PID.
20707 (unstopped_p, linux_signal_pid): Remove.
20708 (linux_target_ops): Remove linux_signal_pid.
20709 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
20710 global instead of target method.
20711 * target.h (struct target_ops): Remove signal_pid. Update comment
20712 for create_inferior.
20713 * server.c (signal_pid): New variable.
20714 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
4b8dad4a 20715 gdbserver. Set the child to be the foreground process group.
a9fa9f7d
DJ
20716 (attach_inferior): Set signal_pid.
20717
17574093
DJ
207182002-08-23 Daniel Jacobowitz <drow@mvista.com>
20719
20720 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
20721
207222002-08-20 Jim Blandy <jimb@redhat.com>
20723
20724 * Makefile.in (LDFLAGS): Allow the configure script to establish a
20725 default for this.
20726
207272002-08-01 Andrew Cagney <cagney@redhat.com>
20728
20729 * Makefile.in: Make chill references obsolete.
20730
207312002-07-24 Kevin Buettner <kevinb@redhat.com>
20732
20733 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
20734 * configure: Regenerate.
20735 * config.in: Regenerate.
20736
207372002-07-09 David O'Brien <obrien@FreeBSD.org>
20738
20739 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
20740 (perror_with_name, remote_close, remote_open, expect, play): Static.
20741
207422002-07-04 Michal Ludvig <mludvig@suse.cz>
20743
4b8dad4a 20744 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
17574093
DJ
20745 byte offsets instead of an array of indexes.
20746 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
20747
207482002-06-13 Daniel Jacobowitz <drow@mvista.com>
20749
20750 * regcache.c: Add comment.
20751
207522002-06-11 Daniel Jacobowitz <drow@mvista.com>
20753
20754 * thread-db.c: New file.
20755 * proc-service.c: New file.
20756 * acinclude.m4: New file.
20757 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
20758 proc-service.o, and thread-db.o.
20759 (linux-low.o): Add USE_THREAD_DB.
20760 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
20761 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
20762 * aclocal.m4: Regenerated.
20763 * config.in: Regenerated.
20764 * configure: Regenerated.
20765 * configure.in: Check for proc_service.h, sys/procfs.h,
20766 thread_db.h, and linux/elf.h headrs.
20767 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
20768 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
20769 Check for -lthread_db and thread support.
20770 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
20771 PowerPC, and SuperH.
20772 * i387-fp.c: Constify arguments.
20773 * i387-fp.h: Likewise.
20774 * inferiors.c: (struct thread_info): Renamed from
20775 `struct inferior_info'. Remove PID member. Use generic inferior
20776 list header. All uses updated.
20777 (inferiors, signal_pid): Removed.
20778 (all_threads): New variable.
20779 (get_thread): Define.
20780 (add_inferior_to_list): New function.
20781 (for_each_inferior): New function.
20782 (change_inferior_id): New function.
20783 (add_inferior): Removed.
20784 (remove_inferior): New function.
20785 (add_thread): New function.
20786 (free_one_thread): New function.
20787 (remove_thread): New function.
20788 (clear_inferiors): Use for_each_inferior and free_one_thread.
20789 (find_inferior): New function.
20790 (find_inferior_id): New function.
20791 (inferior_target_data): Update argument type.
20792 (set_inferior_target_data): Likewise.
20793 (inferior_regcache_data): Likewise.
20794 (set_inferior_regcache_data): Likewise.
20795 * linux-low.c (linux_bp_reinsert): Remove.
20796 (all_processes, stopping_threads, using_thrads)
20797 (struct pending_signals, debug_threads, pid_of): New.
20798 (inferior_pid): Replace with macro.
20799 (struct inferior_linux_data): Remove.
20800 (get_stop_pc, add_process): New functions.
20801 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
20802 Use add_process and add_thread.
20803 (linux_attach_lwp): New function, based on old linux_attach. Use
20804 add_process and add_thread. Set stop_expected for new threads.
20805 (linux_attach): New function.
20806 (linux_kill_one_process): New function.
20807 (linux_kill): Kill all LWPs.
20808 (linux_thread_alive): Use find_inferior_id.
20809 (check_removed_breakpoints, status_pending_p): New functions.
20810 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
20811 Update. Use WNOHANG. Wait for cloned processes also. Update process
20812 struct for the found process.
20813 (linux_wait_for_event): New function.
20814 (linux_wait): Use it. Support LWPs.
20815 (send_sigstop, wait_for_sigstop, stop_all_processes)
20816 (linux_resume_one_process, linux_continue_one_process): New functions.
20817 (linux_resume): Support LWPs.
20818 (REGISTER_RAW_SIZE): Remove.
20819 (fetch_register): Use register_size instead. Call supply_register.
20820 (usr_store_inferior_registers): Likewise. Call collect_register.
20821 Fix recursive case.
20822 (regsets_fetch_inferior_registers): Improve error message.
20823 (regsets_store_inferior_registers): Add debugging.
20824 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
20825 (unstopped_p, linux_signal_pid): New functions.
20826 (linux_target_ops): Add linux_signal_pid.
20827 (linux_init_signals): New function.
20828 (initialize_low): Call it. Initialize using_threads.
20829 * regcache.c (inferior_regcache_data): Add valid
20830 flag.
20831 (get_regcache): Fetch registers lazily. Add fetch argument
20832 and update all callers.
20833 (regcache_invalidate_one, regcache_invalidate): New
20834 functions.
20835 (new_register_cache): Renamed from create_register_cache.
20836 Return the new regcache.
20837 (free_register_cache): Change argument to a void *.
20838 (registers_to_string, registers_from_string): Call get_regcache
20839 with fetch flag set.
20840 (register_data): Make static. Pass fetch flag to get_regcache.
20841 (supply_register): Call get_regcache with fetch flag clear.
20842 (collect_register): Call get_regcache with fetch flag set.
20843 (collect_register_as_string): New function.
20844 * regcache.h: Update.
20845 * remote-utils.c (putpkt): Flush after debug output and use
20846 stderr.
20847 Handle input interrupts while waiting for an ACK.
20848 (input_interrupt): Use signal_pid method.
20849 (getpkt): Flush after debug output and use stderr.
20850 (outreg): Use collect_register_as_string.
20851 (new_thread_notify, dead_thread_notify): New functions.
20852 (prepare_resume_reply): Check using_threads. Set thread_from_wait
20853 and general_thread.
20854 (look_up_one_symbol): Flush after debug output.
20855 * server.c (step_thread, server_waiting): New variables.
20856 (start_inferior): Don't use signal_pid. Update call to mywait.
20857 (attach_inferior): Update call to mywait.
20858 (handle_query): Handle qfThreadInfo and qsThreadInfo.
20859 (main): Don't fetch/store registers explicitly. Use
20860 set_desired_inferior. Support proposed ``Hs'' packet. Update
20861 calls to mywait.
20862 * server.h: Update.
20863 (struct inferior_list, struct_inferior_list_entry): New.
20864 * target.c (set_desired_inferior): New.
20865 (write_inferior_memory): Constify.
20866 (mywait): New function.
20867 * target.h: Update.
20868 (struct target_ops): New signal_pid method.
20869 (mywait): Removed macro, added prototype.
20870
20871 * linux-low.h (regset_func): Removed.
20872 (regset_fill_func, regset_store_func): New.
20873 (enum regset_type): New.
20874 (struct regset_info): Add type field. Use new operation types.
20875 (struct linux_target_ops): stop_pc renamed to get_pc.
20876 Add decr_pc_after_break and breakpoint_at.
20877 (get_process, get_thread_proess, get_process_thread)
20878 (strut process_info, all_processes, linux_attach_lwp)
20879 (thread_db_init): New.
20880
20881 * linux-arm-low.c (arm_get_pc, arm_set_pc,
20882 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
20883 (the_low_target): Add new members.
20884 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
20885 (i386_store_fpxregset): Constify.
20886 (target_regsets): Add new kind identifier.
20887 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
20888 (i386_set_pc): Add debugging.
20889 (i386_breakpoint_at): New function.
20890 (the_low_target): Add new members.
20891 * linux-mips-low.c (mips_get_pc, mips_set_pc)
20892 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
20893 (mips_breakpoint_at): New.
20894 (the_low_target): Add new members.
20895 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
20896 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
20897 (the_low_target): Add new members.
20898 * linux-sh-low.c (sh_get_pc, sh_set_pc)
20899 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
20900 (the_low_target): Add new members.
20901 * linux-x86-64-low.c (target_regsets): Add new kind
20902 identifier.
20903
209042002-05-15 Daniel Jacobowitz <drow@mvista.com>
20905
20906 From Martin Pool <mbp@samba.org>:
20907 * server.c (gdbserver_usage): New function.
20908 (main): Call it.
20909
209102002-05-14 Daniel Jacobowitz <drow@mvista.com>
20911
20912 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
20913 stop_at -> stop_pc.
20914
209152002-05-04 Andrew Cagney <ac131313@redhat.com>
20916
20917 * Makefile.in: Remove obsolete code.
20918
209192002-04-24 Michal Ludvig <mludvig@suse.cz>
20920
20921 * linux-low.c (regsets_fetch_inferior_registers),
20922 (regsets_store_inferior_registers): Removed cast to int from
20923 ptrace() calls.
20924 * regcache.h: Added declaration of struct inferior_info.
20925
209262002-04-20 Daniel Jacobowitz <drow@mvista.com>
20927
20928 * inferiors.c (struct inferior_info): Add regcache_data.
20929 (add_inferior): Call create_register_cache.
20930 (clear_inferiors): Call free_register_cache.
20931 (inferior_regcache_data, set_inferior_regcache_data): New functions.
20932 * regcache.c (struct inferior_regcache_data): New.
20933 (registers): Remove.
20934 (get_regcache): New function.
20935 (create_register_cache, free_register_cache): New functions.
20936 (set_register_cache): Don't initialize the register cache here.
20937 (registers_to_string, registers_from_string, register_data): Call
20938 get_regcache.
20939 * regcache.h: Add prototypes.
20940 * server.h: Likewise.
20941
209422002-04-20 Daniel Jacobowitz <drow@mvista.com>
20943
20944 * mem-break.c: New file.
20945 * mem-break.h: New file.
20946 * Makefile.in: Add mem-break.o rule; update server.h
20947 dependencies.
20948 * inferiors.c (struct inferior_info): Add target_data
20949 member.
20950 (clear_inferiors): Free target_data member if set.
20951 (inferior_target_data, set_inferior_target_data): New functions.
20952 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
20953 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
20954 * linux-low.c (linux_bp_reinsert): New variable.
20955 (struct inferior_linux_data): New.
20956 (linux_create_inferior): Use set_inferior_target_data.
20957 (linux_attach): Likewise. Call add_inferior.
20958 (linux_wait_for_one_inferior): New function.
20959 (linux_wait): Call it.
20960 (linux_write_memory): Add const.
20961 (initialize_low): Call set_breakpoint_data.
20962 * linux-low.h (struct linux_target_ops): Add breakpoint
20963 handling members.
20964 * server.c (attach_inferior): Remove extra add_inferior
20965 call.
20966 * server.h: Include mem-break.h. Update inferior.c
20967 prototypes.
20968 * target.c (read_inferior_memory)
20969 (write_inferior_memory): New functions.
20970 * target.h (read_inferior_memory)
20971 (write_inferior_memory): Change macros to prototypes.
20972 (struct target_ops): Update comments. Add const to write_memory
20973 definition.
20974
209752002-04-11 Daniel Jacobowitz <drow@mvista.com>
20976
20977 * linux-low.c (usr_store_inferior_registers): Support
20978 registers which are allowed to fail to store.
20979 * linux-low.h (linux_target_ops): Likewise.
20980 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
20981 (ppc_cannot_store_register): FPSCR may not be storable.
20982
209832002-04-09 Daniel Jacobowitz <drow@mvista.com>
20984
20985 * server.h: Include <string.h> if HAVE_STRING_H.
20986 * ChangeLog: Correct paths in last ChangeLog entry.
20987
209882002-04-09 Daniel Jacobowitz <drow@mvista.com>
20989
20990 * linux-low.h: Remove obsolete prototypes.
20991 (struct linux_target_ops): New.
20992 (extern the_low_target): New.
20993 * linux-low.c (num_regs, regmap): Remove declarations.
20994 (register_addr): Use the_low_target explicitly.
20995 (fetch_register): Likewise.
20996 (usr_fetch_inferior_registers): Likewise.
20997 (usr_store_inferior_registers): Likewise.
20998 * linux-arm-low.c (num_regs): Remove.
20999 (arm_num_regs): Define.
21000 (arm_regmap): Renamed from regmap, made static.
21001 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
21002 made static.
21003 (arm_cannot_store_register): Renamed from cannot_store_register,
21004 made static.
21005 (the_low_target): New.
21006 * linux-i386-low.c (num_regs): Remove.
21007 (i386_num_regs): Define.
21008 (i386_regmap): Renamed from regmap, made static.
21009 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
21010 made static.
21011 (i386_cannot_store_register): Renamed from cannot_store_register,
21012 made static.
21013 (the_low_target): New.
21014 * linux-ia64-low.c (num_regs): Remove.
21015 (ia64_num_regs): Define.
21016 (ia64_regmap): Renamed from regmap, made static.
21017 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
21018 made static.
21019 (ia64_cannot_store_register): Renamed from cannot_store_register,
21020 made static.
21021 (the_low_target): New.
21022 * linux-m68k-low.c (num_regs): Remove.
21023 (m68k_num_regs): Define.
21024 (m68k_regmap): Renamed from regmap, made static.
21025 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
21026 made static.
21027 (m68k_cannot_store_register): Renamed from cannot_store_register,
21028 made static.
21029 (the_low_target): New.
21030 * linux-mips-low.c (num_regs): Remove.
21031 (mips_num_regs): Define.
21032 (mips_regmap): Renamed from regmap, made static.
21033 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
21034 made static.
21035 (mips_cannot_store_register): Renamed from cannot_store_register,
21036 made static.
21037 (the_low_target): New.
21038 * linux-ppc-low.c (num_regs): Remove.
21039 (ppc_num_regs): Define.
21040 (ppc_regmap): Renamed from regmap, made static.
21041 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
21042 made static.
21043 (ppc_cannot_store_register): Renamed from cannot_store_register,
21044 made static.
21045 (the_low_target): New.
21046 * linux-s390-low.c (num_regs): Remove.
21047 (s390_num_regs): Define.
21048 (s390_regmap): Renamed from regmap, made static.
21049 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
21050 made static.
21051 (s390_cannot_store_register): Renamed from cannot_store_register,
21052 made static.
21053 (the_low_target): New.
21054 * linux-sh-low.c (num_regs): Remove.
21055 (sh_num_regs): Define.
21056 (sh_regmap): Renamed from regmap, made static.
21057 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
21058 made static.
21059 (sh_cannot_store_register): Renamed from cannot_store_register,
21060 made static.
21061 (the_low_target): New.
21062 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
21063 (the_low_target): New.
21064
210652002-04-09 Daniel Jacobowitz <drow@mvista.com>
21066
21067 * Makefile.in: Add stamp-h target.
21068 * configure.in: Create stamp-h.
21069 * configure: Regenerated.
21070
210712002-04-09 Daniel Jacobowitz <drow@mvista.com>
21072
21073 * inferiors.c: New file.
21074 * target.c: New file.
21075 * target.h: New file.
21076 * Makefile.in: Add target.o and inferiors.o. Update
21077 dependencies.
21078 * linux-low.c (inferior_pid): New static variable,
21079 moved from server.c.
21080 (linux_create_inferior): Renamed from create_inferior.
21081 Call add_inferior. Return 0 on success instead of a PID.
21082 (linux_attach): Renamed from myattach.
21083 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
21084 (linux_thread_alive): Renamed from mythread_alive.
21085 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
21086 child dies.
21087 (linux_resume): Renamed from myresume. Add missing ``return 0''.
21088 (regsets_store_inferior_registers): Correct error message.
21089 Add missing ``return 0''.
21090 (linux_fetch_registers): Renamed from fetch_inferior_registers.
21091 (linux_store_registers): Renamed from store_inferior_registers.
21092 (linux_read_memory): Renamed from read_inferior_memory.
21093 (linux_write_memory): Renamed from write_inferior_memory.
21094 (linux_target_ops): New structure.
21095 (initialize_low): Call set_target_ops ().
21096 * remote-utils.c (unhexify): New function.
21097 (hexify): New function.
21098 (input_interrupt): Send signals to ``signal_pid''.
21099 * server.c (inferior_pid): Remove.
21100 (start_inferior): Update create_inferior call.
21101 (attach_inferior): Call add_inferior.
21102 (handle_query): New function.
21103 (main): Call handle_query for `q' packets.
21104 * server.h: Include "target.h". Remove obsolete prototypes.
21105 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
21106
211072002-04-09 Daniel Jacobowitz <drow@mvista.com>
21108
21109 * Makefile.in: Add WARN_CFLAGS. Update configury
21110 dependencies.
21111 * configure.in: Check for <string.h>
21112 * configure: Regenerate.
21113 * config.in: Regenerate.
21114 * gdbreplay.c: Include needed system headers.
21115 (remote_open): Remove strchr prototype.
21116 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
21117 * regcache.c (supply_register): Change buf argument to const void *.
21118 (supply_register_by_name): Likewise.
21119 (collect_register): Change buf argument to void *.
21120 (collect_register_by_name): Likewise.
21121 * regcache.h: Add missing prototypes.
21122 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
21123 * server.c (handle_query): New function.
21124 (attached): New static variable, moved out of main.
21125 (main): Quiet longjmp clobber warnings.
21126 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
21127 * utils.c (error): Remove NORETURN.
21128 (fatal): Likewise.
This page took 3.144716 seconds and 4 git commands to generate.