gdbserver/linux-low: turn 'breakpoint_at' into a method
[deliverable/binutils-gdb.git] / gdbserver / ChangeLog
CommitLineData
d7146cda
TBA
12020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2
3 Turn the 'breakpoint_at' linux target op into a method of
4 linux_process_target.
5
6 * linux-low.h (struct linux_target_ops): Remove the op.
7 (class linux_process_target) <low_breakpoint_at>: Declare.
8
9 Update the callers below:
10
11 * linux-low.cc (linux_process_target::save_stop_reason)
12 (linux_process_target::thread_still_has_status_pending)
13 (linux_process_target::wait_1)
14
15 * linux-x86-low.cc (class x86_target)
16 <low_breakpoint_at>: Declare.
17 (x86_breakpoint_at): Turn into...
18 (x86_target::low_breakpoint_at): ...this.
19 (the_low_target): Remove the op field.
20 * linux-aarch64-low.cc (class aarch64_target)
21 <low_breakpoint_at>: Declare.
22 (aarch64_breakpoint_at): Turn into...
23 (aarch64_target::low_breakpoint_at): ...this.
24 (the_low_target): Remove the op field.
25 * linux-arm-low.cc (class arm_target)
26 <low_breakpoint_at>: Declare.
27 (arm_target::low_breakpoint_at): Define.
28 (the_low_target): Remove the op field.
29 * linux-bfin-low.cc (class bfin_target)
30 <low_breakpoint_at>: Declare.
31 (bfin_breakpoint_at): Turn into...
32 (bfin_target::low_breakpoint_at): ...this.
33 (the_low_target): Remove the op field.
34 * linux-cris-low.cc (class cris_target)
35 <low_breakpoint_at>: Declare.
36 (cris_breakpoint_at): Turn into...
37 (cris_target::low_breakpoint_at): ...this.
38 (the_low_target): Remove the op field.
39 * linux-crisv32-low.cc (class crisv32_target)
40 <low_breakpoint_at>: Declare.
41 (crisv32_breakpoint_at): Turn into...
42 (crisv32_target::low_breakpoint_at): ...this.
43 (the_low_target): Remove the op field.
44 * linux-ia64-low.cc (class ia64_target)
45 <low_breakpoint_at>: Declare.
46 (ia64_target::low_breakpoint_at): Define.
47 * linux-m32r-low.cc (class m32r_target)
48 <low_breakpoint_at>: Declare.
49 (m32r_breakpoint_at): Turn into...
50 (m32r_target::low_breakpoint_at): ...this.
51 (the_low_target): Remove the op field.
52 * linux-m68k-low.cc (class m68k_target)
53 <low_breakpoint_at>: Declare.
54 (m68k_breakpoint_at): Turn into...
55 (m68k_target::low_breakpoint_at): ...this.
56 (the_low_target): Remove the op field.
57 * linux-mips-low.cc (class mips_target)
58 <low_breakpoint_at>: Declare.
59 (mips_breakpoint_at): Turn into...
60 (mips_target::low_breakpoint_at): ...this.
61 (the_low_target): Remove the op field.
62 * linux-nios2-low.cc (class nios2_target)
63 <low_breakpoint_at>: Declare.
64 (nios2_breakpoint_at): Turn into...
65 (nios2_target::low_breakpoint_at): ...this.
66 (the_low_target): Remove the op field.
67 * linux-ppc-low.cc (class ppc_target)
68 <low_breakpoint_at>: Declare.
69 (ppc_breakpoint_at): Turn into...
70 (ppc_target::low_breakpoint_at): ...this.
71 (the_low_target): Remove the op field.
72 * linux-riscv-low.cc (class riscv_target)
73 <low_breakpoint_at>: Declare.
74 (riscv_breakpoint_at): Turn into...
75 (riscv_target::low_breakpoint_at): ...this.
76 (the_low_target): Remove the op field.
77 * linux-s390-low.cc (class s390_target)
78 <low_breakpoint_at>: Declare.
79 (s390_breakpoint_at): Turn into...
80 (s390_target::low_breakpoint_at): ...this.
81 (the_low_target): Remove the op field.
82 * linux-sh-low.cc (class sh_target)
83 <low_breakpoint_at>: Declare.
84 (sh_breakpoint_at): Turn into...
85 (sh_target::low_breakpoint_at): ...this.
86 (the_low_target): Remove the op field.
87 * linux-sparc-low.cc (class sparc_target)
88 <low_breakpoint_at>: Declare.
89 (sparc_breakpoint_at): Turn into...
90 (sparc_target::low_breakpoint_at): ...this.
91 (the_low_target): Remove the op field.
92 * linux-tic6x-low.cc (class tic6x_target)
93 <low_breakpoint_at>: Declare.
94 (tic6x_breakpoint_at): Turn into...
95 (tic6x_target::low_breakpoint_at): ...this.
96 (the_low_target): Remove the op field.
97 * linux-tile-low.cc (class tile_target)
98 <low_breakpoint_at>: Declare.
99 (tile_breakpoint_at): Turn into...
100 (tile_target::low_breakpoint_at): ...this.
101 (the_low_target): Remove the op field.
102 * linux-xtensa-low.cc (class xtensa_target)
103 <low_breakpoint_at>: Declare.
104 (xtensa_breakpoint_at): Turn into...
105 (xtensa_target::low_breakpoint_at): ...this.
106 (the_low_target): Remove the op field.
107
d4807ea2
TBA
1082020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
109
110 Turn the 'decr_pc_after_break' linux_target_ops field into
111 a method of linux_process_target.
112
113 * linux-low.h (struct linux_target_ops)
114 <decr_pc_after_break>: Remove.
115 (class linux_process_target) <low_decr_pc_after_break>: New method
116 declaration.
117 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
118 New method implementation.
119
120 Update the users below.
121
122 (linux_process_target::save_stop_reason)
123 (linux_process_target::wait_1)
124 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
125 New declaration.
126 (x86_target::low_decr_pc_after_break): New method implementation.
127 (the_low_target): Remove the field.
128 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
129 New declaration.
130 (bfin_target::low_decr_pc_after_break): New method implementation.
131 (the_low_target): Remove the field.
132 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
133 New declaration.
134 (m68k_target::low_decr_pc_after_break): New method implementation.
135 (the_low_target): Remove the field.
136 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
137 New declaration.
138 (s390_target::low_decr_pc_after_break): New method implementation.
139 (the_low_target): Remove the field.
140 * linux-aarch64-low.cc (the_low_target): Remove the field.
141 * linux-arm-low.cc (the_low_target): Remove the field.
142 * linux-cris-low.cc (the_low_target): Remove the field.
143 * linux-crisv32-low.cc (the_low_target): Remove the field.
144 * linux-m32r-low.cc (the_low_target): Remove the field.
145 * linux-mips-low.cc (the_low_target): Remove the field.
146 * linux-nios2-low.cc (the_low_target): Remove the field.
147 * linux-ppc-low.cc (the_low_target): Remove the field.
148 * linux-riscv-low.cc (the_low_target): Remove the field.
149 * linux-sh-low.cc (the_low_target): Remove the field.
150 * linux-sparc-low.cc (the_low_target): Remove the field.
151 * linux-tic6x-low.cc (the_low_target): Remove the field.
152 * linux-tile-low.cc (the_low_target): Remove the field.
153 * linux-xtensa-low.cc (the_low_target): Remove the field.
154
7582c77c
TBA
1552020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
156
157 Remove the 'supports_software_single_step' linux target op and let
158 the concrete linux target define it by overriding the op in
159 process_stratum_target.
160 Turn the 'get_next_pcs' linux target op into a method of
161 linux_process_target.
162
163 * linux-low.h (struct linux_target_ops): Remove the ops.
164 (class linux_process_target) <supports_software_single_step>:
165 Remove.
166 <low_get_next_pcs>: Declare.
167 * linux-low.cc (can_software_single_step): Remove.
168 (linux_process_target::low_get_next_pcs): Define.
169 (linux_process_target::supports_software_single_step): Remove.
170
171 Update the callers below.
172
173 (linux_process_target::handle_extended_wait)
174 (linux_process_target::wait_1)
175 (linux_process_target::install_software_single_step_breakpoints)
176 (linux_process_target::single_step)
177 (linux_process_target::thread_needs_step_over)
178 (linux_process_target::proceed_one_lwp)
179 (linux_process_target::supports_range_stepping)
180
181 * linux-x86-low.cc (the_low_target): Remove the op field.
182 * linux-aarch64-low.cc (the_low_target): Ditto.
183 * linux-bfin-low.cc (the_low_target): Ditto.
184 * linux-cris-low.cc (the_low_target): Ditto.
185 * linux-crisv32-low.cc (the_low_target): Ditto.
186 * linux-m32r-low.cc (the_low_target): Ditto.
187 * linux-m68k-low.cc (the_low_target): Ditto.
188 * linux-mips-low.cc (the_low_target): Ditto.
189 * linux-nios2-low.cc (the_low_target): Ditto.
190 * linux-ppc-low.cc (the_low_target): Ditto.
191 * linux-riscv-low.cc (the_low_target): Ditto.
192 * linux-s390-low.cc (the_low_target): Ditto.
193 * linux-sh-low.cc (the_low_target): Ditto.
194 * linux-sparc-low.cc (the_low_target): Ditto.
195 * linux-tic6x-low.cc (the_low_target): Ditto.
196 * linux-tile-low.cc (the_low_target): Ditto.
197 * linux-xtensa-low.cc (the_low_target): Ditto.
198 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
199 <supports_software_single_step>: Declare.
200 (arm_target::supports_software_single_step): Define.
201 (arm_gdbserver_get_next_pcs): Turn into...
202 (arm_target::low_get_next_pcs): ...this.
203 (the_low_target): Remove the op field.
204
3ca4edb6
TBA
2052020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
206
207 Remove the 'sw_breakpoint_from_kind' linux target op, and let
208 the concrete linux target define it by overriding the op
209 in process_stratum_target.
210
211 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
212 Remove.
213 * linux-low.h (struct linux_target_ops): Remove the op.
214 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
215 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
216 Declare.
217 (x86_sw_breakpoint_from_kind): Turn into...
218 (x86_target::sw_breakpoint_from_kind): ...this.
219 (the_low_target): Remove the op field.
220 * linux-aarch64-low.cc (class aarch64_target)
221 <sw_breakpoint_from_kind>: Declare.
222 (aarch64_sw_breakpoint_from_kind): Turn into...
223 (aarch64_target::sw_breakpoint_from_kind): ...this.
224 (the_low_target): Remove the op field.
225 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
226 Declare.
227 (arm_target::sw_breakpoint_from_kind): Define.
228 (the_low_target): Remove the op field.
229 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
230 Declare.
231 (bfin_sw_breakpoint_from_kind): Turn into...
232 (bfin_target::sw_breakpoint_from_kind): ...this.
233 (the_low_target): Remove the op field.
234 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
235 Declare.
236 (cris_sw_breakpoint_from_kind): Turn into...
237 (cris_target::sw_breakpoint_from_kind): ...this.
238 (the_low_target): Remove the op field.
239 * linux-crisv32-low.cc (class crisv32_target)
240 <sw_breakpoint_from_kind>: Declare.
241 (cris_sw_breakpoint_from_kind): Turn into...
242 (crisv32_target::sw_breakpoint_from_kind): ...this.
243 (the_low_target): Remove the op field.
244 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
245 Declare.
246 (ia64_target::sw_breakpoint_from_kind): Define.
247 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
248 Declare.
249 (m32r_sw_breakpoint_from_kind): Turn into...
250 (m32r_target::sw_breakpoint_from_kind): ...this.
251 (the_low_target): Remove the op field.
252 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
253 Declare.
254 (m68k_sw_breakpoint_from_kind): Turn into...
255 (m68k_target::sw_breakpoint_from_kind): ...this.
256 (the_low_target): Remove the op field.
257 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
258 Declare.
259 (mips_sw_breakpoint_from_kind): Turn into...
260 (mips_target::sw_breakpoint_from_kind): ...this.
261 (the_low_target): Remove the op field.
262 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
263 Declare.
264 (nios2_sw_breakpoint_from_kind): Turn into...
265 (nios2_target::sw_breakpoint_from_kind): ...this.
266 (the_low_target): Remove the op field.
267 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
268 Declare.
269 (ppc_sw_breakpoint_from_kind): Turn into...
270 (ppc_target::sw_breakpoint_from_kind): ...this.
271 (the_low_target): Remove the op field.
272 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
273 Declare.
274 (riscv_sw_breakpoint_from_kind): Turn into...
275 (riscv_target::sw_breakpoint_from_kind): ...this.
276 (the_low_target): Remove the op field.
277 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
278 Declare.
279 (s390_sw_breakpoint_from_kind): Turn into...
280 (s390_target::sw_breakpoint_from_kind): ...this.
281 (the_low_target): Remove the op field.
282 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
283 Declare.
284 (sh_sw_breakpoint_from_kind): Turn into...
285 (sh_target::sw_breakpoint_from_kind): ...this.
286 (the_low_target): Remove the op field.
287 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
288 Declare.
289 (sparc_sw_breakpoint_from_kind): Turn into...
290 (sparc_target::sw_breakpoint_from_kind): ...this.
291 (the_low_target): Remove the op field.
292 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
293 Declare.
294 (tic6x_sw_breakpoint_from_kind): Turn into...
295 (tic6x_target::sw_breakpoint_from_kind): ...this.
296 (the_low_target): Remove the op field.
297 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
298 Declare.
299 (tile_sw_breakpoint_from_kind): Turn into...
300 (tile_target::sw_breakpoint_from_kind): ...this.
301 (the_low_target): Remove the op field.
302 * linux-xtensa-low.cc (class xtensa_target)
303 <sw_breakpoint_from_kind>: Declare.
304 (xtensa_sw_breakpoint_from_kind): Turn into...
305 (xtensa_target::sw_breakpoint_from_kind): ...this.
306 (the_low_target): Remove the op field.
307
06250e4e
TBA
3082020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
309
310 Remove the 'breakpoint_kind_from_pc' and
311 'breakpoint_kind_from_current_state' linux target ops, and let the
312 concrete linux target define them by overriding the ops of
313 process_stratum_target.
314
315 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
316 Remove.
317 (linux_process_target::breakpoint_kind_from_current_state): Remove.
318 * linux-low.h (struct linux_target_ops): Remove ops.
319 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
320 <breakpoint_kind_from_current_state>: Remove.
321 * linux-x86-low.cc (the_low_target): Remove the op fields.
322 * linux-bfin-low.cc (the_low_target): Ditto.
323 * linux-cris-low.cc (the_low_target): Ditto.
324 * linux-crisv32-low.cc (the_low_target): Ditto.
325 * linux-m32r-low.cc (the_low_target): Ditto.
326 * linux-m68k-low.cc (the_low_target): Ditto.
327 * linux-mips-low.cc (the_low_target): Ditto.
328 * linux-nios2-low.cc (the_low_target): Ditto.
329 * linux-ppc-low.cc (the_low_target): Ditto.
330 * linux-s390-low.cc (the_low_target): Ditto.
331 * linux-sh-low.cc (the_low_target): Ditto.
332 * linux-sparc-low.cc (the_low_target): Ditto.
333 * linux-tic6x-low.cc (the_low_target): Ditto.
334 * linux-tile-low.cc (the_low_target): Ditto.
335 * linux-xtensa-low.cc (the_low_target): Ditto.
336 * linux-aarch64-low.cc (class aarch64_target)
337 <breakpoint_kind_from_pc>
338 <breakpoint_kind_from_current_state>: Declare.
339 (aarch64_breakpoint_kind_from_pc): Turn into...
340 (aarch64_target::breakpoint_kind_from_pc): ...this.
341 (aarch64_breakpoint_kind_from_current_state): Turn into...
342 (aarch64_target::breakpoint_kind_from_current_state): ...this.
343 (the_low_target): Remove the op fields.
344 * linux-arm-low.cc (class arm_target):
345 <breakpoint_kind_from_pc>
346 <breakpoint_kind_from_current_state>: Declare.
347 (arm_target::breakpoint_kind_from_pc): Define.
348 (arm_target::breakpoint_kind_from_current_state): Define.
349 (the_low_target): Remove the op fields.
350 * linux-riscv-low.cc (class riscv_target):
351 <breakpoint_kind_from_pc>: Declare.
352 (riscv_breakpoint_kind_from_pc): Turn into...
353 (riscv_target::breakpoint_kind_from_pc): ...this.
354 (the_low_target): Remove the op fields.
355
bf9ae9d8
TBA
3562020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
357
358 Turn the 'get_pc' and 'set_pc' linux target ops into methods
359 of linux_process_target.
360
361 * linux-low.h (struct linux_target_ops): Remove the ops.
362 (class linux_process_target) <low_supports_breakpoints>
363 <low_get_pc>
364 <low_set_pc>: Declare.
365 * linux-low.cc (supports_breakpoints): Turn into...
366 (linux_process_target::low_supports_breakpoints): ...this.
367 (linux_process_target::low_get_pc): Define.
368 (linux_process_target::low_set_pc): Define.
369
370 Update the callers below.
371
372 (linux_process_target::get_pc)
373 (linux_process_target::save_stop_reason)
374 (linux_process_target::maybe_move_out_of_jump_pad)
375 (linux_process_target::wait_1)
376 (linux_process_target::resume_one_lwp_throw)
377 (linux_process_target::resume)
378 (linux_process_target::proceed_all_lwps)
379 (linux_process_target::read_pc)
380 (linux_process_target::write_pc)
381
382 * linux-x86-low.cc (class linux_process_target)
383 <low_supports_breakpoints>
384 <low_get_pc>
385 <low_set_pc>: Declare.
386 (x86_target::low_supports_breakpoints): Define.
387 (x86_get_pc): Turn into...
388 (x86_target::low_get_pc): ...this.
389 (x86_set_pc): Turn into...
390 (x86_target::low_set_pc): ...this.
391 (the_low_target): Remove the op fields.
392 * linux-arm-low.cc (class arm_target)
393 <low_supports_breakpoints>
394 <low_get_pc>
395 <low_set_pc>: Declare.
396 (arm_target::low_supports_breakpoints)
397 (arm_target::low_get_pc)
398 (arm_target::low_set_pc): Define.
399 (the_low_target): Remove the op fields.
400 * linux-bfin-low.cc (class bfin_target)
401 <low_supports_breakpoints>
402 <low_get_pc>
403 <low_set_pc>: Declare.
404 (bfin_target::low_supports_breakpoints)
405 (bfin_target::low_get_pc)
406 (bfin_target::low_set_pc): Define.
407 (the_low_target): Remove the op fields.
408 * linux-cris-low.cc (class cris_target)
409 <low_supports_breakpoints>
410 <low_get_pc>
411 <low_set_pc>: Declare.
412 (cris_target::low_supports_breakpoints)
413 (cris_target::low_get_pc)
414 (cris_target::low_set_pc): Define.
415 (the_low_target): Remove the op fields.
416 * linux-crisv32-low.cc (class crisv32_target)
417 <low_supports_breakpoints>
418 <low_get_pc>
419 <low_set_pc>: Declare.
420 (crisv32_target::low_supports_breakpoints)
421 (crisv32_target::low_get_pc)
422 (crisv32_target::low_set_pc): Define.
423 (the_low_target): Remove the op fields.
424 * linux-m32r-low.cc (class m32r_target)
425 <low_supports_breakpoints>
426 <low_get_pc>
427 <low_set_pc>: Declare.
428 (m32r_target::low_supports_breakpoints)
429 (m32r_target::low_get_pc)
430 (m32r_target::low_set_pc): Define.
431 (the_low_target): Remove the op fields.
432 * linux-m68k-low.cc (class m68k_target)
433 <low_supports_breakpoints>
434 <low_get_pc>
435 <low_set_pc>: Declare.
436 (m68k_target::low_supports_breakpoints)
437 (m68k_target::low_get_pc)
438 (m68k_target::low_set_pc): Define.
439 (the_low_target): Remove the op fields.
440 * linux-nios2-low.cc (class nios2_target)
441 <low_supports_breakpoints>
442 <low_get_pc>
443 <low_set_pc>: Declare.
444 (nios2_target::low_supports_breakpoints)
445 (nios2_target::low_get_pc)
446 (nios2_target::low_set_pc): Define.
447 (the_low_target): Remove the op fields.
448 * linux-sh-low.cc (class sh_target)
449 <low_supports_breakpoints>
450 <low_get_pc>
451 <low_set_pc>: Declare.
452 (sh_target::low_supports_breakpoints)
453 (sh_target::low_get_pc)
454 (sh_target::low_set_pc): Define.
455 (the_low_target): Remove the op fields.
456 * linux-xtensa-low.cc (class xtensa_target)
457 <low_supports_breakpoints>
458 <low_get_pc>
459 <low_set_pc>: Declare.
460 (xtensa_target::low_supports_breakpoints)
461 (xtensa_target::low_get_pc)
462 (xtensa_target::low_set_pc): Define.
463 (the_low_target): Remove the op fields.
464 * linux-sparc-low.cc (class sparc_target)
465 <low_supports_breakpoints>
466 <low_get_pc>: Declare.
467 (sparc_target::low_supports_breakpoints)
468 (sparc_target::low_get_pc): Define.
469 (the_low_target): Remove the op fields.
470 * linux-tile-low.cc (class tile_target)
471 <low_supports_breakpoints>
472 <low_get_pc>
473 <low_set_pc>: Declare.
474 (tile_target::low_supports_breakpoints)
475 (tile_target::low_get_pc)
476 (tile_target::low_set_pc): Define.
477 (the_low_target): Remove the op fields.
478 * linux-aarch64-low.cc (class aarch64_target)
479 <low_supports_breakpoints>
480 <low_get_pc>
481 <low_set_pc>: Declare.
482 (aarch64_target::low_supports_breakpoints): Define.
483 (aarch64_get_pc): Turn into...
484 (aarch64_target::low_get_pc): ...this.
485 (aarch64_set_pc): Turn into...
486 (aarch64_target::low_set_pc): ...this.
487 (the_low_target): Remove the op fields.
488 * linux-mips-low.cc (class mips_target)
489 <low_supports_breakpoints>
490 <low_get_pc>
491 <low_set_pc>: Declare.
492 (mips_target::low_supports_breakpoints): Define.
493 (mips_get_pc): Turn into...
494 (mips_target::low_get_pc): ...this.
495 (mips_set_pc): Turn into...
496 (mips_target::low_set_pc): ...this.
497 (the_low_target): Remove the op fields.
498 * linux-ppc-low.cc (class ppc_target)
499 <low_supports_breakpoints>
500 <low_get_pc>
501 <low_set_pc>: Declare.
502 (ppc_target::low_supports_breakpoints): Define.
503 (ppc_get_pc): Turn into...
504 (ppc_target::low_get_pc): ...this.
505 (ppc_set_pc): Turn into...
506 (ppc_target::low_set_pc): ...this.
507 (the_low_target): Remove the op fields.
508 * linux-riscv-low.cc (class riscv_target)
509 <low_supports_breakpoints>
510 <low_get_pc>
511 <low_set_pc>: Declare.
512 (riscv_target::low_supports_breakpoints): Define.
513 (riscv_get_pc): Turn into...
514 (riscv_target::low_get_pc): ...this.
515 (riscv_set_pc): Turn into...
516 (riscv_target::low_set_pc): ...this.
517 (the_low_target): Remove the op fields.
518 * linux-s390-low.cc (class s390_target)
519 <low_supports_breakpoints>
520 <low_get_pc>
521 <low_set_pc>: Declare.
522 (s390_target::low_supports_breakpoints): Define.
523 (s390_get_pc): Turn into...
524 (s390_target::low_get_pc): ...this.
525 (s390_set_pc): Turn into...
526 (s390_target::low_set_pc): ...this.
527 (the_low_target): Remove the op fields.
528 * linux-tic6x-low.cc (class tic6x_target)
529 <low_supports_breakpoints>
530 <low_get_pc>
531 <low_set_pc>: Declare.
532 (tic6x_target::low_supports_breakpoints): Define.
533 (tic6x_get_pc): Turn into...
534 (tic6x_target::low_get_pc): ...this.
535 (tic6x_set_pc): Turn into...
536 (tic6x_target::low_set_pc): ...this.
537 (the_low_target): Remove the op fields.
538
df95181f
TBA
5392020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
540
541 Turn some more static methods in linux-low into private methods
542 of linux_process_target.
543
544 * linux-low.cc (get_pc): Turn into...
545 (linux_process_target::get_pc): ...this.
546 (save_stop_reason): Turn into...
547 (linux_process_target::save_stop_reason): ...this.
548 (thread_still_has_status_pending_p): Turn into...
549 (linux_process_target::thread_still_has_status_pending): ...this.
550 (status_pending_p_callback): Turn into...
551 (linux_process_target::status_pending_p_callback): ...this.
552 (resume_stopped_resumed_lwps): Turn into...
553 (linux_process_target::resume_stopped_resumed_lwps): ...this.
554 (install_software_single_step_breakpoints): Turn into...
555 (linux_process_target::install_software_single_step_breakpoints):
556 ...this.
557 (single_step): Turn into...
558 (linux_process_target::single_step): ...this.
559 (linux_resume_one_lwp_throw): Turn into...
560 (linux_process_target::resume_one_lwp_throw): ...this.
561 (linux_resume_one_lwp): Turn into...
562 (linux_process_target::resume_one_lwp): ...this.
563 (resume_status_pending_p): Turn into...
564 (linux_process_target::resume_status_pending): ...this.
565 (need_step_over_p): Turn into...
566 (linux_process_target::thread_needs_step_over): ...this.
567 (linux_resume_one_thread): Turn into...
568 (linux_process_target::resume_one_thread): ...this.
569 (proceed_one_lwp): Turn into...
570 (linux_process_target::proceed_one_lwp): ...this.
571 (unsuspend_and_proceed_one_lwp): Turn into...
572 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
573
574 Update the calls/references to the above functions below.
575
576 (linux_process_target::handle_extended_wait)
577 (linux_process_target::filter_event)
578 (linux_process_target::wait_for_event_filtered)
579 (linux_process_target::wait_1)
580 (linux_process_target::move_out_of_jump_pad)
581 (linux_process_target::start_step_over)
582 (linux_process_target::resume)
583 (linux_process_target::proceed_all_lwps)
584 (regsets_store_inferior_registers)
585 (linux_process_target::store_register)
586
587 * linux-low.h (class linux_process_target)
588 <get_pc>
589 <save_stop_reason>
590 <thread_still_has_status_pending>
591 <status_pending_p_callback>
592 <resume_stopped_resumed_lwps>
593 <install_software_single_step_breakpoints>
594 <single_step>
595 <resume_one_lwp_throw>
596 <resume_one_lwp>
597 <resume_status_pending>
598 <thread_needs_step_over>
599 <resume_one_thread>
600 <proceed_one_lwp>
601 <unsuspend_and_proceed_one_lwp>: Declare.
602
bd70b1f2
TBA
6032020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
604
605 Turn the 'fetch_register' linux target op into a method of
606 linux_process_target.
607
608 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
609 (class linux_process_target) <low_fetch_register>: Declare.
610 * linux-x86-low.cc (the_low_target)
611 * linux-aarch64-low.cc (the_low_target)
612 * linux-arm-low.cc (the_low_target)
613 * linux-bfin-low.cc (the_low_target)
614 * linux-cris-low.cc (the_low_target)
615 * linux-crisv32-low.cc (the_low_target)
616 * linux-m32r-low.cc (the_low_target)
617 * linux-m68k-low.cc (the_low_target)
618 * linux-nios2-low.cc (the_low_target)
619 * linux-ppc-low.cc (the_low_target)
620 * linux-s390-low.cc (the_low_target)
621 * linux-sh-low.cc (the_low_target)
622 * linux-sparc-low.cc (the_low_target)
623 * linux-tic6x-low.cc (the_low_target)
624 * linux-tile-low.cc (the_low_target)
625 * linux-xtensa-low.cc (the_low_target): Remove the op field.
626 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
627 Declare.
628 (ia64_fetch_register): Turn into...
629 (ia64_target::low_fetch_register): ...this.
630 (the_low_target): Remove the op field.
631 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
632 Declare.
633 (mips_fetch_register): Turn into...
634 (mips_target::low_fetch_register): ...this.
635 (the_low_target): Remove the op field.
636 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
637 Declare.
638 (riscv_fetch_register): Turn into...
639 (riscv_target::low_fetch_register): ...this.
640 (the_low_target): Remove the op field.
641
642 Update the callers below.
643
644 * linux-low.cc (linux_process_target::fetch_registers)
645 (linux_process_target::low_fetch_register)
646
daca57a7
TBA
6472020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
648
649 Turn the 'cannot_fetch_register' and 'cannot_store_register'
650 linux target ops into methods of linux_process_target.
651
652 * linux-low.h (struct linux_target_ops): Remove the low target ops.
653 (class linux_process_target) <fetch_register>
654 <store_register>
655 <usr_fetch_inferior_registers>
656 <usr_store_inferior_registers>
657 <low_cannot_fetch_register>
658 <low_cannot_fetch_register> Declare.
659 * linux-low.cc (fetch_register): Turn into...
660 (linux_process_target::fetch_register): ...this.
661 (store_register): Turn into ...
662 (linux_process_target::store_register): ...this.
663 (usr_fetch_inferior_registers): Turn into...
664 (linux_process_target::usr_fetch_inferior_registers): ...this.
665 (usr_store_inferior_registers): Turn into...
666 (linux_process_target::usr_store_inferior_registers): ...this.
667 * linux-x86-low.cc (class x86_target)
668 <low_cannot_fetch_register>
669 <low_cannot_store_register>: Declare.
670 (x86_cannot_store_register): Turn into...
671 (x86_target::low_cannot_store_register): ...this.
672 (x86_cannot_fetch_register): Turn into...
673 (x86_target::low_cannot_fetch_register): ...this.
674 (the_low_target): Remove the target op fields.
675 * linux-aarch64-low.cc (class aarch64_target)
676 <low_cannot_fetch_register>
677 <low_cannot_store_register>: Declare.
678 (aarch64_target::low_cannot_fetch_register)
679 (aarch64_target::low_cannot_store_register): Define.
680 (the_low_target): Remove the op fields.
681 * linux-arm-low.cc (class arm_target)
682 <low_cannot_fetch_register>
683 <low_cannot_store_register>: Declare.
684 (arm_cannot_fetch_register): Turn into...
685 (arm_target::low_cannot_fetch_register): ...this.
686 (arm_cannot_store_register): Turn into...
687 (arm_target::low_cannot_store_register): ...this.
688 (the_low_target): Remove the op fields.
689 * linux-bfin-low.cc (class bfin_target)
690 <low_cannot_fetch_register>
691 <low_cannot_store_register>: Declare.
692 (bfin_cannot_fetch_register): Turn into...
693 (bfin_target::low_cannot_fetch_register): ...this.
694 (bfin_cannot_store_register): Turn into...
695 (bfin_target::low_cannot_store_register): ...this.
696 (the_low_target): Remove the op fields.
697 * linux-cris-low.cc (class cris_target)
698 <low_cannot_fetch_register>
699 <low_cannot_store_register>: Declare.
700 (cris_cannot_fetch_register): Turn into...
701 (cris_target::low_cannot_fetch_register): ...this.
702 (cris_cannot_store_register): Turn into...
703 (cris_target::low_cannot_store_register): ...this.
704 (the_low_target): Remove the op fields.
705 * linux-crisv32-low.cc (class crisv32_target)
706 <low_cannot_fetch_register>
707 <low_cannot_store_register>: Declare.
708 (crisv32_target::low_cannot_fetch_register)
709 (crisv32_target::low_cannot_store_register): Define.
710 (the_low_target): Remove the op fields.
711 * linux-ia64-low.cc (class ia64_target)
712 <low_cannot_fetch_register>
713 <low_cannot_store_register>: Declare.
714 (ia64_cannot_fetch_register): Turn into...
715 (ia64_target::low_cannot_fetch_register): ...this.
716 (ia64_cannot_store_register): Turn into...
717 (ia64_target::low_cannot_store_register): ...this.
718 (the_low_target): Remove the op fields.
719 * linux-m32r-low.cc (class m32r_target)
720 <low_cannot_fetch_register>
721 <low_cannot_store_register>: Declare.
722 (m32r_cannot_fetch_register): Turn into...
723 (m32r_target::low_cannot_fetch_register): ...this.
724 (m32r_cannot_store_register): Turn into...
725 (m32r_target::low_cannot_store_register): ...this.
726 (the_low_target): Remove the op fields.
727 * linux-m68k-low.cc (class m68k_target)
728 <low_cannot_fetch_register>
729 <low_cannot_store_register>: Declare.
730 (m68k_cannot_fetch_register): Turn into...
731 (m68k_target::low_cannot_fetch_register): ...this.
732 (m68k_cannot_store_register): Turn into...
733 (m68k_target::low_cannot_store_register): ...this.
734 (the_low_target): Remove the op fields.
735 * linux-mips-low.cc (class mips_target)
736 <low_cannot_fetch_register>
737 <low_cannot_store_register>: Declare.
738 (mips_cannot_fetch_register): Turn into...
739 (mips_target::low_cannot_fetch_register): ...this.
740 (mips_cannot_store_register): Turn into...
741 (mips_target::low_cannot_store_register): ...this.
742 (get_usrregs_info): Inline at the call sites in
743 low_cannot_fetch_register and low_cannot_store_register,
744 and remove.
745 (the_low_target): Remove the op fields.
746 * linux-nios2-low.cc (class nios2_target)
747 <low_cannot_fetch_register>
748 <low_cannot_store_register>: Declare.
749 (nios2_cannot_fetch_register): Turn into...
750 (nios2_target::low_cannot_fetch_register): ...this.
751 (nios2_cannot_store_register): Turn into...
752 (nios2_target::low_cannot_store_register): ...this.
753 (the_low_target): Remove the op fields.
754 * linux-ppc-low.cc (class ppc_target)
755 <low_cannot_fetch_register>
756 <low_cannot_store_register>: Declare.
757 (ppc_cannot_fetch_register): Turn into...
758 (ppc_target::low_cannot_fetch_register): ...this.
759 (ppc_cannot_store_register): Turn into...
760 (ppc_target::low_cannot_store_register): ...this.
761 (the_low_target): Remove the op fields.
762 * linux-riscv-low.cc (class riscv_target)
763 <low_cannot_fetch_register>
764 <low_cannot_store_register>: Declare.
765 (riscv_target::low_cannot_fetch_register)
766 (riscv_target::low_cannot_store_register): Define.
767 (the_low_target): Remove the op fields.
768 * linux-s390-low.cc (class s390_target)
769 <low_cannot_fetch_register>
770 <low_cannot_store_register>: Declare.
771 (s390_cannot_fetch_register): Turn into...
772 (s390_target::low_cannot_fetch_register): ...this.
773 (s390_cannot_store_register): Turn into...
774 (s390_target::low_cannot_store_register): ...this.
775 (the_low_target): Remove the op fields.
776 * linux-sh-low.cc (class sh_target)
777 <low_cannot_fetch_register>
778 <low_cannot_store_register>: Declare.
779 (sh_cannot_fetch_register): Turn into...
780 (sh_target::low_cannot_fetch_register): ...this.
781 (sh_cannot_store_register): Turn into...
782 (sh_target::low_cannot_store_register): ...this.
783 (the_low_target): Remove the op fields.
784 * linux-sparc-low.cc (class sparc_target)
785 <low_cannot_fetch_register>
786 <low_cannot_store_register>: Declare.
787 (sparc_cannot_fetch_register): Turn into...
788 (sparc_target::low_cannot_fetch_register): ...this.
789 (sparc_cannot_store_register): Turn into...
790 (sparc_target::low_cannot_store_register): ...this.
791 (the_low_target): Remove the op fields.
792 * linux-tic6x-low.cc (class tic6x_target)
793 <low_cannot_fetch_register>
794 <low_cannot_store_register>: Declare.
795 (tic6x_cannot_fetch_register): Turn into...
796 (tic6x_target::low_cannot_fetch_register): ...this.
797 (tic6x_cannot_store_register): Turn into...
798 (tic6x_target::low_cannot_store_register): ...this.
799 (the_low_target): Remove the op fields.
800 * linux-tile-low.cc (class tile_target)
801 <low_cannot_fetch_register>
802 <low_cannot_store_register>: Declare.
803 (tile_cannot_fetch_register): Turn into...
804 (tile_target::low_cannot_fetch_register): ...this.
805 (tile_cannot_store_register): Turn into...
806 (tile_target::low_cannot_store_register): ...this.
807 (the_low_target): Remove the op fields.
808 * linux-xtensa-low.cc (class xtensa_target)
809 <low_cannot_fetch_register>
810 <low_cannot_store_register>: Declare.
811 (xtensa_target::low_cannot_fetch_register)
812 (xtensa_target::low_cannot_store_register): Define.
813 (the_low_target): Remove the op fields.
814
aa8d21c9
TBA
8152020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
816
817 Turn the 'regs_info' linux target op into a method of
818 linux_process_target.
819
820 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
821 (class linux_process_target) <get_regs_info>: Define.
822
823 Update the callers below.
824
825 * linux-low.cc (linux_process_target::fetch_registers)
826 (linux_process_target::store_registers)
827 * proc-service.cc (gregset_info)
828
829 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
830 (x86_linux_regs_info): Turn into ...
831 (x86_target::get_regs_info): ...this.
832 (the_low_target): Remove the op field.
833 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
834 Declare.
835 (aarch64_regs_info): Turn into ...
836 (aarch64_target::get_regs_info): ...this.
837 (the_low_target): Remove the op field.
838 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
839 (arm_regs_info): Turn into ...
840 (arm_target::get_regs_info): ...this.
841 (the_low_target): Remove the op field.
842 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
843 (bfin_regs_info): Turn into ...
844 (bfin_target::get_regs_info): ...this.
845 (the_low_target): Remove the op field.
846 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
847 (cris_regs_info): Turn into ...
848 (cris_target::get_regs_info): ...this.
849 (the_low_target): Remove the op field.
850 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
851 Declare.
852 (crisv32_regs_info): Turn into ...
853 (crisv32_target::get_regs_info): ...this.
854 (the_low_target): Remove the op field.
855 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
856 (ia64_regs_info): Turn into ...
857 (ia64_target::get_regs_info): ...this.
858 (the_low_target): Remove the op field.
859 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
860 (m32r_regs_info): Turn into ...
861 (m32r_target::get_regs_info): ...this.
862 (the_low_target): Remove the op field.
863 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
864 (m68k_regs_info): Turn into ...
865 (m68k_target::get_regs_info): ...this.
866 (the_low_target): Remove the op field.
867 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
868 (mips_regs_info): Turn into ...
869 (mips_target::get_regs_info): ...this.
870 (the_low_target): Remove the op field.
871 (get_usrregs_info): Update the call to the op.
872 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
873 (nios2_regs_info): Turn into ...
874 (nios2_target::get_regs_info): ...this.
875 (the_low_target): Remove the op field.
876 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
877 (ppc_regs_info): Turn into ...
878 (ppc_target::get_regs_info): ...this.
879 (the_low_target): Remove the op field.
880 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
881 (riscv_regs_info): Turn into ...
882 (riscv_target::get_regs_info): ...this.
883 (the_low_target): Remove the op field.
884 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
885 (s390_regs_info): Turn into ...
886 (s390_target::get_regs_info): ...this.
887 (the_low_target): Remove the op field.
888 (s390_collect_ptrace_register)
889 (s390_supply_ptrace_register)
890 (s390_fill_gregset): Update the call to the op.
891 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
892 (sh_regs_info): Turn into ...
893 (sh_target::get_regs_info): ...this.
894 (the_low_target): Remove the op field.
895 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
896 (sparc_regs_info): Turn into ...
897 (sparc_target::get_regs_info): ...this.
898 (the_low_target): Remove the op field.
899 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
900 (tic6x_regs_info): Turn into ...
901 (tic6x_target::get_regs_info): ...this.
902 (the_low_target): Remove the op field.
903 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
904 (tile_regs_info): Turn into ...
905 (tile_target::get_regs_info): ...this.
906 (the_low_target): Remove the op field.
907 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
908 Declare.
909 (xtensa_regs_info): Turn into ...
910 (xtensa_target::get_regs_info): ...this.
911 (the_low_target): Remove the op field.
912
797bcff5
TBA
9132020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
914
915 Turn the 'arch_setup' linux target op into a method of
916 linux_process_target.
917
918 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
919 (class linux_process_target) <arch_setup_thread>
920 <low_arch_setup>: New declarations.
921 * linux-low.cc (linux_arch_setup): Delete.
922 (linux_arch_setup_thread): Turn into...
923 (linux_process_target::arch_setup_thread): ... this.
924
925 Update the callers below.
926
927 (linux_process_target::handle_extended_wait)
928 (linux_process_target::post_create_inferior)
929 (linux_process_target::filter_event)
930
931 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
932 declaration.
933 (x86_linux_update_xmltarget): Turn into...
934 (x86_target::update_xmltarget): ...this.
935 (x86_linux_process_qsupported): Update the call to
936 x86_linux_update_xmltarget.
937 (x86_arch_setup): Turn into ...
938 (x86_target::low_arch_setup): ...this.
939 (the_low_target): Remove the op field.
940 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
941 declaration.
942 (aarch64_arch_setup): Turn into ...
943 (aarch64_target::low_arch_setup): ...this.
944 (the_low_target): Remove the op field.
945 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
946 declaration.
947 (arm_arch_setup): Turn into ...
948 (arm_target::low_arch_setup): ...this.
949 (the_low_target): Remove the op field.
950 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
951 declaration.
952 (bfin_arch_setup): Turn into ...
953 (bfin_target::low_arch_setup): ...this.
954 (the_low_target): Remove the op field.
955 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
956 declaration.
957 (cris_arch_setup): Turn into ...
958 (cris_target::low_arch_setup): ...this.
959 (the_low_target): Remove the op field.
960 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
961 declaration.
962 (crisv32_arch_setup): Turn into ...
963 (crisv32_target::low_arch_setup): ...this.
964 (the_low_target): Remove the op field.
965 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
966 declaration.
967 (ia64_arch_setup): Turn into ...
968 (ia64_target::low_arch_setup): ...this.
969 (the_low_target): Remove the op field.
970 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
971 declaration.
972 (m32r_arch_setup): Turn into ...
973 (m32r_target::low_arch_setup): ...this.
974 (the_low_target): Remove the op field.
975 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
976 declaration.
977 (m68k_arch_setup): Turn into ...
978 (m68k_target::low_arch_setup): ...this.
979 (the_low_target): Remove the op field.
980 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
981 declaration.
982 (mips_arch_setup): Turn into ...
983 (mips_target::low_arch_setup): ...this.
984 (the_low_target): Remove the op field.
985 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
986 declaration.
987 (nios2_arch_setup): Turn into ...
988 (nios2_target::low_arch_setup): ...this.
989 (the_low_target): Remove the op field.
990 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
991 declaration.
992 (ppc_arch_setup): Turn into ...
993 (ppc_target::low_arch_setup): ...this.
994 (the_low_target): Remove the op field.
995 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
996 declaration.
997 (riscv_arch_setup): Turn into ...
998 (riscv_target::low_arch_setup): ...this.
999 (the_low_target): Remove the op field.
1000 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
1001 declaration.
1002 (s390_arch_setup): Turn into ...
1003 (s390_target::low_arch_setup): ...this.
1004 (the_low_target): Remove the op field.
1005 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
1006 declaration.
1007 (sh_arch_setup): Turn into ...
1008 (sh_target::low_arch_setup): ...this.
1009 (the_low_target): Remove the op field.
1010 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
1011 declaration.
1012 (sparc_arch_setup): Turn into ...
1013 (sparc_target::low_arch_setup): ...this.
1014 (the_low_target): Remove the op field.
1015 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
1016 declaration.
1017 (tic6x_arch_setup): Turn into ...
1018 (tic6x_target::low_arch_setup): ...this.
1019 (the_low_target): Remove the op field.
1020 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
1021 declaration.
1022 (tile_arch_setup): Turn into ...
1023 (tile_target::low_arch_setup): ...this.
1024 (the_low_target): Remove the op field.
1025 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
1026 declaration.
1027 (xtensa_arch_setup): Turn into ...
1028 (xtensa_target::low_arch_setup): ...this.
1029 (the_low_target): Remove the op field.
1030
ef0478f6
TBA
10312020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1032
1033 * linux-low.h (the_linux_target): New extern declaration.
1034 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
1035 'the_target'.
1036 (the_linux_target): Remove.
1037 * linux-x86-low.cc (class x86_target): New class.
1038 (the_x86_target): New static object.
1039 (the_linux_target): Define as pointer to the_x86_target.
1040 * linux-aarch64-low.cc (class aarch64_target): New class.
1041 (the_aarch64_target): New static object.
1042 (the_linux_target): Define as pointer to the_aarch64_target.
1043 * linux-arm-low.cc (class arm_target): New class.
1044 (the_arm_target): New static object.
1045 (the_linux_target): Define as pointer to the_arm_target.
1046 * linux-bfin-low.cc (class bfin_target): New class.
1047 (the_bfin_target): New static object.
1048 (the_linux_target): Define as pointer to the_bfin_target.
1049 * linux-cris-low.cc (class cris_target): New class.
1050 (the_cris_target): New static object.
1051 (the_linux_target): Define as pointer to the_cris_target.
1052 * linux-crisv32-low.cc (class crisv32_target): New class.
1053 (the_crisv32_target): New static object.
1054 (the_linux_target): Define as pointer to the_crisv32_target.
1055 * linux-ia64-low.cc (class ia64_target): New class.
1056 (the_ia64_target): New static object.
1057 (the_linux_target): Define as pointer to the_ia64_target.
1058 * linux-m32r-low.cc (class m32r_target): New class.
1059 (the_m32r_target): New static object.
1060 (the_linux_target): Define as pointer to the_m32r_target.
1061 * linux-m68k-low.cc (class m68k_target): New class.
1062 (the_m68k_target): New static object.
1063 (the_linux_target): Define as pointer to the_m68k_target.
1064 * linux-mips-low.cc (class mips_target): New class.
1065 (the_mips_target): New static object.
1066 (the_linux_target): Define as pointer to the_mips_target.
1067 * linux-nios2-low.cc (class nios2_target): New class.
1068 (the_nios2_target): New static object.
1069 (the_linux_target): Define as pointer to the_nios2_target.
1070 * linux-ppc-low.cc (class ppc_target): New class.
1071 (the_ppc_target): New static object.
1072 (the_linux_target): Define as pointer to the_ppc_target.
1073 * linux-riscv-low.cc (class riscv_target): New class.
1074 (the_riscv_target): New static object.
1075 (the_linux_target): Define as pointer to the_riscv_target.
1076 * linux-s390-low.cc (class s390_target): New class.
1077 (the_s390_target): New static object.
1078 (the_linux_target): Define as pointer to the_s390_target.
1079 * linux-sh-low.cc (class sh_target): New class.
1080 (the_sh_target): New static object.
1081 (the_linux_target): Define as pointer to the_sh_target.
1082 * linux-sparc-low.cc (class sparc_target): New class.
1083 (the_sparc_target): New static object.
1084 (the_linux_target): Define as pointer to the_sparc_target.
1085 * linux-tic6x-low.cc (class tic6x_target): New class.
1086 (the_tic6x_target): New static object.
1087 (the_linux_target): Define as pointer to the_tic6x_target.
1088 * linux-tile-low.cc (class tile_target): New class.
1089 (the_tile_target): New static object.
1090 (the_linux_target): Define as pointer to the_tile_target.
1091 * linux-xtensa-low.cc (class xtensa_target): New class.
1092 (the_xtensa_target): New static object.
1093 (the_linux_target): Define as pointer to the_xtensa_target.
1094
d16f3f6c
TBA
10952020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1096
1097 Turn some static functions in linux-low.cc into private methods of
1098 linux_process_target.
1099
1100 * linux-low.cc (handle_extended_wait): Turn into ...
1101 (linux_process_target::handle_extended_wait): ...this. Call
1102 'mourn' on 'this' object instead of 'the_target'.
1103 (maybe_move_out_of_jump_pad): Turn into...
1104 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
1105 (linux_low_filter_event): Turn into...
1106 (linux_process_target::filter_event): ...this.
1107 (linux_wait_for_event_filtered): Turn into...
1108 (linux_process_target::wait_for_event_filtered): ...this.
1109 (linux_wait_for_event): Turn into...
1110 (linux_process_target::wait_for_event): ...this.
1111 (linux_wait_1): Turn into...
1112 (linux_process_target::wait_1): ...this.
1113 (wait_for_sigstop): Turn into...
1114 (linux_process_target::wait_for_sigstop): ...this.
1115 (move_out_of_jump_pad_callback): Turn into...
1116 (linux_process_target::move_out_of_jump_pad): ...this.
1117 (stop_all_lwps): Turn into...
1118 (linux_process_target::stop_all_lwps): ...this.
1119 (start_step_over): Turn into...
1120 (linux_process_target::start_step_over): ...this.
1121 (complete_ongoing_step_over): Turn into...
1122 (linux_process_target::complete_ongoing_step_over): ...this.
1123 (proceed_all_lwps): Turn into...
1124 (linux_process_target::proceed_all_lwps): ...this.
1125 (unstop_all_lwps): Turn into...
1126 (linux_process_target::unstop_all_lwps): ...this.
1127
1128 * linux-low.h (class linux_process_target)
1129 <handle_extended_wait>
1130 <maybe_move_out_of_jump_pad>
1131 filter_event>
1132 <wait_for_event_filtered>
1133 <wait_for_event>
1134 <wait_1>
1135 <wait_for_sigstop>
1136 <move_out_of_jump_pad>
1137 <stop_all_lwps>
1138 <start_step_over>
1139 <complete_ongoing_step_over>
1140 <proceed_all_lwps>
1141 <unstop_all_lwps>: Declare.
1142
1143 Update the callers below.
1144
1145 * linux-low.cc (linux_process_target::attach): Update.
1146 (linux_process_target::stabilize_threads): Ditto.
1147 (linux_process_target::wait): Ditto.
1148
a5863204
TBA
11492020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1150
1151 * linux-low.h (struct linux_target_ops): Update the comment for
1152 'cannot_store_register' to return 0 or 1.
1153 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
1154 of 2.
1155
c884cc46
SM
11562020-03-20 Simon Marchi <simon.marchi@efficios.com>
1157
1158 * config.in: Re-generate.
1159 * configure: Re-generate.
1160
5a82b8a1
KR
11612020-03-17 Kamil Rytarowski <n54@gmx.com>
1162
1163 * regcache.cc (find_register_by_number): Update.
1164 * tdesc.cc (init_target_desc): Likewise.
1165 * tdesc.h (target_desc::reg_defs): Likewise.
1166
4635ff97
TT
11672020-03-12 Tom Tromey <tom@tromey.com>
1168
1169 * configure: Rebuild.
1170 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
1171 (WIN32APILIBS): New subst.
1172 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
1173 gdbsupport files.
1174 (gdbsupport/%.o): Remove target.
1175 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
1176 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
1177 (WIN32APILIBS): New variable.
1178 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
1179 (gdbreplay$(EXEEXT)): Likewise.
1180
9a665d62
TT
11812020-03-12 Tom Tromey <tom@tromey.com>
1182
1183 * config.in, configure: Rebuild.
1184 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
1185 * acinclude.m4: Include gettext-sister.m4.
1186 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
1187 variables.
1188 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
1189 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
1190
272cd5a3
SM
11912020-03-12 Simon Marchi <simon.marchi@efficios.com>
1192
1193 * acinclude.m4: Update path to selftest.m4.
1194
db6878ac
SM
11952020-03-12 Simon Marchi <simon.marchi@efficios.com>
1196
1197 * configure.ac: Don't source bfd/development.sh, move
1198 GDB_AC_COMMON higher.
1199 * configure: Re-generate.
1200
4d696a5c
SM
12012020-03-12 Simon Marchi <simon.marchi@efficios.com>
1202
1203 * configure: Re-generate.
1204
a0761e34
SM
12052020-03-11 Simon Marchi <simon.marchi@efficios.com>
1206
1207 * configure: Re-generate.
1208
20ea4a60
AB
12092020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
1210
1211 * .dir-locals.el: New file.
1212
842806cb
TBA
12132020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1214
1215 * .gitattributes: New file.
1216
442131c1
AB
12172020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
1218
1219 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
1220 reply into an S reply.
1221 * server.cc (disable_packet_T): New global.
1222 (captured_main): Set new global when appropriate.
1223 * server.h (disable_packet_T): Declare.
1224
dda42c0b
TT
12252020-02-21 Tom Tromey <tom@tromey.com>
1226
1227 * Makefile.in (mostlyclean): New target.
1228
52405d85
TBA
12292020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1230
1231 * target.h (struct process_stratum_target): Remove.
1232 (class process_target): Rename to ...
1233 (class process_stratum_target): ... this.
1234 * linux-low.h (class linux_process_target): Derive from
1235 'process_stratum_target'.
1236 * linux-low.cc (linux_target_ops): Remove.
1237 (initialize_low): Set the_target to the singleton instance of
1238 linux_process_target.
1239 * lynx-low.h (class lynx_process_target): Derive from
1240 'process_stratum_target'.
1241 * lynx-low.cc (lynx_target_ops): Remove.
1242 (initialize_low): Set the_target to the singleton instance of
1243 lynx_process_target.
1244 * nto-low.h (class nto_process_target): Derive from
1245 'process_stratum_target'.
1246 * nto-low.cc (nto_target_ops): Remove.
1247 (initialize_low): Set the_target to the singleton instance of
1248 nto_process_target.
1249 * win32-low.h (class win32_process_target): Derive from
1250 'process_stratum_target'.
1251 * win32-low.cc (win32_target_ops): Remove.
1252 (initialize_low): Set the_target to the singleton instance of
1253 win32_process_target.
1254
1255 Replace 'the_target->pt' with 'the_target' in the uses below.
1256
1257 * hostio.cc (hostio_error)
1258 (handle_setfs)
1259 (handle_open)
1260 (handle_unlink)
1261 (handle_readlink)
1262 * linux-aarch32-low.cc (arm_breakpoint_at)
1263 * linux-aarch64-low.cc (aarch64_breakpoint_at)
1264 * linux-arm-low.cc (arm_sigreturn_next_pc)
1265 (arm_get_hwcap)
1266 (arm_get_syscall_trapinfo)
1267 * linux-cris-low.cc (cris_breakpoint_at)
1268 * linux-crisv32-low.cc (cris_breakpoint_at)
1269 * linux-low.cc (handle_extended_wait)
1270 (linux_wait_1)
1271 (linux_read_memory)
1272 (linux_process_target::breakpoint_kind_from_pc)
1273 (linux_get_auxv)
1274 * linux-m32r-low.cc (m32r_breakpoint_at)
1275 * linux-mips-low.cc (mips_breakpoint_at)
1276 * linux-nios2-low.cc (nios2_breakpoint_at)
1277 * linux-ppc-low.cc (ppc_breakpoint_at)
1278 * linux-s390-low.cc (s390_get_hwcap)
1279 * linux-sh-low.cc (sh_breakpoint_at)
1280 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
1281 (sparc_store_gregset_from_stack)
1282 (sparc_breakpoint_at)
1283 * linux-tic6x-low.cc (tic6x_breakpoint_at)
1284 * linux-tile-low.cc (tile_breakpoint_at)
1285 * linux-x86-low.cc (x86_breakpoint_at)
1286 * linux-xtensa-low.cc (xtensa_breakpoint_at)
1287 * mem-break.cc (bp_size)
1288 (bp_opcode)
1289 (insert_memory_breakpoint)
1290 (set_raw_breakpoint_at)
1291 (delete_raw_breakpoint)
1292 (z_type_supported)
1293 (uninsert_raw_breakpoint)
1294 (reinsert_raw_breakpoint)
1295 (validate_inserted_breakpoint)
1296 * regcache.cc (regcache_read_pc)
1297 (regcache_write_pc)
1298 * remote-utils.cc (putpkt_binary_1)
1299 (input_interrupt)
1300 (getpkt)
1301 (prepare_resume_reply)
1302 * server.cc (handle_general_set)
1303 (handle_detach)
1304 (handle_qxfer_auxv)
1305 (handle_qxfer_exec_file)
1306 (handle_qxfer_libraries_svr4)
1307 (handle_qxfer_osdata)
1308 (handle_qxfer_siginfo)
1309 (handle_qxfer_fdpic)
1310 (handle_query)
1311 (resume)
1312 (handle_v_requests)
1313 (queue_stop_reply_callback)
1314 (captured_main)
1315 * target.cc (prepare_to_access_memory)
1316 (done_accessing_memory)
1317 (read_inferior_memory)
1318 (target_write_memory)
1319 (target_stop_and_wait)
1320 (target_wait)
1321 (target_mourn_inferior)
1322 (target_continue_no_signal)
1323 (target_continue)
1324 (target_supports_multi_process)
1325 (kill_inferior)
1326 * target.h
1327 (target_create_inferior)
1328 (target_post_create_inferior)
1329 (myattach)
1330 (target_supports_fork_events)
1331 (target_supports_vfork_events)
1332 (target_supports_exec_events)
1333 (target_handle_new_gdb_connection)
1334 (detach_inferior)
1335 (mythread_alive)
1336 (fetch_inferior_registers)
1337 (store_inferior_registers)
1338 (join_inferior)
1339 (target_supports_non_stop)
1340 (target_async)
1341 (target_process_qsupported)
1342 (target_supports_catch_syscall)
1343 (target_get_ipa_tdesc_idx)
1344 (target_supports_tracepoints)
1345 (target_supports_fast_tracepoints)
1346 (target_get_min_fast_tracepoint_insn_len)
1347 (target_thread_stopped)
1348 (target_pause_all)
1349 (target_unpause_all)
1350 (target_stabilize_threads)
1351 (target_install_fast_tracepoint_jump_pad)
1352 (target_emit_ops)
1353 (target_supports_disable_randomization)
1354 (target_supports_agent)
1355 (target_enable_btrace)
1356 (target_disable_btrace)
1357 (target_read_btrace)
1358 (target_read_btrace_conf)
1359 (target_supports_range_stepping)
1360 (target_supports_stopped_by_sw_breakpoint)
1361 (target_stopped_by_sw_breakpoint)
1362 (target_supports_stopped_by_hw_breakpoint)
1363 (target_supports_hardware_single_step)
1364 (target_stopped_by_hw_breakpoint)
1365 (target_breakpoint_kind_from_pc)
1366 (target_breakpoint_kind_from_current_state)
1367 (target_supports_software_single_step)
1368 (target_core_of_thread)
1369 (target_thread_name)
1370 (target_thread_handle)
1371 * win32-low.cc (do_initial_child_stuff)
1372
1373 Rename target op default definitions listed below.
1374
1375 * target.cc (process_target::post_create_inferior): Rename as ...
1376 (process_stratum_target::post_create_inferior): ... this.
1377 (process_target::prepare_to_access_memory): Rename as ...
1378 (process_stratum_target::prepare_to_access_memory): ... this.
1379 (process_target::done_accessing_memory): Rename as ...
1380 (process_stratum_target::done_accessing_memory): ... this.
1381 (process_target::look_up_symbols): Rename as ...
1382 (process_stratum_target::look_up_symbols): ... this.
1383 (process_target::supports_read_auxv): Rename as ...
1384 (process_stratum_target::supports_read_auxv): ... this.
1385 (process_target::read_auxv): Rename as ...
1386 (process_stratum_target::read_auxv): ... this.
1387 (process_target::supports_z_point_type): Rename as ...
1388 (process_stratum_target::supports_z_point_type): ... this.
1389 (process_target::insert_point): Rename as ...
1390 (process_stratum_target::insert_point): ... this.
1391 (process_target::remove_point): Rename as ...
1392 (process_stratum_target::remove_point): ... this.
1393 (process_target::stopped_by_sw_breakpoint): Rename as ...
1394 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
1395 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
1396 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
1397 (process_target::stopped_by_hw_breakpoint): Rename as ...
1398 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
1399 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
1400 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
1401 (process_target::supports_hardware_single_step): Rename as ...
1402 (process_stratum_target::supports_hardware_single_step): ... this.
1403 (process_target::stopped_by_watchpoint): Rename as ...
1404 (process_stratum_target::stopped_by_watchpoint): ... this.
1405 (process_target::stopped_data_address): Rename as ...
1406 (process_stratum_target::stopped_data_address): ... this.
1407 (process_target::supports_read_offsets): Rename as ...
1408 (process_stratum_target::supports_read_offsets): ... this.
1409 (process_target::read_offsets): Rename as ...
1410 (process_stratum_target::read_offsets): ... this.
1411 (process_target::supports_get_tls_address): Rename as ...
1412 (process_stratum_target::supports_get_tls_address): ... this.
1413 (process_target::get_tls_address): Rename as ...
1414 (process_stratum_target::get_tls_address): ... this.
1415 (process_target::hostio_last_error): Rename as ...
1416 (process_stratum_target::hostio_last_error): ... this.
1417 (process_target::supports_qxfer_osdata): Rename as ...
1418 (process_stratum_target::supports_qxfer_osdata): ... this.
1419 (process_target::qxfer_osdata): Rename as ...
1420 (process_stratum_target::qxfer_osdata): ... this.
1421 (process_target::supports_qxfer_siginfo): Rename as ...
1422 (process_stratum_target::supports_qxfer_siginfo): ... this.
1423 (process_target::qxfer_siginfo): Rename as ...
1424 (process_stratum_target::qxfer_siginfo): ... this.
1425 (process_target::supports_non_stop): Rename as ...
1426 (process_stratum_target::supports_non_stop): ... this.
1427 (process_target::async): Rename as ...
1428 (process_stratum_target::async): ... this.
1429 (process_target::start_non_stop): Rename as ...
1430 (process_stratum_target::start_non_stop): ... this.
1431 (process_target::supports_multi_process): Rename as ...
1432 (process_stratum_target::supports_multi_process): ... this.
1433 (process_target::supports_fork_events): Rename as ...
1434 (process_stratum_target::supports_fork_events): ... this.
1435 (process_target::supports_vfork_events): Rename as ...
1436 (process_stratum_target::supports_vfork_events): ... this.
1437 (process_target::supports_exec_events): Rename as ...
1438 (process_stratum_target::supports_exec_events): ... this.
1439 (process_target::handle_new_gdb_connection): Rename as ...
1440 (process_stratum_target::handle_new_gdb_connection): ... this.
1441 (process_target::handle_monitor_command): Rename as ...
1442 (process_stratum_target::handle_monitor_command): ... this.
1443 (process_target::core_of_thread): Rename as ...
1444 (process_stratum_target::core_of_thread): ... this.
1445 (process_target::supports_read_loadmap): Rename as ...
1446 (process_stratum_target::supports_read_loadmap): ... this.
1447 (process_target::read_loadmap): Rename as ...
1448 (process_stratum_target::read_loadmap): ... this.
1449 (process_target::process_qsupported): Rename as ...
1450 (process_stratum_target::process_qsupported): ... this.
1451 (process_target::supports_tracepoints): Rename as ...
1452 (process_stratum_target::supports_tracepoints): ... this.
1453 (process_target::read_pc): Rename as ...
1454 (process_stratum_target::read_pc): ... this.
1455 (process_target::write_pc): Rename as ...
1456 (process_stratum_target::write_pc): ... this.
1457 (process_target::supports_thread_stopped): Rename as ...
1458 (process_stratum_target::supports_thread_stopped): ... this.
1459 (process_target::thread_stopped): Rename as ...
1460 (process_stratum_target::thread_stopped): ... this.
1461 (process_target::supports_get_tib_address): Rename as ...
1462 (process_stratum_target::supports_get_tib_address): ... this.
1463 (process_target::get_tib_address): Rename as ...
1464 (process_stratum_target::get_tib_address): ... this.
1465 (process_target::pause_all): Rename as ...
1466 (process_stratum_target::pause_all): ... this.
1467 (process_target::unpause_all): Rename as ...
1468 (process_stratum_target::unpause_all): ... this.
1469 (process_target::stabilize_threads): Rename as ...
1470 (process_stratum_target::stabilize_threads): ... this.
1471 (process_target::supports_fast_tracepoints): Rename as ...
1472 (process_stratum_target::supports_fast_tracepoints): ... this.
1473 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
1474 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
1475 (process_target::emit_ops): Rename as ...
1476 (process_stratum_target::emit_ops): ... this.
1477 (process_target::supports_disable_randomization): Rename as ...
1478 (process_stratum_target::supports_disable_randomization): ... this.
1479 (process_target::supports_qxfer_libraries_svr4): Rename as ...
1480 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
1481 (process_target::qxfer_libraries_svr4): Rename as ...
1482 (process_stratum_target::qxfer_libraries_svr4): ... this.
1483 (process_target::supports_agent): Rename as ...
1484 (process_stratum_target::supports_agent): ... this.
1485 (process_target::enable_btrace): Rename as ...
1486 (process_stratum_target::enable_btrace): ... this.
1487 (process_target::disable_btrace): Rename as ...
1488 (process_stratum_target::disable_btrace): ... this.
1489 (process_target::read_btrace): Rename as ...
1490 (process_stratum_target::read_btrace): ... this.
1491 (process_target::read_btrace_conf): Rename as ...
1492 (process_stratum_target::read_btrace_conf): ... this.
1493 (process_target::supports_range_stepping): Rename as ...
1494 (process_stratum_target::supports_range_stepping): ... this.
1495 (process_target::supports_pid_to_exec_file): Rename as ...
1496 (process_stratum_target::supports_pid_to_exec_file): ... this.
1497 (process_target::pid_to_exec_file): Rename as ...
1498 (process_stratum_target::pid_to_exec_file): ... this.
1499 (process_target::supports_multifs): Rename as ...
1500 (process_stratum_target::supports_multifs): ... this.
1501 (process_target::multifs_open): Rename as ...
1502 (process_stratum_target::multifs_open): ... this.
1503 (process_target::multifs_unlink): Rename as ...
1504 (process_stratum_target::multifs_unlink): ... this.
1505 (process_target::multifs_readlink): Rename as ...
1506 (process_stratum_target::multifs_readlink): ... this.
1507 (process_target::breakpoint_kind_from_pc): Rename as ...
1508 (process_stratum_target::breakpoint_kind_from_pc): ... this.
1509 (process_target::breakpoint_kind_from_current_state): Rename as ...
1510 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
1511 (process_target::thread_name): Rename as ...
1512 (process_stratum_target::thread_name): ... this.
1513 (process_target::thread_handle): Rename as ...
1514 (process_stratum_target::thread_handle): ... this.
1515 (process_target::supports_software_single_step): Rename as ...
1516 (process_stratum_target::supports_software_single_step): ... this.
1517 (process_target::supports_catch_syscall): Rename as ...
1518 (process_stratum_target::supports_catch_syscall): ... this.
1519 (process_target::get_ipa_tdesc_idx): Rename as ...
1520 (process_stratum_target::get_ipa_tdesc_idx): ... this.
1521
478f9adf
PA
15222020-02-20 Pedro Alves <palves@redhat.com>
1523
1524 * target.cc (set_target_ops): Simply copy the given target pointer
1525 instead of creating a copy of the pointed object.
1526
d633e831
TBA
15272020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1528
1529 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
1530 of process_target.
1531
1532 * target.h (struct process_stratum_target): Remove the target op.
1533 (class process_target): Add the target op.
1534 (target_get_ipa_tdesc_idx): Update the macro.
1535 * target.cc (process_target::get_ipa_tdesc_idx): Define.
1536
1537 Update the derived classes and callers below.
1538
1539 * linux-low.cc (linux_target_ops): Update.
1540 (linux_get_ipa_tdesc_idx): Turn into ...
1541 (linux_process_target::get_ipa_tdesc_idx): ... this.
1542 * linux-low.h (class linux_process_target): Update.
1543 * lynx-low.cc (lynx_target_ops): Update.
1544 * nto-low.cc (nto_target_ops): Update.
1545 * win32-low.cc (win32_target_ops): Update.
1546
bc8d3ae4
TBA
15472020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1548
1549 Turn process_stratum_target's supports_catch_syscall op into a
1550 method of process_target.
1551
1552 * target.h (struct process_stratum_target): Remove the target op.
1553 (class process_target): Add the target op.
1554 (target_supports_catch_syscall): Update the macro.
1555 * target.cc (process_target::supports_catch_syscall): Define.
1556
1557 Update the derived classes and callers below.
1558
1559 * linux-low.cc (linux_target_ops): Update.
1560 (linux_supports_catch_syscall): Turn into ...
1561 (linux_process_target::supports_catch_syscall): ... this.
1562 * linux-low.h (class linux_process_target): Update.
1563 * lynx-low.cc (lynx_target_ops): Update.
1564 * nto-low.cc (nto_target_ops): Update.
1565 * win32-low.cc (win32_target_ops): Update.
1566
5303a34f
TBA
15672020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1568
1569 Turn process_stratum_target's supports_software_single_step op
1570 into a method of process_target.
1571
1572 * target.h (struct process_stratum_target): Remove the target op.
1573 (class process_target): Add the target op.
1574 (target_supports_software_single_step): Update the macro.
1575 * target.cc (process_target::supports_software_single_step): Define.
1576
1577 Update the derived classes and callers below.
1578
1579 * linux-low.cc (linux_target_ops): Update.
1580 (linux_supports_software_single_step): Turn into ...
1581 (linux_process_target::supports_software_single_step): ... this.
1582 * linux-low.h (class linux_process_target): Update.
1583 * lynx-low.cc (lynx_target_ops): Update.
1584 * nto-low.cc (nto_target_ops): Update.
1585 * win32-low.cc (win32_target_ops): Update.
1586
7f63b89b
TBA
15872020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1588
1589 Turn process_stratum_target's thread_name and thread_handle ops
1590 into methods of process_target.
1591
1592 * target.h (struct process_stratum_target): Remove the target ops.
1593 (class process_target): Add the target ops.
1594 (target_thread_name): Update the macro.
1595 (target_thread_handle): Update the macro.
1596 * target.cc (process_target::thread_name): Define.
1597 (process_target::thread_handle): Define.
1598
1599 Update the derived classes and callers below.
1600
1601 * linux-low.cc (linux_target_ops): Update.
1602 (linux_process_target::thread_name): Define.
1603 (linux_process_target::thread_handle): Define.
1604 * linux-low.h (class linux_process_target): Update.
1605 * lynx-low.cc (lynx_target_ops): Update.
1606 * nto-low.cc (nto_target_ops): Update.
1607 * win32-low.cc (win32_target_ops): Update.
1608
d367006f
TBA
16092020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1610
1611 Turn process_stratum_target's breakpoint_kind_from_pc,
1612 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
1613 ops into methods of process_target.
1614
1615 * target.h (struct process_stratum_target): Remove the target op.
1616 (class process_target): Add the target op.
1617 (target_breakpoint_kind_from_pc): Update the macro.
1618 (target_breakpoint_kind_from_current_state): Update the macro.
1619 (default_breakpoint_kind_from_pc): Remove declaration.
1620 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
1621 (process_target::breakpoint_kind_from_pc): ... this.
1622 (process_target::breakpoint_kind_from_current_state): Define.
1623
1624 Update the derived classes and callers below.
1625
1626 * mem-break.cc (bp_size): Update.
1627 (bp_opcode): Update.
1628 * linux-low.cc (linux_target_ops): Update.
1629 (linux_wait_1): Update.
1630 (linux_breakpoint_kind_from_pc): Turn into ...
1631 (linux_process_target::breakpoint_kind_from_pc): ... this.
1632 (linux_sw_breakpoint_from_kind): Turn into ...
1633 (linux_process_target::sw_breakpoint_from_kind): ... this.
1634 (linux_breakpoint_kind_from_current_state): Turn into ...
1635 (linux_process_target::breakpoint_kind_from_current_state): ... this.
1636 * linux-low.h (class linux_process_target): Update.
1637 * lynx-low.cc (lynx_target_ops): Update.
1638 (lynx_process_target::sw_breakpoint_from_kind): Define.
1639 * lynx-low.h (class lynx_process_target): Update.
1640 * nto-low.cc (nto_target_ops): Update.
1641 (nto_sw_breakpoint_from_kind): Turn into ...
1642 (nto_process_target::sw_breakpoint_from_kind): ... this.
1643 * nto-low.h (class nto_process_target): Update.
1644 * win32-low.cc (win32_target_ops): Update.
1645 (win32_sw_breakpoint_from_kind): Turn into ...
1646 (win32_process_target::sw_breakpoint_from_kind): ... this.
1647 * win32-low.h (class win32_process_target): Update.
1648
c9b7b804
TBA
16492020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1650
1651 Turn process_stratum_target's multifs_open, multifs_readlink,
1652 multifs_unlink ops into methods of process_target.
1653
1654 * target.h (struct process_stratum_target): Remove the target ops.
1655 (class process_target): Add the target ops. Also add
1656 'supports_multifs'.
1657 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
1658 "sys/stat.h".
1659 (process_target::supports_multifs): Define.
1660 (process_target::multifs_open): Define.
1661 (process_target::multifs_readlink): Define.
1662 (process_target::multifs_unlink): Define.
1663
1664 Update the derived classes and callers below.
1665
1666 * hostio.cc (handle_setfs): Update.
1667 (handle_open): Update.
1668 (handle_unlink): Update.
1669 (handle_readlink): Update.
1670 * linux-low.cc (linux_target_ops): Update.
1671 (linux_process_target::supports_multifs): Define.
1672 (linux_process_target::multifs_open): Define.
1673 (linux_process_target::multifs_readlink): Define.
1674 (linux_process_target::multifs_unlink): Define.
1675 * linux-low.h (class linux_process_target): Update.
1676 * lynx-low.cc (lynx_target_ops): Update.
1677 * nto-low.cc (nto_target_ops): Update.
1678 * win32-low.cc (win32_target_ops): Update.
1679
8247b823
TBA
16802020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1681
1682 Turn process_stratum_target's pid_to_exec_file op into a method
1683 of process_target.
1684
1685 * target.h (struct process_stratum_target): Remove the target op.
1686 (class process_target): Add the target op. Also add
1687 'supports_pid_to_exec_file'.
1688 * target.cc (process_target::pid_to_exec_file): Define.
1689 (process_target::supports_pid_to_exec_file): Define.
1690
1691 Update the derived classes and callers below.
1692
1693 * server.cc (handle_qxfer_exec_file): Update.
1694 (handle_query): Update.
1695 * linux-low.cc (linux_target_ops): Update.
1696 (linux_process_target::supports_pid_to_exec_file): Define.
1697 (linux_process_target::pid_to_exec_file): Define.
1698 * linux-low.h (class linux_process_target): Update.
1699 * lynx-low.cc (lynx_target_ops): Update.
1700 * nto-low.cc (nto_target_ops): Update.
1701 * win32-low.cc (win32_target_ops): Update.
1702
2526e0cd
TBA
17032020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1704
1705 Turn process_stratum_target's supports_range_stepping op into a
1706 method of process_target.
1707
1708 * target.h (struct process_stratum_target): Remove the target op.
1709 (class process_target): Add the target op.
1710 (target_supports_range_stepping): Update the macro.
1711 * target.cc (process_target::supports_range_stepping): Define.
1712
1713 Update the derived classes and callers below.
1714
1715 * linux-low.cc (linux_target_ops): Update.
1716 (linux_supports_range_stepping): Turn into ...
1717 (linux_process_target::supports_range_stepping): ... this.
1718 * linux-low.h (class linux_process_target): Update.
1719 * lynx-low.cc (lynx_target_ops): Update.
1720 * nto-low.cc (nto_target_ops): Update.
1721 * win32-low.cc (win32_target_ops): Update.
1722
79597bdd
TBA
17232020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1724
1725 Turn process_stratum_target's btrace-related ops (enable_btrace,
1726 disable_btrace, read_btrace, read_btrace_conf) into methods of
1727 process_target.
1728
1729 * target.h (struct process_stratum_target): Remove the target ops.
1730 (class process_target): Add the target ops.
1731 (target_enable_btrace): Update.
1732 (target_disable_btrace): Update.
1733 (target_read_btrace): Update.
1734 (target_read_btrace_conf): Update.
1735 * target.cc (process_target::enable_btrace): Define.
1736 (process_target::disable_btrace): Define.
1737 (process_target::read_btrace): Define.
1738 (process_target::read_btrace_conf): Define.
1739
1740 Update the derived classes and callers below.
1741
1742 * linux-low.cc (linux_target_ops): Update.
1743 (linux_process_target:enable_btrace): Define as a wrapper around
1744 linux_enable_btrace.
1745 (linux_low_disable_btrace): Turn into ...
1746 (linux_process_target::disable_btrace): ... this.
1747 (linux_low_read_btrace): Turn into ...
1748 (linux_process_target::read_btrace): ... this.
1749 (linux_low_btrace_conf): Turn into ...
1750 (linux_process_target::read_btrace_conf): ... this.
1751 * linux-low.h (class linux_process_target): Update.
1752 * lynx-low.cc (lynx_target_ops): Update.
1753 * nto-low.cc (nto_target_ops): Update.
1754 * win32-low.cc (win32_target_ops): Update.
1755
c0245cb9
TBA
17562020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1757
1758 Turn process_stratum_target's supports_agent op into a method of
1759 process_target.
1760
1761 * target.h (struct process_stratum_target): Remove the target op.
1762 (class process_target): Add the target op.
1763 (target_supports_agent): Update the macro.
1764 * target.cc (process_target::supports_agent): Define.
1765
1766 Update the derived classes and callers below.
1767
1768 * linux-low.cc (linux_target_ops): Update.
1769 (linux_supports_agent): Turn into ...
1770 (linux_process_target::supports_agent): ... this.
1771 * linux-low.h (class linux_process_target): Update.
1772 * lynx-low.cc (lynx_target_ops): Update.
1773 * nto-low.cc (nto_target_ops): Update.
1774 * win32-low.cc (win32_target_ops): Update.
1775
974387bb
TBA
17762020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1777
1778 Turn process_stratum_target's qxfer_libraries_svr4 op into a
1779 method of process_target.
1780
1781 * target.h (struct process_stratum_target): Remove the target op.
1782 (class process_target): Add the target op. Also add
1783 'supports_qxfer_libraries_svr4'.
1784 * target.cc (process_target::qxfer_libraries_svr4): Define.
1785 (process_target::supports_qxfer_libraries_svr4): Define.
1786
1787 Update the derived classes and callers below.
1788
1789 * server.cc (handle_qxfer_libraries_svr4): Update.
1790 (handle_query): Update.
1791 * linux-low.cc (linux_target_ops): Update.
1792 (linux_process_target::supports_qxfer_libraries_svr4): Define.
1793 (linux_qxfer_libraries_svr4): Turn into ...
1794 (linux_process_target::qxfer_libraries_svr4): ... this.
1795 * linux-low.h (class linux_process_target): Update.
1796 * lynx-low.cc (lynx_target_ops): Update.
1797 * nto-low.cc (nto_target_ops): Update.
1798 * win32-low.cc (win32_target_ops): Update.
1799
c756403b
TBA
18002020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1801
1802 Turn process_stratum_target's supports_disable_randomization op
1803 into a method of process_target.
1804
1805 * target.h (struct process_stratum_target): Remove the target op.
1806 (class process_target): Add the target op.
1807 (target_supports_disable_randomization): Update the macro.
1808 * target.cc (process_target::supports_disable_randomization): Define.
1809
1810 Update the derived classes and callers below.
1811
1812 * linux-low.cc (linux_target_ops): Update.
1813 (linux_supports_disable_randomization): Turn into ...
1814 (linux_process_target::supports_disable_randomization): ... this.
1815 * linux-low.h (class linux_process_target): Update.
1816 * lynx-low.cc (lynx_target_ops): Update.
1817 * nto-low.cc (nto_target_ops): Update.
1818 * win32-low.cc (win32_target_ops): Update.
1819
345dafad
TBA
18202020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1821
1822 Turn process_stratum_target's emit_ops op into a method of
1823 process_target.
1824
1825 * target.h (struct process_stratum_target): Remove the target op.
1826 (class process_target): Add the target op.
1827 (target_emit_ops): Update the macro.
1828 * target.cc (process_target::emit_ops): Define.
1829
1830 Update the derived classes and callers below.
1831
1832 * linux-low.cc (linux_target_ops): Update.
1833 (linux_emit_ops): Turn into ...
1834 (linux_process_target::emit_ops): ... this.
1835 * linux-low.h (class linux_process_target): Update.
1836 * lynx-low.cc (lynx_target_ops): Update.
1837 * nto-low.cc (nto_target_ops): Update.
1838 * win32-low.cc (win32_target_ops): Update.
1839
c23c9391
TBA
18402020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1841
1842 Turn process_stratum_target's install_fast_tracepoint_jump_pad
1843 and get_min_fast_tracepoint_insn_len ops into methods of
1844 process_target.
1845
1846 * target.h (struct process_stratum_target): Remove the target ops.
1847 (class process_target): Add the target ops. Also add
1848 'supports_fast_tracepoints'.
1849 (target_supports_fast_tracepoints): Update the macro.
1850 (target_get_min_fast_tracepoint_insn_len): Update the macro.
1851 (install_fast_tracepoint_jump_pad): Update and rename the macro
1852 to ...
1853 (target_install_fast_tracepoint_jump_pad): ... this.
1854 * target.cc (process_target::supports_fast_tracepoints): Define.
1855 (process_target::install_fast_tracepoint_jump_pad): Define.
1856 (process_target::get_min_fast_tracepoint_insn_len): Define.
1857
1858 Update the derived classes and callers below.
1859
1860 * tracepoint.cc (install_fast_tracepoint): Update.
1861 * linux-low.cc (linux_target_ops): Update.
1862 (linux_process_target::supports_fast_tracepoints): Define.
1863 (linux_install_fast_tracepoint_jump_pad): Turn into ...
1864 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
1865 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
1866 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
1867 * linux-low.h (class linux_process_target): Update.
1868 * lynx-low.cc (lynx_target_ops): Update.
1869 * nto-low.cc (nto_target_ops): Update.
1870 * win32-low.cc (win32_target_ops): Update.
1871
5c9eb2f2
TBA
18722020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1873
1874 Turn process_stratum_target's stabilize_threads op into a
1875 method of process_target.
1876
1877 * target.h (struct process_stratum_target): Remove the target op.
1878 (class process_target): Add the target op.
1879 (target_stabilize_threads): Update the macro.
1880 * target.cc (process_target::stabilize_threads): Define.
1881
1882 Update the derived classes and callers below.
1883
1884 * server.cc (handle_status): Update.
1885 * tracepoint.cc (cmd_qtdp): Update.
1886 (cmd_qtstart): Update.
1887 * linux-low.cc (linux_target_ops): Update.
1888 (linux_stabilize_threads): Turn into ...
1889 (linux_process_target::stabilize_threads): ... this.
1890 (linux_wait_1): Update.
1891 * linux-low.h (class linux_process_target): Update.
1892 * lynx-low.cc (lynx_target_ops): Update.
1893 * nto-low.cc (nto_target_ops): Update.
1894 * win32-low.cc (win32_target_ops): Update.
1895
29e8dc09
TBA
18962020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1897
1898 Turn process_stratum_target's pause_all and unpause_all ops
1899 into methods of process_target.
1900
1901 * target.h (struct process_stratum_target): Remove the target ops.
1902 (class process_target): Add the target ops.
1903 (pause_all): Update the macro and rename to...
1904 (target_pause_all): ... this.
1905 (unpause_all): Update the macro and rename to...
1906 (target_unpause_all): ... this.
1907 * target.cc (process_target::pause_all): Define.
1908 (process_target::unpause_all): Define.
1909
1910 Update the derived classes and callers below.
1911
1912 * server.cc (handle_status): Update.
1913 * tracepoint.cc (clear_installed_tracepoints): Update.
1914 (cmd_qtdp): Update.
1915 (cmd_qtstart): Update.
1916 (stop_tracing): Update.
1917 (cmd_qtstatus): Update.
1918 (upload_fast_traceframes): Update.
1919 (run_inferior_command): Update.
1920 * linux-low.cc (linux_target_ops): Update.
1921 (linux_pause_all): Turn into ...
1922 (linux_process_target::pause_all): ... this.
1923 (linux_unpause_all): Turn into ...
1924 (linux_process_target::unpause_all): ... this.
1925 (linux_process_target::prepare_to_access_memory): Update.
1926 (linux_process_target::done_accessing_memory): Update.
1927 * linux-low.h (class linux_process_target): Update.
1928 * lynx-low.cc (lynx_target_ops): Update.
1929 * nto-low.cc (nto_target_ops): Update.
1930 * win32-low.cc (win32_target_ops): Update.
1931
4e2e869c
TBA
19322020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1933
1934 Turn process_stratum_target's get_tib_address op into a method of
1935 process_target.
1936
1937 * target.h (struct process_stratum_target): Remove the target op.
1938 (class process_target): Add the target op. Also add
1939 'supports_get_tib_address'.
1940 * target.cc (process_target::get_tib_address): Define.
1941 (process_target::supports_get_tib_address): Define.
1942
1943 Update the derived classes and callers below.
1944
1945 * server.cc (handle_query): Update.
1946 * linux-low.cc (win32_target_ops): Update.
1947 * lynx-low.cc (lynx_target_ops): Update.
1948 * nto-low.cc (nto_target_ops): Update.
1949 * win32-low.cc (win32_target_ops): Update.
1950 (win32_process_target::supports_get_tib_address): Define.
1951 (win32_get_tib_address): Turn into ...
1952 (win32_process_target::get_tib_address): ... this.
1953 * win32-low.h (class win32_process_target): Update.
1954
68119632
TBA
19552020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1956
1957 Turn process_stratum_target's thread_stopped op into a method of
1958 process_target.
1959
1960 * target.h (struct process_stratum_target): Remove the target op.
1961 (class process_target): Add the target op. Also add
1962 'supports_thread_stopped'.
1963 (target_thread_stopped): Update the macro.
1964 * target.cc (process_target::thread_stopped): Define.
1965 (process_target::supports_thread_stopped): Define.
1966 (prepare_to_access_memory): Update.
1967
1968 Update the derived classes and callers below.
1969
1970 * server.cc (queue_stop_reply_callback): Update.
1971 * linux-low.cc (linux_target_ops): Update.
1972 (linux_process_target::supports_thread_stopped): Define.
1973 (linux_thread_stopped): Turn into ...
1974 (linux_process_target::thread_stopped): ... this.
1975 * linux-low.h (class linux_process_target): Update.
1976 * lynx-low.cc (lynx_target_ops): Update.
1977 * nto-low.cc (nto_target_ops): Update.
1978 * win32-low.cc (win32_target_ops): Update.
1979
770d8f6a
TBA
19802020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1981
1982 Turn process_stratum_target's read_pc and write_pc ops into
1983 methods of process_target.
1984
1985 * target.h (struct process_stratum_target): Remove the target ops.
1986 (class process_target): Add the target ops.
1987 * target.cc (process_target::read_pc): Define.
1988 (process_target::write_pc): Define.
1989
1990 Update the derived classes and callers below.
1991
1992 * regcache.cc (regcache_read_pc): Update.
1993 (regcache_write_pc): Update.
1994 * linux-low.cc (linux_target_ops): Update.
1995 (linux_read_pc): Turn into ...
1996 (linux_process_target::read_pc): ... this.
1997 (linux_write_pc): Turn into ...
1998 (linux_process_target::write_pc): ... this.
1999 * linux-low.h (class linux_process_target): Update.
2000 * lynx-low.cc (lynx_target_ops): Update.
2001 * nto-low.cc (nto_target_ops): Update.
2002 * win32-low.cc (win32_target_ops): Update.
2003
290732bf
TBA
20042020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2005
2006 Turn process_stratum_target's supports_tracepoints op into a
2007 method of process_target.
2008
2009 * target.h (struct process_stratum_target): Remove the target op.
2010 (class process_target): Add the target op.
2011 (target_supports_tracepoints): Update the macro.
2012 * target.cc (process_target::supports_tracepoints): Define.
2013
2014 Update the derived classes and callers below.
2015
2016 * linux-low.cc (linux_target_ops): Update.
2017 (linux_supports_tracepoints): Turn into ...
2018 (linux_process_target::supports_tracepoints): ... this.
2019 * linux-low.h (class linux_process_target): Update.
2020 * lynx-low.cc (lynx_target_ops): Update.
2021 * nto-low.cc (nto_target_ops): Update.
2022 * win32-low.cc (win32_target_ops): Update.
2023
0df28b1b
TBA
20242020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2025
2026 Turn process_stratum_target's process_qsupported op into a method
2027 of process_target.
2028
2029 * target.h (struct process_stratum_target): Remove the target op.
2030 (class process_target): Add the target op.
2031 (target_process_qsupported): Update the macro.
2032 * target.cc (process_target::process_qsupported): Define.
2033
2034 Update the derived classes and callers below.
2035
2036 * linux-low.cc (linux_target_ops): Update.
2037 (linux_process_qsupported): Turn into ...
2038 (linux_process_target::process_qsupported): ... this.
2039 * linux-low.h (class linux_process_target): Update.
2040 * lynx-low.cc (lynx_target_ops): Update.
2041 * nto-low.cc (nto_target_ops): Update.
2042 * win32-low.cc (win32_target_ops): Update.
2043
9da41fda
TBA
20442020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2045
2046 Turn process_stratum_target's read_loadmap op into a method of
2047 process_target.
2048
2049 * target.h (struct process_stratum_target): Remove the target op.
2050 (class process_target): Add the target op. Also add
2051 'supports_read_loadmap'.
2052 * target.cc (process_target::read_loadmap): Define.
2053 (process_target::supports_read_loadmap): Define.
2054
2055 Update the derived classes and callers below.
2056
2057 * server.cc (handle_qxfer_fdpic): Update.
2058 (handle_query): Update.
2059 * linux-low.cc (linux_target_ops): Update.
2060 (linux_process_target::supports_read_loadmap): Define.
2061 (linux_read_loadmap): Turn into ...
2062 (linux_process_target::read_loadmap): ... this.
2063 * linux-low.h (class linux_process_target): Update.
2064 * lynx-low.cc (lynx_target_ops): Update.
2065 * nto-low.cc (nto_target_ops): Update.
2066 * win32-low.cc (win32_target_ops): Update.
2067
95a45fc1
TBA
20682020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2069
2070 Turn process_stratum_target's core_of_thread op into a method of
2071 process_target.
2072
2073 * target.h (struct process_stratum_target): Remove the target op.
2074 (class process_target): Add the target op.
2075 (target_core_of_thread): Update the macro.
2076 * target.cc (process_target::core_of_thread): Define.
2077
2078 Update the derived classes and callers below.
2079
2080 * linux-low.cc (linux_target_ops): Update.
2081 (linux_process_target::core_of_thread): Define.
2082 * linux-low.h (class linux_process_target): Update.
2083 * lynx-low.cc (lynx_target_ops): Update.
2084 * nto-low.cc (nto_target_ops): Update.
2085 * win32-low.cc (win32_target_ops): Update.
2086
55cf3021
TBA
20872020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2088
2089 Turn process_stratum_target's handle_monitor_command op into a
2090 method of process_target.
2091
2092 * target.h (struct process_stratum_target): Remove the target op.
2093 (class process_target): Add the target op.
2094 (target_handle_monitor_command): Update the macro.
2095 * target.cc (process_target::handle_monitor_command): Define.
2096
2097 Update the derived classes and callers below.
2098
2099 * server.cc (handle_query): Update.
2100 * linux-low.cc (linux_target_ops): Update.
2101 (linux_process_target::handle_monitor_command): Define.
2102 * linux-low.h (class linux_process_target): Update.
2103 * lynx-low.cc (lynx_target_ops): Update.
2104 * nto-low.cc (nto_target_ops): Update.
2105 * win32-low.cc (win32_target_ops): Update.
2106
fb00dfce
TBA
21072020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2108
2109 Turn process_stratum_target's handle_new_gdb_connection op into a
2110 method of process_target.
2111
2112 * target.h (struct process_stratum_target): Remove the target op.
2113 (class process_target): Add the target op.
2114 (target_handle_new_gdb_connection): Update the macro.
2115 * target.cc (process_target::handle_new_gdb_connection): Define.
2116
2117 Update the derived classes and callers below.
2118
2119 * linux-low.cc (linux_target_ops): Update.
2120 (linux_handle_new_gdb_connection): Turn into ...
2121 (linux_process_target::handle_new_gdb_connection): ... this.
2122 * linux-low.h (class linux_process_target): Update.
2123 * lynx-low.cc (lynx_target_ops): Update.
2124 * nto-low.cc (nto_target_ops): Update.
2125 * win32-low.cc (win32_target_ops): Update.
2126
9690a72a
TBA
21272020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2128
2129 Turn process_stratum_target's supports_fork_events,
2130 supports_vfork_events, and supports_exec_events ops into methods
2131 of process_target.
2132
2133 * target.h (struct process_stratum_target): Remove the target ops.
2134 (class process_target): Add the target ops.
2135 (target_supports_fork_events): Update the macro.
2136 (target_supports_vfork_events): Update the macro.
2137 (target_supports_exec_events): Update the macro.
2138 * target.cc (process_target::supports_fork_events): Define.
2139 (process_target::supports_vfork_events): Define.
2140 (process_target::supports_exec_events): Define.
2141
2142 Update the derived classes and callers below.
2143
2144 * linux-low.cc (linux_target_ops): Update.
2145 (linux_supports_fork_events): Turn into ...
2146 (linux_process_target::supports_fork_events): ... this.
2147 (linux_supports_vfork_events): Turn into ...
2148 (linux_process_target::supports_vfork_events): ... this.
2149 (linux_supports_exec_events): Turn into ...
2150 (linux_process_target::supports_exec_events): ... this.
2151 * linux-low.h (class linux_process_target): Update.
2152 * lynx-low.cc (lynx_target_ops): Update.
2153 * nto-low.cc (nto_target_ops): Update.
2154 * win32-low.cc (win32_target_ops): Update.
2155
652aef77
TBA
21562020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2157
2158 Turn process_stratum_target's supports_multi_process op into a
2159 method of process_target.
2160
2161 * target.h (struct process_stratum_target): Remove the target op.
2162 (class process_target): Add the target op.
2163 * target.cc (process_target::supports_multi_process): Define.
2164 (target_supports_multi_process): Update.
2165
2166 Update the derived classes and callers below.
2167
2168 * linux-low.cc (linux_target_ops): Update.
2169 (linux_supports_multi_process): Turn into ...
2170 (linux_process_target::supports_multi_process): ... this.
2171 * linux-low.h (class linux_process_target): Update.
2172 * lynx-low.cc (lynx_target_ops): Update.
2173 * nto-low.cc (nto_target_ops): Update.
2174 * win32-low.cc (win32_target_ops): Update.
2175
0dc587d4
TBA
21762020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2177
2178 Turn process_stratum_target's supports_non_stop, async, and
2179 start_non_stop ops into methods of process_target.
2180
2181 * target.h (struct process_stratum_target): Remove the target ops.
2182 (class process_target): Add the target ops.
2183 (target_supports_non_stop): Update the macro.
2184 (target_async): Update the macro.
2185 (start_non_stop): Remove declaration.
2186 * target.cc (process_target::supports_non_stop): Define.
2187 (process_target::async): Define.
2188 (process_target::start_non_stop): Define.
2189 (start_non_stop): Remove.
2190
2191 Update the derived classes and callers below.
2192
2193 * server.cc (handle_qxfer_siginfo): Update.
2194 (handle_query): Update.
2195 * linux-low.cc (linux_target_ops): Update.
2196 (linux_supports_non_stop): Turn into ...
2197 (linux_process_target::supports_non_stop): ... this.
2198 (linux_async): Turn into ...
2199 (linux_process_target::async): ... this.
2200 (linux_start_non_stop): Turn into ...
2201 (linux_process_target::start_non_stop): ... this.
2202 * linux-low.h (class linux_process_target): Update.
2203 * lynx-low.cc (lynx_target_ops): Update.
2204 * nto-low.cc (nto_target_ops): Update.
2205 (nto_supports_non_stop): Remove; rely on the default behavior
2206 instead.
2207 * win32-low.cc (win32_target_ops): Update.
2208
d7abedf7
TBA
22092020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2210
2211 Turn process_stratum_target's qxfer_siginfo op into a method of
2212 process_target.
2213
2214 * target.h (struct process_stratum_target): Remove the target op.
2215 (class process_target): Add the target op. Also add
2216 'supports_qxfer_siginfo'.
2217 * target.cc (process_target::qxfer_siginfo): Define.
2218 (process_target::supports_qxfer_siginfo): Define.
2219
2220 Update the derived classes and callers below.
2221
2222 * server.cc (handle_qxfer_siginfo): Update.
2223 (handle_query): Update.
2224 * linux-low.cc (linux_target_ops): Update.
2225 (linux_process_target::supports_qxfer_siginfo): Define.
2226 (linux_xfer_siginfo): Turn into ...
2227 (linux_process_target::qxfer_siginfo): ... this.
2228 * linux-low.h (class linux_process_target): Update.
2229 * lynx-low.cc (lynx_target_ops): Update.
2230 * nto-low.cc (nto_target_ops): Update.
2231 * win32-low.cc (win32_target_ops): Update.
2232
2d0795ee
TBA
22332020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2234
2235 Turn process_stratum_target's qxfer_osdata op into a method of
2236 process_target.
2237
2238 * target.h (struct process_stratum_target): Remove the target op.
2239 (class process_target): Add the target op. Also add
2240 'supports_qxfer_osdata'.
2241 * target.cc (process_target::qxfer_osdata): Define.
2242 (process_target::supports_qxfer_osdata): Define.
2243
2244 Update the derived classes and callers below.
2245
2246 * server.cc (handle_qxfer_osdata): Update.
2247 (handle_query): Update.
2248 * linux-low.cc (linux_target_ops): Update.
2249 (linux_process_target::supports_qxfer_osdata): Define.
2250 (linux_qxfer_osdata): Turn into ...
2251 (linux_process_target::qxfer_osdata): ... this.
2252 * linux-low.h (class linux_process_target): Update.
2253 * lynx-low.cc (lynx_target_ops): Update.
2254 * nto-low.cc (nto_target_ops): Update.
2255 * win32-low.cc (win32_target_ops): Update.
2256
ea06bbaa
TBA
22572020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2258
2259 Turn process_stratum_target's hostio_last_error op into a
2260 method of process_target.
2261
2262 * target.h (struct process_stratum_target): Remove the target op.
2263 (class process_target): Add the target op.
2264 * target.cc: Add "hostio.h" to includes.
2265 (process_target::hostio_last_error): Define.
2266
2267 Update the derived classes and callers below.
2268
2269 * hostio.cc (hostio_error): Update.
2270 * linux-low.cc: Remove "hostio.h" from includes.
2271 (linux_target_ops): Update.
2272 * lynx-low.cc (lynx_target_ops): Update.
2273 * nto-low.cc (nto_target_ops): Update.
2274 * win32-low.h (class win32_process_target): Update.
2275 * win32-low.cc (win32_target_ops): Update.
2276 (wince_hostio_last_error): Turn into ...
2277 (win32_process_target::hostio_last_error): ... this.
2278
6e3fd7e9
TBA
22792020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2280
2281 Turn process_stratum_target's get_tls_address op into a method of
2282 process_target.
2283
2284 * target.h (struct process_stratum_target): Remove the target op.
2285 (class process_target): Add the target op. Also add
2286 'supports_get_tls_address'.
2287 * target.cc (process_target::get_tls_address): Define.
2288 (process_target::supports_get_tls_address): Define.
2289
2290 Update the derived classes and callers below.
2291
2292 * server.cc (handle_query): Update.
2293 * linux-low.cc (linux_target_ops): Update.
2294 (linux_process_target::supports_get_tls_address): Define.
2295 (linux_process_target::get_tls_address): Define.
2296 * linux-low.h (class linux_process_target): Update.
2297 * lynx-low.cc (lynx_target_ops): Update.
2298 * nto-low.cc (nto_target_ops): Update.
2299 * win32-low.cc (win32_target_ops): Update.
2300
5203ae1e
TBA
23012020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2302
2303 Turn process_stratum_target's read_offsets op into a method of
2304 process_target.
2305
2306 * target.h (struct process_stratum_target): Remove the target op.
2307 (class process_target): Add the target op. Also add
2308 'supports_read_offsets'.
2309 * target.cc (process_target::read_offsets): Define.
2310 (process_target::supports_read_offsets): Define.
2311
2312 Update the derived classes and callers below.
2313
2314 * server.cc (handle_query): Update.
2315 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
2316 (linux_target_ops): Update.
2317 (linux_process_target::supports_read_offsets): Define.
2318 (linux_read_offsets): Turn into ...
2319 (linux_process_target::read_offsets): ... this.
2320 * linux-low.h (class linux_process_target): Update.
2321 * lynx-low.cc (lynx_target_ops): Update.
2322 * nto-low.cc (nto_target_ops): Update.
2323 * win32-low.cc (win32_target_ops): Update.
2324
6eeb5c55
TBA
23252020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2326
2327 Turn process_stratum_target's stopped_by_watchpoint and
2328 stopped_data_address ops into methods of process_target.
2329
2330 * target.h (struct process_stratum_target): Remove the target ops.
2331 (class process_target): Add the target ops.
2332 * target.cc (process_target::stopped_by_watchpoint): Define.
2333 (process_target::stopped_data_address): Define.
2334
2335 Update the derived classes and callers below.
2336
2337 * remote-utils.cc (prepare_resume_reply): Update.
2338 * linux-low.cc (linux_target_ops): Update.
2339 (linux_stopped_by_watchpoint): Turn into ...
2340 (linux_process_target::stopped_by_watchpoint): ... this.
2341 (linux_stopped_data_address): Turn into ...
2342 (linux_process_target::stopped_data_address): ... this.
2343 * linux-low.h (class linux_process_target): Update.
2344 * lynx-low.cc (lynx_target_ops): Update.
2345 * nto-low.cc (nto_target_ops): Update.
2346 (nto_stopped_by_watchpoint): Turn into ...
2347 (nto_process_target::stopped_by_watchpoint): ... this.
2348 (nto_stopped_data_address): Turn into ...
2349 (nto_process_target::stopped_data_address): ... this.
2350 * nto-low.h (class nto_process_target): Update.
2351 * win32-low.cc (win32_target_ops): Update.
2352 (win32_stopped_by_watchpoint): Turn into ...
2353 (win32_process_target::stopped_by_watchpoint): ... this.
2354 (win32_stopped_data_address): Turn into ...
2355 (win32_process_target::stopped_data_address): ... this.
2356 * win32-low.h (class win32_process_target): Update.
2357
22aa6223
TBA
23582020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2359
2360 Turn process_stratum_target's supports_hardware_single_step op into
2361 a method of process_target.
2362
2363 * target.h (struct process_stratum_target): Remove the target op.
2364 (class process_target): Add the target op.
2365 (target_supports_hardware_single_step): Update the macro.
2366 (target_can_do_hardware_single_step): Remove declaration.
2367 * target.cc (process_target::supports_hardware_single_step): Define.
2368 (target_can_do_hardware_single_step): Remove.
2369
2370 Update the derived classes and callers below.
2371
2372 * linux-low.h (class linux_process_target): Update.
2373 * linux-low.cc (linux_target_ops): Update.
2374 (linux_supports_hardware_single_step): Turn into ...
2375 (linux_process_target::supports_hardware_single_step): ... this.
2376 * lynx-low.h (class lynx_process_target): Update.
2377 * lynx-low.cc (lynx_target_ops): Update.
2378 (lynx_process_target::supports_hardware_single_step): Define.
2379 * nto-low.h (class nto_process_target): Update.
2380 * nto-low.cc (nto_target_ops): Update.
2381 (nto_process_target::supports_hardware_single_step): Define.
2382 * win32-low.h (class win32_process_target): Update.
2383 * win32-low.cc (win32_target_ops): Update.
2384 (win32_process_target::supports_hardware_single_step): Define.
2385
93fe88b2
TBA
23862020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2387
2388 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
2389 ops into methods of process_target.
2390
2391 * target.h (struct process_stratum_target): Remove the target ops.
2392 (class process_target): Add the target ops.
2393 (target_stopped_by_hw_breakpoint): Update the macro.
2394 (target_supports_stopped_by_hw_breakpoint): Update the macro.
2395 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
2396 (process_target::supports_stopped_by_hw_breakpoint): Define.
2397
2398 Update the derived classes and callers below.
2399
2400 * linux-low.cc (linux_target_ops): Update.
2401 (linux_stopped_by_hw_breakpoint): Turn into ...
2402 (linux_process_target::stopped_by_hw_breakpoint): ... this.
2403 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
2404 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
2405 * linux-low.h (class linux_process_target): Update.
2406 * lynx-low.cc (lynx_target_ops): Update.
2407 * nto-low.cc (nto_target_ops): Update.
2408 * win32-low.cc (win32_target_ops): Update.
2409
84320c4e
TBA
24102020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2411
2412 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
2413 ops into methods of process_target.
2414
2415 * target.h (struct process_stratum_target): Remove the target ops.
2416 (class process_target): Add the target ops.
2417 (target_stopped_by_sw_breakpoint): Update the macro.
2418 (target_supports_stopped_by_sw_breakpoint): Update the macro.
2419 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
2420 (process_target::supports_stopped_by_sw_breakpoint): Define.
2421
2422 Update the derived classes and callers below.
2423
2424 * linux-low.cc (linux_target_ops): Update.
2425 (linux_stopped_by_sw_breakpoint): Turn into ...
2426 (linux_process_target::stopped_by_sw_breakpoint): ... this.
2427 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
2428 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
2429 * linux-low.h (class linux_process_target): Update.
2430 * lynx-low.cc (lynx_target_ops): Update.
2431 * nto-low.cc (nto_target_ops): Update.
2432 * win32-low.cc (win32_target_ops): Update.
2433
7e0bde70
TBA
24342020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2435
2436 Turn process_stratum_target's insert_point and remove_point ops
2437 into methods of process_target.
2438
2439 * target.h (struct process_stratum_target): Remove the target ops.
2440 (class process_target): Add the target ops.
2441 * target.cc (process_target::insert_point): Define.
2442 (process_target::remove_point): Define.
2443
2444 Update the derived classes and callers below.
2445
2446 * mem-break.cc (set_raw_breakpoint_at): Update.
2447 (delete_raw_breakpoint): Update.
2448 (uninsert_raw_breakpoint): Update.
2449 (reinsert_raw_breakpoint): Update.
2450 * linux-low.cc (linux_target_ops): Update.
2451 (linux_insert_point): Turn into ...
2452 (linux_process_target::insert_point): ... this.
2453 (linux_remove_point): Turn into ...
2454 (linux_process_target::remove_point): ... this.
2455 * linux-low.h (class linux_process_target): Update.
2456 * lynx-low.cc (lynx_target_ops): Update.
2457 * nto-low.cc (nto_target_ops): Update.
2458 (nto_insert_point): Turn into ...
2459 (nto_process_target::insert_point): ... this.
2460 (nto_remove_point): Turn into ...
2461 (nto_process_target::remove_point): ... this.
2462 * nto-low.h (class nto_process_target): Update.
2463 * win32-low.cc (win32_target_ops): Update.
2464 (win32_insert_point): Turn into ...
2465 (win32_process_target::insert_point): ... this.
2466 (win32_remove_point): Turn into ...
2467 (win32_process_target::remove_point): ... this.
2468 * win32-low.h (class win32_process_target): Update.
2469
a2b2297a
TBA
24702020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2471
2472 Turn process_stratum_target's supports_z_point_type op into a
2473 method of process_target.
2474
2475 * target.h (struct process_stratum_target): Remove the target op.
2476 (class process_target): Add the target op.
2477 * target.cc (process_target::supports_z_point_type): Define.
2478
2479 Update the derived classes and callers below.
2480
2481 * mem-break.cc (z_type_supported): Update.
2482 * linux-low.cc (linux_target_ops): Update.
2483 (linux_supports_z_point_type): Turn into ...
2484 (linux_process_target::supports_z_point_type): ... this.
2485 * linux-low.h (class linux_process_target): Update.
2486 * lynx-low.cc (lynx_target_ops): Update.
2487 * nto-low.cc (nto_target_ops): Update.
2488 (nto_supports_z_point_type): Turn into ...
2489 (nto_process_target::supports_z_point_type): ... this.
2490 * nto-low.h (class nto_process_target): Update.
2491 * win32-low.cc (win32_target_ops): Update.
2492 (win32_supports_z_point_type): Turn into ...
2493 (win32_process_target::supports_z_point_type): ... this.
2494 * win32-low.h (class win32_process_target): Update.
2495
eac215cc
TBA
24962020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2497
2498 Turn process_stratum_target's read_auxv op into a method of
2499 process_target.
2500
2501 * target.h (class process_stratum_target): Remove the target op.
2502 (struct process_target): Add the target op. Also add
2503 'supports_read_auxv'.
2504 * target.cc (process_target::read_auxv): Define.
2505 (process_target::supports_read_auxv): Define.
2506
2507 Update the derived classes and callers below.
2508
2509 * server.cc (handle_qxfer_auxv): Update.
2510 (handle_query): Update.
2511 * linux-low.cc (linux_target_ops): Update.
2512 (linux_process_target::supports_read_auxv): Define.
2513 (linux_read_auxv): Turn into ...
2514 (linux_process_target::read_auxv): ... this.
2515 * linux-low.h (class linux_process_target): Update.
2516 * lynx-low.cc (lynx_target_ops): Update.
2517 * nto-low.cc (nto_target_ops): Update.
2518 (nto_process_target::supports_read_auxv): Define.
2519 (nto_read_auxv): Turn into ...
2520 (nto_process_target::read_auxv): ... this.
2521 * nto-low.h (class nto_process_target): Update.
2522 * win32-low.cc (win32_target_ops): Update.
2523
eb497a2a
TBA
25242020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2525
2526 Turn process_stratum_target's request_interrupt op into a method of
2527 process_target.
2528
2529 * target.h (struct process_stratum_target): Remove the target op.
2530 (class process_target): Add the target op.
2531
2532 Update the derived classes and callers below.
2533
2534 * remote-utils.cc (putpkt_binary_1): Update.
2535 (input_interrupt): Update.
2536 (getpkt): Update.
2537 * server.cc (handle_v_requests): Update.
2538 * linux-low.cc (linux_target_ops): Update.
2539 (linux_request_interrupt): Turn into ...
2540 (linux_process_target::request_interrupt): ... this.
2541 * linux-low.h (class linux_process_target): Update.
2542 * lynx-low.cc (lynx_target_ops): Update.
2543 (lynx_request_interrupt): Turn into ...
2544 (lynx_process_target::request_interrupt): ... this.
2545 * lynx-low.h (class lynx_process_target): Update.
2546 * nto-low.cc (nto_target_ops): Update.
2547 (nto_request_interrupt): Turn into ...
2548 (nto_process_target::request_interrupt): ... this.
2549 * nto-low.h (class nto_process_target): Update.
2550 * win32-low.cc (win32_target_ops): Update.
2551 (win32_request_interrupt): Turn into ...
2552 (win32_process_target::request_interrupt): ... this.
2553 * win32-low.h (class win32_process_target): Update.
2554
2a31c7aa
TBA
25552020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2556
2557 Turn process_stratum_target's look_up_symbols op into a method of
2558 process_target.
2559
2560 * target.h (struct process_stratum_target): Remove the target op.
2561 (class process_target): Add the target op.
2562 * target.cc (process_target::look_up_symbols): Define.
2563
2564 Update the derived classes and callers below.
2565
2566 * server.cc (handle_query): Update.
2567 * linux-low.cc (linux_target_ops): Update.
2568 (linux_look_up_symbols): Turn into ...
2569 (linux_process_target::look_up_symbols): ... this.
2570 * linux-low.h (class linux_process_target): Update.
2571 * lynx-low.cc (lynx_target_ops): Update.
2572 * nto-low.cc (nto_target_ops): Update.
2573 * win32-low.cc (win32_target_ops): Update.
2574
e2558df3
TBA
25752020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2576
2577 Turn process_stratum_target's read_memory and write_memory
2578 ops into methods of process_target.
2579
2580 * target.h (struct process_stratum_target): Remove the target ops.
2581 (class process_target): Add the target ops.
2582
2583 Update the derived classes and callers below.
2584
2585 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
2586 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
2587 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
2588 (arm_get_syscall_trapinfo): Update.
2589 * linux-cris-low.cc (cris_breakpoint_at): Update.
2590 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
2591 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
2592 * linux-mips-low.cc (mips_breakpoint_at): Update.
2593 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
2594 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
2595 * linux-sh-low.cc (sh_breakpoint_at): Update.
2596 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
2597 (sparc_store_gregset_from_stack): Update.
2598 (sparc_breakpoint_at): Update.
2599 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
2600 * linux-tile-low.cc (tile_breakpoint_at): Update.
2601 * linux-x86-low.cc (x86_breakpoint_at): Update.
2602 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
2603 * mem-brea.cc (insert_memory_breakpoint): Update.
2604 (validate_inserted_breakpoint): Update.
2605 * target.cc (read_inferior_memory): Update.
2606 (target_write_memory): Update.
2607 * linux-low.cc (linux_target_ops): Update.
2608 (linux_read_memory): Make a wrapper around the read_memory target
2609 op call.
2610 (linux_process_target::read_memory): Rename from linux_read_memory.
2611 (linux_write_memory): Turn into ...
2612 (linux_process_target::write_memory): ... this.
2613 * linux-low.h (class linux_process_target): Update.
2614 * lynx-low.cc (lynx_target_ops): Update.
2615 (lynx_read_memory): Turn into ...
2616 (lynx_process_target::read_memory): ... this.
2617 (lynx_write_memory): Turn into ...
2618 (lynx_process_target::write_memory): ... this.
2619 * lynx-low.h (class lynx_process_target): Update.
2620 * nto-low.cc (nto_target_ops): Update.
2621 (nto_read_memory): Turn into ...
2622 (nto_process_target::read_memory): ... this.
2623 (nto_write_memory): Turn into ...
2624 (nto_process_target::write_memory): ... this.
2625 * nto-low.h (class nto_process_target): Update.
2626 * win32-low.cc (win32_target_ops): Update.
2627 (win32_read_inferior_memory): Turn into ...
2628 (win32_process_target::read_memory): ... this.
2629 (win32_write_inferior_memory): Turn into ...
2630 (win32_process_target::write_memory): ... this.
2631 * win32-low.h (class win32_process_target): Update.
2632
79b44087
TBA
26332020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2634
2635 Turn process_stratum_target's prepare_to_access_memory and
2636 done_accessing_memory ops into methods of process_target.
2637
2638 * target.h (struct process_stratum_target): Remove the target ops.
2639 (class process_target): Add the target ops.
2640 * target.cc (process_target::prepare_to_access_memory): Define.
2641 (process_target::done_accessing_memory): Define.
2642 (prepare_to_access_memory): Update.
2643 (done_accessing_memory): Update.
2644
2645 Update the derived classes and callers below.
2646
2647 * linux-low.cc (linux_target_ops): Update.
2648 (linux_prepare_to_access_memory): Turn into ...
2649 (linux_process_target::prepare_to_access_memory): ... this.
2650 (linux_done_accessing_memory): Turn into ...
2651 (linux_process_target::done_accessing_memory): ... this.
2652 * linux-low.h (class linux_process_target): Update.
2653 * lynx-low.cc (lynx_target_ops): Update.
2654 * nto-low.cc (nto_target_ops): Update.
2655 * win32-low.cc (win32_target_ops): Update.
2656
a5a4d4cd
TBA
26572020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2658
2659 Turn process_stratum_target's fetch_registers and store_registers
2660 ops into methods of process_target.
2661
2662 * target.h (struct process_stratum_target): Remove the target ops.
2663 (class process_target): Add the target ops.
2664 (fetch_inferior_registers): Update the macro.
2665 (store_inferior_registers): Update the macro.
2666
2667 Update the derived classes and callers below.
2668
2669 * linux-low.cc (linux_target_ops): Update.
2670 (linux_fetch_registers): Turn into ...
2671 (linux_process_target::fetch_registers): ... this.
2672 (linux_store_registers): Turn into ...
2673 (linux_process_target::store_registers): ... this.
2674 * linux-low.h (class linux_process_target): Update.
2675 * lynx-low.cc (lynx_target_ops): Update.
2676 (lynx_fetch_registers): Turn into ...
2677 (lynx_process_target::fetch_registers): ... this.
2678 (lynx_store_registers): Turn into ...
2679 (lynx_process_target::store_registers): ... this.
2680 * lynx-low.h (class lynx_process_target): Update.
2681 * nto-low.cc (nto_target_ops): Update.
2682 (nto_fetch_registers): Turn into ...
2683 (nto_process_target::fetch_registers): ... this.
2684 (nto_store_registers): Turn into ...
2685 (nto_process_target::store_registers): ... this.
2686 * nto-low.h (class nto_process_target): Update.
2687 * win32-low.cc (win32_target_ops): Update.
2688 (win32_fetch_inferior_registers): Turn into ...
2689 (win32_process_target::fetch_registers): ... this.
2690 (win32_store_inferior_registers): Turn into ...
2691 (win32_process_target::store_registers): ... this.
2692 * win32-low.h (class win32_process_target): Update.
2693
6532e7e3
TBA
26942020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2695
2696 Turn process_stratum_target's wait op into a method of
2697 process_target.
2698
2699 * target.h (struct process_stratum_target): Remove the target op.
2700 (class process_target): Add the target op.
2701
2702 Update the derived classes and callers below.
2703
2704 * target.cc (target_wait): Update.
2705 * linux-low.cc (linux_target_ops): Update.
2706 (linux_wait): Turn into ...
2707 (linux_process_target::wait): ... this.
2708 * linux-low.h (class linux_process_target): Update.
2709 * lynx-low.cc (lynx_target_ops): Update.
2710 (lynx_wait): Turn into ...
2711 (lynx_process_target::wait): ... this.
2712 * lynx-low.h (class lynx_process_target): Update.
2713 * nto-low.cc (nto_target_ops): Update.
2714 (nto_wait): Turn into ...
2715 (nto_process_target::wait): ... this.
2716 * nto-low.h (class nto_process_target): Update.
2717 * win32-low.cc (win32_target_ops): Update.
2718 (win32_wait): Turn into ...
2719 (win32_process_target::wait): ... this.
2720 (do_initial_child_stuff): Update.
2721 * win32-low.h (class win32_process_target): Update.
2722
0e4d7e35
TBA
27232020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2724
2725 Turn process_stratum_target's resume op into a method of
2726 process_target.
2727
2728 * target.h (struct process_stratum_target): Remove the target op.
2729 (class process_target): Add the target op.
2730
2731 Update the derived classes and callers below.
2732
2733 * server.cc (resume): Update.
2734 * target.cc (target_stop_and_wait): Update.
2735 (target_continue_no_signal): Update.
2736 (target_continue): Update.
2737 * linux-low.cc (linux_target_ops): Update.
2738 (linux_resume): Turn into ...
2739 (linux_process_target::resume): ... this.
2740 * linux-low.h (class linux_process_target): Update.
2741 * lynx-low.cc (lynx_target_ops): Update.
2742 (lynx_resume): Turn into ...
2743 (lynx_process_target::resume): ... this.
2744 * lynx-low.h (class lynx_process_target): Update.
2745 * nto-low.cc (nto_target_ops): Update.
2746 (nto_resume): Turn into ...
2747 (nto_process_target::resume): ... this.
2748 * nto-low.h (class nto_process_target): Update.
2749 * win32-low.cc (win32_target_ops): Update.
2750 (win32_resume): Turn into ...
2751 (win32_process_target::resume): ... this.
2752 (win32_process_target::detach): Update.
2753 (do_initial_child_stuff): Update.
2754 * win32-low.h (class win32_process_target): Update.
2755
13d3d99b
TBA
27562020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2757
2758 Turn process_stratum_target's thread_alive op into a method of
2759 process_target.
2760
2761 * target.h (struct process_stratum_target): Remove the target op.
2762 (class process_target): Add the target op.
2763 (mythread_alive): Update the macro.
2764
2765 Update the derived classes and callers below.
2766
2767 * linux-low.cc (linux_target_ops): Update.
2768 (linux_thread_alive): Turn into ...
2769 (linux_process_target::thread_alive): ... this.
2770 (wait_for_sigstop): Update.
2771 * linux-low.h (class linux_process_target): Update.
2772 * lynx-low.cc (lynx_target_ops): Update.
2773 (lynx_thread_alive): Turn into ...
2774 (lynx_process_target::thread_alive): ... this.
2775 * lynx-low.h (class lynx_process_target): Update.
2776 * nto-low.cc (nto_target_ops): Update.
2777 (nto_thread_alive): Turn into ...
2778 (nto_process_target::thread_alive): ... this.
2779 * nto-low.h (class nto_process_target): Update.
2780 * win32-low.cc (win32_target_ops): Update.
2781 (win32_thread_alive): Turn into ...
2782 (win32_process_target::thread_alive): ... this.
2783 * win32-low.h (class win32_process_target): Update.
2784
95a49a39
TBA
27852020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2786
2787 Turn process_stratum_target's join op into a method of
2788 process_target.
2789
2790 * target.h (struct process_stratum_target): Remove the target op.
2791 (class process_target): Add the target op.
2792 (join_inferior): Update the macro.
2793
2794 Update the derived classes and callers below.
2795
2796 * linux-low.cc (linux_target_ops): Update.
2797 (linux_join): Turn into ...
2798 (linux_process_target::join): ... this.
2799 * linux-low.h (class linux_process_target): Update.
2800 * lynx-low.cc (lynx_target_ops): Update.
2801 (lynx_join): Turn into ...
2802 (lynx_process_target::join): ... this.
2803 * lynx-low.h (class lynx_process_target): Update.
2804 * nto-low.cc (nto_target_ops): Update.
2805 (nto_process_target::join): Define.
2806 * nto-low.h (class nto_process_target): Update.
2807 * win32-low.cc (win32_target_ops): Update.
2808 (win32_join): Turn into ...
2809 (win32_process_target::join): ... this.
2810 * win32-low.h (class win32_process_target): Update.
2811
8adb37b9
TBA
28122020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2813
2814 Turn process_stratum_target's mourn op into a method of
2815 process_target.
2816
2817 * target.h (struct process_stratum_target): Remove the target op.
2818 (class process_target): Add the target op.
2819
2820 Update the derived classes and callers below.
2821
2822 * target.cc (target_mourn_inferior): Update.
2823 * linux-low.cc (linux_target_ops): Update.
2824 (linux_mourn): Turn into ...
2825 (linux_process_target::mourn): ... this.
2826 (handle_extended_wait): Update.
2827 (linux_process_target::kill): Update.
2828 (linux_process_target::detach): Update.
2829 * linux-low.h (class linux_process_target): Update.
2830 * lynx-low.cc (lynx_target_ops): Update.
2831 (lynx_mourn): Turn into ...
2832 (lynx_process_target::mourn): ... this.
2833 * lynx-low.h (class lynx_process_target): Update.
2834 * nto-low.cc (nto_target_ops): Update.
2835 (nto_mourn): Turn into ...
2836 (nto_process_target::mourn): ... this.
2837 * nto-low.h (class nto_process_target): Update.
2838 * win32-low.cc (win32_target_ops): Update.
2839 (win32_mourn): Turn into ...
2840 (win32_process_target::mourn): ... this.
2841 * win32-low.h (class win32_process_target): Update.
2842
9061c9cf
TBA
28432020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2844
2845 Turn process_stratum_target's detach op into a method of
2846 process_target.
2847
2848 * target.h (struct process_stratum_target): Remove the target op.
2849 (class process_target): Add the target op.
2850 (detach_inferior): Update the macro.
2851
2852 Update the derived classes and callers below.
2853
2854 * linux-low.cc (linux_target_ops): Update.
2855 (linux_detach): Turn into ...
2856 (linux_process_target::detach): ... this.
2857 * linux-low.h (class linux_process_target): Update.
2858 * lynx-low.cc (lynx_target_ops): Update.
2859 (lynx_detach): Turn into ...
2860 (lynx_process_target::detach): ... this.
2861 * lynx-low.h (class lynx_process_target): Update.
2862 * nto-low.cc (nto_target_ops): Update.
2863 (nto_detach): Turn into ...
2864 (nto_process_target::detach): ... this.
2865 * nto-low.h (class nto_process_target): Update.
2866 * win32-low.cc (win32_target_ops): Update.
2867 (win32_detach): Turn into ...
2868 (win32_process_target::detach): ... this.
2869 * win32-low.h (class win32_process_target): Update.
2870
c6885a57
TBA
28712020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2872
2873 Turn process_stratum_target's kill op into a method of
2874 process_target.
2875
2876 * target.h (struct process_stratum_target): Remove the target op.
2877 (class process_target): Add the target op.
2878
2879 Update the derived classes and callers below.
2880
2881 * target.cc (kill_inferior): Update.
2882 * linux-low.cc (linux_target_ops): Update.
2883 (linux_kill): Turn into ...
2884 (linux_process_target::kill): ... this.
2885 * linux-low.h (class linux_process_target): Update.
2886 * lynx-low.cc (lynx_target_ops): Update.
2887 (lynx_kill): Turn into ...
2888 (lynx_process_target::kill): ... this.
2889 * lynx-low.h (class lynx_process_target): Update.
2890 * nto-low.cc (nto_target_ops): Update.
2891 (nto_kill): Turn into ...
2892 (nto_process_target::kill): ... this.
2893 * nto-low.h (class nto_process_target): Update.
2894 * win32-low.cc (win32_target_ops): Update.
2895 (win32_kill): Turn into ...
2896 (win32_process_target::kill): ... this.
2897 * win32-low.h (class win32_process_target): Update.
2898
ef03dad8
TBA
28992020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2900
2901 Turn process_stratum_target's attach op into a method of
2902 process_target.
2903
2904 * target.h (struct process_stratum_target): Remove the target op.
2905 (class process_target): Add the target op.
2906 (myattach): Update the macro.
2907
2908 Update the derived classes and callers below.
2909
2910 * linux-low.cc (linux_target_ops): Update.
2911 (linux_attach): Turn into ...
2912 (linux_process_target::attach): ... this.
2913 * linux-low.h (class linux_process_target): Update.
2914 * lynx-low.cc (lynx_target_ops): Update.
2915 (lynx_attach): Turn into ...
2916 (lynx_process_target::attach): ... this.
2917 * lynx-low.h (class lynx_process_target): Update.
2918 * nto-low.cc (nto_target_ops): Update.
2919 (nto_attach): Turn into ...
2920 (nto_process_target::attach): ... this.
2921 * nto-low.h (class nto_process_target): Update.
2922 * win32-low.cc (win32_target_ops): Update.
2923 (win32_attach): Turn into ...
2924 (win32_process_target::attach): ... this.
2925 * win32-low.h (class win32_process_target): Update.
2926
6dee9afb
TBA
29272020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2928
2929 Turn process_stratum_target's post_create_inferior op into a method
2930 of process_target.
2931
2932 * target.h (struct process_stratum_target): Remove the target op.
2933 (class process_target): Add the target op.
2934 (target_post_create_inferior): Update the macro.
2935 * target.cc (process_target::post_create_inferior): Define.
2936
2937 Update the derived classes and callers below.
2938
2939 * linux-low.cc (linux_target_ops): Update.
2940 (linux_post_create_inferior): Turn into ...
2941 (linux_process_target::post_create_inferior): ... this.
2942 * linux-low.h (class linux_process_target): Update.
2943 * lynx-low.cc (lynx_target_ops): Update.
2944 * nto-low.cc (nto_target_ops): Update.
2945 * win32-low.cc (win32_target_ops): Update.
2946
15295543
TBA
29472020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2948
2949 Turn process_stratum_target's create_inferior op into a method of
2950 process_target.
2951
2952 * target.h (struct process_stratum_target): Remove the target op.
2953 (class process_target): Add the target op.
2954 (create_inferior): Rename the macro to ...
2955 (target_create_inferior): ... this.
2956
2957 Update the derived classes and callers below.
2958
2959 * server.cc (handle_v_run): Update.
2960 (captured_main): Update.
2961 (process_serial_event): Update.
2962 * linux-low.cc (linux_target_ops): Update.
2963 (linux_create_inferior): Turn into ...
2964 (linux_process_target::create_inferior): ... this.
2965 * linux-low.h (class linux_process_target): Update.
2966 * lynx-low.cc (lynx_target_ops): Update.
2967 (lynx_create_inferior): Turn into ...
2968 (lynx_process_target::create_inferior): ... this.
2969 * lynx-low.h (class lynx_process_target): Update.
2970 * nto-low.cc (nto_target_ops): Update.
2971 (nto_create_inferior): Turn into ...
2972 (nto_process_target::create_inferior): ... this.
2973 * nto-low.h (class nto_process_target): Update.
2974 * win32-low.cc (win32_target_ops): Update.
2975 (win32_create_inferior): Turn into ...
2976 (win32_process_target::create_inferior): ... this.
2977 * win32-low.h (class win32_process_target): Update.
2978
5ef9273d
TBA
29792020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2980
2981 * target.h (class process_target): New class definition.
2982 (struct process_stratum_target) <pt>: New field with type
2983 'process_target*'.
2984 * linux-low.h (class linux_process_target): Define as a derived
2985 class of 'process_target'.
2986 * linux-low.cc (linux_target_ops): Add a linux_process_target*
2987 as the 'pt' field.
2988 * lynx-low.h (class lynx_process_target): Define as a derived
2989 class of 'process_target'.
2990 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
2991 as the 'pt' field.
2992 * nto-low.h (class nto_process_target): Define as a derived
2993 class of 'process_target'.
2994 * nto-low.cc (nto_target_ops): Add an nto_process_target*
2995 as the 'pt' field.
2996 * win32-low.h (class win32_process_target): Define as a derived
2997 class of 'process_target'.
2998 * win32-low.cc (win32_target_ops): Add a win32_process_target*
2999 as the 'pt' field.
3000
9f1528a1
AB
30012020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
3002
3003 * configure: Regenerate.
3004
bf84f706
MR
30052020-02-19 Maciej W. Rozycki <macro@wdc.com>
3006 Andrew Burgess <andrew.burgess@embecosm.com>
3007
3008 * linux-riscv-low.cc: New file.
3009 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
3010 and nat/riscv-linux-tdesc.c.
3011 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
3012 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
3013 Define.
3014
1a627e7e
TT
30152020-02-14 Tom Tromey <tom@tromey.com>
3016
3017 * acinclude.m4: Don't include acx_configure_dir.m4.
3018 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
3019 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
3020 (all, install-only, uninstall, clean-info, clean)
3021 (maintainer-clean): Don't recurse.
3022 (subdir_do, all-lib): Remove.
3023 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
3024 (GNULIB_H): Remove.
3025 (generated_files): Update.
3026 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
3027 * configure: Rebuild.
3028 * configure.ac: Don't configure gnulib or libiberty.
3029 (GNULIB): Update.
3030
a9b34532
EZ
30312020-02-14 Eli Zaretskii <eliz@gnu.org>
3032
3033 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
3034 preparing the command line for CreateProcess.
3035 (win32_create_inferior): Reflect the program name in debugging
3036 output that shows the process and its command line.
3037
feacfcac
SM
30382020-02-13 Simon Marchi <simon.marchi@efficios.com>
3039
3040 * Makefile.in: Rename source files from .c to .cc.
3041 * %.c: Rename to %.cc.
3042 * configure.ac: Rename server.c to server.cc.
3043 * configure: Re-generate.
3044
06b3c5bd
SM
30452020-02-13 Simon Marchi <simon.marchi@efficios.com>
3046
3047 * Makefile.in: Rename gdbsupport source files from .c to .cc.
3048
052793ad
HD
30492020-02-12 Hannes Domani <ssbssa@yahoo.de>
3050
3051 * win32-low.c (win32_create_inferior): Set signal_pid.
3052
f20e3e82
MR
30532020-02-12 Maciej W. Rozycki <macro@wdc.com>
3054 Pedro Alves <palves@redhat.com>
3055
3056 Skip building gdbserver in a cross-configuration.
3057 * configure.srv: Set $gdbserver_host depending on whether $target
3058 is $host. Use $gdbserver_host instead of $host.
3059
8ddd8e0e
SM
30602020-02-11 Simon Marchi <simon.marchi@efficios.com>
3061
3062 * configure: Re-generate.
3063
898e7f60
SM
30642020-02-11 Simon Marchi <simon.marchi@efficios.com>
3065
3066 * configure: Re-generate.
3067
58df732b
SM
30682020-02-11 Simon Marchi <simon.marchi@efficios.com>
3069
3070 * acinclude.m4: Update warning.m4 path.
3071
7928d571
HD
30722020-02-09 Hannes Domani <ssbssa@yahoo.de>
3073
3074 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
3075 (handle_exception): Set siginfo_er.
3076 (win32_xfer_siginfo): New function.
3077
919adfe8
TT
30782020-02-07 Tom Tromey <tom@tromey.com>
3079 Pedro Alves <palves@redhat.com>
3080
3081 * README: Update build documentation.
3082 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
3083 host, not target.
3084 * configure.ac: Update paths.
3085 * configure: Rebuild.
3086 * acinclude.m4: Update paths.
3087 * Makefile.in: Update include paths.
3088 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
3089 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
3090 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
3091 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
3092 (%-generated.c): Update paths.
3093 * Move entire directory from ../gdb/gdbserver.
3094
287c844a
MR
30952020-01-29 Maciej W. Rozycki <macro@wdc.com>
3096
3097 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
3098
548a204f
PFC
30992020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3100
3101 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
3102 assignment instead of srv_linux_obj.
3103
a2236a08
HD
31042020-01-28 Hannes Domani <ssbssa@yahoo.de>
3105
3106 * server.c (handle_qxfer_libraries): Write segment-address with
3107 paddress.
3108
bdaed379
HD
31092020-01-24 Hannes Domani <ssbssa@yahoo.de>
3110
3111 * Makefile.in (install-strip): New target.
3112 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
3113 * aclocal.m4: Regenerate.
3114 * configure: Regenerate.
3115 * configure.ac: Add AM_PROG_INSTALL_STRIP.
3116
42cd72aa
MR
31172020-01-24 Maciej W. Rozycki <macro@wdc.com>
3118
3119 * Makefile.in (SFILES): Adjust paths to point to real files.
3120 (OBS): Move waitstatus.o to target/waitstatus.o.
3121 (TAGS): Transform paths appropriately.
3122 (%.o): Rename to...
3123 (nat/%.o): ... this pattern rule.
3124 (%.o): Rename to...
3125 (target/%.o): ... this pattern rule.
3126 * configure.srv: Adjust paths throughout to include nat/ prefix
3127 with the revant files.
3128 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
3129 * configure: Regenerate.
3130
42ba50ec
MR
31312020-01-24 Maciej W. Rozycki <macro@wdc.com>
3132
3133 * Makefile.in (TAGS): Remove config files from the recipe.
3134
05ea2a05
TT
31352020-01-14 Tom Tromey <tom@tromey.com>
3136
3137 * configure: Rebuild.
3138 * configure.ac: Remove any checks that were added to common.m4.
3139 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
3140 lib-link.m4.
3141
01027315
TT
31422020-01-14 Tom Tromey <tom@tromey.com>
3143
3144 * server.h: Include config.h.
3145 * gdbreplay.c: Include config.h.
3146 * configure: Rebuild.
3147 * configure.ac: Don't source common.host.
3148 * acinclude.m4: Update path.
3149 * Makefile.in (INCSUPPORT): New variable.
3150 (INCLUDE_CFLAGS): Add INCSUPPORT.
3151 (SFILES): Update paths.
3152 (version-generated.c): Update path to create-version.sh.
3153 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
3154
b2ceabe8
TT
31552020-01-14 Tom Tromey <tom@tromey.com>
3156
3157 * configure.ac (LIBS): Use WIN32APILIBS.
3158 (USE_WIN32API): Don't define.
3159 * configure: Rebuild.
3160
25c51f71
TT
31612020-01-14 Tom Tromey <tom@tromey.com>
3162
3163 * configure: Rebuild.
3164
c0bd321d
SM
31652020-01-13 Simon Marchi <simon.marchi@efficios.com>
3166
3167 * Makefile.in (%-generated.c): Remove rule for files from
3168 regformats/i386.
3169
bb564c58
SM
31702020-01-13 Simon Marchi <simon.marchi@efficios.com>
3171
3172 * configure: Re-generate.
3173
6e37c371
SM
31742020-01-13 Simon Marchi <simon.marchi@efficios.com>
3175
3176 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
3177 Define to static.
3178 * tracepoint.c (stop_tracing, flush_trace_buffer,
3179 about_to_request_buffer_space, get_trace_state_variable_value,
3180 set_trace_state_variable_value, gdb_collect): Add declaration.
3181
df4a0200
SM
31822020-01-13 Simon Marchi <simon.marchi@efficios.com>
3183
3184 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
3185 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
3186 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
3187 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
3188 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
3189 static.
3190
89e94ec9
SM
31912020-01-13 Simon Marchi <simon.marchi@efficios.com>
3192
3193 * inferiors.c: Include gdbsupport/common-inferior.h.
3194
2552728a
SM
31952020-01-13 Simon Marchi <simon.marchi@efficios.com>
3196
3197 * hostio-errno.c: Include hostio.h.
3198
4025fa09
SM
31992020-01-13 Simon Marchi <simon.marchi@efficios.com>
3200
3201 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
3202 prerequisite.
3203
c0b0a142
SM
32042020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3205
3206 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
3207 * linux-arm-tdesc.h: Include arch/arm.h.
3208
bb1183e2
SM
32092020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3210
3211 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
3212
f5df0b5f
SM
32132020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3214
3215 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
3216 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
3217
5b6d1e4f
PA
32182020-01-10 Pedro Alves <palves@redhat.com>
3219
3220 * fork-child.c (post_fork_inferior): Pass target down to
3221 startup_inferior.
3222 * inferiors.c (switch_to_thread): Add process_stratum_target
3223 parameter.
3224 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
3225 * nto-low.c (nto_target_ops): Now a process_stratum_target.
3226 * linux-low.c (linux_target_ops): Now a process_stratum_target.
3227 * remote-utils.c (prepare_resume_reply): Pass the target to
3228 switch_to_thread.
3229 * target.c (the_target): Now a process_stratum_target.
3230 (done_accessing_memory): Pass the target to switch_to_thread.
3231 (set_target_ops): Ajust to use process_stratum_target.
3232 * target.h (struct target_ops): Rename to ...
3233 (struct process_stratum_target): ... this.
3234 (the_target, set_target_ops): Adjust.
3235 (prepare_to_access_memory): Adjust comment.
3236 * win32-low.c (child_xfer_memory): Adjust to use
3237 process_stratum_target.
3238 (win32_target_ops): Now a process_stratum_target.
3239
559e7e50
EZ
32402020-01-06 Eli Zaretskii <eliz@gnu.org>
3241 Pedro Alves <palves@redhat.com>
3242
3243 * win32-low.c (get_child_debug_event): Extract the fatal exception
3244 from the exit status and convert to the equivalent Posix signal
3245 number.
3246 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
3247 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
3248
48189bec
HD
32492020-01-01 Hannes Domani <ssbssa@yahoo.de>
3250
3251 * Makefile.in: Use INSTALL_PROGRAM_ENV.
3252
5dd8bf88
JB
32532020-01-01 Joel Brobecker <brobecker@adacore.com>
3254
3255 * server.c (gdbserver_version): Change copyright year to 2020.
3256 * gdbreplay.c (gdbreplay_version): Likewise.
3257
0ad6b8ee
CB
32582019-12-19 Christian Biesinger <cbiesinger@google.com>
3259
3260 * configure: Regenerate.
3261 * configure.ac: Quote variable arguments of test.
3262
1ee7b812
BE
32632019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
3264
3265 * Makefile.in: Fix build with GNU Make 3.81
3266
d9fa87f4
TT
32672019-12-16 Tom Tromey <tromey@adacore.com>
3268
3269 * server.c (get_exec_file): Constify result.
3270
ab7d13f0
CB
32712019-12-10 Christian Biesinger <cbiesinger@google.com>
3272
3273 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
3274 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
3275 * config.in: Regenerate.
3276 * configure: Regenerate.
3277 * configure.ac: Don't check for strerror.
3278 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
3279 Call safe_strerror instead of strerror.
3280 * server.h (strerror): Remove this now-unnecessary declaration.
3281 * tracepoint.c (init_named_socket): Call safe_strerror instead of
3282 strerror.
3283 (gdb_agent_helper_thread): Likewise.
3284 * utils.c (perror_with_name): Likewise.
3285
4da8c3a8
TT
32862019-11-26 Tom Tromey <tom@tromey.com>
3287
3288 * configure, config.in: Rebuild.
3289
21987b9c
TT
32902019-11-26 Tom Tromey <tom@tromey.com>
3291
3292 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
3293 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
3294 gdb_sigmask.
3295 * configure, config.in: Rebuild.
3296
5e030278
TT
32972019-11-26 Tom Tromey <tom@tromey.com>
3298
3299 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
3300 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
3301 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
3302 * acinclude.m4: Include ax_pthread.m4.
3303 * config.in, configure: Rebuild.
3304
6d91ce9a
CB
33052019-11-26 Christian Biesinger <cbiesinger@google.com>
3306
3307 * debug.c (debug_set_output): Call safe_strerror instead of
3308 strerror.
3309 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
3310 (linux_kill_one_lwp): Likewise.
3311 (linux_detach_one_lwp): Likewise.
3312 (linux_wait_for_event_filtered): Likewise.
3313 (store_register): Likewise.
3314 * lynx-low.c (lynx_attach): Likewise.
3315 * mem-break.c (insert_memory_breakpoint): Likewise.
3316 (remove_memory_breakpoint): Likewise.
3317 (delete_fast_tracepoint_jump): Likewise.
3318 (set_fast_tracepoint_jump): Likewise.
3319 (uninsert_fast_tracepoint_jumps_at): Likewise.
3320 (reinsert_fast_tracepoint_jumps_at): Likewise.
3321 * nto-low.c (nto_xfer_memory): Likewise.
3322 (nto_resume): Likewise.
3323
6cdd651f
LM
33242019-11-20 Luis Machado <luis.machado@linaro.org>
3325
3326 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
3327 instead of register count.
3328 * tdesc.c (tdesc_contains_feature): New function.
3329 * tdesc.h (tdesc_contains_feature): New prototype.
3330
cd850b40
CB
33312019-11-15 Christian Biesinger <cbiesinger@google.com>
3332
3333 * Makefile.in: Add safe-strerror.c.
3334 * configure: Regenerate.
3335 * configure.ac: Don't source common.host.
3336
5abebf3c
CB
33372019-11-15 Christian Biesinger <cbiesinger@google.com>
3338
3339 * config.in: Regenerate.
3340 * configure: Regenerate.
3341
e06f3d6e
AB
33422019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
3343
3344 * ax.c (ax_printf): Handle size_t_arg.
3345
ca3a04f6
CB
33462019-11-06 Christian Biesinger <cbiesinger@google.com>
3347
3348 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
3349 * mi/mi-main.c (output_cores): Likewise.
3350 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
3351 (linux_xfer_osdata_modules): Likewise.
3352 * remote.c (register_remote_support_xml): Likewise.
3353 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
3354 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
3355
e48f6033
CB
33562019-11-01 Christian Biesinger <cbiesinger@google.com>
3357
3358 * configure: Regenerate.
3359 * configure.ac: Remove check for strerror_r.
3360
e7e97a2e
CB
33612019-10-31 Christian Biesinger <cbiesinger@google.com>
3362
3363 * config.in: Regenerate.
3364 * configure: Regenerate.
3365 * configure.ac: Also check for strerror_r.
3366
75cafaa6
CB
33672019-10-31 Christian Biesinger <cbiesinger@google.com>
3368
3369 * ax.h (debug_agent): Remove duplicate declaration.
3370
30baf67b
TV
33712019-10-26 Tom de Vries <tdevries@suse.de>
3372
3373 * linux-aarch64-low.c: Fix typos in comments.
3374 * linux-arm-low.c: Same.
3375 * linux-low.c: Same.
3376 * linux-ppc-low.c: Same.
3377 * proc-service.c: Same.
3378 * regcache.h: Same.
3379 * server.c: Same.
3380 * tracepoint.c: Same.
3381 * win32-low.c: Same.
3382
52c64cf7
TT
33832019-10-25 Tom Tromey <tromey@adacore.com>
3384
3385 * utils.c (xstrdup): Remove.
3386
c12d372d
TT
33872019-10-23 Tom Tromey <tom@tromey.com>
3388
3389 * configure, config.in: Rebuild.
3390
4d0b984b
TT
33912019-10-23 Tom Tromey <tom@tromey.com>
3392
3393 * configure: Rebuild.
3394 * acinclude.m4: Use m4_include, not sinclude.
3395
c5adaa19
TT
33962019-10-17 Tom Tromey <tromey@adacore.com>
3397
3398 * configure: Rebuild.
3399 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
3400 in AC_CONFIG_FILES invocation.
3401 * Makefile.in (stamp-h, Makefile): Use new-style config.status
3402 invocation.
3403
fec4e896
CB
34042019-10-16 Christian Biesinger <cbiesinger@google.com>
3405
3406 * server.c: Include xml-builtin.h.
3407 (get_xml_features): Don't declare xml_builtins here.
3408
00975ff6
AB
34092019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
3410
3411 * Makefile.in: Remove references to vec-ipa.o.
3412
0dc32745
AB
34132019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
3414
3415 * Makefile.in: Remove references to vec.c.
3416
3e6ec53a
CB
34172019-10-02 Christian Biesinger <cbiesinger@google.com>
3418
3419 * server.c (server_waiting): Change to bool.
3420 (extended_protocol): Likewise.
3421 (response_needed): Likewise.
3422 (exit_requested): Likewise.
3423 (run_once): Likewise.
3424 (report_no_resumed): Likewise.
3425 (non_stop): Likewise.
3426 (disable_packet_vCont): Likewise.
3427 (disable_packet_Tthread): Likewise.
3428 (disable_packet_qC): Likewise.
3429 (disable_packet_qfThreadInfo): Likewise.
3430 (handle_general_set): Update.
3431 (handle_detach): Update.
3432 (handle_monitor_command): Update.
3433 (handle_query): Update.
3434 (captured_main): Update.
3435 (process_serial_event): Update.
3436 * server.h (server_waiting): Change to bool.
3437 (disable_packet_vCont): Likewise.
3438 (disable_packet_Tthread): Likewise.
3439 (disable_packet_qC): Likewise.
3440 (disable_packet_qfThreadInfo): Likewise.
3441 (run_once): Likewise.
3442 (non_stop): Likewise.
3443 * target.c (target_stop_and_wait): Update.
3444
80fd2826
TT
34452019-10-02 Tom Tromey <tromey@adacore.com>
3446
3447 * Makefile.in (SFILES): Add common-inferior.c.
3448 (OBS): Add common-inferior.o.
3449 * server.c (startup_with_shell): Don't define.
3450
46f29a9a
AB
34512019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3452
3453 * linux-low.c (linux_low_read_btrace): Update for change to
3454 std::vector.
3455
f9d949fb
CB
34562019-09-20 Christian Biesinger <cbiesinger@google.com>
3457
3458 * debug.c (debug_threads): Remove comment in favor of the header.
3459 * debug.h (using_threads): Add declaration.
3460 (debug_threads): Add comment.
3461 * linux-aarch64-low.c: Include debug.h and remove declaration of
3462 debug_threads.
3463 * nto-low.c: Likewise.
3464 * remote-utils.c: Likewise.
3465 * thread-db.c: Likewise.
3466
abf516c6
UW
34672019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
3468
3469 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
3470 and powerpc-cell64l-ipa.o.
3471 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
3472 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
3473 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
3474 (spu*-*-*): Remove.
3475
3476 * spu-low.c: Remove file.
3477
3478 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
3479 (parse_spufs_run): Remove.
3480 (ppc_get_pc): Remove Cell/B.E. support.
3481 (ppc_set_pc): Likewise.
3482 (ppc_breakpoint_at): Likewise.
3483 (ppc_arch_setup): Likewise.
3484 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
3485 tdesc_powerpc_cell32l.
3486 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
3487 or init_registers_powerpc_cell32l.
3488 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
3489 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
3490 or init_registers_powerpc_cell32l.
3491 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
3492 (init_registers_powerpc_cell32l): Remove prototype.
3493 (init_registers_powerpc_cell64l): Likewise.
3494
3495 * target.h (struct target_ops): Remove qxfer_spu member.
3496 * server.c (handle_qxfer_spu): Remove.
3497 (qxfer_packets): Remove entry for "spu".
3498 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
3499 * linux-low.c (SPUFS_MAGIC): Remove.
3500 (spu_enumerate_spu_ids): Remove.
3501 (linux_qxfer_spu): Remove.
3502 (linux_target_ops): Remove qxfer_spu member.
3503 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
3504 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
3505 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
3506
2d41fa11
SDJ
35072019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
3508
3509 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
3510 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
3511 * config.in: Regenerate.
3512 * configure: Regenerate.
3513
d59b55f0
TT
35142019-08-15 Tom Tromey <tromey@adacore.com>
3515
3516 * target.c (target_write_memory): Use gdb::byte_vector.
3517
4196ab2a
TT
35182019-08-15 Tom Tromey <tromey@adacore.com>
3519
3520 * tracepoint.c (write_inferior_data_pointer)
3521 (write_inferior_integer, write_inferior_int8)
3522 (write_inferior_uinteger, m_tracepoint_action_download)
3523 (r_tracepoint_action_download, x_tracepoint_action_download)
3524 (l_tracepoint_action_download, clear_inferior_trace_buffer)
3525 (download_agent_expr, download_tracepoint_1)
3526 (download_trace_state_variables, upload_fast_traceframes): Update.
3527 * server.c (gdb_write_memory): Update.
3528 * remote-utils.c (relocate_instruction): Update.
3529 * proc-service.c (ps_pdwrite): Update.
3530 * mem-break.c (remove_memory_breakpoint)
3531 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
3532 (uninsert_fast_tracepoint_jumps_at)
3533 (reinsert_fast_tracepoint_jumps_at): Update.
3534 * linux-x86-low.c (append_insns)
3535 (i386_install_fast_tracepoint_jump_pad)
3536 (amd64_write_goto_address, i386_write_goto_address): Update.
3537 * linux-s390-low.c (append_insns, s390_write_goto_address):
3538 Update.
3539 * linux-ppc-low.c (ppc_relocate_instruction)
3540 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
3541 (ppc_write_goto_address): Update.
3542 * linux-aarch64-low.c (append_insns): Update.
3543 * target.h (struct target_ops): Update.
3544 (write_inferior_memory): Don't declare.
3545 * target.c (target_write_memory): Rename from
3546 write_inferior_memory. Remove old target_write_memory.
3547
c6778d00
TT
35482019-08-15 Tom Tromey <tromey@adacore.com>
3549
3550 * target.c (write_inferior_memory): Use std::vector.
3551
404f2902
FCE
35522019-08-06 Frank Ch. Eigler <fche@redhat.com>
3553
3554 PR build/24886
3555 * configure.ac: Drop enable-libmcheck support.
3556 * configure, config.in: Rebuild.
3557 * acinclude.m4: Don't include it.
3558
4c5aa8e0
AH
35592019-07-19 Alan Hayward <alan.hayward@arm.com>
3560
3561 * configure.srv: Remove Arm xml files.
3562
7cc17433
AH
35632019-07-19 Alan Hayward <alan.hayward@arm.com>
3564
3565 * configure.srv: Add new files. Remove xml generated files.
3566 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
3567 registers.
3568 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
3569 * linux-aarch32-tdesc.c: New file.
3570 * linux-aarch32-tdesc.h: New file.
3571 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
3572 * linux-arm-low.c (init_registers_arm, tdesc_arm)
3573 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
3574 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
3575 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
3576 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
3577 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
3578 (arm_read_description): Call arm_linux_read_description.
3579 (initialize_low_arch): Don't init registers.
3580 * linux-arm-tdesc.c: New file.
3581 * linux-arm-tdesc.h: New file.
3582
166a82be
AH
35832019-07-10 Alan Hayward <alan.hayward@arm.com>
3584
3585 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
3586 Move counter inside for.
3587 (arm_read_description): Check ptrace earlier.
3588 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
3589
268a13a5
TT
35902019-07-09 Tom Tromey <tom@tromey.com>
3591
3592 * configure: Rebuild.
3593 * configure.ac: Change common to gdbsupport.
3594 * acinclude.m4: Change common to gdbsupport.
3595 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
3596 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
3597 common to gdbsupport.
3598 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
3599 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
3600 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
3601 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
3602 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
3603 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
3604 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
3605 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
3606 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
3607 common to gdbsupport.
3608
350fab54
AH
36092019-07-04 Alan Hayward <alan.hayward@arm.com>
3610
3611 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
3612 defines.
3613 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
3614
2b40fda7
AH
36152019-07-04 Alan Hayward <alan.hayward@arm.com>
3616
3617 * configure.srv: Remove legacy xml.
3618 * linux-aarch64-low.c (initialize_low_arch): Remove
3619 initialize_low_tdesc call.
3620 * linux-aarch64-tdesc-selftest.c: Remove file.
3621 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
3622 * linux-x86-low.c (initialize_low_arch): Remove
3623 initialize_low_tdesc call.
3624 * linux-x86-tdesc-selftest.c: Remove file.
3625 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
3626
7d10623d
TV
36272019-06-20 Tom de Vries <tdevries@suse.de>
3628
3629 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
3630 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
3631
8d6a48df
TV
36322019-06-19 Tom de Vries <tdevries@suse.de>
3633
3634 * debug.h (debug_write): Change return type to ssize_t.
3635 * debug.c (debug_write): Same.
3636
73cc7272
TT
36372019-06-14 Tom Tromey <tom@tromey.com>
3638
3639 * configure.ac: Use new path to gnulib.
3640 * configure: Rebuild.
3641 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
3642 to gnulib.
3643
08f10e02
TT
36442019-06-11 Tom Tromey <tom@tromey.com>
3645
3646 * Makefile.in (SFILES): Add alloc.c.
3647 (OBS): Add alloc.o.
3648 (IPA_OBJS): Add alloc-ipa.o.
3649 (alloc-ipa.o): New target.
3650 (%.o: ../%.c): New pattern rule.
3651
422186a9
TT
36522019-06-10 Tom Tromey <tromey@adacore.com>
3653
3654 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
3655 end warning with a newline.
3656 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
3657 newline.
3658 * thread-db.c (attach_thread): Don't end warning with a newline.
3659 (thread_db_notice_clone): Likewise.
3660 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
3661 newline.
3662 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
3663 end warning with a newline.
3664
b02f78f9
PA
36652019-06-04 Pedro Alves <palves@redhat.com>
3666
3667 * server.c (captured_main): Use make_unique_xstrdup.
3668
88ed7edb
TT
36692019-06-02 Tom Tromey <tom@tromey.com>
3670
3671 * gdbreplay.c (fromhex): Remove.
3672 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
3673
33a6bc35
TT
36742019-05-29 Tom Tromey <tromey@adacore.com>
3675
3676 * configure: Rebuild.
3677
e90a813d
KB
36782019-05-06 Kevin Buettner <kevinb@redhat.com>
3679
3680 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
3681 sign extension code on 32-bit builds.
3682
353ea2d1
EZ
36832019-05-03 Eli Zaretskii <eliz@gnu.org>
3684
3685 * remote-utils.c:
3686 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
3687
b494cdff
TT
36882019-04-19 Tom Tromey <tom@tromey.com>
3689
3690 * server.c (struct vstop_notif): Derive from notif_event.
3691 <base>: Remove.
3692 (queue_stop_reply): Update.
3693 (remove_all_on_match_ptid): Change type. Rewrite.
3694 (discard_queued_stop_replies): Rewrite.
3695 (in_queued_stop_replies_ptid): Change type.
3696 (in_queued_stop_replies): Rewrite.
3697 (notif_stop): Update.
3698 (queue_stop_reply_callback): Update.
3699 (captured_main): Don't call initialize_notif.
3700 (push_stop_notification): Update.
3701 * notif.c (notif_write_event, handle_notif_ack)
3702 (notif_event_enque, notif_push): Update.
3703 (notif_event_xfree, initialize_notif): Remove.
3704 * notif.h (struct notif_event): Include <list>, not
3705 "common/queue.h".
3706 (struct notif_server) <queue>: Now a std::list.
3707 (notif_event_p): Remove typedef.
3708 (initialize_notif): Don't declare.
3709 (struct notif_event): Add virtual destructor.
3710
a7e559cc
AH
37112019-04-17 Alan Hayward <alan.hayward@arm.com>
3712
3713 * ax.c (ax_vdebug): Call debug_printf.
3714 * debug.c (debug_write): New function.
3715 * debug.h (debug_write): New declaration.
3716 * linux-low.c (sigchld_handler): Call debug_write.
3717
aeb2e706
AH
37182019-04-17 Alan Hayward <alan.hayward@arm.com>
3719
3720 * debug.c (debug_set_output): New function.
3721 (debug_vprintf): Send output to debug_file.
3722 (debug_flush): Likewise.
3723 * debug.h (debug_set_output): New declaration.
3724 * server.c (handle_monitor_command): Add debug-file option.
3725 (captured_main): Likewise.
3726
c1bc0935
AH
37272019-04-17 Alan Hayward <alan.hayward@arm.com>
3728
3729 * debug.c (remote_debug): Add definition.
3730 * debug.h (remote_debug): Add declaration.
3731 * hostio.c (remote_debug): Remove declaration.
3732 * remote-utils.c (struct ui_file): Likewise.
3733 (remote_debug): Likewise.
3734 * remote-utils.h (remote_debug): Likewise,
3735 * server.c (remote_debug): Remove definition.
3736
3f52fdbc
KB
37372019-04-10 Kevin Buettner <kevinb@redhat.com>
3738
3739 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
3740 when using a 64-bit gdbserver.
3741
b0319eaa
TT
37422019-04-09 Tom Tromey <tromey@adacore.com>
3743
3744 * linux-low.c (select_event_lwp): Use find_thread_in_random.
3745
eedc3f4f
TT
37462019-04-08 Tom Tromey <tom@tromey.com>
3747
3748 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
3749 throw.
3750 (linux_resume_one_lwp): Likewise.
3751
230d2906
TT
37522019-04-08 Tom Tromey <tom@tromey.com>
3753
3754 * gdbreplay.c: Update.
3755 * linux-low.c: Update.
3756 * server.c: Update.
3757
a70b8144
TT
37582019-04-08 Tom Tromey <tom@tromey.com>
3759
3760 * server.c: Use C++ exception handling.
3761 * linux-low.c: Use C++ exception handling.
3762 * gdbreplay.c: Use C++ exception handling.
3763
3d6e9d23
TT
37642019-04-08 Tom Tromey <tom@tromey.com>
3765
3766 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
3767 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
3768 (captured_main, main): Update.
3769 * gdbreplay.c (main): Update.
3770
0570503d
PFC
37712019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3772
3773 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
3774 value in argument pointer, return 1 if the entry is found and 0
3775 otherwise. Move comment.
3776 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
3777 * linux-low.h (linux_get_auxv): Declare.
3778 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
3779
227a9e65
TT
37802019-04-05 Tom Tromey <tromey@adacore.com>
3781
3782 * server.c (gdbserver_usage): Use upper-case for metasyntactic
3783 variables.
3784
69f4c9cc
AH
37852019-03-28 Alan Hayward <alan.hayward@arm.com>
3786
3787 * linux-low.c (AT_HWCAP2): Add define if not already included.
3788
974c89e0
AH
37892019-03-26 Alan Hayward <alan.hayward@arm.com>
3790
3791 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
3792 (aarch64_arch_setup): Call linux_get_hwcap.
3793 * linux-arm-low.c (arm_get_hwcap): Remove function.
3794 (arm_read_description): Call linux_get_hwcap.
3795 * linux-low.c (linux_get_auxv): New function.
3796 (linux_get_hwcap): Likewise.
3797 (linux_get_hwcap2): Likewise.
3798 * linux-low.h (linux_get_hwcap): New declaration.
3799 (linux_get_hwcap2): Likewise.
3800 * linux-ppc-low.c (ppc_get_auxv): Remove function.
3801 (ppc_arch_setup): Call linux_get_hwcap.
3802 * linux-s390-low.c (s390_get_hwcap): Remove function.
3803 (s390_arch_setup): Call linux_get_hwcap.
3804
1ef53e6b
AH
38052019-03-22 Alan Hayward <alan.hayward@arm.com>
3806 Jiong Wang <jiong.wang@arm.com>
3807
3808 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
3809 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
3810 to fail.
3811 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
3812
ee4fbcfa
AH
38132019-03-22 Alan Hayward <alan.hayward@arm.com>
3814 Jiong Wang <jiong.wang@arm.com>
3815
3816 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
3817 (aarch64_get_hwcap): New function.
3818 (aarch64_arch_setup): Read APIA hwcap.
3819
6dc0ebde
AH
38202019-03-22 Alan Hayward <alan.hayward@arm.com>
3821 Jiong Wang <jiong.wang@arm.com>
3822
3823 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
3824 (initialize_low_tracepoint): Likewise.
3825 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
3826 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
3827 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
3828 (aarch64_linux_read_description): Likewise.
3829 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
3830
1163a4b7
JB
38312019-03-12 John Baldwin <jhb@FreeBSD.org>
3832
3833 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
3834 i386_create_target_description for 'segments' parameter.
3835 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
3836 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
3837 * win32-i386-low.c (i386_arch_setup): Likewise.
3838
d3a70e03
TT
38392019-03-12 Tom Tromey <tromey@adacore.com>
3840
3841 * linux-low.c (iterate_over_lwps): Update.
3842
37991b4f
TT
38432019-03-06 Tom Tromey <tom@tromey.com>
3844
3845 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
3846 (captured_main): Use SCOPE_EXIT.
3847
45950eb6
SDJ
38482019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
3849
3850 * configure.srv: Use '$enable_unittest' instead of '$development'
3851 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
3852 case.
3853
43ac54fc
TT
38542019-02-27 Tom Tromey <tromey@adacore.com>
3855
3856 * gdbreplay.c (logchar): Handle \r\n.
3857
df0da8a2
AH
38582019-02-07 Alan Hayward <alan.hayward@arm.com>
3859
3860 * linux-low.c (linux_attach): Add process before lwp.
3861 * server.c (attach_inferior): Check if already attached.
3862
1a5c2598
TT
38632019-02-07 Tom Tromey <tom@tromey.com>
3864
3865 * x86-tdesc.h: Rename include guard.
3866 * x86-low.h: Add include guard.
3867 * wincecompat.h: Rename include guard.
3868 * win32-low.h: Add include guard.
3869 * utils.h: Rename include guard.
3870 * tracepoint.h: Rename include guard.
3871 * tdesc.h: Rename include guard.
3872 * target.h: Rename include guard.
3873 * server.h: Rename include guard.
3874 * remote-utils.h: Rename include guard.
3875 * regcache.h: Rename include guard.
3876 * nto-low.h: Rename include guard.
3877 * notif.h: Add include guard.
3878 * mem-break.h: Rename include guard.
3879 * lynx-low.h: Add include guard.
3880 * linux-x86-tdesc.h: Add include guard.
3881 * linux-s390-tdesc.h: Add include guard.
3882 * linux-ppc-tdesc-init.h: Add include guard.
3883 * linux-low.h: Add include guard.
3884 * linux-aarch64-tdesc.h: Add include guard.
3885 * linux-aarch32-low.h: Add include guard.
3886 * inferiors.h: Rename include guard.
3887 * i387-fp.h: Rename include guard.
3888 * hostio.h: Rename include guard.
3889 * gdbthread.h: Rename include guard.
3890 * gdb_proc_service.h: Rename include guard.
3891 * event-loop.h: Rename include guard.
3892 * dll.h: Rename include guard.
3893 * debug.h: Rename include guard.
3894 * ax.h: Rename include guard.
3895
956cc47c
SN
38962018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
3897
3898 PR gdb/23985
3899 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
3900 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
3901
a0707f3c
TT
39022019-01-25 Tom Tromey <tom@tromey.com>
3903
3904 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
3905
0747795c
TT
39062019-01-25 Tom Tromey <tom@tromey.com>
3907
3908 * win32-low.c: Fix common/ includes.
3909 * win32-i386-low.c: Fix common/ includes.
3910 * tracepoint.c: Fix common/ includes.
3911 * thread-db.c: Fix common/ includes.
3912 * target.h: Fix common/ includes.
3913 * symbol.c: Fix common/ includes.
3914 * spu-low.c: Fix common/ includes.
3915 * server.h: Fix common/ includes.
3916 * server.c: Fix common/ includes.
3917 * remote-utils.c: Fix common/ includes.
3918 * regcache.h: Fix common/ includes.
3919 * regcache.c: Fix common/ includes.
3920 * nto-x86-low.c: Fix common/ includes.
3921 * notif.h: Fix common/ includes.
3922 * mem-break.h: Fix common/ includes.
3923 * lynx-low.c: Fix common/ includes.
3924 * lynx-i386-low.c: Fix common/ includes.
3925 * linux-x86-tdesc-selftest.c: Fix common/ includes.
3926 * linux-x86-low.c: Fix common/ includes.
3927 * linux-low.c: Fix common/ includes.
3928 * inferiors.h: Fix common/ includes.
3929 * i387-fp.c: Fix common/ includes.
3930 * hostio.c: Fix common/ includes.
3931 * hostio-errno.c: Fix common/ includes.
3932 * gdbthread.h: Fix common/ includes.
3933 * gdbreplay.c: Fix common/ includes.
3934 * fork-child.c: Fix common/ includes.
3935 * event-loop.c: Fix common/ includes.
3936 * ax.c:
3937 (enum gdb_agent_op): Fix common/ includes.
3938
be6d4f74
TT
39392019-01-21 Tom Tromey <tom@tromey.com>
3940
3941 * tracepoint.c: Fix includes.
3942 * remote-utils.c: Fix includes.
3943 * linux-x86-low.c: Fix includes.
3944
66d91b39
JB
39452019-01-01 Joel Brobecker <brobecker@adacore.com>
3946
3947 * gdbreplay.c (gdbreplay_version): Update copyright year in
3948 version message.
3949 * server.c (gdbserver_version): Likewise.
3950
754e3168
AH
39512018-12-05 Alan Hayward <alan.hayward@arm.com>
3952
3953 * linux-low.c (add_lwp): Switch ordering.
3954
d105de22
TT
39552018-11-29 Tom Tromey <tom@tromey.com>
3956
3957 * win32-low.c (win32_join): Take pid, not process.
3958 * target.h (struct target_ops) <join>: Change argument type.
3959 (join_inferior): Change argument name.
3960 * spu-low.c (spu_join): Take pid, not process.
3961 * server.c (handle_detach): Preserve pid before destroying
3962 process.
3963 * lynx-low.c (lynx_join): Take pid, not process.
3964 * linux-low.c (linux_join): Take pid, not process.
3965
50138245
AH
39662018-11-23 Alan Hayward <alan.hayward@arm.com>
3967
3968 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
3969 (aarch64_cannot_fetch_register): Likewise.
3970 (struct linux_target_ops): Update references.
3971
64f57f3d
PFC
39722018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3973
3974 * linux-ppc-low.c: Include nat/linux-ptrace.h.
3975
8d619c01
EBM
39762018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3977
3978 * configure.srv (ipa_ppc_linux_regobj): Add
3979 powerpc-isa207-htm-vsx32l-ipa.o and
3980 powerpc-isa207-htm-vsx64l-ipa.o.
3981 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
3982 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
3983 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
3984 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
3985 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
3986 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
3987 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
3988 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
3989 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
3990 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
3991 (init_registers_powerpc_isa207_htm_vsx32l)
3992 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
3993 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
3994 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
3995 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
3996 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
3997 (ppc_store_tm_ctarregset): New functions.
3998 (ppc_regsets): Add entries for HTM regsets.
3999 (ppc_arch_setup): Set htm in features struct when needed. Set
4000 sizes for the HTM regsets.
4001 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
4002 (initialize_low_arch): Call
4003 init_registers_powerpc_isa207_htm_vsx32l and
4004 init_registers_powerpc_isa207_htm_vsx64l.
4005 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
4006 PPC_TDESC_ISA207_HTM_VSX.
4007 (initialize_low_tracepoint): Call
4008 init_registers_powerpc_isa207_htm_vsx32l and
4009 init_registers_powerpc_isa207_htm_vsx64l.
4010
232bfb86
EBM
40112018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4012
4013 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
4014 rs6000/power-linux-pmu.xml to srv_xmlfiles.
4015 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
4016 (ppc_store_pmuregset): New functions.
4017 (ppc_regsets): Add entries for ebb and pmu regsets.
4018 (ppc_arch_setup): Set isa207 in features struct if the ebb and
4019 pmu regsets are available. Set sizes for these regsets.
4020
f2cf6173
EBM
40212018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4022
4023 * configure.srv (ipa_ppc_linux_regobj): Add
4024 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
4025 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
4026 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
4027 rs6000/powerpc-isa207-vsx32l.xml, and
4028 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
4029 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
4030 <PPC_TDESC_ISA207_VSX>: New enum value.
4031 (init_registers_powerpc_isa207_vsx32l): Declare.
4032 (init_registers_powerpc_isa207_vsx64l): Declare.
4033 * linux-ppc-low.c (ppc_fill_tarregset): New function.
4034 (ppc_store_tarregset): New function.
4035 (ppc_regsets): Add entry for the TAR regset.
4036 (ppc_arch_setup): Set isa207 in features struct when needed. Set
4037 size for the TAR regsets.
4038 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
4039 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
4040 and init_registers_powerpc_isa207_vsx64l.
4041 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
4042 (initialize_low_tracepoint): Call
4043 init_registers_powerpc_isa207_vsx32l and
4044 init_registers_powerpc_isa207_vsx64l.
4045
7ca18ed6
EBM
40462018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4047 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4048
4049 * configure.srv (ipa_ppc_linux_regobj): Add
4050 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
4051 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
4052 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
4053 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
4054 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
4055 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
4056 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
4057 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
4058 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
4059 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
4060 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
4061 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
4062 (ppc_hwcap): Add comment.
4063 (ppc_hwcap2): New global.
4064 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
4065 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
4066 (ppc_regsets): Add entries for the DSCR and PPR regsets.
4067 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
4068 when needed. Set sizes for the the DSCR and PPR regsets.
4069 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
4070 (initialize_low_arch): Call
4071 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
4072 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
4073 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
4074 PPC_TDESC_ISA205_PPR_DSCR_VSX.
4075 (initialize_low_tracepoint): Call
4076 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
4077 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
4078
5c849b22
PFC
40792018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4080
4081 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
4082
8ecfd7bd
SDJ
40832018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
4084 Simon Marchi <simark@simark.ca>
4085
4086 * acinclude.m4: Include "../selftest.m4".
4087 * configure: Regenerate.
4088 * configure.ac: Use "GDB_AC_SELFTEST".
4089 * configure.srv: Use "$enable_unittests" instead of
4090 "$development" when checking whether unit tests have been
4091 enabled.
4092 * server.c (captured_main): Update message informing that
4093 selftests have been disabled.
4094
96643e35
TT
40952018-10-04 Tom Tromey <tom@tromey.com>
4096
4097 * configure: Rebuild.
4098
da4ae14a
TT
40992018-10-04 Tom Tromey <tom@tromey.com>
4100
4101 * server.c (handle_status): Rename inner "thread".
4102 (process_serial_event): Declare "res" in 'm' case.
4103 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
4104 (iterate_over_lwps): Rename inner "thread".
4105 (linux_qxfer_libraries_svr4): Rename inner "len".
4106 * gdbthread.h (find_thread_in_random): Rename inner "thread".
4107
7c619dbd
GB
41082018-10-01 Gary Benson <gbenson@redhat.com>
4109
4110 * gdb_proc_service.h: Moved common code to
4111 common/gdb_proc_service.h.
4112
3795e814
GB
41132018-10-01 Gary Benson <gbenson@redhat.com>
4114
4115 * gdb_proc_service.h: Synchronize comments and whitespace with
4116 GDB's version of this file.
4117
49b036f1
TT
41182018-09-25 Tom Tromey <tom@tromey.com>
4119
4120 * configure: Rebuild.
4121 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
4122
8ff03f0b
SM
41232018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
4124
4125 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
4126 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
4127 ($(IPA_LIB)): Sort IPA_OBJS.
4128
a1cd91dc
SM
41292018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
4130
4131 * Makefile.in: Remove references to $(ADD_DEPS).
4132
752312ba
TT
41332018-09-16 Tom Tromey <tom@tromey.com>
4134
4135 * remote-utils.c (remote_open): Use GNU style for metasyntactic
4136 variables.
4137 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
4138 variables.
4139
f1628857
TT
41402018-09-05 Tom Tromey <tom@tromey.com>
4141
4142 * configure: Rebuild.
4143
ad202fcc
SM
41442018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
4145
4146 PR build/23399
4147 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
4148
d3d8724a
TT
41492018-08-27 Tom Tromey <tom@tromey.com>
4150
4151 PR build/23087:
4152 * configure: Rebuild.
4153
b4f183d2
TT
41542018-08-27 Tom Tromey <tom@tromey.com>
4155
4156 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
4157 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
4158 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
4159 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
4160 (s390x_emit_stack_adjust): Add casts to unsigned char.
4161
4e2aa472
SM
41622018-08-22 Simon Marchi <simon.marchi@ericsson.com>
4163
4164 PR gdb/23374
4165 PR gdb/23375
4166 * server.h (struct client_state) <disable_randomization>:
4167 Initialize to 1.
4168
cf4088a9
SM
41692018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4170
4171 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
4172 variable.
4173 (mips_supply_ptrace_register): Likewise.
4174
a0de763e
TT
41752018-07-22 Tom Tromey <tom@tromey.com>
4176
4177 * configure: Rebuild.
4178
b0a7723d
TT
41792018-07-22 Tom Tromey <tom@tromey.com>
4180
4181 * win32-low.c (win32_create_inferior): Remove unused variables.
4182 * gdbreplay.c (remote_open): Remove unused variable.
4183 * remote-utils.c (remote_prepare): Remove unused variable.
4184 * x86-tdesc.h (X86_TDESC_H): Define.
4185 (amd64_expedite_regs): Define conditionally.
4186 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
4187 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
4188 * remote-utils.c (readchar): Remove unused variable.
4189
a780ef4f
PA
41902018-07-13 Pedro Alves <palves@redhat.com>
4191
4192 * linux-low.c (linux_kill): Change parameter to process_info
4193 pointer instead of pid. Adjust.
4194 * lynx-low.c (lynx_kill): Likewise.
4195 * nto-low.c (nto_kill): Likewise.
4196 * spu-low.c (spu_kill): Likewise.
4197 * win32-low.c (win32_kill): Likewise.
4198 * server.c (handle_v_kill, kill_inferior_callback)
4199 (detach_or_kill_for_exit): Adjust.
4200 * target.c (kill_inferior): Change parameter to process_info
4201 pointer instead of pid. Adjust.
4202 * target.h (struct target_ops) <kill>: Change parameter to
4203 process_info pointer instead of pid. Adjust all implementations
4204 and callers.
4205 (kill_inferior): Likewise.
4206
ef2ddb33
PA
42072018-07-13 Pedro Alves <palves@redhat.com>
4208
4209 * linux-low.c (linux_detach, linux_join): Change parameter to
4210 process_info pointer instead of pid. Adjust.
4211 * lynx-low.c (lynx_detach, lynx_join): Likewise.
4212 * nto-low.c (nto_detach): Likewise.
4213 * spu-low.c (spu_detach, spu_join): Likewise.
4214 * win32-low.c (win32_detach, win32_join): Likewise.
4215 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
4216 * target.h (struct target_ops) <detach, join>: Change parameter to
4217 process_info pointer instead of pid. Adjust all implementations
4218 and callers.
4219 (detach_inferior, join_inferior): Rename 'pid' parameter to
4220 'proc'.
4221
c7ab0aef
SDJ
42222018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4223 Jan Kratochvil <jan.kratochvil@redhat.com>
4224 Paul Fertser <fercerpav@gmail.com>
4225 Tsutomu Seki <sekiriki@gmail.com>
4226
4227 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
4228 (OBS): Add 'common/netstuff.o'.
4229 (GDBREPLAY_OBS): Likewise.
4230 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
4231 (remote_open): Implement support for IPv6
4232 connections.
4233 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
4234 and 'wspiapi.h'.
4235 (handle_accept_event): Accept connections from IPv6 sources.
4236 (remote_prepare): Handle IPv6-style hostnames; implement
4237 support for IPv6 connections.
4238 (remote_open): Implement support for printing connections from
4239 IPv6 sources.
4240
31445d10
PA
42412018-07-11 Pedro Alves <palves@redhat.com>
4242
4243 PR gdb/23377
4244 * mem-break.c (any_persistent_commands): Add process_info
4245 parameter and use it instead of relying on the current process.
4246 Change return type to bool.
4247 * mem-break.h (any_persistent_commands): Add process_info
4248 parameter and change return type to bool.
4249 * server.c (handle_detach): Remove require_running_or_return call.
4250 Look up the process_info for the process we're about to detach.
4251 If not found, return back error to GDB. Adjust
4252 any_persistent_commands call to pass down a process pointer.
4253
cb197132
PA
42542018-07-11 Pedro Alves <palves@redhat.com>
4255
4256 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
4257 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
4258 instead of collect_register_by_name.
4259 * regcache.c (regcache_raw_get_unsigned_by_name): New.
4260 * regcache.h (regcache_raw_get_unsigned_by_name): New.
4261
1b919490
VB
42622018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
4263 Pedro Alves <palves@redhat.com>
4264
4265 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
4266
d7e15655
TT
42672018-07-03 Tom Tromey <tom@tromey.com>
4268
4269 * linux-low.c: Update.
4270 * lynx-low.c: Update.
4271 * mem-break.c: Update.
4272 * nto-low.c: Update.
4273 * remote-utils.c: Update.
4274 * server.c: Update.
4275 * spu-low.c: Update.
4276 * target.c: Update.
4277 * win32-low.c: Update.
4278
26a57c92
TT
42792018-07-03 Tom Tromey <tom@tromey.com>
4280
4281 * server.c: Update.
4282
0e998d96
TT
42832018-07-03 Tom Tromey <tom@tromey.com>
4284
4285 * linux-low.c: Update.
4286
cc6bcb54
TT
42872018-07-03 Tom Tromey <tom@tromey.com>
4288
4289 * target.c: Update.
4290
e38504b3
TT
42912018-07-03 Tom Tromey <tom@tromey.com>
4292
4293 * linux-low.c: Update.
4294 * linux-mips-low.c: Update.
4295 * lynx-low.c: Update.
4296 * nto-low.c: Update.
4297 * remote-utils.c: Update.
4298 * server.c: Update.
4299 * spu-low.c: Update.
4300 * target.c: Update.
4301 * thread-db.c: Update.
4302
e99b03dc
TT
43032018-07-03 Tom Tromey <tom@tromey.com>
4304
4305 * linux-low.c: Update.
4306 * linux-mips-low.c: Update.
4307 * lynx-low.c: Update.
4308 * mem-break.c: Update.
4309 * nto-low.c: Update.
4310 * remote-utils.c: Update.
4311 * server.c: Update.
4312 * spu-low.c: Update.
4313 * target.c: Update.
4314 * tracepoint.c: Update.
4315
f2907e49
TT
43162018-07-03 Tom Tromey <tom@tromey.com>
4317
4318 * linux-low.c: Update.
4319 * linux-ppc-low.c: Update.
4320 * linux-x86-low.c: Update.
4321 * proc-service.c: Update.
4322 * server.c: Update.
4323 * spu-low.c: Update.
4324 * thread-db.c: Update.
4325 * win32-low.c: Update.
4326
fd79271b
TT
43272018-07-03 Tom Tromey <tom@tromey.com>
4328
4329 * linux-low.c: Update.
4330 * lynx-low.c: Update.
4331 * nto-low.c: Update.
4332 * remote-utils.c: Update.
4333 * spu-low.c: Update.
4334 * thread-db.c: Update.
4335 * win32-low.c: Update.
4336
c0867626
SDJ
43372018-06-29 Joel Brobecker <brobecker@adacore.com>
4338
4339 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
4340 parameter in call to 'amd64_create_target_description'.
4341
2512d7ef
JK
43422018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4343
4344 * x86-tdesc.h: Remove executable permission flag.
4345
d0ac1c44
SM
43462018-06-19 Simon Marchi <simon.marchi@ericsson.com>
4347
4348 * configure.ac: Remove AC_PREREQ, add missing quoting.
4349 * configure: Re-generate.
4350 * config.in: Re-generate.
4351 * aclocal.m4: Re-generate.
4352
c4eb05ff
SM
43532018-06-18 Simon Marchi <simon.marchi@ericsson.com>
4354
4355 * tracepoint.h (current_traceframe): Remove declaration.
4356
02895270
AH
43572018-06-18 Alan Hayward <alan.hayward@arm.com>
4358
4359 * linux-aarch64-low.c (is_sve_tdesc): New function.
4360 (aarch64_sve_regs_copy_to_regcache): Likewise.
4361 (aarch64_sve_regs_copy_from_regcache): Likewise.
4362 (aarch64_regs_info): Add SVE checks.
4363 (initialize_low_arch): Initialize SVE.
4364
e9902bfc
AH
43652018-06-18 Alan Hayward <alan.hayward@arm.com>
4366
4367 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
4368
fefa175e
AH
43692018-06-11 Alan Hayward <alan.hayward@arm.com>
4370
4371 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
4372 (initialize_low_tracepoint): Likewise
4373 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
4374 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
4375 param.
4376 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
4377 checks.
4378 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
4379
b91ad3ff
AH
43802018-06-11 Alan Hayward <alan.hayward@arm.com>
4381
4382 * server.h (PBUFSIZ): Increase size
4383
f868386e
AH
43842018-06-11 Alan Hayward <alan.hayward@arm.com>
4385
4386 * regcache.c (regcache::raw_compare): New function.
4387 * regcache.h (regcache::raw_compare): New declaration.
4388
9c861883
AH
43892018-06-11 Alan Hayward <alan.hayward@arm.com>
4390
4391 * regcache.c (new_register_cache): Use new.
4392 (free_register_cache): Use delete.
4393 (register_data): Use const.
4394 (supply_register): Move body inside regcache.
4395 (regcache::raw_supply): New override function.
4396 (collect_register): Move body inside regcache.
4397 (regcache::raw_collect): New override function.
4398 (regcache::get_register_status): New override function.
4399 * regcache.h (struct regcache): Inherit from reg_buffer_common.
4400
40591844
TT
44012018-06-09 Tom Tromey <tom@tromey.com>
4402
4403 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
4404 declare queue.
4405 (event_queue): Use std::queue.
4406 (gdb_event_xfree): Remove.
4407 (initialize_event_loop, process_event, wait_for_event): Update.
4408
6341380d
SC
44092018-06-08 Stan Cox <scox@redhat.com>
4410
4411 * win32-low.c (win32_create_inferior): last_ptid and last_status
4412 moved to client_state.
4413
03349c93
PA
44142018-06-08 Pedro Alves <palves@redhat.com>
4415
4416 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
4417 common/common-exceptions.o, common/common-utils.o,
4418 common/errors.o, common/print-utils.o and utils.o.
4419 * gdbreplay.c: Include "common-defs.h" instead of the two
4420 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
4421 string.h or alloca.h.
4422 (perror_with_name): Delete.
4423 (remote_open): Use xstrdup instead of strdup.
4424 (main): Rename to ...
4425 (captured_main): ... this.
4426 (main): New.
4427
8dcc53b3
TT
44282018-06-08 Tom Tromey <tom@tromey.com>
4429
4430 * linux-low.c (linux_low_read_btrace): Update.
4431
c12a5089
SC
44322018-06-04 Stan Cox <scox@redhat.com>
4433
4434 * server.h (struct client_state): New.
4435 * server.c (cont_thread, general_thread, multi_process)
4436 (report_fork_events, report_vfork_events, report_exec_events)
4437 (report_thread_events, swbreak_feature, hwbreak_feature)
4438 (vCont_supported, disable_randomization, pass_signals)
4439 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
4440 Moved to client_state.
4441 * remote-utils.c (remote_debug, noack_mode)
4442 (transport_is_reliable): Moved to client_state.
4443 * tracepoint.c (current_traceframe): Moved to client_state.
4444
4445 Update all callers.
4446 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
4447 linux-low.c, remote-utils.h, target.c: Use client_state.
4448
122394f1
AH
44492018-05-31 Alan Hayward <alan.hayward@arm.com>
4450
4451 * configure.srv: Add new c/h file.
4452
95228a0d
AH
44532018-05-31 Alan Hayward <alan.hayward@arm.com>
4454
4455 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
4456 null VQ.
4457
d8dab6c3
MR
44582018-05-25 Maciej W. Rozycki <macro@mips.com>
4459
4460 * gdb.arch/mips-fpregset-core.exp: New test.
4461 * gdb.arch/mips-fpregset-core.c: New test source.
4462
81e25b7c
EK
44632018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
4464
4465 PR server/23198
4466 * hostio.c (require_int): Do not report overflow for integers
4467 between 0xfffffff and 0x7fffffff.
4468
7e947ad3
MR
44692018-05-22 Maciej W. Rozycki <macro@mips.com>
4470
4471 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
4472 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
4473 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
4474 functions.
4475 (the_low_target): Wire them.
4476
1d75a658
PFC
44772018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4478
4479 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
4480 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
4481 mode. Call collect_register_by_name with vscr using
4482 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
4483 (ppc_store_vrregset): Add and set vscr_offset variable as in
4484 ppc_fill_vrregset. Call supply_register_by_name with vscr using
4485 vscr_offset.
4486
d078308a
PFC
44872018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4488
4489 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
4490 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
4491 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
4492
7273b5fc
PFC
44932018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4494
4495 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
4496 (ppc_store_vsxregset): Likewise.
4497 (ppc_fill_vrregset): Likewise.
4498 (ppc_store_vrregset): Likewise.
4499 (ppc_fill_evrregset): Likewise.
4500 (ppc_store_evrregset): Likewise.
4501 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
4502 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
4503 needed.
4504
2e077f5e
PFC
45052018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4506
4507 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
4508 wordsize of the inferior. Call ppc_linux_target_wordsize.
4509
bd64614e
PFC
45102018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4511
4512 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
4513 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
4514 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
4515 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
4516 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
4517 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
4518 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
4519 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
4520 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
4521 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
4522 (tdesc_powerpc_e500l): Remove.
4523 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
4524 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
4525 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
4526 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
4527 linux-ppc-tdesc.h.
4528 (ppc_arch_setup): Remove target description matching code. Fill a
4529 ppc_linux_features struct and call ppc_linux_match_description
4530 with it.
4531
75d74cca
MR
45322018-05-22 Maciej W. Rozycki <macro@mips.com>
4533
4534 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
4535 width of the requested register exceeds the width of the
4536 `ptrace' data type.
4537 (mips_cannot_store_register): Likewise.
4538
e4439e43
MR
45392018-05-21 Maciej W. Rozycki <macro@mips.com>
4540
4541 * linux-mips-low.c (mips_fetch_register): New function. Update
4542 preceding comment.
4543 (mips_store_gregset): Supply 0 rather than $restart for $zero.
4544 (the_low_target): Wire `mips_fetch_register'.
4545
55271bf9
JB
45462018-05-10 Joel Brobecker <brobecker@adacore.com>
4547
4548 * lynx-i386-low.c (LYNXOS_178): New macro.
4549 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
4550 the layout on LynxOS-178.
4551 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
4552 handle floating point registers that are not supported by
4553 LynxOS-178.
4554
1a34f210
TT
45552018-05-10 Tom Tromey <tom@tromey.com>
4556
4557 * configure: Rebuild.
4558
190852c8
JB
45592018-05-10 Joel Brobecker <brobecker@adacore.com>
4560
4561 PR server/23158:
4562 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
4563 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
4564 Use it to set the expedite_regs field in the given tdesc.
4565 * x86-tdesc.h: New file.
4566 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
4567 Adjust following the addition of the new expedite_regs parameter
4568 to init_target_desc.
4569 * linux-tic6x-low.c (tic6x_read_description): Likewise.
4570 * linux-x86-tdesc.c: #include "x86-tdesc.h".
4571 (i386_linux_read_description, amd64_linux_read_description):
4572 Adjust following the addition of the new expedite_regs parameter
4573 to init_target_desc.
4574 * lynx-i386-low.c: #include "x86-tdesc.h".
4575 (lynx_i386_arch_setup): Adjust following the addition of the new
4576 expedite_regs parameter to init_target_desc.
4577 * nto-x86-low.c: #include "x86-tdesc.h".
4578 (nto_x86_arch_setup): Adjust following the addition of the new
4579 expedite_regs parameter to init_target_desc.
4580 * win32-i386-low.c: #include "x86-tdesc.h".
4581 (i386_arch_setup): Adjust following the addition of the new
4582 expedite_regs parameter to init_target_desc.
4583
7dbac825
JB
45842018-05-10 Joel Brobecker <brobecker@adacore.com>
4585
4586 PR server/23158:
4587 * win32-low.c (win32_create_inferior): Add call to my_wait
4588 setting last_status global.
4589
906994d9
JB
45902018-05-10 Joel Brobecker <brobecker@adacore.com>
4591
4592 PR server/23158:
4593 * win32-low.c (create_process): Only call gdb_tilde_expand if
4594 inferior_cwd is not NULL.
4595
8ee22052
AB
45962018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
4597
4598 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
4599 registers to the cache if their values have changed.
4600 (i387_xsave_to_cache): Provide default values for x87 control
4601 registers when these features are available, but disabled.
4602 * regcache.c (supply_register_by_name_zeroed): New function.
4603 * regcache.h (supply_register_by_name_zeroed): Declare new
4604 function.
4605
aff689d3
TT
46062018-05-07 Tom Tromey <tom@tromey.com>
4607
4608 * configure: Rebuild.
4609
85e26832
TT
46102018-05-04 Tom Tromey <tom@tromey.com>
4611
4612 * configure: Rebuild.
4613
a3b60e45
JK
46142018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4615 Pedro Alves <palves@redhat.com>
4616
4617 * linux-aarch64-low.c (aarch64_stopped_data_address):
4618 Likewise.
4619
632e107b
TT
46202018-04-27 Tom Tromey <tom@tromey.com>
4621
4622 * configure: Rebuild.
4623
458412c3
TT
46242018-04-23 Tom Tromey <tom@tromey.com>
4625
4626 * configure: Rebuild.
4627
f31c089e
SM
46282018-04-19 Simon Marchi <simon.marchi@ericsson.com>
4629
4630 * Makefile.in (depcomp): Add "..".
4631 (all_deps_files): New and use it.
4632
b319b098
AH
46332018-04-18 Alan Hayward <alan.hayward@arm.com>
4634
4635 * configure.srv (aarch64*-*-linux*): Don't include xml.
4636 (i[34567]86-*-cygwin*): Likewise.
4637 (i[34567]86-*-linux*): Likewise.
4638 (i[34567]86-*-lynxos*): Likewise.
4639 (i[34567]86-*-mingw32ce*): Likewise.
4640 (i[34567]86-*-mingw*): Likewise.
4641 (i[34567]86-*-nto*): Likewise.
4642 (tic6x-*-uclinux): Likewise.
4643 (x86_64-*-linux*): Likewise.
4644 (x86_64-*-mingw*): Likewise.
4645 (x86_64-*-cygwin*): Likewise.
4646
3b74854b
AH
46472018-04-18 Alan Hayward <alan.hayward@arm.com>
4648
4649 * tdesc.c: Remove xml parameter.
4650
e98577a9
AH
46512018-04-18 Alan Hayward <alan.hayward@arm.com>
4652
4653 * server.c (get_features_xml): Remove cast.
4654 * tdesc.c (void target_desc::accept): Fill in function.
4655 (tdesc_get_features_xml): Remove old xml creation.
4656 (print_xml_feature::visit_pre): Add xml vistor.
4657 * tdesc.h (struct target_desc): Make xmltarget mutable.
4658 (tdesc_get_features_xml): Remove declaration.
4659
d278f585
AH
46602018-04-18 Alan Hayward <alan.hayward@arm.com>
4661
4662 * tdesc.c (tdesc_architecture_name): Add new function.
4663 (tdesc_osabi_name): Likewise.
4664 (tdesc_get_features_xml): Use new functions.
4665
eee8a18d
AH
46662018-04-18 Alan Hayward <alan.hayward@arm.com>
4667
4668 * tdesc.c (tdesc_create_flags): Remove.
4669 (tdesc_add_flag): Likewise.
4670 (tdesc_named_type): Likewise.
4671 (tdesc_create_union): Likewise.
4672 (tdesc_create_struct): Likewise.
4673 (tdesc_create_vector): Likewise.
4674 (tdesc_add_bitfield): Likewise.
4675 (tdesc_add_field): Likewise.
4676 (tdesc_set_struct_size): Likewise.
4677
82ec9bc7
AH
46782018-04-18 Alan Hayward <alan.hayward@arm.com>
4679
4680 * tdesc.c (~target_desc): Remove implictly deleted items.
4681 (init_target_desc): Iterate all features.
4682 (tdesc_get_features_xml): Use vector.
4683 (tdesc_create_feature): Create feature.
4684 * tdesc.h (tdesc_feature) Remove
4685 (target_desc): Add features.
4686
ea3e7d71
AH
46872018-04-18 Alan Hayward <alan.hayward@arm.com>
4688
4689 * Makefile.in: Add common/tdesc.c
4690 * tdesc.c (init_target_desc): init all reg_defs from register
4691 vector.
4692 (tdesc_create_reg): Create tdesc_reg.
4693 * tdesc.h (tdesc_feature): Add register vector.
4694
17d08cd4
SM
46952018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
4696
4697 * tdesc.h (struct target_desc) <features>: Change type to
4698 std::vector<std::string>.
4699 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
4700 changes.
4701 (tdesc_get_features_xml): Likewise.
4702 (tdesc_create_feature): Likewise.
4703
5cd3e386
AH
47042018-03-26 Alan Hayward <alan.hayward@arm.com>
4705
4706 * regcache.c (find_register_by_number): Return a ref.
4707 (find_regno): Use references.
4708 (register_size): Likewise.
4709 (register_data): Likewise.
4710 * tdesc.c (target_desc::~target_desc): Remove free calls.
4711 (target_desc::operator==): Use std::vector compare.
4712 (init_target_desc): Use reference.
4713 (tdesc_create_reg): Use reg constructors.
4714 * tdesc.h (struct target_desc): Replace pointer with object.
4715
dff7492c
AH
47162018-03-23 Alan Hayward <alan.hayward@arm.com>
4717
4718 * regcache.c (find_register_by_number): Make static.
4719 (find_regno): Use find_register_by_number
4720 * regcache.h (struct reg): Remove declaration.
4721
d80e5242
AH
47222018-03-23 Alan Hayward <alan.hayward@arm.com>
4723
4724 * tdesc.c (target_desc::~target_desc): Move to here.
4725 (target_desc::operator==): Likewise.
4726 * tdesc.h (target_desc::~target_desc): Move from here.
4727 (target_desc::operator==): Likewise.
4728
f69c5afb
AA
47292018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
4730
4731 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
4732
ce29f843
AA
47332018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4734
4735 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
4736 S390_TDESC_GS.
4737 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
4738 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
4739 and init_registers_s390_gs_linux64.
4740
c49bd90b
AA
47412018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4742
4743 * linux-s390-low.c (s390_fill_gs): Remove function.
4744 (s390_fill_gsbc): Remove function.
4745 (s390_regsets): Set fill functions for the guarded storage regsets
4746 to NULL.
4747
7edb9bd3
AA
47482018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4749
4750 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
4751 the word size. Add comment.
4752 (s390_get_wordsize): New function.
4753 (s390_arch_setup): No longer select a temporary tdesc to fetch the
4754 pswm with it. Instead, use s390_get_wordsize to determine the
4755 word size first and derive the correct tdesc from that directly.
4756
39be3c7e
SM
47572018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
4758
4759 * Makefile.in: Include silent-rules.mk.
4760 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
4761 (COMPILE): Add ECHO_CXX.
4762 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
4763 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
4764 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
4765 (version-generated.c): Add ECHO_GEN.
4766 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
4767 (IPAGENT_COMPILE): Add ECHO_CXX.
4768 (%-generated.c): Add ECHO_REGDAT.
4769
3ae9ce5d
TT
47702018-03-14 Tom Tromey <tom@tromey.com>
4771
4772 PR cli/14977:
4773 * ax.c (ax_printf): Special case for NULL.
4774
e6a58aa8
SM
47752018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
4776
4777 * linux-low.c (linux_qxfer_libraries_svr4): Use
4778 xml_escape_text_append.
4779
f6e8a41e
SM
47802018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
4781
4782 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
4783
b9671caf
SM
47842018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
4785
4786 * server.c (handle_general_set): Remove unnecessary xstrdup.
4787
e80aaf61
SM
47882018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
4789
4790 * server.c (parse_debug_format_options): Adjust to
4791 delim_string_to_char_ptr_vec changes.
4792 * thread-db.c (thread_db_load_search): Adjust to
4793 dirnames_to_char_ptr_vec changes.
4794
b1223e78
MM
47952018-03-01 Markus Metzger <markus.t.metzger@intel.com>
4796
4797 * target.h (target_enable_btrace, target_disable_btrace)
4798 (target_read_btrace, target_read_btrace_conf): Turn macro into
4799 inline function. Throw error if target method is not defined.
4800 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
4801 check for btrace target method. Be prepared to handle exceptions
4802 from btrace target methods.
4803
81561546
SDJ
48042018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
4805
4806 * server.c (captured_main): Change order of error message printed
4807 when the current working directory cannot be found.
4808
25e3c82c
SDJ
48092018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
4810
4811 * server.c: Include "filenames.h" and "pathstuff.h".
4812 (program_name): Delete variable.
4813 (program_path): New anonymous class.
4814 (get_exec_wrapper): Use "program_path" instead of
4815 "program_name".
4816 (handle_v_run): Likewise.
4817 (captured_main): Likewise.
4818 (process_serial_event): Likewise.
4819
b4987c95
SDJ
48202018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
4821
4822 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
4823 (OBJS): Add "pathstuff.o".
4824 * server.c (current_directory): New global variable.
4825 (captured_main): Initialize "current_directory".
4826
f46cd62a
AH
48272018-02-26 Alan Hayward <alan.hayward@arm.com>
4828
4829 * tdesc.c: Use common/tdesc.h.
4830 * tdesc.h: Likewise.
4831
a543c5ca
AH
48322018-02-20 Alan Hayward <alan.hayward@arm.com>
4833 Simon Marchi <simon.marchi@ericsson.com>
4834
4835 * Makefile.in: Switch order of make rules.
4836
b5884fa7
AH
48372018-02-19 Alan Hayward <alan.hayward@arm.com>
4838
4839 * Makefile.in: Add common directory in build.
4840 * configure.ac: Add common reference.
4841 * configure: Regenerate.
4842
de6242d3
MM
48432018-02-09 Markus Metzger <markus.t.metzger@intel.com>
4844
4845 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
4846 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
4847 * spu-low.c (spu_target_ops): Likewise.
4848 * win32-low.c (win32_target_ops): Likewise.
4849 * server.c (supported_btrace_packets): Report packets unconditionally.
4850 * target.h (target_ops) <supports_btrace>: Remove.
4851 (target_supports_btrace): Remove.
4852
9ee23a85
MM
48532018-02-09 Markus Metzger <markus.t.metzger@intel.com>
4854
4855 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
4856 (handle_btrace_disable): Change return type to void. Use exceptions
4857 to report errors.
4858 (handle_btrace_general_set): Catch exception and copy message to
4859 return message.
4860
8ce47547
TT
48612018-02-08 Tom Tromey <tom@tromey.com>
4862
4863 * linux-low.c (install_software_single_step_breakpoints): Use
4864 make_scoped_restore.
4865 * inferiors.c (make_cleanup_restore_current_thread): Remove.
4866 (do_restore_current_thread_cleanup): Remove.
4867 * gdbthread.h (make_cleanup_restore_current_thread): Don't
4868 declare.
4869
45dd3607
TT
48702018-02-08 Tom Tromey <tom@tromey.com>
4871
4872 * mem-break.c (set_raw_breakpoint_at): Use
4873 gdb::unique_xmalloc_ptr.
4874
e671cd59
PA
48752018-01-30 Pedro Alves <palves@redhat.com>
4876
4877 PR gdb/13211
4878 * target.c (target_terminal::terminal_state): Rename to ...
4879 (target_terminal::m_terminal_state): ... this.
4880
a0aad537
JC
48812018-01-19 James Clarke <jrtc27@jrtc27.com>
4882
4883 * linux-low.c (handle_extended_wait): Surround call to
4884 thread_db_notice_clone with #ifdef USE_THREAD_DB.
4885
4d9b86e1
SM
48862018-01-17 Simon Marchi <simon.marchi@ericsson.com>
4887
4888 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
4889 linux_ptrace_attach_fail_reason_string now returning an
4890 std::string.
4891 (linux_attach): Likewise.
4892 * thread-db.c (attach_thread): Likewise.
4893
f517c180
EA
48942018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
4895
4896 PR gdb/21559
4897 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
4898 checking for fs_base/gs_base fields in struct user_regs_struct.
4899 * configure: Regenerate.
4900
9a70f35c
YQ
49012018-01-16 Yao Qi <yao.qi@linaro.org>
4902
4903 PR gdb/18749
4904 * linux-low.c (fetch_register): Call supply_register instead of
4905 error.
4906
605fd3c6
YQ
49072018-01-08 Yao Qi <yao.qi@linaro.org>
4908 Simon Marchi <simon.marchi@ericsson.com>
4909
4910 * Makefile.in (OBS): Remove selftest.o.
4911 * configure.ac: Set srv_selftest_objs if $development is true.
4912 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
4913 * configure: Re-generated.
4914 * server.c (captured_main): Wrap variable selftest_filter with
4915 GDB_SELF_TEST.
4916
2cc05030
SM
49172018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
4918
4919 * server.c (parse_debug_format_options): Return std::string.
4920 (handle_monitor_command, captured_main): Adjust.
4921
e379cee6
PA
49222018-01-05 Pedro Alves <palves@redhat.com>
4923
4924 PR gdb/18653
4925 * server.c (captured_main): Pass quiet=false to
4926 save_original_signals_state.
4927
82e1e79a
JB
49282018-01-01 Joel Brobecker <brobecker@adacore.com>
4929
4930 * gdbreplay.c (gdbreplay_version): Update copyright year in
4931 version message.
4932 * server.c (gdbserver_version): Likewise.
4933
8e481c3b
TT
49342017-12-08 Tom Tromey <tom@tromey.com>
4935
4936 * ax.c (ax_printf): Update.
4937
a8806230
YQ
49382017-12-07 Yao Qi <yao.qi@linaro.org>
4939
4940 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
4941 aarch64_linux_read_description.
4942 * linux-amd64-ipa.c (idx2mask): New array.
4943 (get_ipa_tdesc): Move idx2mask out.
4944 (initialize_low_tracepoint): Initialize target descriptions.
4945 * linux-i386-ipa.c (idx2mask): New array.
4946 (get_ipa_tdesc): Move idx2mask out.
4947 (initialize_low_tracepoint): Initialize target descriptions.
4948
d4a0e8b5
SM
49492017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
4950
4951 * tdesc.c (struct tdesc_type): Change return type.
4952 (tdesc_add_flag): Change parameter type.
4953 (tdesc_add_bitfield): Likewise.
4954 (tdesc_add_field): Likewise.
4955 (tdesc_set_struct_size): Likewise.
4956
798a7429
SM
49572017-12-05 Simon Marchi <simon.marchi@ericsson.com>
4958
4959 * regcache.c (registers_to_string): Remove unused variable.
4960
c0e15c9b
SM
49612017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4962
4963 * inferiors.c (for_each_inferior_with_data): Remove.
4964 * inferiors.h (for_each_inferior_with_data): Remove.
4965 * server.c (handle_qxfer_threads_worker): Change parameter type.
4966 (handle_qxfer_threads_proper): Use for_each_thread.
4967
f0045347
SM
49682017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4969
4970 * inferiors.c (for_each_inferior): Remove.
4971 (clear_inferiors): Use for_each_thread.
4972 * inferiors.h (for_each_inferior): Remove.
4973 * linux-low.c (linux_wait_for_event_filtered): Use
4974 for_each_thread.
4975 (linux_stabilize_threads): Likewise.
4976 * regcache.c (regcache_release): Likewise.
4977 * server.c (gdb_wants_all_threads_stopped): Likewise.
4978 (clear_pending_status_callback): Remove.
4979 (handle_status): Use for_each_thread.
4980 (captured_main): Likewise.
4981 * win32-low.c (child_init_thread_list): Likewise.
4982 (win32_clear_inferiors): Likewise.
4983 (fake_breakpoint_event): Likewise.
4984
9521758b
SM
49852017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4986
4987 * inferiors.h (find_inferior): Remove.
4988 * inferiors.c (find_inferior): Remove.
4989
8f86d7aa
SM
49902017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4991
4992 * linux-low.c (resume_status_pending_p): Update comment.
4993 (need_step_over_p): Update comment.
4994
e2b44075
SM
49952017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4996
4997 * linux-low.c (proceed_one_lwp): Return void, change parameter
4998 type.
4999 (unsuspend_and_proceed_one_lwp): Likewise.
5000 (proceed_all_lwps): Use for_each_thread.
5001 (unstop_all_lwps): Likewise.
5002
c80825ff
SM
50032017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5004
5005 * linux-low.c (linux_resume_one_thread): Return void, take
5006 parameter directly.
5007 (linux_resume): Use for_each_thread.
5008
df3e4dbe
SM
50092017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5010
5011 * linux-low.c (send_sigstop_callback): Return void, change
5012 parameter type. Rename to...
5013 (send_sigstop): ... this.
5014 (suspend_and_send_sigstop_callback): Return void, change parameter
5015 type. Rename to...
5016 (suspend_and_send_sigstop): ... this.
5017 (stop_all_lwps): Use for_each_thread.
5018
5a6b0a41
SM
50192017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5020
5021 * linux-low.c (lwp_running): Return bool, remove unused
5022 argument.
5023 (linux_stabilize_threads): Use find_thread.
5024
39a64da5
SM
50252017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5026
5027 * linux-low.c (select_singlestep_lwp_callback): Remove.
5028 (count_events_callback): Remove.
5029 (select_event_lwp_callback): Remove.
5030 (select_event_lwp): Use find_thread/for_each_thread.
5031
a1385b7b
SM
50322017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5033
5034 * linux-low.c (not_stopped_callback): Return bool, take filter
5035 argument directly.
5036 (linux_wait_for_event_filtered): Use find_thread.
5037 (linux_wait_1): Likewise.
5038
454296a2
SM
50392017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5040
5041 * linux-low.c (same_lwp): Remove.
5042 (find_lwp_pid): Use find_thread.
5043
6b2a85da
SM
50442017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5045
5046 * linux-low.c (delete_lwp_callback): Remove.
5047 (linux_mourn): Use for_each_thread.
5048
798a38e8
SM
50492017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5050
5051 * linux-low.c (linux_detach_lwp_callback): Return void, remove
5052 args parameter, don't check for pid.
5053 (linux_detach): Use for_each_thread.
5054
e4eb0dec
SM
50552017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5056
5057 * linux-low.c (struct counter): Remove.
5058 (second_thread_of_pid_p): Remove.
5059 (last_thread_of_process_p): Use find_thread.
5060
83e1b6c1
SM
50612017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5062
5063 * inferiors.c (find_inferior_in_random): Remove.
5064 * inferiors.h (find_inferior_in_random): Remove.
5065 * linux-low.c (status_pending_p_callback): Return bool, accept
5066 parameter ptid directly.
5067 (linux_wait_for_event_filtered): Use find_thread_in_random.
5068 (linux_wait_1): Likewise.
5069
8dc7b443
SM
50702017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5071
5072 * inferiors.c (find_inferior_id): Remove.
5073 (find_thread_ptid): Move implemention from find_inferior_id to
5074 here.
5075 * inferiors.h (find_inferior_id): Remove.
5076 * server.c (handle_status): Use find_thread_ptid.
5077 (process_serial_event): Likewise.
5078 * thread-db.c (find_one_thread): Likewise.
5079 (thread_db_thread_handle): Likewise.
5080 * win32-low.c (thread_rec): Likewise.
5081 (child_delete_thread): Likewise.
5082 (win32_thread_alive): Likewise.
5083 (get_child_debug_event): Likewise.
5084
da25033c
SM
50852017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5086
5087 * linux-mips-low.c (update_watch_registers_callback): Return
5088 void, remove pid_p parameter, don't check for pid.
5089 (mips_insert_point, mips_remove_point): Use for_each_thread.
5090
c91bb56b
SM
50912017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5092
5093 * lynx.low (lynx_delete_thread_callback): Remove.
5094 (lynx_mourn): Use for_each_thread.
5095
634a3254
SM
50962017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5097
5098 * regcache.c (regcache_invalidate_one): Remove.
5099 (regcache_invalidate_pid): use for_each_thread.
5100
41272101
TT
51012017-11-26 Tom Tromey <tom@tromey.com>
5102
5103 * linux-low.c (linux_create_inferior): Update.
5104
f5291a6f
UW
51052017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
5106
5107 * spu-low.c (spu_create_inferior): Fix typo in argument name.
5108
6654d750
AH
51092017-11-24 Alan Hayward <alan.hayward@arm.com>
5110
5111 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
5112 * linux-aarch64-low.c (initialize_low_arch): Call init func.
5113 * linux-aarch64-tdesc-selftest.c: New file.
5114 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
5115
51162017-11-24 Alan Hayward <alan.hayward@arm.com>
5117
5118 * configure.srv: Add new file.
5119 * linux-aarch64-low.c (initialize_low_arch): Call init func.
5120 * linux-aarch64-tdesc-selftest.c: New file.
5121 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
5122
49bdb7ee
AH
51232017-11-24 Alan Hayward <alan.hayward@arm.com>
5124
5125 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
5126 * linux-aarch64-low.c (initialize_low_arch): Remove init.
5127 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
5128
d6d7ce56
AH
51292017-11-24 Alan Hayward <alan.hayward@arm.com>
5130
5131 * configure.srv: Add new files.
5132 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
5133 aarch64_linux_read_description.
5134 * linux-aarch64-low.c (aarch64_linux_read_description):
5135 Merge with aarch64_arch_setup.
5136 (aarch64_arch_setup): Call aarch64_linux_read_description.
5137 * linux-aarch64-tdesc.c: New file.
5138 * linux-aarch64-tdesc.h: New file.
5139
506fe5f4
YQ
51402017-11-24 Yao Qi <yao.qi@linaro.org>
5141
5142 * configure.srv: Set $srv_regobj for tic6x-linux.
5143 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
5144 (tic6x_read_description): Move some code to tic6x_arch_setup.
5145 (tic6x_tdesc_test): New function.
5146 (initialize_low_arch): Call selftests::register_test.
5147
29f9a567
YQ
51482017-11-22 Yao Qi <yao.qi@linaro.org>
5149
5150 * remote-utils.c (prepare_resume_reply): Use memcpy.
5151
578290ec
SM
51522017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5153
5154 * linux-low.c (kill_one_lwp_callback): Return void, take
5155 argument directly, don't filter on pid.
5156 (linux_kill): Use for_each_thread.
5157
eca55aec
SM
51582017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5159
5160 * linux-low.c (need_step_over_p): Return bool, remove dummy
5161 argument.
5162 (linux_resume, proceed_all_lwps): Use find_thread.
5163
25c28b4d
SM
51642017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5165
5166 * linux-low.c (resume_status_pending_p): Return bool, remove
5167 flag_p argument.
5168 (linux_resume): Use find_thread.
5169
5fdda392
SM
51702017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5171
5172 * linux-low.c (struct thread_resume_array): Remove.
5173 (linux_set_resume_request): Return void, take arguments
5174 directly.
5175 (linux_resume): Use for_each_thread.
5176
fcb056a5
SM
51772017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5178
5179 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
5180 return bool, remove data argument.
5181 (linux_stabilize_threads): Use find_thread.
5182
139720c5
SM
51832017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5184
5185 * linux-low.c (unsuspend_one_lwp): Remove.
5186 (unsuspend_all_lwps): Use for_each_thread, inline code from
5187 unsuspend_one_lwp.
5188
6d1e5673
SM
51892017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5190
5191 * gdbthread.h (find_thread): Add overload with ptid_t filter.
5192 * linux-low.c (struct iterate_over_lwps_args): Remove.
5193 (iterate_over_lwps_filter): Remove.
5194 (iterate_over_lwps): Use find_thread.
5195
bbf550d5
SM
51962017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5197
5198 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
5199 (linux_handle_new_gdb_connection): Use for_each_thread, inline
5200 code from reset_lwp_ptrace_options_callback.
5201
00192f77
SM
52022017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5203
5204 * linux-arm-low.c (struct update_registers_data): Remove.
5205 (update_registers_callback): Return void, take arguments
5206 directly, don't check thread's pid.
5207 (arm_insert_point, arm_remove_point): Use for_each_thread.
5208
2bee2b6c
SM
52092017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5210
5211 * win32-low.c (continue_one_thread): Return void, take argument
5212 directly.
5213 (child_continue): Use for_each_thread.
5214
0b360f19
SM
52152017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5216
5217 * win32-i386-low.c (update_debug_registers_callback): Rename
5218 to ...
5219 (update_debug_registers): ... this, return void, remove pid_p arg.
5220 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
5221
f27866ba
SM
52222017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
5223
5224 * inferiors.h (struct process_info): Add constructor, initialize
5225 fields..
5226 <syscalls_to_catch>: Change type to std::vector<int>.
5227 * inferiors.c (add_process): Allocate process_info with new.
5228 (remove_process): Free process_info with delete.
5229 * linux-low.c (handle_extended_wait): Adjust.
5230 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
5231 * server.c (handle_general_set): Adjust.
5232
e849ea89
PA
52332017-11-16 Pedro Alves <palves@redhat.com>
5234
5235 * remote-utils.c (remote_close): Block SIGIO signals instead of
5236 uninstalling the SIGIO handler.
5237
1d0aa65c
AH
52382017-11-16 Alan Hayward <alan.hayward@arm.com>
5239
5240 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
5241
3491a34c
YQ
52422017-11-16 Yao Qi <yao.qi@linaro.org>
5243
5244 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
5245 (tic6x_store_gregset): Likewise.
5246 (tic6x_usrregs_info): Move it up.
5247
a602f924
AH
52482017-11-15 Alan Hayward <alan.hayward@arm.com>
5249
5250 * Makefile.in: Update arch rules.
5251 * configure.srv: Explicitly mark arch/ files.
5252
5616b6c3
AS
52532017-11-13 Andreas Schwab <schwab@suse.de>
5254
5255 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
5256 function.
5257 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
5258
d1928160
PA
52592017-11-06 Pedro Alves <palves@redhat.com>
5260
5261 * config.in, configure: Regenerate.
5262
bac608e7
SM
52632017-10-27 Simon Marchi <simon.marchi@ericsson.com>
5264
5265 * target.c (struct thread_search): Remove.
5266 (thread_search_callback): Remove.
5267 (prepare_to_access_memory): Use for_each_thread instead of
5268 find_inferior. Inline code from thread_search_callback.
5269
eaddb425
SM
52702017-10-27 Simon Marchi <simon.marchi@ericsson.com>
5271
5272 * server.c (struct visit_actioned_threads_data): Remove.
5273 (visit_actioned_threads): Change prototype to take arguments
5274 directly.
5275 (resume): Use find_thread instead of find_inferior.
5276
99078d34
SM
52772017-10-27 Simon Marchi <simon.marchi@ericsson.com>
5278
5279 * server.c (queue_stop_reply_callback): Change prototype, return
5280 void.
5281 (find_status_pending_thread_callback): Remove.
5282 (handle_status): Replace find_inferior with find_thread and
5283 for_each_thread.
5284
cc628f3d
AH
52852017-10-25 Alan Hayward <alan.hayward@arm.com>
5286
5287 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
5288 with REGNO.
5289 (aarch64_store_gregset): Likewise.
5290 (aarch64_fill_fpregset): Likewise.
5291 (aarch64_store_fpregset): Likewise.
5292
4d3bb80e
SM
52932017-10-21 Simon Marchi <simon.marchi@ericsson.com>
5294
5295 * gdbthread.h (find_thread, for_each_thread): New functions.
5296 * inferiors.c (thread_of_pid): Remove.
5297 (find_any_thread_of_pid): Use find_thread.
5298 * linux-low.c (num_lwps): Use for_each_thread.
5299
7a7cdfa0
YQ
53002017-10-17 Yao Qi <yao.qi@linaro.org>
5301
5302 * Makefile.in: Remove one rule.
5303 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
5304
e675d170
YQ
53052017-10-17 Yao Qi <yao.qi@linaro.org>
5306
5307 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
5308 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
5309
7eb4e0f9
YQ
53102017-10-17 Yao Qi <yao.qi@linaro.org>
5311
5312 * configure.srv: Rename arm.o with arch/arm.o.
5313
60d6cfc9
YQ
53142017-10-17 Yao Qi <yao.qi@linaro.org>
5315
5316 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
5317 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
5318 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
5319 (arch-i386.o, arch-amd64.o): Remove rules.
5320 (arch/%.o): New rule.
5321 Update POSTCOMPILE and COMPILE.pre.
5322 * configure.ac: Invoke AC_CONFIG_COMMANDS.
5323 * configure: Re-generated.
5324 * configure.srv: Replace arch-i386.o with arch/i386.o.
5325 Replace arch-amd64.o with arch/amd64.o.
5326
5bfda255
YQ
53272017-10-16 Yao Qi <yao.qi@linaro.org>
5328
5329 * configure: Regenerated.
5330
9c80ecd6
SM
53312017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
5332
5333 * inferiors.h: (struct inferior_list): Remove.
5334 (struct inferior_list_entry); Remove.
5335 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
5336 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
5337 get_first_inferior): Remove.
5338 (for_each_inferior, for_each_inferior_with_data, find_inferior,
5339 find_inferior_id, find_inferior_in_random): Change signature.
5340 * inferiors.c (all_threads): Change type to
5341 std::list<thread_info *>.
5342 (get_thread): Remove macro.
5343 (find_inferior, find_inferior_id): Change signature, implement
5344 using find_thread.
5345 (find_inferior_in_random): Change signature, implement using
5346 find_thread_in_random.
5347 (for_each_inferior, for_each_inferior_with_data): Change
5348 signature, implement using for_each_thread.
5349 (add_inferior_to_list, remove_inferior): Remove.
5350 (add_thread, get_first_thread, thread_of_pid,
5351 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
5352 (get_first_inferior, one_inferior_p, clear_inferior_list):
5353 Remove.
5354 (clear_inferiors, get_thread_process): Update.
5355 * gdbthread.h: Include <list>.
5356 (struct thread_info) <entry>: Remove field.
5357 <id>: New field.
5358 (all_threads): Change type to std::list<thread_info *>.
5359 (get_first_inferior): Add doc.
5360 (find_thread, for_each_thread, find_thread_in_random): New
5361 functions.
5362 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
5363 * linux-arm-low.c (update_registers_callback): Update.
5364 * linux-low.c (second_thread_of_pid_p): Update.
5365 (kill_one_lwp_callback, linux_detach_lwp_callback,
5366 delete_lwp_callback, status_pending_p_callback, same_lwp,
5367 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
5368 iterate_over_lwps, not_stopped_callback,
5369 resume_stopped_resumed_lwps, count_events_callback,
5370 select_singlestep_lwp_callback, select_event_lwp_callback,
5371 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
5372 suspend_and_send_sigstop_callback, wait_for_sigstop,
5373 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
5374 lwp_running, linux_set_resume_request, resume_status_pending_p,
5375 need_step_over_p, start_step_over, linux_resume_one_thread,
5376 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
5377 reset_lwp_ptrace_options_callback): Update.
5378 * linux-mips-low.c (update_watch_registers_callback): Update.
5379 * regcache.c (regcache_invalidate_one, regcache_invalidate):
5380 Update.
5381 (free_register_cache_thread_one): Remove.
5382 (regcache_release): Update.
5383 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
5384 handle_qxfer_threads_worker): Update.
5385 (handle_query): Update, use list iterator.
5386 (visit_actioned_threads, handle_pending_status,
5387 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
5388 clear_pending_status_callback, set_pending_status_callback,
5389 find_status_pending_thread_callback, handle_status,
5390 process_serial_event): Update.
5391 * target.c (thread_search_callback): Update.
5392 * thread-db.c (thread_db_get_tls_address): Update.
5393 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
5394 Update.
5395 * win32-i386-low.c (update_debug_registers_callback): Update.
5396 * win32-low.c (delete_thread_info, child_delete_thread,
5397 continue_one_thread, suspend_one_thread,
5398 get_child_debug_event): Adjust.
5399
9179355e
SM
54002017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
5401
5402 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
5403 * inferiors.h: Include <list>.
5404 (struct process_info) <entry>: Remove field.
5405 <pid>: New field.
5406 (pid_of): Change macro to function.
5407 (ptid_of, lwpid_of): Remove macro.
5408 (all_processes): Change type to std::list<process_info *>.
5409 (ALL_PROCESSES): Remove macro.
5410 (for_each_process, find_process): New function.
5411 * inferiors.c (all_processes): Change type to
5412 std::list<process_info *>.
5413 (find_thread_process): Adjust.
5414 (add_process): Likewise.
5415 (remove_process): Likewise.
5416 (find_process_pid): Likewise.
5417 (get_first_process): Likewise.
5418 (started_inferior_callback): Remove.
5419 (have_started_inferiors_p): Adjust.
5420 (attached_inferior_callback): Remove.
5421 (have_attached_inferiors_p): Adjust.
5422 * linux-low.c (check_zombie_leaders): Likewise.
5423 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
5424 (x86_linux_update_xmltarget): Adjust.
5425 * server.c (handle_query): Likewise.
5426 (gdb_reattached_process): Remove.
5427 (handle_status): Adjust.
5428 (kill_inferior_callback): Likewise.
5429 (detach_or_kill_inferior): Remove.
5430 (print_started_pid): Likewise.
5431 (print_attached_pid): Likewise.
5432 (detach_or_kill_for_exit): Update.
5433 (process_serial_event): Likewise.
5434 * linux-arm-low.c (arm_new_fork): Likewise.
5435
c9cb8905
SM
54362017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
5437
5438 * dll.h: Include <list>.
5439 (struct dll_info): Add constructor.
5440 <entry>: Remove field.
5441 (all_dlls): Change type to std::list<dll_info>.
5442 * dll.c: Include <algorithm>.
5443 (get_dll): Remove macro.
5444 (all_dlls): Change type to std::list<dll_info *>.
5445 (free_one_dll): Remove.
5446 (match_dll): Likewise.
5447 (loaded_dll): Adjust.
5448 (unloaded_dll): Adjust to all_dlls type change, use
5449 std::find_if. Inline code from match_dll.
5450 (clear_dlls): Adjust to all_dlls type change.
5451 * server.c (emit_dll_description): Remove.
5452 (handle_qxfer_libraries): Adjust to all_dlls type change,
5453 integrate emit_dll_description's functionality.
5454
04ec7890
SM
54552017-10-12 Simon Marchi <simon.marchi@ericsson.com>
5456
5457 * linux-low.h (struct linux_target_ops) <delete_process>: New
5458 field.
5459 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
5460 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
5461 (struct linux_target_ops): Add delete_process callback.
5462 * linux-arm-low.c (arm_delete_process): New.
5463 (struct linux_target_ops): Add delete_process callback.
5464 * linux-bfin-low.c (struct linux_target_ops): Likewise.
5465 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
5466 * linux-m32r-low.c (struct linux_target_ops): Likewise.
5467 * linux-mips-low.c (mips_linux_delete_process): New.
5468 (struct linux_target_ops): Add delete_process callback.
5469 * linux-ppc-low.c (struct linux_target_ops): Likewise.
5470 * linux-s390-low.c (struct linux_target_ops): Likewise.
5471 * linux-sh-low.c (struct linux_target_ops): Likewise.
5472 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
5473 * linux-tile-low.c (struct linux_target_ops): Likewise.
5474 * linux-x86-low.c (x86_linux_delete_process): New.
5475 (struct linux_target_ops): Add delete_process callback.
5476 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
5477
466eecee
SM
54782017-10-12 Simon Marchi <simon.marchi@ericsson.com>
5479
5480 * linux-aarch64-low.c (the_low_target): Add thread delete
5481 callback.
5482 * linux-arm-low.c (arm_delete_thread): New function.
5483 (the_low_target): Add thread delete callback.
5484 * linux-bfin-low.c (the_low_target): Likewise.
5485 * linux-crisv32-low.c (the_low_target): Likewise.
5486 * linux-low.c (delete_lwp): Invoke delete_thread callback if
5487 set.
5488 * linux-low.h (struct linux_target_ops) <delete_thread>: New
5489 field.
5490 * linux-m32r-low.c (the_low_target): Add thread delete callback.
5491 * linux-mips-low.c (mips_linux_delete_thread): New function.
5492 (the_low_target): Add thread delete callback.
5493 * linux-ppc-low.c (the_low_target): Likewise.
5494 * linux-s390-low.c (the_low_target): Likewise.
5495 * linux-sh-low.c (the_low_target): Likewise.
5496 * linux-tic6x-low.c (the_low_target): Likewise.
5497 * linux-tile-low.c (the_low_target): Likewise.
5498 * linux-x86-low.c (the_low_target): Likewise.
5499 * linux-xtensa-low.c (the_low_target): Likewise.
5500
b79f7801
YZ
55012017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
5502
5503 * win32-low.c: Include "common-inferior.h".
5504
bc3b087d
SDJ
55052017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
5506
5507 * inferiors.c (set_inferior_cwd): New function.
5508 * server.c (handle_general_set): Handle QSetWorkingDir packet.
5509 (handle_query): Inform that QSetWorkingDir is supported.
5510 * win32-low.c (create_process): Pass the inferior's cwd to
5511 CreateProcess.
5512
d092c5a2
SDJ
55132017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
5514
5515 * inferiors.c (current_inferior_cwd): New global variable.
5516 (get_inferior_cwd): New function.
5517 * inferiors.h (struct process_info) <cwd>: New field.
5518
7da0a886
SDJ
55192017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
5520
5521 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
5522 (OBS): Add gdb_tilde_expand.o.
5523
289a6840
SM
55242017-10-02 Simon Marchi <simon.marchi@ericsson.com>
5525
5526 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
5527 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
5528
256642e8
PA
55292017-09-29 Pedro Alves <palves@redhat.com>
5530
5531 * ax.c (gdb_parse_agent_expr): Constify.
5532 * ax.h (gdb_parse_agent_expr): Constify.
5533 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
5534 Constify.
5535 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
5536 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
5537 * remote-utils.h (read_ptid): Constify.
5538 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
5539 (process_point_options, process_serial_event): Constify.
5540 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
5541 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
5542 (cmd_qtbuffer): Constify.
5543
5b9ca4d4
PA
55442017-09-29 Pedro Alves <palves@redhat.com>
5545
5546 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
5547 fails.
5548
94c207e0
PA
55492017-09-29 Pedro Alves <palves@redhat.com>
5550
5551 * linux-low.c (handle_extended_wait): Pass parent thread instead
5552 of process to thread_db_notice_clone.
5553 * linux-low.h (thread_db_notice_clone): Replace parent process
5554 parameter with parent thread parameter.
5555 * thread-db.c (find_one_thread): Add comment.
5556 (thread_db_notice_clone): Replace parent process parameter with
5557 parent thread parameter. Temporarily switch to the parent thread.
5558
75352e28
SDJ
55592017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
5560
5561 * gdbthread.h: Include "common-gdbthread.h".
5562 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
5563 "if" when validating the ptid.
5564 * remote-utils.c: Include "gdbthread.h".
5565 (prepare_resume_reply): Use "switch_to_thread".
5566 * target.c (done_accessing_memory): Likewise.
5567
ad339634
AA
55682017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
5569
5570 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
5571 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
5572 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
5573 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
5574 s390x-gs-linux64-ipa.o to ipa_obj.
5575 * linux-s390-low.c (HWCAP_S390_GS): New define.
5576 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
5577 New functions.
5578 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
5579 (s390_arch_setup): Check for guarded-storage support and choose
5580 appropriate tdesc.
5581 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
5582 init_registers_s390x_gs_linux64.
5583 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
5584 enum value.
5585 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
5586 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
5587
cc4d742f
SM
55882017-09-22 Simon Marchi <simon.marchi@ericsson.com>
5589
5590 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
5591
f6327dcb
KB
55922017-09-21 Kevin Buettner <kevinb@redhat.com>
5593
5594 * linux-low.h (struct lwp_info): Add new field, thread_handle.
5595 (thread_db_thread_handle): Declare.
5596 * linux-low.c (linux_target_ops): Initialize thread_handle.
5597 * server.c (handle_qxfer_threads_worker): Add support for
5598 "handle" attribute.
5599 * target.h (struct target_ops): Add new function pointer,
5600 thread_handle.
5601 (target_thread_handle): Define.
5602 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
5603 field in lwp.
5604 (thread_db_thread_handle): New function.
5605
86299109
KB
56062017-09-21 Kevin Buettner <kevinb@redhat.com>
5607
5608 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
5609 * linux-low.h (thread_db_notice_clone): Declare.
5610 * thread-db.c (thread_db_notice_clone): New function.
5611
f557a88a
PA
56122017-09-21 Pedro Alves <palves@redhat.com>
5613
5614 * server.c (gdb_read_memory, handle_status, process_serial_event)
5615 (handle_serial_event, handle_target_event): Adjust to
5616 set_desired_thread prototype change.
5617 * target.c (set_desired_thread): Remove 'use_general' parameter
5618 and adjust.
5619 * target.h (set_desired_thread): Remove 'use_general' parameter.
5620
223ffa71
TT
56212017-09-20 Tom Tromey <tom@tromey.com>
5622
5623 * target.c (target_terminal::terminal_state): Define.
5624 (target_terminal::init): Rename from target_terminal_init.
5625 (target_terminal::inferior): Rename from
5626 target_terminal_inferior.
5627 (target_terminal::ours): Rename from target_terminal_ours.
5628 (target_terminal::ours_for_output, target_terminal::info): New.
5629
04fd3ba9
SM
56302017-09-16 Simon Marchi <simon.marchi@ericsson.com>
5631
5632 * server.c (accumulate_file_name_length): Remove.
5633 (emit_dll_description): Adjust to std::string change.
5634 (handle_qxfer_libraries): Use std::string to hold document.
5635
5e187554
SM
56362017-09-16 Simon Marchi <simon.marchi@ericsson.com>
5637
5638 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
5639 return type of xml_escape_text.
5640 * server.c (emit_dll_description): Likewise.
5641
1526853e
SM
56422017-09-16 Simon Marchi <simon.marchi@ericsson.com>
5643
5644 * server.c (captured_main): Accept argument for --selftest.
5645 Update run_tests call.
5646 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
5647 when registering selftests.
5648
c4dfafab
SDJ
56492017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
5650
5651 * regcache.c (get_thread_regcache): Update code to use "std::vector"
5652 instead of "VEC" for "target_desc.reg_defs".
5653 (regcache_cpy): Likewise.
5654 (registers_to_string): Likewise.
5655 (registers_from_string): Likewise.
5656 (find_regno): Likewise.
5657 (supply_regblock): Likewise.
5658 (regcache_raw_read_unsigned): Likewise.
5659 * tdesc.c (init_target_desc): Likewise.
5660 (tdesc_create_reg): Likewise.
5661 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
5662 (struct target_desc) <reg_defs>: Convert to "std::vector".
5663 (target_desc): Do not initialize "reg_defs".
5664 (~target_desc): Update code to use "std::vector" instead of "VEC"
5665 for "target_desc.reg_defs".
5666 (operator==): Likewise.
5667
124aceb4
SM
56682017-09-15 Simon Marchi <simon.marchi@ericsson.com>
5669
5670 * inferiors.h (thread_to_gdb_id): Remove.
5671 * inferiors.c (thread_to_gdb_id): Remove.
5672 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
5673 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
5674 lynx_store_registers, lynx_read_memory, lynx_write_memory):
5675 Likewise.
5676 * nto-low.c (nto_fetch_registers, nto_store_registers,
5677 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
5678
96cde54f
SM
56792017-09-15 Simon Marchi <simon.marchi@ericsson.com>
5680
5681 * inferiors.h (gdb_id_to_thread_id): Remove.
5682 * inferiors.c (gdb_id_to_thread_id): Remove.
5683 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
5684 removal. Move pid declaration closer to where it's used.
5685
e8ca139e
SM
56862017-09-15 Simon Marchi <simon.marchi@ericsson.com>
5687
5688 * server.c (handle_detach): New function.
5689 (process_serial_event): Move code out, call handle_detach.
5690
f8a4e119
SM
56912017-09-15 Simon Marchi <simon.marchi@ericsson.com>
5692
5693 * server.c (require_running): Rename to ...
5694 (require_running_or_return): ... this ...
5695 (require_running_or_break): ... and this.
5696 (handle_query, process_serial_event): Adjust.
5697
0eb0a407
SM
56982017-09-15 Simon Marchi <simon.marchi@ericsson.com>
5699
5700 * linux-low.c (linux_set_resume_request): Remove unused
5701 variables.
5702
785922a5
SM
57032017-09-15 Simon Marchi <simon.marchi@ericsson.com>
5704
5705 * server.c (first_thread_of): Remove.
5706 (process_serial_event): Replace usage of first_thread_of with
5707 find_any_thread_of_pid.
5708 * tracepoint.c (same_process_p): Remove.
5709 (gdb_agent_about_to_close): Replace usage of same_process_p with
5710 find_any_thread_of_pid.
5711 * linux-x86-low.c (same_process_callback): Remove.
5712 (x86_arch_setup_process_callback): Replace usage of
5713 same_process_callback with find_any_thread_of_pid.
5714 * thread-db.c (any_thread_of): Remove.
5715 (switch_to_process): Replace usage of any_thread_of with
5716 find_any_thread_of_pid.
5717 * inferiors.c (thread_pid_matches_callback): Remove.
5718 (find_thread_process): Adjust to use find_any_thread_of_pid.
5719
a059f00c
SDJ
57202017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
5721
5722 * regcache.c (get_thread_regcache): Guard calls to "memset"
e79be6e5 5723 with "!VEC_empty".
a059f00c 5724
cc397f3a
SDJ
57252017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
5726
5727 * linux-low.c (handle_extended_wait): Use
5728 "allocate_target_description" instead of "XNEW".
5729 * linux-x86-low.c (initialize_low_arch): Likewise.
5730
22916b07
YQ
57312017-09-05 Yao Qi <yao.qi@linaro.org>
5732
5733 * configure.srv (srv_i386_regobj): Remove.
5734 (srv_amd64_regobj): Remove.
5735 (srv_regobj): Set it to "" for x86 non-linux targets.
5736 * linux-x86-tdesc.c (i386_linux_read_description):
5737 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
5738 (init_registers_i386): Remove the declaration.
5739 (tdesc_i386): Remove the declaration.
5740 (lynx_i386_arch_setup): Call i386_create_target_description.
5741 * nto-x86-low.c: Likewise.
5742 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
5743 [!__x86_64__]: include arch/i386.h.
5744 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
5745
38602d55
YQ
57462017-09-05 Yao Qi <yao.qi@linaro.org>
5747
5748 * configure.srv (srv_amd64_linux_xmlfiles): Remove
5749 i386/amd64-XXX-linux from it.
5750
44b886ff
YQ
57512017-09-05 Yao Qi <yao.qi@linaro.org>
5752
5753 * configure.srv: Empty srv_amd64_linux_regobj if $development is
5754 false.
5755 (ipa_amd64_linux_regobj): Remove.
5756 (ipa_x32_linux_regobj): Remove.
5757
b4570e4b
YQ
57582017-09-05 Yao Qi <yao.qi@linaro.org>
5759
5760 * Makefile.in (arch-amd64.o): New rule.
5761 * configure.srv: Append arch-amd64.o.
5762 * linux-amd64-ipa.c: Include common/x86-xstate.h.
5763 (get_ipa_tdesc): Call amd64_linux_read_description.
5764 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
5765 and init_registers_amd64_XXX.
5766 * linux-x86-low.c (x86_linux_read_description): Call
5767 amd64_linux_read_description.
5768 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
5769 (initialize_low_arch): Don't call init_registers_x32_XXX and
5770 init_registers_amd64_XXX.
5771 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
5772 and tdesc_amd64_XXX.
5773 [__x86_64__] (amd64_tdesc_test): New function.
5774 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
5775 and init_registers_amd64_XXX.
5776 * linux-x86-tdesc.c: Include arch/amd64.h.
5777 (xcr0_to_tdesc_idx): New function.
5778 (i386_linux_read_description): New function.
5779 (amd64_get_ipa_tdesc_idx): New function.
5780 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
5781 (amd64_get_ipa_tdesc): Declare.
5782
d1f28ea2
YQ
57832017-09-05 Yao Qi <yao.qi@linaro.org>
5784
5785 * configure.srv (srv_i386_linux_xmlfiles): Remove
5786 i386/i386-XXX-linux.xml from it.
5787
25a93583
YQ
57882017-09-05 Yao Qi <yao.qi@linaro.org>
5789
5790 * configure.srv: Set srv_i386_linux_regobj empty if $development
5791 is false.
5792 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
5793 initialize_low_tdesc.
5794 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
5795 with #if initialize_low_tdesc.
5796 * linux-x86-tdesc-selftest.c: New file.
5797 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
5798
5f035c07
YQ
57992017-09-05 Yao Qi <yao.qi@linaro.org>
5800
5801 * Makefile.in (arch-i386.o): New rule.
5802 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
5803 (x86_64-*-linux*): Likewise.
5804 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
5805 include arch/i386.h.
5806 (i386_linux_read_description): Remove code and call
5807 i386_create_target_description.
5808 * tdesc.c (allocate_target_description): New function.
5809 * tdesc.h (set_tdesc_architecture): Remove declaration.
5810 (set_tdesc_osabi): Likewise.
5811
0abe8a89
YQ
58122017-09-05 Yao Qi <yao.qi@linaro.org>
5813
5814 * linux-x86-tdesc.c: Don't include <inttypes.h>.
5815 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
5816 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
5817 .xmltarget.
5818 * server.c (get_features_xml): Call tdesc_get_features_xml.
5819 * tdesc.c (set_tdesc_architecture): New function.
5820 (set_tdesc_osabi): New function.
5821 (tdesc_get_features_xml): New function.
5822 (tdesc_create_feature): Add an argument.
5823 * tdesc.h (struct target_desc) <features>: New field.
5824 <arch, osabi>: New field.
5825 (~target_desc): xfree features, arch, and osabi.
5826 (target_desc::oerator==): Don't compare .xmltarget.
5827 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
5828 (set_tdesc_osabi): Likewise.
5829 (tdesc_get_features_xml): Likewise.
5830
0a188386
YQ
58312017-09-05 Yao Qi <yao.qi@linaro.org>
5832
5833 * linux-x86-tdesc.c: Include selftest.h.
5834 (i386_tdesc_test): New function.
5835 (initialize_low_tdesc): Call selftests::register_test.
5836 * tdesc.h: Include regdef.h.
5837 (target_desc): Override operator == and !=.
5838
f49ff000
YQ
58392017-09-05 Yao Qi <yao.qi@linaro.org>
5840
5841 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
5842 (ipa_obj): Likewise.
5843 * linux-i386-ipa.c: Include common/x86-xstate.h
5844 (get_ipa_tdesc): Call i386_linux_read_description.
5845 (initialize_low_tracepoint): Don't call init_registers_XXX
5846 functions, call initialize_low_tdesc instead.
5847 * linux-x86-low.c (x86_linux_read_description): Call
5848 i386_linux_read_description.
5849 (initialize_low_arch): Don't call init_registers_i386_XXX
5850 functions, call initialize_low_tdesc.
5851 * linux-x86-tdesc.c: New file.
5852 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
5853 (i386_get_ipa_tdesc_idx): Declare.
5854 (i386_get_ipa_tdesc): Declare.
5855 (initialize_low_tdesc): Declare.
5856
2b68ef2f
YQ
58572017-09-05 Yao Qi <yao.qi@linaro.org>
5858
5859 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
5860 instead of 0.
5861
f7000548
YQ
58622017-09-05 Yao Qi <yao.qi@linaro.org>
5863
5864 * Makefile.in (IPA_OBJS): Add vec-ipa.o
5865 * regcache.c (get_thread_regcache): Use VEC_length.
5866 (init_register_cache): Likewise.
5867 (regcache_cpy): Likewise.
5868 (registers_to_string): Iterate reg_defs via VEC_iterate.
5869 (find_regno): Likewise.
5870 (find_register_by_number): Use VEC_index.
5871 (register_size): Call find_register_by_number.
5872 (register_data): Call find_register_by_number.
5873 (supply_regblock): Use VEC_length.
5874 (regcache_raw_read_unsigned): Likewise.
5875 * tdesc.c (init_target_desc): Iterate reg_defs via
5876 VEC_iterate.
5877 (default_description): Update initializer.
5878 (copy_target_description): Don't update field num_registers.
5879 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
5880 <num_registers>: Remove.
5881
50a421ac
SM
58822017-09-04 Simon Marchi <simon.marchi@ericsson.com>
5883
5884 * Makefile.in (.SECONDARY): Define target.
5885
23fdd69e
SM
58862017-09-03 Simon Marchi <simon.marchi@ericsson.com>
5887
5888 * linux-low.c (linux_wait_1): Adjust.
5889 * server.c (queue_stop_reply_callback): Adjust.
5890
0a2dde4a
SDJ
58912017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
5892
5893 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
5894 QEnvironmentUnset and QEnvironmentReset packets.
5895 (handle_query): Inform remote that QEnvironmentHexEncoded,
5896 QEnvironmentUnset and QEnvironmentReset are supported.
5897
6afd337d
SM
58982017-08-25 Simon Marchi <simon.marchi@ericsson.com>
5899
5900 * inferiors.h (inferior_target_data): Rename to ...
5901 (thread_target_data): ... this.
5902 (inferior_regcache_data): Rename to ...
5903 (thread_regcache_data): ... this.
5904 (set_inferior_regcache_data): Rename to ...
5905 (set_thread_regcache_data): ... this.
5906 * inferiors.c (inferior_target_data): Rename to ...
5907 (thread_target_data): ... this.
5908 (inferior_regcache_data): Rename to ...
5909 (thread_regcache_data): ... this.
5910 (set_inferior_regcache_data): Rename to ...
5911 (set_thread_regcache_data): ... this.
5912 (free_one_thread): Update.
5913 * linux-low.h (get_thread_lwp): Update.
5914 * regcache.c (get_thread_regcache): Update.
5915 (regcache_invalidate_thread): Update.
5916 (free_register_cache_thread): Update.
5917 * win32-i386-low.c (update_debug_registers_callback): Update.
5918 (win32_get_current_dr): Update.
5919 * win32-low.c (thread_rec): Update.
5920 (delete_thread_info): Update.
5921 (continue_one_thread): Update.
5922 (suspend_one_thread): Update.
5923
a160cc46
SM
59242017-08-24 Simon Marchi <simon.marchi@ericsson.com>
5925
5926 * inferiors.c (set_inferior_target_data): Remove.
5927 * inferiors.h (set_inferior_target_data): Remove.
5928
6d580b63
YQ
59292017-08-18 Yao Qi <yao.qi@linaro.org>
5930
5931 * Makefile.in (OBS): Add selftest.o.
5932 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
5933 * configure, config.in: Re-generated.
5934 * server.c: Include common/sefltest.h.
5935 (captured_main): Handle option --selftest.
5936
f5a29eb0
YQ
59372017-08-09 Yao Qi <yao.qi@linaro.org>
5938
5939 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
5940 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
5941 i386-avx-mpx.o and i386-mmx.o.
5942 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
5943 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
5944 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
5945 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
5946 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
5947 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
5948 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
5949 i386/amd64-avx-mpx.xml.
5950
57757c2f
YQ
59512017-08-09 Yao Qi <yao.qi@linaro.org>
5952
5953 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
5954 and x32-avx-avx512.o.
5955 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
5956 i386/x32-avx-avx512.xml.
5957
229d26fc
SM
59582017-07-26 Simon Marchi <simon.marchi@ericsson.com>
5959
5960 * tracepoint.h (enum class fast_tpoint_collect_result): New
5961 enumeration.
5962 (fast_tracepoint_collecting): Change return type to
5963 fast_tpoint_collect_result.
5964 * tracepoint.c (fast_tracepoint_collecting): Likewise.
5965 * linux-low.h: Include tracepoint.h.
5966 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
5967 fast_tpoint_collect_result.
5968 * linux-low.c (handle_tracepoints): Adjust.
5969 (linux_fast_tracepoint_collecting): Change return type to
5970 fast_tpoint_collect_result.
5971 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
5972 linux_wait_1, stuck_in_jump_pad_callback,
5973 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
5974 proceed_one_lwp): Adjust to type change.
5975
2e1e43e1
YQ
59762017-07-10 Yao Qi <yao.qi@linaro.org>
5977
5978 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
5979
adc764e7
YQ
59802017-06-29 Yao Qi <yao.qi@linaro.org>
5981
5982 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
5983 Remove.
5984 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
5985
a206891a
SM
59862017-06-20 Simon Marchi <simon.marchi@ericsson.com>
5987
5988 * Makefile.in (IPA_OBJS): Sort and format one item per line.
5989
9a6c7d9c
SDJ
59902017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
5991
5992 * linux-low.c (linux_create_inferior): Adjust code to access the
5993 environment information via 'gdb_environ' class.
5994 * lynx-low.c (lynx_create_inferior): Likewise.
5995 * server.c (our_environ): Make it an instance of 'gdb_environ'.
5996 (get_environ): Return a pointer to 'our_environ'.
5997 (captured_main): Initialize 'our_environ'.
5998 * server.h (get_environ): Adjust prototype.
5999 * spu-low.c (spu_create_inferior): Adjust code to access the
6000 environment information via 'gdb_environ' class.
6001
ae3e2ccf
SM
60022017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6003
6004 * linux-low.c (linux_read_memory, linux_write_memory): Remove
6005 usage of "register" keyword.
6006
3e019bdc
SM
60072017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6008
6009 * configure: Re-generate.
6010
8465943a
SM
60112017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6012
6013 * configure: Re-generate.
6014
cf0dd6f0
SM
60152017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6016
6017 * Makefile.in (COMPILE.pre): Add "-x c++".
6018
9845682b
SDJ
60192017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
6020
6021 * fork-child.c: Conditionally include <signal.h>.
6022
aefd8b33
SDJ
60232017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6024
6025 * server.c (handle_general_set): Handle new packet
6026 "QStartupWithShell".
6027 (handle_query): Add "QStartupWithShell" to the list of supported
6028 packets.
6029 (gdbserver_usage): Add help text explaining the
6030 new "--startup-with-shell" and "--no-startup-with-shell" CLI
6031 options.
6032 (captured_main): Recognize and act upon the presence of the new
6033 CLI options.
6034
2090129c
SDJ
60352017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6036 Pedro Alves <palves@redhat.com>
6037
6038 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
6039 * configure: Regenerate.
6040 * configure.srv (srv_linux_obj): Add "fork-child.o" and
6041 "fork-inferior.o".
6042 (i[34567]86-*-lynxos*): Likewise.
6043 (spu*-*-*): Likewise.
6044 * fork-child.c: New file.
6045 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
6046 and "environ.h".
6047 (linux_ptrace_fun): New function.
6048 (linux_create_inferior): Adjust function prototype to reflect
6049 change on "target.h". Adjust function code to use
6050 "fork_inferior".
6051 (linux_request_interrupt): Delete "signal_pid".
6052 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
6053 (lynx_ptrace_fun): New function.
6054 (lynx_create_inferior): Adjust function prototype to reflect
6055 change on "target.h". Adjust function code to use
6056 "fork_inferior".
6057 * nto-low.c (nto_create_inferior): Adjust function prototype and
6058 code to reflect change on "target.h". Update comments.
6059 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
6060 "common-terminal.h" and "environ.h".
6061 (terminal_fd): Moved to fork-child.c.
6062 (old_foreground_pgrp): Likewise.
6063 (restore_old_foreground_pgrp): Likewise.
6064 (last_status): Make it global.
6065 (last_ptid): Likewise.
6066 (our_environ): New variable.
6067 (startup_with_shell): Likewise.
6068 (program_name): Likewise.
6069 (program_argv): Rename to...
6070 (program_args): ...this.
6071 (wrapper_argv): New variable.
6072 (start_inferior): Delete function.
6073 (get_exec_wrapper): New function.
6074 (get_exec_file): Likewise.
6075 (get_environ): Likewise.
6076 (prefork_hook): Likewise.
6077 (post_fork_inferior): Likewise.
6078 (postfork_hook): Likewise.
6079 (postfork_child_hook): Likewise.
6080 (handle_v_run): Update code to deal with arguments coming from the
6081 remote host. Update calls from "start_inferior" to
6082 "create_inferior".
6083 (captured_main): Likewise. Initialize environment variable. Call
6084 "have_job_control".
6085 * server.h (post_fork_inferior): New prototype.
6086 (get_environ): Likewise.
6087 (last_status): Declare.
6088 (last_ptid): Likewise.
6089 (signal_pid): Likewise.
6090 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
6091 (spu_ptrace_fun): New function.
6092 (spu_create_inferior): Adjust function prototype to reflect change
6093 on "target.h". Adjust function code to use "fork_inferior".
6094 * target.c (target_terminal_init): New function.
6095 (target_terminal_inferior): Likewise.
6096 (target_terminal_ours): Likewise.
6097 * target.h: Include <vector>.
6098 (struct target_ops) <create_inferior>: Update prototype.
6099 (create_inferior): Update macro.
6100 * utils.c (gdb_flush_out_err): New function.
6101 * win32-low.c (win32_create_inferior): Adjust function prototype
6102 and code to reflect change on "target.h".
6103
043a4934
SDJ
61042017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6105
6106 * inferiors.c (switch_to_thread): New function.
6107
15652511
SDJ
61082017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6109
6110 * Makefile.in (SFILE): Add "common/job-control.c".
6111 (OBS): Add "job-control.o".
6112
21ea5acd
SDJ
61132017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
6114
6115 * Makefile: Remove "@host_makefile_frag@".
6116
e13cb306
PA
61172017-05-05 Pedro Alves <palves@redhat.com>
6118
6119 * configure: Regenerate.
6120
c94fee56
SDJ
61212017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
6122
6123 * configure: Regenerate.
6124
a0ff9e1a
SM
61252017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6126
6127 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
6128 software_single_step change of return type to
6129 std::vector<CORE_ADDR>.
6130 * linux-low.c (install_software_single_step_breakpoints):
6131 Likewise.
6132 * linux-low.h (install_software_single_step_breakpoints):
6133 Likewise.
6134
be628ab8
SDJ
61352017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
6136
6137 * remote-utils.c: Include "gdb_termios.h" instead of
6138 "terminal.h".
6139 * terminal.h: Delete file.
6140
7c5ded6a
SDJ
61412017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
6142
6143 * server.c: Include <vector>.
6144 <program_argv, wrapper_argv>: Convert to std::vector.
6145 (start_inferior): Rewrite function to use C++.
6146 (handle_v_run): Likewise. Update code that calculates the argv
6147 based on the vRun packet; use C++.
6148 (captured_main): Likewise.
6149
436252de
SM
61502017-04-06 Simon Marchi <simon.marchi@ericsson.com>
6151
6152 * server.c (handle_v_cont): Initialize thread_resume::thread
6153 with null_ptid.
6154
9bf2a700
PA
61552017-04-05 Pedro Alves <palves@redhat.com>
6156
6157 * configure: Regenerate.
6158
a121b7c1
PA
61592017-04-05 Pedro Alves <palves@redhat.com>
6160
6161 * gdbreplay.c (sync_error): Constify.
6162 * linux-x86-low.c (push_opcode): Constify.
6163
21c8a587
PA
61642017-04-05 Pedro Alves <palves@redhat.com>
6165
6166 * win32-low.c (get_child_debug_event)
6167 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
6168 Report TARGET_WAITKIND_SPURIOUS instead.
6169
fb32b4f7
PA
61702017-04-05 Pedro Alves <palves@redhat.com>
6171
e79be6e5
SM
6172 * remote-utils.c (remote_prepare, remote_open): Constify.
6173 * remote-utils.h (remote_prepare, remote_open): Constify.
6174 * server.c (captured_main): Constify 'port' handling.
fb32b4f7 6175
65dd1e59
SM
61762017-04-04 Simon Marchi <simon.marchi@ericsson.com>
6177
6178 * Makefile.in (clean): Clear .deps.
6179
8fa5b777
SM
61802017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
6181
6182 * .gitignore: Remove generated files, replace with wildcard.
6183 * (clean): Replace removal of generated files with wildcard.
6184 (version.c): Replace with...
6185 (version-generated.c): ...this.
6186 (xml-builtin.c): Replace with...
6187 (xml-builtin-generated.c): ...this.
6188 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
6189 (%.c: *regformats*): Replace with...
6190 (%-generated.c: *regformats*): ...this.
6191
a12e714b
MF
61922017-03-27 Max Filippov <jcmvbkbc@gmail.com>
6193
6194 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
6195 (xtensa_fill_gregset): Call collect_register_by_name for
6196 threadptr register.
6197 (xtensa_store_gregset): Call supply_register_by_name for
6198 threadptr register.
6199
1a09b50a
MF
62002017-03-27 Max Filippov <jcmvbkbc@gmail.com>
6201
6202 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
6203 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
6204 (xtensa_store_gregset): Call supply_register for all registers in
6205 a0_regnum..a0_regnum + C0_NREGS range.
6206
1a01e7c6
SM
62072017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6208
6209 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
6210 (ax-ipa.o: ax.c): Remove.
6211 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
6212 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
6213 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
6214 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
6215 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
6216
36bc18a8
SM
62172017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6218
6219 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
6220 (print-utils-ipa.o: ../common/print-utils.c): Remove.
6221 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
6222 (errors-ipa.o: ../common/errors.c): Remove.
6223 (format-ipa.o: ../common/format.c): Remove.
6224 (common-utils-ipa.o: ../common/common-utils.c): Remove.
6225
a8ebe3d5
SM
62262017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6227
6228 * Makefile.in (%-ipa.o: %.c): New rule.
6229 (tracepoint-ipa.o: tracepoint.c): Remove.
6230 (utils-ipa.o: utils.c): Remove.
6231 (remote-utils-ipa.o: remote-utils.c): Remove.
6232 (regcache-ipa.o: regcache.c): Remove.
6233 (i386-linux-ipa.o: i386-linux.c): Remove.
6234 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
6235 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
6236 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
6237 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
6238 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
6239 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
6240 (amd64-linux-ipa.o: amd64-linux.c): Remove.
6241 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
6242 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
6243 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
6244 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
6245 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
6246 (aarch64-ipa.o: aarch64.c): Remove.
6247 (s390-linux32-ipa.o: s390-linux32.c): Remove.
6248 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
6249 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
6250 (s390-linux64-ipa.o: s390-linux64.c): Remove.
6251 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
6252 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
6253 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
6254 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
6255 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
6256 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
6257 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
6258 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
6259 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
6260 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
6261 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
6262 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
6263 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
6264 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
6265 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
6266 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
6267 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
6268 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
6269 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
6270 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
6271 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
6272 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
6273 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
6274 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
6275 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
6276 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
6277 (tdesc-ipa.o: tdesc.c): Remove.
6278 (x32-linux-ipa.o: x32-linux.c): Remove.
6279 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
6280 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
6281
50cfacb7
SM
62822017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6283
6284 * Makefile.in (%.o: ../arch/%.c): New rule.
6285 (arm.o: ../arch/arm.c): Remove.
6286 (arm-linux.o: ../arch/arm-linux.c): Remove.
6287 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
6288 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
6289
c5a22423
SM
62902017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6291
6292 * Makefile.in (%.o: ../nat/%.c): New rule.
6293 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
6294 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
6295 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
6296 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
6297 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
6298 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
6299 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
6300 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
6301 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
6302 (linux-personality.o: ../nat/linux-personality.c): Remove.
6303 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
6304 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
6305 (x86-linux.o: ../nat/x86-linux.c): Remove.
6306 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
6307 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
6308
6bda016b
SM
63092017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6310
6311 * Makefile.in (%.o: ../common/%.c): New rule.
6312 (signals.o: ../common/signals.c): Remove.
6313 (print-utils.o: ../common/print-utils.c): Remove.
6314 (rsp-low.o: ../common/rsp-low.c): Remove.
6315 (common-utils.o: ../common/common-utils.c): Remove.
6316 (posix-strerror.o: ../common/posix-strerror.c): Remove.
6317 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
6318 (vec.o: ../common/vec.c): Remove.
6319 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
6320 (xml-utils.o: ../common/xml-utils.c): Remove.
6321 (ptid.o: ../common/ptid.c): Remove.
6322 (buffer.o: ../common/buffer.c): Remove.
6323 (format.o: ../common/format.c): Remove.
6324 (filestuff.o: ../common/filestuff.c): Remove.
6325 (agent.o: ../common/agent.c): Remove.
6326 (errors.o: ../common/errors.c): Remove.
6327 (environ.o: ../common/environ.c): Remove.
6328 (common-debug.o: ../common/common-debug.c): Remove.
6329 (cleanups.o: ../common/cleanups.c): Remove.
6330 (common-exceptions.o: ../common/common-exceptions.c): Remove.
6331 (fileio.o: ../common/fileio.c): Remove.
6332 (common-regcache.o: ../common/common-regcache.c): Remove.
6333 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
6334 (new-op.o: ../common/new-op.c): Remove.
6335 (btrace-common.o: ../common/btrace-common.c): Remove.
6336
21122961
SM
63372017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6338
6339 * Makefile.in (%.o: ../target/%.c): New rule.
6340 (waitstatus.o: ../target/waitstatus.c): Remove.
6341
c362e621
SM
63422017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6343
6344 * Makefile.in
6345 (%.c: ../regformats/%.dat,
6346 (%.c: ../regformats/arm/%.dat,
6347 (%.c: ../regformats/i386/%.dat,
6348 (%.c: ../regformats/rs6000/%.dat): New rules.
6349 (aarch64.c): Remove.
6350 (reg-arm.c): Remove.
6351 (arm-with-iwmmxt.c): Remove.
6352 (arm-with-vfpv2.c): Remove.
6353 (arm-with-vfpv3.c): Remove.
6354 (arm-with-neon.c): Remove.
6355 (reg-bfin.c): Remove.
6356 (reg-cris.c): Remove.
6357 (reg-crisv32.c): Remove.
6358 (i386.c): Remove.
6359 (i386-linux.c): Remove.
6360 (i386-avx.c): Remove.
6361 (i386-avx-linux.c): Remove.
6362 (i386-avx-avx512.c): Remove.
6363 (i386-avx-avx512-linux.c): Remove.
6364 (i386-mpx.c): Remove.
6365 (i386-mpx-linux.c): Remove.
6366 (i386-avx-mpx-avx512-pku.c): Remove.
6367 (i386-avx-mpx-avx512-pku-linux.c): Remove.
6368 (i386-avx-mpx.c): Remove.
6369 (i386-avx-mpx-linux.c): Remove.
6370 (i386-mmx.c): Remove.
6371 (i386-mmx-linux.c): Remove.
6372 (reg-ia64.c): Remove.
6373 (reg-m32r.c): Remove.
6374 (reg-m68k.c): Remove.
6375 (reg-cf.c): Remove.
6376 (mips-linux.c): Remove.
6377 (mips-dsp-linux.c): Remove.
6378 (mips64-linux.c): Remove.
6379 (mips64-dsp-linux.c): Remove.
6380 (nios2-linux.c): Remove.
6381 (powerpc-32.c): Remove.
6382 (powerpc-32l.c): Remove.
6383 (powerpc-altivec32l.c): Remove.
6384 (powerpc-cell32l.c): Remove.
6385 (powerpc-vsx32l.c): Remove.
6386 (powerpc-isa205-32l.c): Remove.
6387 (powerpc-isa205-altivec32l.c): Remove.
6388 (powerpc-isa205-vsx32l.c): Remove.
6389 (powerpc-e500l.c): Remove.
6390 (powerpc-64l.c): Remove.
6391 (powerpc-altivec64l.c): Remove.
6392 (powerpc-cell64l.c): Remove.
6393 (powerpc-vsx64l.c): Remove.
6394 (powerpc-isa205-64l.c): Remove.
6395 (powerpc-isa205-altivec64l.c): Remove.
6396 (powerpc-isa205-vsx64l.c): Remove.
6397 (s390-linux32.c): Remove.
6398 (s390-linux32v1.c): Remove.
6399 (s390-linux32v2.c): Remove.
6400 (s390-linux64.c): Remove.
6401 (s390-linux64v1.c): Remove.
6402 (s390-linux64v2.c): Remove.
6403 (s390-te-linux64.c): Remove.
6404 (s390-vx-linux64.c): Remove.
6405 (s390-tevx-linux64.c): Remove.
6406 (s390x-linux64.c): Remove.
6407 (s390x-linux64v1.c): Remove.
6408 (s390x-linux64v2.c): Remove.
6409 (s390x-te-linux64.c): Remove.
6410 (s390x-vx-linux64.c): Remove.
6411 (s390x-tevx-linux64.c): Remove.
6412 (tic6x-c64xp-linux.c): Remove.
6413 (tic6x-c64x-linux.c): Remove.
6414 (tic6x-c62x-linux.c): Remove.
6415 (reg-sh.c): Remove.
6416 (reg-sparc64.c): Remove.
6417 (reg-spu.c): Remove.
6418 (amd64.c): Remove.
6419 (amd64-linux.c): Remove.
6420 (amd64-avx.c): Remove.
6421 (amd64-avx-linux.c): Remove.
6422 (amd64-avx-avx512.c): Remove.
6423 (amd64-avx-avx512-linux.c): Remove.
6424 (amd64-mpx.c): Remove.
6425 (amd64-mpx-linux.c): Remove.
6426 (amd64-avx-mpx-avx512-pku.c): Remove.
6427 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
6428 (amd64-avx-mpx.c): Remove.
6429 (amd64-avx-mpx-linux.c): Remove.
6430 (x32.c): Remove.
6431 (x32-linux.c): Remove.
6432 (x32-avx.c): Remove.
6433 (x32-avx-linux.c): Remove.
6434 (x32-avx-avx512.c): Remove.
6435 (x32-avx-avx512-linux.c): Remove.
6436 (reg-xtensa.c): Remove.
6437 (reg-tilegx.c): Remove.
6438 (reg-tilegx32.c): Remove.
6439
1672e0d9
SDJ
64402017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
6441
6442 * Makefile.in (SFILES): Add "common/environ.c".
6443 (OBJS): Add "common/environ.h".
6444
239b6d10
WT
64452017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
6446
6447 * configure.ac: Check if the fs_base and gs_base members of
6448 `struct user_regs_struct' exist.
6449 * config.in: Regenerated.
6450 * configure: Likewise.
6451
694b382c
AT
64522017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
6453
6454 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
6455 target_read_memory.
6456 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
6457 (get_next_pcs_syscall_next_pc): Likewise.
6458
7dc53023
LM
64592016-12-23 Luis Machado <lgustavo@codesourcery.com>
6460
6461 * win32-i386-low.c: Fix incorrect reference to a couple source files.
6462 * nto-x86-low.c: Likewise.
6463
ad02e4fe
SM
64642016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
6465
6466 * Makefile.in: Include disable-implicit-rules.mk.
6467
dcb07cfa
PA
64682016-11-23 Pedro Alves <palves@redhat.com>
6469
6470 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
6471 (debug_vprintf): Use std::chrono::steady_clock instead of
6472 gettimeofday. Use '.' instead of ':'.
6473 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
6474 (get_timestamp): Use std::chrono::steady_clock instead of
6475 gettimeofday.
6476
8629c02c
SM
64772016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
6478
6479 * Makefile.in: Fix whitespace formatting.
6480
b593ecca
SM
64812016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
6482
6483 * Makefile.in (SFILES, OBS): Flatten list and order
6484 alphabetically.
6485
9986ba08
PA
64862016-11-23 Pedro Alves <palves@redhat.com>
6487
6488 * event-loop.c (handle_file_event): Use warning.
6489 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
6490 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6491 Use warning.
6492
4eefa7bc
PA
64932016-11-23 Pedro Alves <palves@redhat.com>
6494
6495 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
6496 output.
6497 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
6498 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
6499 debug_printf and debug_flush for debug output.
6500 * server.c (handle_general_set): Likewise.
6501 * thread-db.c (try_thread_db_load): Use debug_printf for debug
6502 output.
6503
5443506e
SM
65042016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6505
6506 * Makefile.in (.c.o): Replace rule with ...
6507 (%.o: %.c): ... this one.
6508
3b165252
SM
65092016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6510
6511 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
6512 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
6513 make.
6514 * configure.ac: Remove checks for the make program.
6515 * configure: Re-generate.
6516
0bcda685
PA
65172016-10-28 Pedro Alves <palves@redhat.com>
6518
6519 * Makefile.in (CXX_DIALECT): Get from configure.
6520 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
6521 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
6522 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
6523 * config.in: Regenerate.
6524 * configure: Regenerate.
6525
c3805894
YQ
65262016-10-27 Yao Qi <yao.qi@linaro.org>
6527
6528 * linux-low.c (linux_supports_range_stepping): Return true if
6529 can_software_single_step return true.
6530
89342618
YQ
65312016-10-27 Yao Qi <yao.qi@linaro.org>
6532
6533 * inferiors.c (find_inferior_in_random): New function.
6534 * inferiors.h (find_inferior_in_random): Declare.
6535 * linux-low.c (linux_wait_for_event_filtered): Call
6536 find_inferior_in_random instead of find_inferior.
6537
e3652c84
YQ
65382016-10-27 Yao Qi <yao.qi@linaro.org>
6539
6540 * linux-low.c (linux_wait_1): If single-step breakpoints are
6541 inserted, remove them.
6542
5a04c4cf
PA
65432016-10-26 Pedro Alves <palves@redhat.com>
6544
6545 * linux-low.c (handle_extended_wait): Link parent/child fork
6546 threads.
6547 (linux_wait_1): Unlink them.
6548 (linux_set_resume_request): Ignore resume requests for
6549 already-resumed and unhandled fork child threads.
6550 * linux-low.h (struct lwp_info) <fork_relative>: New field.
6551 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
6552 New functions.
6553 (handle_v_requests) <vCont>: Don't call require_running.
6554 * server.h (in_queued_stop_replies): New declaration.
6555
cb93dc7f
YQ
65562016-10-24 Yao Qi <yao.qi@linaro.org>
6557
6558 PR server/20733
6559 * linux-aarch64-low.c (append_insns): Cast the return value to
6560 'uint32_t *'.
6561
a1078bea
YQ
65622016-10-10 Yao Qi <yao.qi@linaro.org>
6563
6564 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
6565
1fb77080
SDJ
65662016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
6567
6568 * target.c (target_supports_multi_process): New function, moved
6569 from...
6570 * target.h (target_supports_multi_process): ... here. Remove
6571 macro.
6572
39b5a3b9
TT
65732016-10-05 Tom Tromey <tom@tromey.com>
6574
6575 PR remote/20655:
6576 * tracepoint.c (handle_tracepoint_bkpts): Check
6577 ipa_error_tracepoint, not ipa_stopping_tracepoint.
6578
c1d0b70a
YQ
65792016-10-05 Yao Qi <yao.qi@linaro.org>
6580
6581 * configure.srv: Update the path of arm-*.xml files.
6582
0a69eedb
YQ
65832016-10-05 Terry Guo <terry.guo@arm.com>
6584 Yao Qi <yao.qi@linaro.org>
6585
6586 * Makefile.in: Adjust the path of rules.
6587 * configure.srv: Update the path of xml files.
6588 * regformats/arm-with-iwmmxt.dat: Regenerated.
6589 * regformats/arm-with-neon.dat: Likewise.
6590 * regformats/arm-with-vfpv2.dat: Likewise.
6591 * regformats/arm-with-vfpv3.dat Likewise.
6592
17e16485
YQ
65932016-09-30 Yao Qi <yao.qi@linaro.org>
6594
6595 PR gdbserver/20627
6596 * target.c (target_stop_and_wait): Don't call
6597 target_continue_no_signal, use resume_stop instead.
6598
edeeb602
YQ
65992016-09-26 Yao Qi <yao.qi@linaro.org>
6600
6601 * linux-low.c (linux_wait_1): Call debug_exit.
6602
503b1c39
PA
66032016-09-23 Pedro Alves <palves@redhat.com>
6604
6605 * Makefile.in (SFILES): Add common/new-op.c.
6606 (OBS): Add common/new-op.o.
6607 (new-op.o): New rule.
6608
74172ecf
SM
66092016-09-21 Simon Marchi <simon.marchi@ericsson.com>
6610
6611 * .gitinore: Ignore more files.
6612
fc6cda2e
YQ
66132016-09-21 Yao Qi <yao.qi@linaro.org>
6614
6615 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
6616 23.
6617
bc1e6c81
SDJ
66182016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
6619
6620 * server.c (start_inferior): Call target_mourn_inferior instead of
6621 mourn_inferior; pass ptid_t argument to it.
6622 (resume): Likewise.
6623 (handle_target_event): Likewise.
6624 * target.c (target_mourn_inferior): New function.
6625 * target.h (mourn_inferior): Delete macro.
6626
0e00e962
AA
66272016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
6628
6629 * linux-low.c (lwp_is_stepping): New function.
6630
1d8cb77d
CL
66312016-09-06 Carl Love <cel@us.ibm.com>
6632
6633 * server.c (start_inferior): Fixed comment, requested comment change
6634 didn't get updated correctly. Removed reference to ptrace () call as
6635 it is only true on Linux systems.
6636
7313bced
CL
66372016-09-06 Carl Love <cel@us.ibm.com>
6638
6639 * server.c (start_inferior): Do not call
6640 function target_post_create_inferior () if the
6641 inferior process has already exited.
6642
cf6de44d
PA
66432016-09-05 Pedro Alves <palves@redhat.com>
6644
6645 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
6646 (COMPILE.pre, CC_LD): Use CXX directly.
6647 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
6648 * acinclude.m4: Don't include build-with-cxx.m4.
6649 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
6650 * configure: Regenerate.
6651
c1da6748
AT
66522016-09-02 Akash Trehan <akash.trehan123@gmail.com>
6653
6654 PR gdb/19495
6655 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
6656 call writing data to own_buf.
6657
f2b9e3df
SDJ
66582016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
6659
6660 * target.c (mywait): Call target_wait instead of
6661 the_target->wait.
6662 (target_wait): New function.
6663
049a8570
SDJ
66642016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
6665
6666 * server.c (start_inferior): New variable 'ptid'. Replace calls
6667 to the_target->resume by target_continue{,_no_signal}, depending
6668 on the case.
6669 * target.c (target_stop_and_wait): Call target_continue_no_signal
6670 instead of the_target->resume.
6671 (target_continue): New function.
6672
3aa5cfa0
AT
66732016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
6674
6675 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
6676
754653a7
AZ
66772016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6678
6679 PR server/20491
6680 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
6681 ps_prochandle.
6682 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
6683 * linux-arm-low.c (ps_get_thread_area): Likewise.
6684 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
6685 * linux-m68k-low.c (ps_get_thread_area): Likewise.
6686 * linux-mips-low.c (ps_get_thread_area): Likewise.
6687 * linux-nios2-low.c (ps_get_thread_area): Likewise.
6688 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
6689 * linux-x86-low.c (ps_get_thread_area): Likewise.
6690 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
6691
ed036b40
PA
66922016-08-19 Pedro Alves <palves@redhat.com>
6693
6694 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
6695
c8ef42ee
PA
66962016-08-19 Pedro Alves <palves@redhat.com>
6697
6698 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
6699 comment. Use memcpy instead of casting through unsigned long.
6700
9c235a72
PA
67012016-08-19 Pedro Alves <palves@redhat.com>
6702
6703 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
6704 allocating around 0x80000000.
6705
201506da
PA
67062016-08-19 Pedro Alves <palves@redhat.com>
6707
6708 PR gdb/20415
6709 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
6710 (x32-avx512-linux-ipa.o): New rules.
6711 * configure.ac (x86_64-*-linux*): New x32 check.
6712 * configure.srv (ipa_x32_linux_regobj): New.
6713 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
6714 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
6715 descriptions.
6716 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
6717 descriptions.
6718 * configure: Regenerate.
6719
f348d89a
PA
67202016-08-09 Pedro Alves <palves@redhat.com>
6721
6722 PR gdb/18653
6723 * Makefile.in (OBS): Add signals-state-save-restore.o.
6724 (signals-state-save-restore.o): New rule.
6725 * config.in: Regenerate.
6726 * configure: Regenerate.
6727 * linux-low.c: Include "signals-state-save-restore.h".
6728 (linux_create_inferior): Call
6729 restore_original_signals_state.
6730 * server.c: Include "dispositions-save-restore.h".
6731 (captured_main): Call save_original_signals_state.
6732
1baf5149
PA
67332016-08-05 Pedro Alves <palves@redhat.com>
6734
6735 * configure: Regenerate.
6736
fcd4a73d
YQ
67372016-08-04 Yao Qi <yao.qi@linaro.org>
6738
6739 * linux-low.c (regsets_fetch_inferior_registers): Check
6740 errno is ESRCH or not.
6741
979659d0
YQ
67422016-08-02 Yao Qi <yao.qi@linaro.org>
6743
6744 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
6745 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
6746 (thread_db_load_search): Update.
6747 (try_thread_db_load_1): Don't look for td_ta_event_addr,
6748 td_ta_set_event and td_ta_event_getmsg.
6749
6598661d
PA
67502016-07-26 Pedro Alves <palves@redhat.com>
6751
6752 PR server/20414
6753 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
6754 of unsigned long for 64-bit registers and use uint32_t instead of
6755 unsigned int for 32-bit registers.
6756
9cf12d57
PA
67572016-07-26 Pedro Alves <palves@redhat.com>
6758
6759 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
6760 to 'ptrace'.
6761
305450ed
TT
67622016-07-21 Tom Tromey <tom@tromey.com>
6763
6764 * configure: Rebuild.
6765
2583da7c
YQ
67662016-07-21 Yao Qi <yao.qi@linaro.org>
6767
6768 * mem-break.c (find_gdb_breakpoint): Cast bp to
6769 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
6770
21536b36
YQ
67712016-07-21 Yao Qi <yao.qi@linaro.org>
6772
6773 * server.c (handle_v_requests): Support s and S actions
6774 if target_supports_software_single_step return true.
6775
8901d193
YQ
67762016-07-21 Yao Qi <yao.qi@linaro.org>
6777
6778 * linux-low.c (resume_stopped_resumed_lwps): If resume request
6779 is resume_step, call maybe_hw_step.
6780 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
6781 and unstop them.
6782 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
6783 breakpoints or not.
6784 (proceed_one_lwp): If resume request is resume_step, install
6785 reinsert breakpoints and call maybe_hw_step.
6786
0e9a339e
YQ
67872016-07-21 Yao Qi <yao.qi@linaro.org>
6788
6789 * linux-low.c (proceed_one_lwp): Declare.
6790 (linux_resume_one_thread): Remove local variable 'step'.
6791 Lift code enqueue signal. Call proceed_one_lwp instead of
6792 linux_resume_one_lwp.
6793
4281b351
YQ
67942016-07-21 Yao Qi <yao.qi@linaro.org>
6795
6796 * linux-low.c (linux_resume_one_thread): Call
6797 enqueue_pending_signal.
6798
984a2c04
YQ
67992016-07-21 Yao Qi <yao.qi@linaro.org>
6800
6801 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
6802 * inferiors.c (do_restore_current_thread_cleanup): New function.
6803 (make_cleanup_restore_current_thread): Likewise.
6804 * linux-low.c (install_software_single_step_breakpoints): Call
6805 make_cleanup_restore_current_thread. Switch current_thread to
6806 thread.
6807
bec903c9
YQ
68082016-07-21 Yao Qi <yao.qi@linaro.org>
6809
6810 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
6811 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
6812 (clone_one_breakpoint): Likewise.
6813 (delete_reinsert_breakpoints): Change parameter to thread.
6814 Callers updated.
6815 (has_reinsert_breakpoints): Likewise.
6816 (uninsert_reinsert_breakpoints): Likewise.
6817 (reinsert_reinsert_breakpoints): Likewise.
6818 * mem-break.h (set_reinsert_breakpoint): Update declaration.
6819 (delete_reinsert_breakpoints): Likewise.
6820 (reinsert_reinsert_breakpoints): Likewise.
6821 (uninsert_reinsert_breakpoints): Likewise.
6822 (has_reinsert_breakpoints): Likewise.
6823
63c40ec7
YQ
68242016-07-21 Yao Qi <yao.qi@linaro.org>
6825
6826 * inferiors.c (get_thread_process): Make parameter const.
6827 * inferiors.h (get_thread_process): Update declaration.
6828 * mem-break.c (clone_all_breakpoints): Remove all parameters.
6829 Add new parameters child_thread and parent_thread. Callers
6830 updated.
6831 * mem-break.h (clone_all_breakpoints): Update declaration.
6832
9aa76cd0
YQ
68332016-07-21 Yao Qi <yao.qi@linaro.org>
6834
6835 * mem-break.c (struct breakpoint) <cond_list>: Remove.
6836 <command_list, handler>: Remove.
6837 (struct gdb_breakpoint): New.
6838 (struct other_breakpoint): New.
6839 (struct reinsert_breakpoint): New.
6840 (is_gdb_breakpoint): New function.
6841 (any_persistent_commands): Update command_list if
6842 is_gdb_breakpoint returns true.
6843 (set_breakpoint): Create breakpoints according to their types.
6844 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
6845 (set_gdb_breakpoint_1): Likewise.
6846 (set_gdb_breakpoint): Likewise.
6847 (clear_breakpoint_conditions): Change parameter type to
6848 'struct gdb_breakpoint *'.
6849 (clear_breakpoint_commands): Likewise.
6850 (clear_breakpoint_conditions_and_commands): Likewise.
6851 (add_condition_to_breakpoint): Likewise.
6852 (add_breakpoint_condition): Likewise.
6853 (add_commands_to_breakpoint): Likewise.
6854 (check_breakpoints): Check other_breakpoint.
6855 (clone_one_breakpoint): Clone breakpopint according to its type.
6856 * mem-break.h (struct gdb_breakpoint): Declare.
6857 (set_gdb_breakpoint): Update declaration.
6858 (clear_breakpoint_conditions_and_commands): Likewise.
6859 (add_breakpoint_condition): Likewise.
6860 (add_breakpoint_commands): Likewise.
6861 * server.c (process_point_options): Change parameter type to
6862 'struct gdb_breakpoint *'.
6863
811f8301
YQ
68642016-07-21 Yao Qi <yao.qi@linaro.org>
6865
6866 * mem-break.c (set_breakpoint_at): Rename it to ...
6867 (set_breakpoint_type_at): ... it.
6868 (set_breakpoint_at): Call set_breakpoint_type_at.
6869 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
6870 * mem-break.h (set_breakpoint_at): Update comments.
6871
b1c51e36
CLT
68722016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
6873
6874 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
6875 to buf parameter.
6876 (nios2_store_gregset): Likewise.
6877
ced2dffb
PA
68782016-07-01 Pedro Alves <palves@redhat.com>
6879 Antoine Tremblay <antoine.tremblay@ericsson.com>
6880
6881 * linux-low.c: Change interface to take the target lwp_info
6882 pointer directly and return void. Handle detaching from a zombie
6883 thread.
6884 (linux_detach_lwp_callback): New function.
6885 (linux_detach): Detach from the leader thread after detaching from
6886 the clone threads.
6887
2ac09a5b
YQ
68882016-06-28 Yao Qi <yao.qi@linaro.org>
6889
6890 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
6891 for variable new_offset.
6892 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
6893 (aarch64_ftrace_insn_reloc_cb): Likewise.
6894 (aarch64_ftrace_insn_reloc_tb): Likewise.
6895 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
6896 PRIx64 instead of PRIx32.
6897
79e7fd4f
YQ
68982016-06-28 Yao Qi <yao.qi@linaro.org>
6899
6900 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
6901 (the_low_target): Install arm_get_syscall_trapinfo.
6902
061fc021
YQ
69032016-06-28 Yao Qi <yao.qi@linaro.org>
6904
6905 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
6906 function.
6907 (the_low_target): Install aarch64_get_syscall_trapinfo.
6908
4cc32bec
YQ
69092016-06-28 Yao Qi <yao.qi@linaro.org>
6910
6911 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
6912 Callers updated.
6913 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
6914 Remove parameter sysno.
6915 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
6916 sysret.
6917
782c1122
AA
69182016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6919
6920 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
6921 (s390_emit_ne_goto): Likewise.
6922 (s390_emit_lt_goto): Likewise.
6923 (s390_emit_le_goto): Likewise.
6924 (s390_emit_gt_goto): Likewise.
6925 (s390_emit_ge_goto): Likewise.
6926 (s390x_emit_eq_goto): Likewise.
6927 (s390x_emit_ne_goto): Likewise.
6928 (s390x_emit_lt_goto): Likewise.
6929 (s390x_emit_le_goto): Likewise.
6930 (s390x_emit_gt_goto): Likewise.
6931 (s390x_emit_ge_goto): Likewise.
6932 (s390_emit_ops_impl): Mark variable static.
6933 (s390x_emit_ops): Likewise.
6934
2e7b624b
YQ
69352016-06-17 Yao Qi <yao.qi@linaro.org>
6936
6937 * linux-low.c (handle_extended_wait): Call
6938 uninsert_reinsert_breakpoints for the parent process. Remove
6939 reinsert breakpoints from the child process. Reinsert them to
6940 the parent process when vfork is done.
6941 * mem-break.c (uninsert_reinsert_breakpoints): New function.
6942 (reinsert_reinsert_breakpoints): New function.
6943 * mem-break.h (uninsert_reinsert_breakpoints): Declare
6944 (reinsert_reinsert_breakpoints): Declare.
6945
8a81c5d7
YQ
69462016-06-17 Yao Qi <yao.qi@linaro.org>
6947
6948 * linux-low.c (handle_extended_wait): If the parent is doing
6949 step-over, remove the reinsert breakpoints from the forked child.
6950
f50bf8e5
YQ
69512016-06-17 Yao Qi <yao.qi@linaro.org>
6952
6953 * linux-low.c (unsuspend_all_lwps): Declare.
6954 (linux_low_filter_event): If thread exited, call finish_step_over.
6955 If step-over is finished, unsuspend other threads.
6956
8376a3cb
YQ
69572016-06-17 Yao Qi <yao.qi@linaro.org>
6958
6959 * linux-low.c (linux_resume_one_lwp_throw): Assert
6960 has_reinsert_breakpoints returns false.
6961 * mem-break.c (delete_disabled_breakpoints): Assert
6962 bp type isn't reinsert_breakpoint.
6963
f79b145d
YQ
69642016-06-17 Yao Qi <yao.qi@linaro.org>
6965
6966 * linux-low.c (maybe_hw_step): New function.
6967 (linux_resume_one_lwp_throw): Call maybe_hw_step.
6968 (finish_step_over): Switch current_thread to lwp temporarily,
6969 and assert has_reinsert_breakpoints returns true.
6970 (proceed_one_lwp): Call maybe_hw_step.
6971 * mem-break.c (has_reinsert_breakpoints): New function.
6972 * mem-break.h (has_reinsert_breakpoints): Declare.
6973
0ae534d2
JT
69742016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
6975
6976 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
6977
fcdad592
YQ
69782016-05-17 Yao Qi <yao.qi@linaro.org>
6979
6980 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
6981 instead of find_inferior.
6982
9e784964
YQ
69832016-05-05 Yao Qi <yao.qi@linaro.org>
6984
6985 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
6986 Initialize res to zero.
6987
cf2ebb6e
YQ
69882016-05-05 Yao Qi <yao.qi@linaro.org>
6989
6990 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
6991 to uint32_t.
6992
c1aebf87
UW
69932016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6994
6995 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
6996 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
6997 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
6998
35fd2deb 69992016-04-28 Par Olsson <par.olsson@windriver.com>
cbe14bcf 7000 Simon Marchi <simon.marchi@ericsson.com>
35fd2deb
PO
7001
7002 * tracepoint.c (write_inferior_int8): New function.
7003 (cmd_qtenable_disable): Write enable flag using
7004 write_inferior_int8.
7005
484b3c32
YQ
70062016-04-25 Yao Qi <yao.qi@linaro.org>
7007
7008 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
7009 (need_step_over_p): Return zero if the LWP has pending signals
7010 can be delivered on software single step target.
7011
85ba7d86
YQ
70122016-04-25 Yao Qi <yao.qi@linaro.org>
7013
7014 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
7015 return instead of error.
7016
3539aa13
YQ
70172016-04-22 Yao Qi <yao.qi@linaro.org>
7018
7019 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
7020 to 23.
7021
5b061e98
YQ
70222016-04-22 Yao Qi <yao.qi@linaro.org>
7023
7024 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
7025 signal when stepping over breakpoint with software single
7026 step.
7027
3451269c
PA
70282016-04-21 Pedro Alves <palves@redhat.com>
7029
7030 * linux-s390-low.c (s390_collect_ptrace_register)
7031 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
7032 add casts.
7033 (s390_check_regset): Use void * instead of gdb_byte *.
7034
a2358508
PA
70352016-04-20 Pedro Alves <palves@redhat.com>
7036
7037 * configure: Renegerate.
7038
6885166d
YQ
70392016-04-20 Yao Qi <yao.qi@linaro.org>
7040
7041 * linux-aarch32-low.c: Include "arch/arm-linux.h".
7042 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
7043 number 16.
7044 (arm_store_gregset): Likewise.
7045
2b863f51
WT
70462016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
7047
7048 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
7049 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
7050 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
7051 (amd64-avx-mpx-linux.c): New rules.
7052 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
7053 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
7054 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
7055 (srv_amd64_regobj): Add amd64-avx-mpx.o.
7056 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
7057 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
7058 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
7059 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
7060 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
7061 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
7062 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
7063 * linux-x86-low.c (x86_linux_read_description): Add case for
7064 X86_XSTATE_AVX_MPX_MASK.
7065 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
7066 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
7067 init_registers_i386_avx_mpx_linux.
7068 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
7069 (initialize_low_tracepoint): Call
7070 init_registers_i386_avx_mpx_linux.
7071 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
7072 (initialize_low_tracepoint): Call
7073 init_registers_amd64_avx_mpx_linux.
7074 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
7075 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
7076 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
7077 declarations.
7078
9b30624b
PA
70792016-04-18 Pedro Alves <palves@redhat.com>
7080
7081 * configure: Regenerate.
7082
45e3745e
AT
70832016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
7084
7085 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
7086 (aarch64_emit_sub): Likewise.
7087
2afc13ff
PA
70882016-04-12 Pedro Alves <palves@redhat.com>
7089
7090 * utils.c (prepare_to_throw_exception): Delete.
7091
6e774b13
SM
70922016-04-05 Simon Marchi <simon.marchi@ericsson.com>
7093
7094 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
7095
4dca19f8
MK
70962016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
7097
7098 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
7099
d0a9981f
MK
71002016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
7101
7102 * linux-aarch64-ipa.c: Add <elf.h> include.
7103 * linux-ppc-ipa.c: Add <elf.h> include.
7104 * linux-s390-ipa.c: Add <elf.h> include.
7105
252db07e
MK
71062016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
7107
7108 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
7109 (get_raw_reg_ptr): Likewise.
7110 (get_trace_state_variable_value_ptr): Likewise.
7111 (set_trace_state_variable_value_ptr): Likewise.
7112 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
7113 char *.
7114
14e2b6d9
MK
71152016-03-31 Wei-cheng Wang <cole945@gmail.com>
7116 Marcin Kościelnicki <koriakin@0x04.net>
7117
7118 PR/17221
7119 * linux-ppc-low.c (emit_insns): New function.
7120 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
7121 (ppc_emit_prologue): New function.
7122 (ppc_emit_epilogue): New function.
7123 (ppc_emit_add): New function.
7124 (ppc_emit_sub): New function.
7125 (ppc_emit_mul): New function.
7126 (ppc_emit_lsh): New function.
7127 (ppc_emit_rsh_signed): New function.
7128 (ppc_emit_rsh_unsigned): New function.
7129 (ppc_emit_ext): New function.
7130 (ppc_emit_zero_ext): New function.
7131 (ppc_emit_log_not): New function.
7132 (ppc_emit_bit_and): New function.
7133 (ppc_emit_bit_or): New function.
7134 (ppc_emit_bit_xor): New function.
7135 (ppc_emit_bit_not): New function.
7136 (ppc_emit_equal): New function.
7137 (ppc_emit_less_signed): New function.
7138 (ppc_emit_less_unsigned): New function.
7139 (ppc_emit_ref): New function.
7140 (ppc_emit_const): New function.
7141 (ppc_emit_reg): New function.
7142 (ppc_emit_pop): New function.
7143 (ppc_emit_stack_flush): New function.
7144 (ppc_emit_swap): New function.
7145 (ppc_emit_stack_adjust): New function.
7146 (ppc_emit_call): New function.
7147 (ppc_emit_int_call_1): New function.
7148 (ppc_emit_void_call_2): New function.
7149 (ppc_emit_if_goto): New function.
7150 (ppc_emit_goto): New function.
7151 (ppc_emit_eq_goto): New function.
7152 (ppc_emit_ne_goto): New function.
7153 (ppc_emit_lt_goto): New function.
7154 (ppc_emit_le_goto): New function.
7155 (ppc_emit_gt_goto): New function.
7156 (ppc_emit_ge_goto): New function.
7157 (ppc_write_goto_address): New function.
7158 (ppc_emit_ops_impl): New static variable.
7159 (ppc64v1_emit_prologue): New function.
7160 (ppc64v2_emit_prologue): New function.
7161 (ppc64_emit_epilogue): New function.
7162 (ppc64_emit_add): New function.
7163 (ppc64_emit_sub): New function.
7164 (ppc64_emit_mul): New function.
7165 (ppc64_emit_lsh): New function.
7166 (ppc64_emit_rsh_signed): New function.
7167 (ppc64_emit_rsh_unsigned): New function.
7168 (ppc64_emit_ext): New function.
7169 (ppc64_emit_zero_ext): New function.
7170 (ppc64_emit_log_not): New function.
7171 (ppc64_emit_bit_and): New function.
7172 (ppc64_emit_bit_or): New function.
7173 (ppc64_emit_bit_xor): New function.
7174 (ppc64_emit_bit_not): New function.
7175 (ppc64_emit_equal): New function.
7176 (ppc64_emit_less_signed): New function.
7177 (ppc64_emit_less_unsigned): New function.
7178 (ppc64_emit_ref): New function.
7179 (ppc64_emit_const): New function.
7180 (ppc64v1_emit_reg): New function.
7181 (ppc64v2_emit_reg): New function.
7182 (ppc64_emit_pop): New function.
7183 (ppc64_emit_stack_flush): New function.
7184 (ppc64_emit_swap): New function.
7185 (ppc64v1_emit_call): New function.
7186 (ppc64v2_emit_call): New function.
7187 (ppc64v1_emit_int_call_1): New function.
7188 (ppc64v2_emit_int_call_1): New function.
7189 (ppc64v1_emit_void_call_2): New function.
7190 (ppc64v2_emit_void_call_2): New function.
7191 (ppc64_emit_if_goto): New function.
7192 (ppc64_emit_eq_goto): New function.
7193 (ppc64_emit_ne_goto): New function.
7194 (ppc64_emit_lt_goto): New function.
7195 (ppc64_emit_le_goto): New function.
7196 (ppc64_emit_gt_goto): New function.
7197 (ppc64_emit_ge_goto): New function.
7198 (ppc64v1_emit_ops_impl): New static variable.
7199 (ppc64v2_emit_ops_impl): New static variable.
7200 (ppc_emit_ops): New function.
7201 (linux_low_target): Wire in ppc_emit_ops.
7202
a2174ba4
MK
72032016-03-31 Wei-cheng Wang <cole945@gmail.com>
7204 Marcin Kościelnicki <koriakin@0x04.net>
7205
7206 PR/17221
7207 * Makefile.in: Add powerpc-*-ipa.o
7208 * configure.srv: Add ipa_obj for powerpc*-linux.
7209 * linux-ppc-ipa.c: New file.
7210 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
7211 includes.
7212 (PPC_FIELD): New macro.
7213 (PPC_SEXT): New macro.
7214 (PPC_OP6): New macro.
7215 (PPC_BO): New macro.
7216 (PPC_LI): New macro.
7217 (PPC_BD): New macro.
7218 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
7219 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
7220 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
7221 (ppc_get_thread_area): New function.
7222 (is_elfv2_inferior): New function.
7223 (gen_ds_form): New function.
7224 (GEN_STD): New macro.
7225 (GEN_STDU): New macro.
7226 (GEN_LD): New macro.
7227 (GEN_LDU): New macro.
7228 (gen_d_form): New function.
7229 (GEN_ADDI): New macro.
7230 (GEN_ADDIS): New macro.
7231 (GEN_LI): New macro.
7232 (GEN_LIS): New macro.
7233 (GEN_ORI): New macro.
7234 (GEN_ORIS): New macro.
7235 (GEN_LWZ): New macro.
7236 (GEN_STW): New macro.
7237 (GEN_STWU): New macro.
7238 (gen_xfx_form): New function.
7239 (GEN_MFSPR): New macro.
7240 (GEN_MTSPR): New macro.
7241 (GEN_MFCR): New macro.
7242 (GEN_MTCR): New macro.
7243 (GEN_SYNC): New macro.
7244 (GEN_LWSYNC): New macro.
7245 (gen_x_form): New function.
7246 (GEN_OR): New macro.
7247 (GEN_MR): New macro.
7248 (GEN_LWARX): New macro.
7249 (GEN_STWCX): New macro.
7250 (GEN_CMPW): New macro.
7251 (gen_md_form): New function.
7252 (GEN_RLDICL): New macro.
7253 (GEN_RLDICR): New macro.
7254 (gen_i_form): New function.
7255 (GEN_B): New macro.
7256 (GEN_BL): New macro.
7257 (gen_b_form): New function.
7258 (GEN_BNE): New macro.
7259 (GEN_LOAD): New macro.
7260 (GEN_STORE): New macro.
7261 (gen_limm): New function.
7262 (gen_atomic_xchg): New function.
7263 (gen_call): New function.
7264 (ppc_relocate_instruction): New function.
7265 (ppc_install_fast_tracepoint_jump_pad): New function.
7266 (ppc_get_min_fast_tracepoint_insn_len): New function.
7267 (ppc_get_ipa_tdesc_idx): New function.
7268 (the_low_target): Wire in the new functions.
7269 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
7270 tdescs.
7271 * linux-ppc-tdesc.h: New file.
7272
a13c4696
MK
72732016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
7274
7275 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
7276 (alloc_jump_pad_buffer): New function.
7277 * linux-amd64-ipa.c: Add <sys/mman.h> include.
7278 (alloc_jump_pad_buffer): New function.
7279 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
7280 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
7281 (alloc_jump_pad_buffer): New function.
7282 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
7283 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
7284 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
7285 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
7286
1cda1512
MK
72872016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
7288
7289 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
7290 * linux-amd64-ipa.c: Likewise.
7291 * linux-i386-ipa.c: Likewise.
7292 * linux-s390-ipa.c: Likewise.
7293 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
7294 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
7295 set_trace_state_variable_value_ptr.
7296 (struct ipa_sym_addresses): Likewise.
7297 (symbol_list): Likewise.
7298 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
7299 accessing gdb_collect directly.
7300 (gdb_collect_ptr_type): New typedef.
7301 (get_raw_reg_ptr_type): New typedef.
7302 (get_trace_state_variable_value_ptr_type): New typedef.
7303 (set_trace_state_variable_value_ptr_type): New typedef.
7304 (gdb_collect_ptr): New global.
7305 (get_raw_reg_ptr): New global.
7306 (get_trace_state_variable_value_ptr): New global.
7307 (set_trace_state_variable_value_ptr): New global.
7308 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
7309 accessing get_raw_reg directly.
7310 (get_get_tsv_func_addr): Likewise for
7311 get_trace_state_variable_value_ptr.
7312 (get_set_tsv_func_addr): Likewise for
7313 set_trace_state_variable_value_ptr.
7314 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
7315
72fb5488
SM
73162016-03-30 Simon Marchi <simon.marchi@ericsson.com>
7317
7318 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
7319
28170b88
MK
73202016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
7321
7322 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
7323 packets.
7324 (relocate_instruction): Remove own_buf.
7325 * server.c (own_buf): Make global.
7326 (handle_v_requests): Make global.
7327 * server.h (own_buf): New declaration.
7328 (handle_v_requests): New prototype.
7329
f39e8743
MK
73302016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
7331
7332 PR 18377
7333 * linux-s390-low.c (add_insns): New function.
7334 (s390_emit_prologue): New function.
7335 (s390_emit_epilogue): New function.
7336 (s390_emit_add): New function.
7337 (s390_emit_sub): New function.
7338 (s390_emit_mul): New function.
7339 (s390_emit_lsh): New function.
7340 (s390_emit_rsh_signed): New function.
7341 (s390_emit_rsh_unsigned): New function.
7342 (s390_emit_ext): New function.
7343 (s390_emit_log_not): New function.
7344 (s390_emit_bit_and): New function.
7345 (s390_emit_bit_or): New function.
7346 (s390_emit_bit_xor): New function.
7347 (s390_emit_bit_not): New function.
7348 (s390_emit_equal): New function.
7349 (s390_emit_less_signed): New function.
7350 (s390_emit_less_unsigned): New function.
7351 (s390_emit_ref): New function.
7352 (s390_emit_if_goto): New function.
7353 (s390_emit_goto): New function.
7354 (s390_write_goto_address): New function.
7355 (s390_emit_litpool): New function.
7356 (s390_emit_const): New function.
7357 (s390_emit_call): New function.
7358 (s390_emit_reg): New function.
7359 (s390_emit_pop): New function.
7360 (s390_emit_stack_flush): New function.
7361 (s390_emit_zero_ext): New function.
7362 (s390_emit_swap): New function.
7363 (s390_emit_stack_adjust): New function.
7364 (s390_emit_set_r2): New function.
7365 (s390_emit_int_call_1): New function.
7366 (s390_emit_void_call_2): New function.
7367 (s390_emit_eq_goto): New function.
7368 (s390_emit_ne_goto): New function.
7369 (s390_emit_lt_goto): New function.
7370 (s390_emit_le_goto): New function.
7371 (s390_emit_gt_goto): New function.
7372 (s390_emit_ge_goto): New function.
7373 (s390x_emit_prologue): New function.
7374 (s390x_emit_epilogue): New function.
7375 (s390x_emit_add): New function.
7376 (s390x_emit_sub): New function.
7377 (s390x_emit_mul): New function.
7378 (s390x_emit_lsh): New function.
7379 (s390x_emit_rsh_signed): New function.
7380 (s390x_emit_rsh_unsigned): New function.
7381 (s390x_emit_ext): New function.
7382 (s390x_emit_log_not): New function.
7383 (s390x_emit_bit_and): New function.
7384 (s390x_emit_bit_or): New function.
7385 (s390x_emit_bit_xor): New function.
7386 (s390x_emit_bit_not): New function.
7387 (s390x_emit_equal): New function.
7388 (s390x_emit_less_signed): New function.
7389 (s390x_emit_less_unsigned): New function.
7390 (s390x_emit_ref): New function.
7391 (s390x_emit_if_goto): New function.
7392 (s390x_emit_const): New function.
7393 (s390x_emit_call): New function.
7394 (s390x_emit_reg): New function.
7395 (s390x_emit_pop): New function.
7396 (s390x_emit_stack_flush): New function.
7397 (s390x_emit_zero_ext): New function.
7398 (s390x_emit_swap): New function.
7399 (s390x_emit_stack_adjust): New function.
7400 (s390x_emit_int_call_1): New function.
7401 (s390x_emit_void_call_2): New function.
7402 (s390x_emit_eq_goto): New function.
7403 (s390x_emit_ne_goto): New function.
7404 (s390x_emit_lt_goto): New function.
7405 (s390x_emit_le_goto): New function.
7406 (s390x_emit_gt_goto): New function.
7407 (s390x_emit_ge_goto): New function.
7408 (s390_emit_ops): New function.
7409 (struct linux_target_ops): Fill in emit_ops hook.
7410
abd9baf9
MK
74112016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
7412
7413 PR 18377
7414 * Makefile.in: Add s390 IPA files.
7415 * configure.srv: Build IPA for s390.
7416 * linux-s390-ipa.c: New file.
7417 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
7418 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
7419 (tdesc_s390_linux32): Likewise.
7420 (init_registers_s390_linux32v1): Likewise.
7421 (tdesc_s390_linux32v1): Likewise.
7422 (init_registers_s390_linux32v2): Likewise.
7423 (tdesc_s390_linux32v2): Likewise.
7424 (init_registers_s390_linux64): Likewise.
7425 (tdesc_s390_linux64): Likewise.
7426 (init_registers_s390_linux64v1): Likewise.
7427 (tdesc_s390_linux64v1): Likewise.
7428 (init_registers_s390_linux64v2): Likewise.
7429 (tdesc_s390_linux64v2): Likewise.
7430 (init_registers_s390_te_linux64): Likewise.
7431 (tdesc_s390_te_linux64): Likewise.
7432 (init_registers_s390_vx_linux64): Likewise.
7433 (tdesc_s390_vx_linux64): Likewise.
7434 (init_registers_s390_tevx_linux64): Likewise.
7435 (tdesc_s390_tevx_linux64): Likewise.
7436 (init_registers_s390x_linux64): Likewise.
7437 (tdesc_s390x_linux64): Likewise.
7438 (init_registers_s390x_linux64v1): Likewise.
7439 (tdesc_s390x_linux64v1): Likewise.
7440 (init_registers_s390x_linux64v2): Likewise.
7441 (tdesc_s390x_linux64v2): Likewise.
7442 (init_registers_s390x_te_linux64): Likewise.
7443 (tdesc_s390x_te_linux64): Likewise.
7444 (init_registers_s390x_vx_linux64): Likewise.
7445 (tdesc_s390x_vx_linux64): Likewise.
7446 (init_registers_s390x_tevx_linux64): Likewise.
7447 (tdesc_s390x_tevx_linux64): Likewise.
7448 (have_hwcap_s390_vx): New static variable.
7449 (s390_arch_setup): Fill have_hwcap_s390_vx.
7450 (s390_get_thread_area): New function.
7451 (s390_ft_entry_gpr_esa): New const.
7452 (s390_ft_entry_gpr_zarch): New const.
7453 (s390_ft_entry_misc): New const.
7454 (s390_ft_entry_fr): New const.
7455 (s390_ft_entry_vr): New const.
7456 (s390_ft_main_31): New const.
7457 (s390_ft_main_64): New const.
7458 (s390_ft_exit_fr): New const.
7459 (s390_ft_exit_vr): New const.
7460 (s390_ft_exit_misc): New const.
7461 (s390_ft_exit_gpr_esa): New const.
7462 (s390_ft_exit_gpr_zarch): New const.
7463 (append_insns): New function.
7464 (s390_relocate_instruction): New function.
7465 (s390_install_fast_tracepoint_jump_pad): New function.
7466 (s390_get_min_fast_tracepoint_insn_len): New function.
7467 (s390_get_ipa_tdesc_idx): New function.
7468 (struct linux_target_ops): Wire in the above functions.
7469 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
7470 * linux-s390-tdesc.h: New file.
7471
a4105d04
MK
74722016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
7473
7474 * linux-s390-low.c (s390_supports_tracepoints): New function.
7475 (struct linux_target_ops): Fill supports_tracepoints hook.
7476
35ac8b3e
YQ
74772016-03-18 Yao Qi <yao.qi@linaro.org>
7478
7479 * linux-low.c (lwp_signal_can_be_delivered): New function.
7480 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
7481
94610ec4
YQ
74822016-03-18 Yao Qi <yao.qi@linaro.org>
7483
7484 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
7485 0 if signal is enqueued. Remove 'signal' from one debugging
7486 message. Move one debugging message to some lines below.
7487 Remove code setting 'signal' to 0.
7488
80aea927
YQ
74892016-03-18 Yao Qi <yao.qi@linaro.org>
7490
7491 * linux-low.c (linux_low_filter_event): Remove redundant
7492 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
7493
b04fd3be
MK
74942016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
7495
7496 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
7497 (struct linux_target_ops): Wire in the above.
7498
c40c8d4b
YQ
74992016-03-03 Yao Qi <yao.qi@linaro.org>
7500
7501 * linux-low.c: Update comments to start_step_over.
7502
0f8288ae
YQ
75032016-03-03 Yao Qi <yao.qi@linaro.org>
7504
7505 PR server/19736
7506 * linux-low.c (handle_extended_wait): Set child suspended
7507 if event_lwp->bp_reinsert isn't zero.
7508
fdbd04a8
YQ
75092016-03-02 Yao Qi <yao.qi@linaro.org>
7510
7511 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
7512 enqueue_pending_signal.
7513
6896a8fa
MK
75142016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
7515
7516 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
7517 is actually loaded.
7518
ab503087
MK
75192016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
7520
7521 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
7522 (s390_regmap_3264) [!__s390x__]: New global.
7523 (s390_collect_ptrace_register): Skip map entries containing -1.
7524 (s390_supply_ptrace_register): Ditto.
7525 (s390_fill_gprs_high): New function.
7526 (s390_store_gprs_high): New function.
7527 (s390_regsets): Add NT_S390_HIGH_GPRS.
7528 (s390_get_hwcap): Enable on 31-bit.
7529 (have_hwcap_s390_high_gprs): Enable on 31-bit.
7530 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
7531 Detect NT_S390_HIGH_GPRS.
7532 (s390_usrregs_info_3264): Enable on 31-bit.
7533 (s390_regs_info): Enable regs_info_3264 on 31-bit.
7534 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
7535
ae91f625
MK
75362016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
7537
7538 PR gdb/13808
7539 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
7540 * configure.srv: Ditto.
7541 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
7542 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
7543 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
7544 (init_registers_amd64_linux): Remove prototype.
7545 (tdesc_amd64_linux): Remove declaration.
7546 (get_ipa_tdesc): New function.
7547 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
7548 initialize remaining tdescs.
7549 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
7550 (init_registers_i386_linux): Remove prototype.
7551 (tdesc_i386_linux): Remove declaration.
7552 (get_ipa_tdesc): New function.
7553 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
7554 initialize remaining tdescs.
7555 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
7556 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
7557 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
7558 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
7559 (x86_get_ipa_tdesc_idx): New function.
7560 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
7561 * linux-x86-tdesc.h: New file.
7562 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
7563 (target_get_ipa_tdesc_idx): New macro.
7564 * tracepoint.c (ipa_tdesc_idx): New macro.
7565 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
7566 (symbol_list): Add ipa_tdesc_idx.
7567 (cmd_qtstart): Write ipa_tdesc_idx in the target.
7568 (ipa_tdesc): Remove.
7569 (ipa_tdesc_idx): New variable.
7570 (get_context_regcache): Use get_ipa_tdesc.
7571 (gdb_collect): Ditto.
7572 (gdb_probe): Ditto.
7573 * tracepoint.h (get_ipa_tdesc): New prototype.
7574 (ipa_tdesc): Remove.
7575
e7ad2f14
PA
75762016-02-24 Pedro Alves <palves@redhat.com>
7577
7578 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
7579 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
7580 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
7581 Factor out common code between the USE_SIGTRAP_SIGINFO and
7582 !USE_SIGTRAP_SIGINFO blocks.
7583 (linux_low_filter_event): Call save_stop_reason instead of
7584 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
7585 Update comments.
7586 (linux_wait_1): Update comments.
7587
657f9cde
WW
75882016-02-24 Wei-cheng Wang <cole945@gmail.com>
7589
7590 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
7591 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
7592 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
7593 ppc_insert_point, ppc_remove_point.
7594
b00b61e1
MK
75952016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
7596
7597 * linux-s390-low.c (s390_supports_z_point_type): New function.
7598 (struct linux_target_ops): Wire s390_supports_z_point_type in.
7599
553cb527
YQ
76002016-02-16 Yao Qi <yao.qi@linaro.org>
7601
7602 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
7603 PC. Get pc from regcache_read_pc.
7604
a5652c21
YQ
76052016-02-12 Yao Qi <yao.qi@linaro.org>
7606
7607 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
7608 or linux_get_pc_32bit.
7609 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
7610
ed443b61
YQ
76112016-02-12 Yao Qi <yao.qi@linaro.org>
7612
7613 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
7614 arm_linux_get_next_pcs_fixup.
7615
020ecd38
MK
76162016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
7617
7618 * tracepoint.c (x_tracepoint_action_download): Change
7619 write_inferior_data_ptr to write_inferior_data_pointer.
7620 (cmd_qtstart): Likewise.
7621 (write_inferior_data_ptr): Remove.
7622 (download_agent_expr): Change write_inferior_data_ptr to
7623 write_inferior_data_pointer.
7624 (download_tracepoint_1): Likewise.
7625 (download_tracepoint): Likewise.
7626 (download_trace_state_variables): Likewise.
7627
7cae9051
WW
76282016-02-11 Wei-cheng Wang <cole945@gmail.com>
7629 Marcin Kościelnicki <koriakin@0x04.net>
7630
7631 * tracepoint.c (struct tracepoint_action_ops): Remove.
7632 (struct tracepoint_action): Remove ops.
7633 (m_tracepoint_action_download, r_tracepoint_action_download)
7634 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
7635 size and offset accordingly.
7636 (m_tracepoint_action_ops, r_tracepoint_action_ops)
7637 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
7638 (tracepoint_action_send, tracepoint_action_download): New functions.
7639 Helpers for trace action handlers.
7640 (add_tracepoint_action): Remove setup actions ops.
7641 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
7642
9f6a71b4
YQ
76432016-02-10 Yao Qi <yao.qi@linaro.org>
7644
7645 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
7646
1e94266c
SM
76472016-02-09 Simon Marchi <simon.marchi@ericsson.com>
7648
7649 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
7650 to AC_OUTPUT.
7651 * configure: Regenerate.
7652
8adce034
SM
76532016-02-09 Simon Marchi <simon.marchi@ericsson.com>
7654
7655 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
7656 void * to gdb_byte *.
7657 * linux-low.c (siginfo_fixup): Likewise.
7658 (linux_xfer_siginfo): Likewise.
7659 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
7660 Likewise.
7661 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
7662
93813b37
WT
76632016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
7664
7665 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
7666 to srv_tgtobj.
7667 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
7668 to srv_tgtobj.
7669 * linux-x86-low.c [__x86_64__]: Include
7670 "nat/amd64-linux-siginfo.h".
7671 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
7672 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
7673 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
7674 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
7675 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
7676 (cpt_si_fd, si_timerid, si_overrun): Move from
7677 nat/amd64-linux-siginfo.c.
7678 * Makefile.in (amd64-linux-siginfo.o:): New rule.
7679
8424cc97
SM
76802016-01-28 Simon Marchi <simon.marchi@ericsson.com>
7681
7682 * server.c (skip_to_semicolon): Remove.
7683 (process_point_options): Use strchrnul instead of
7684 skip_to_semicolon.
7685
4d18591b
YQ
76862016-01-26 Yao Qi <yao.qi@linaro.org>
7687
7688 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
7689 * linux-low.c (install_software_single_step_breakpoints): Don't
7690 call regcache_read_pc.
7691 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
7692 argument pc.
7693
d8020970
YQ
76942016-01-26 Yao Qi <yao.qi@linaro.org>
7695
7696 * linux-low.c (install_software_single_step_breakpoints): Call
7697 regcache_read_pc instead of get_pc.
7698
8b207339
YQ
76992016-01-26 Yao Qi <yao.qi@linaro.org>
7700
7701 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
7702 (unblock_async_io): Rename to ...
7703 (block_unblock_async_io): ... it. New function.
7704 (enable_async_io): Don't install SIGIO handler. Unblock it
7705 instead.
7706 (disable_async_io): Don't ignore SIGIO. Block it instead.
7707 (initialize_async_io): Install SIGIO handler. Don't call
7708 unblock_async_io.
7709
18879fef
YQ
77102016-01-26 Yao Qi <yao.qi@linaro.org>
7711
7712 * remote-utils.c (getpkt): If the buffer isn't empty, and the
7713 first character is '\003', call *the_target->request_interrupt.
7714
a0f8e08a
YQ
77152016-01-25 Yao Qi <yao.qi@linaro.org>
7716
7717 * remote-utils.c (new_thread_notify): Remove.
7718 (dead_thread_notify): Likewise.
7719 * remote-utils.h (new_thread_notify): Remove declaration.
7720 (dead_thread_notify): Likewise.
7721
cc5fd9ab
MK
77222016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
7723
7724 * gdb.trace/pending.exp: Fix expected message on continue.
7725
99e8eb11
MK
77262016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
7727
7728 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
7729 it works properly on big-endian machines where sizeof (CORE_ADDR)
7730 != sizeof (void *).
7731
a994041d
PA
77322016-01-21 Pedro Alves <palves@redhat.com>
7733
7734 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
7735 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
7736 * configure: Regenerate.
7737
f7a6a40d
YQ
77382016-01-21 Yao Qi <yao.qi@linaro.org>
7739
7740 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
7741 is_thumb and set it according to CPSR saved on the stack.
7742 (get_next_pcs_syscall_next_pc): Pass is_thumb to
7743 arm_sigreturn_next_pc.
7744
6f69e520
YQ
77452016-01-18 Yao Qi <yao.qi@linaro.org>
7746
7747 * linux-low.c (linux_set_pc_64bit): New function.
7748 (linux_get_pc_64bit): New function.
7749 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
7750 Declare.
7751 * linux-sparc-low.c (debug_threads): Remove declaration.
7752 (sparc_get_pc): Remove.
7753 (the_low_target): Use linux_get_pc_64bit instead of
7754 sparc_get_pc.
7755 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
7756 (the_low_target): Use linux_get_pc_64bit and
7757 linux_set_pc_64bit.
7758
276d4552
YQ
77592016-01-18 Yao Qi <yao.qi@linaro.org>
7760
7761 * linux-arm-low.c (debug_threads): Remove declaration.
7762 (arm_get_pc, arm_set_pc): Remove.
7763 (the_low_target): Use linux_get_pc_32bit and
7764 linux_set_pc_32bit.
7765 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
7766 (the_low_target): Use linux_get_pc_32bit and
7767 linux_set_pc_32bit.
7768 * linux-cris-low.c (debug_threads): Remove declaration.
7769 (cris_get_pc, cris_set_pc,): Remove.
7770 (the_low_target): Use linux_get_pc_32bit and
7771 linux_set_pc_32bit.
7772 * linux-crisv32-low.c (debug_threads): Remove declaration.
7773 (cris_get_pc, cris_set_pc): Remove.
7774 (the_low_target): Use linux_get_pc_32bit and
7775 linux_set_pc_32bit.
7776 * linux-low.c: Include inttypes.h.
7777 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
7778 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
7779 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
7780 (the_low_target): Use linux_get_pc_32bit and
7781 linux_set_pc_32bit.
7782 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
7783 (the_low_target): Use linux_get_pc_32bit and
7784 linux_set_pc_32bit.
7785 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
7786 (the_low_target): Use linux_get_pc_32bit and
7787 linux_set_pc_32bit.
7788 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
7789 (the_low_target): Use linux_get_pc_32bit and
7790 linux_set_pc_32bit.
7791 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
7792 (the_low_target): Use linux_get_pc_32bit and
7793 linux_set_pc_32bit.
7794
eb0edac8
GB
77952016-01-18 Gary Benson <gbenson@redhat.com>
7796
7797 * configure.ac (AC_FUNC_FORK): New check.
7798 * config.in: Regenerate.
7799 * configure: Likewise.
7800
1b451dda
YQ
78012016-01-14 Yao Qi <yao.qi@linaro.org>
7802
7803 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
7804 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
7805 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
7806 arm_get_next_pcs_ctor.
7807
82075af2
JS
78082016-01-12 Josh Stone <jistone@redhat.com>
7809 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7810
7811 * inferiors.h: Include "gdb_vecs.h".
7812 (struct process_info): Add syscalls_to_catch.
7813 * inferiors.c (remove_process): Free syscalls_to_catch.
7814 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
7815 syscall_return stops.
7816 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
7817 * server.c (handle_general_set): Handle QCatchSyscalls.
7818 (handle_query): Report support for QCatchSyscalls.
7819 * target.h (struct target_ops): Add supports_catch_syscall.
7820 (target_supports_catch_syscall): New macro.
7821 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
7822 (struct lwp_info): Add syscall_state.
7823 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
7824 Maintain syscall_state and syscalls_to_catch across exec.
7825 (get_syscall_trapinfo): New function, proxy to the_low_target.
7826 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
7827 (linux_low_filter_event): Toggle syscall_state entry/return for
7828 syscall traps, and set it ignored for all others.
7829 (gdb_catching_syscalls_p): New function.
7830 (gdb_catch_this_syscall_p): New function.
7831 (linux_wait_1): Handle SYSCALL_SIGTRAP.
7832 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
7833 (linux_supports_catch_syscall): New function.
7834 (linux_target_ops): Install it.
7835 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
7836 (the_low_target): Install it.
7837
8f13a3ce
MF
78382016-01-12 Mike Frysinger <vapier@gentoo.org>
7839
7840 * acinclude.m4: Include new ../warning.m4 file.
7841 * configure: Regenerated.
7842 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
7843
5b3da067
MF
78442016-01-12 Mike Frysinger <vapier@gentoo.org>
7845
7846 * ax.c (is_goto_target): Mark static.
7847 * linux-low.c (register_addr): Likewise.
7848 (linux_fetch_registers, linux_store_registers): Likewise.
7849 * mem-break.c (any_persistent_commands): Fix old prototype.
7850 (add_commands_to_breakpoint): Mark static.
7851 * regcache.c (find_register_by_name): Delete unused func.
7852 * remote-utils.c (hex_or_minus_one): Mark static.
7853 * server.c (monitor_show_help): Mark static.
7854 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
7855 handle_v_requests): Likewise.
7856
bc504a31
PA
78572016-01-12 Pedro Alves <palves@redhat.com>
7858
7859 Remove use of the registered trademark symbol throughout.
7860
5a0dd67a
YQ
78612016-01-08 Yao Qi <yao.qi@linaro.org>
7862
7863 * remote-utils.c (getpkt): If c is '\003', call target hook
7864 request_interrupt.
7865
b2ca446f
YQ
78662016-01-06 Yao Qi <yao.qi@linaro.org>
7867
7868 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
7869 linux-aarch32-low.c.
7870 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
7871 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
7872 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
7873 (thumb2_breakpoint): Declare.
7874 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
7875 linux-aarch32-low.h.
7876 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
7877 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
7878 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
7879
edd88788
JB
78802016-01-01 Joel Brobecker <brobecker@adacore.com>
7881
7882 * gdbreplay.c (gdbreplay_version): Change copyright year in
7883 version message.
7884 * server.c (gdbserver_version): Likewise.
7885
65da7f14
PP
78862015-12-28 Patrick Palka <patrick@parcs.ath.cx>
7887
7888 * server.c (crc32_table): Delete.
7889 (crc32): Use libiberty's xcrc32 function.
7890
4abd5ed2
JB
78912015-12-22 Joel Brobecker <brobecker@adacore.com>
7892
7893 * lynx-low.c (lynx_delete_thread_callback): New function.
7894 (lynx_mourn): Properly delete our process and all of its
7895 threads. Remove call to clear_inferiors.
7896
0e50fe5c
JB
78972015-12-22 Joel Brobecker <brobecker@adacore.com>
7898
7899 * target.c (thread_search_callback): Add check that
7900 the thread_stopped target callback is not NULL before
7901 calling it.
7902
35adc03f
YQ
79032015-12-21 Yao Qi <yao.qi@linaro.org>
7904
7905 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
7906 arm breakpoint.
7907
bd2b2909
AT
79082015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
7909
7910 * server.c (handle_query): Call target_supports_software_single_step.
7911
7fe5e27e
AT
79122015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
7913
7914 * linux-low.c (single_step): New function.
7915 (linux_resume_one_lwp_throw): Call single_step.
7916 (start_step_over): Likewise.
7917
d9311bfa
AT
79182015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
7919
7920 * Makefile.in (SFILES): Append arch/arm-linux.c,
7921 arch/arm-get-next-pcs.c.
7922 (arm-linux.o): New rule.
7923 (arm-get-next-pcs.o): New rule.
7924 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
7925 arm-linux.o.
7926 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
7927 to linux-aarch32-low.c.
7928 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
7929 (arm_breakpoint_len, thumb_breakpoint): Likewise.
7930 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
7931 (thumb2_breakpoint_len): Likewise.
7932 (arm_is_thumb_mode): Make non-static.
7933 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
7934 from linux-aarch32-low.c.
7935 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
7936 (arm_breakpoint_len, thumb_breakpoint): Likewise.
7937 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
7938 (thumb2_breakpoint_len): Likewise.
7939 (arm_is_thumb_mode): New declaration.
7940 * linux-arm-low.c: Include arch/arm-linux.h
7941 aarch/arm-get-next-pcs.h, sys/syscall.h.
7942 (get_next_pcs_ops): New struct.
7943 (get_next_pcs_addr_bits_remove): New function.
7944 (get_next_pcs_is_thumb): New function.
7945 (get_next_pcs_read_memory_unsigned_integer): Likewise.
7946 (arm_sigreturn_next_pc): Likewise.
7947 (get_next_pcs_syscall_next_pc): Likewise.
7948 (arm_gdbserver_get_next_pcs): Likewise.
7949 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
7950 Initialize.
7951 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
7952 * server.h: Include gdb_vecs.h.
7953
68ce2059
AT
79542015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
7955
7956 * Makefile.in (SFILES): Append common/common-regcache.c.
7957 (OBS): Append common-regcache.o.
7958 (common-regcache.o): New rule.
7959 * regcache.c (init_register_cache): Initialize cache to
7960 REG_UNAVAILABLE.
7961 (regcache_raw_read_unsigned): New function.
7962 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
7963 register_status enum.
7964
fa5308bd
AT
79652015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
7966
7967 * linux-aarch64-low.c (the_low_targets): Rename
7968 breakpoint_reinsert_addr to get_next_pcs.
7969 * linux-arm-low.c (the_low_targets): Likewise.
7970 * linux-bfin-low.c (the_low_targets): Likewise.
7971 * linux-cris-low.c (the_low_targets): Likewise.
7972 * linux-crisv32-low.c (the_low_targets): Likewise.
7973 * linux-low.c (can_software_single_step): Likewise.
7974 (install_software_single_step_breakpoints): New function.
7975 (start_step_over): Use install_software_single_step_breakpoints.
7976 * linux-low.h: New CORE_ADDR vector.
7977 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
7978 get_next_pcs.
7979 * linux-mips-low.c (the_low_targets): Likewise.
7980 * linux-nios2-low.c (the_low_targets): Likewise.
7981 * linux-sparc-low.c (the_low_targets): Likewise.
7982
4a6ed09b
PA
79832015-12-17 Pedro Alves <palves@redhat.com>
7984
7985 * linux-low.c (linux_kill_one_lwp): Remove references to
7986 LinuxThreads.
7987 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
7988 to 'kill'.
7989 (linux_init_signals): Delete.
7990 (initialize_low): Adjust.
7991 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
7992
7544db95
PA
79932015-12-16 Pedro Alves <palves@redhat.com>
7994
7995 * configure.ac (compiler warning flags): When testing a
7996 -Wno-foo option, check whether -Wfoo works instead.
7997 * configure: Regenerate.
7998
8020350c
DB
79992015-12-11 Don Breazeal <donb@codesourcery.com>
8000
8001 * server.c (process_serial_event): Don't exit from gdbserver
8002 in remote mode if there are still active inferiors.
8003
db91f502
YQ
80042015-12-11 Yao Qi <yao.qi@linaro.org>
8005
8006 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
8007 arm_breakpoint_at if the process is 32-bit.
8008
b37a6290
YQ
80092015-12-11 Yao Qi <yao.qi@linaro.org>
8010
8011 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
8012 arm breakpoint.
8013
17b1509a
YQ
80142015-12-07 Yao Qi <yao.qi@linaro.org>
8015
8016 * configure.srv: Append arm.o to srv_tgtobj for
8017 aarch64*-*-linux* target.
8018 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
8019 from linux-arm-low.c.
8020 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8021 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8022 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8023 (thumb2_breakpoint_len): Likewise.
8024 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
8025 (arm_breakpoint_kinds): Likewise.
8026 (arm_breakpoint_kind_from_pc): Likewise.
8027 (arm_sw_breakpoint_from_kind): Likewise.
8028 (arm_breakpoint_kind_from_current_state): Likewise.
8029 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
8030 (arm_sw_breakpoint_from_kind): Declare.
8031 (arm_breakpoint_kind_from_current_state): Declare.
8032 (arm_breakpoint_at): Declare.
8033 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
8034 arm_sw_breakpoint_from_kind if process is 32-bit.
8035 (aarch64_breakpoint_kind_from_pc): New function.
8036 (aarch64_breakpoint_kind_from_current_state): New function.
8037 (the_low_target): Initialize fields breakpoint_kind_from_pc
8038 and breakpoint_kind_from_current_state.
8039 * linux-arm-low.c (arm_breakpoint_kinds): Move to
8040 linux-aarch32-low.c.
8041 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
8042 (arm_breakpoint, arm_breakpoint_len): Likewise.
8043 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
8044 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8045 (arm_is_thumb_mode): Likewise.
8046 (arm_breakpoint_at): Likewise.
8047 (arm_breakpoint_kind_from_pc): Likewise.
8048 (arm_sw_breakpoint_from_kind): Likewise.
8049 (arm_breakpoint_kind_from_current_state): Likewise.
8050
8051 Revert:
8052 2015-08-04 Yao Qi <yao.qi@linaro.org>
8053
8054 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
8055 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
8056 * server.c (extended_protocol): Remove "static".
8057 * server.h (extended_protocol): Declare it.
8058
ece66d65
JS
80592015-12-04 Josh Stone <jistone@redhat.com>
8060
8061 * target.h (struct target_ops) <arch_setup>: Rename to ...
8062 (struct target_ops) <post_create_inferior>: ... this.
8063 (target_arch_setup): Rename to ...
8064 (target_post_create_inferior): ... this, calling post_create_inferior.
8065 * server.c (start_inferior): Update target_arch_setup calls to
8066 target_post_create_inferior.
8067 * linux-low.c (linux_low_ptrace_options): Forward declare.
8068 (linux_arch_setup): Update its comment for general use.
8069 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
8070 (struct linux_target_ops): Use linux_post_create_inferior.
8071 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
8072 to post_create_inferior.
8073 * nto-low.c (struct nto_target_ops): Likewise.
8074 * spu-low.c (struct spu_target_ops): Likewise.
8075 * win32-low.c (struct win32_target_ops): Likewise.
8076
e58c48b4
AT
80772015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
8078
8079 * linux-arm-low.c: Remove duplicate arch/arm.h include.
8080
fbec8956
AT
80812015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
8082
8083 * linux-arm-low.c (arm_reinsert_addr): Remove function.
8084 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
8085 * linux-cris-low.c (cris_reinsert_addr> Remove function.
8086 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8087 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
8088 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8089 * linux-mips-low.c (mips_reinsert_addr): Remove function.
8090 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8091 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
8092 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8093 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
8094 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8095
9b4c5f87
AT
80962015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
8097
8098 * linux-low.c (linux_look_up_symbols): Don't call
8099 linux_supports_traceclone.
8100 * linux-low.h (thread_db_init): Remove use_events argument.
8101 * thread-db.c (thread_db_use_event): Remove global variable.
8102 (struct thread_db) <td_thr_event_enable_p>: Remove field.
8103 (struct thread_db) <td_create_bp>: Remove field.
8104 (thread_db_create_event): Remove function.
8105 (thread_db_enable_reporting): Likewise.
8106 (find_one_thread): Don't check for thread_db_use_events.
8107 (attach_thread): Likewise.
8108 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
8109 (try_thread_db_load_1): Don't check for thread_db_use_events.
8110 (thread_db_init): Remove use_events argument and thread events
8111 handling.
8112 (remove_thread_event_breakpoints): Remove function.
8113 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
8114
7d00775e
AT
81152015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
8116
8117 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
8118 New function.
8119 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8120 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
8121 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8122 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
8123 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
8124 Initialize.
8125 * linux-crisv32-low.c (cris_supports_hardware_single_step):
8126 New function.
8127 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8128 * linux-low.c (can_hardware_single_step): Use
8129 supports_hardware_single_step.
8130 (can_software_single_step): New function.
8131 (start_step_over): Call can_software_single_step.
8132 (linux_supports_hardware_single_step): New function.
8133 (struct target_ops) <supports_software_single_step>: Initialize.
8134 * linux-low.h (struct linux_target_ops)
8135 <supports_hardware_single_step>: Initialize.
8136 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
8137 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8138 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
8139 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
8140 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
8141 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8142 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
8143 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8144 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
8145 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
8146 Initialize.
8147 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
8148 (struct linux_target_ops) <tile_supports_hardware_single_step>:
8149 Initialize.
8150 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
8151 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8152 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
8153 New function.
8154 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8155 * target.h (struct target_ops): <supports_software_single_step>:
8156 New field.
8157 (target_supports_software_single_step): New macro.
8158
2d97cd35
AT
81592015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
8160
8161 * linux-low.c (linux_wait_1): Fix pc advance condition.
8162 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
8163 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
8164
769ef81f
AT
81652015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
8166
8167 * linux-arm-low.c (arm_is_thumb_mode): New function.
8168 (arm_breakpoint_at): Use arm_is_thumb_mode.
8169 (arm_breakpoint_kind_from_current_state): New function.
8170 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
8171 Initialize.
8172 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
8173 (linux_breakpoint_kind_from_current_state): New function.
8174 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
8175 * linux-low.h (struct linux_target_ops)
8176 <breakpoint_kind_from_current_state>: New field.
8177 * target.h (struct target_ops): Likewise.
8178 (target_breakpoint_kind_from_current_state): New macro.
8179
1bebeeca
PA
81802015-11-30 Pedro Alves <palves@redhat.com>
8181
8182 * linux-low.c (linux_resume): Wake up the event loop before
8183 returning.
8184
a67a9fae
PA
81852015-11-30 Pedro Alves <palves@redhat.com>
8186
8187 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
8188 check.
8189 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
8190 to -1.
8191 * target.c (struct thread_search): New structure.
8192 (thread_search_callback): New function.
8193 (prev_general_thread): New global.
8194 (prepare_to_access_memory, done_accessing_memory): New functions.
8195 * target.h (prepare_to_access_memory, done_accessing_memory):
8196 Replace macros with function declarations.
8197
f2faf941
PA
81982015-11-30 Pedro Alves <palves@redhat.com>
8199
8200 PR 14618
8201 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
8202 report TARGET_WAITKIND_NO_RESUMED.
8203 * remote-utils.c (prepare_resume_reply): Handle
8204 TARGET_WAITKIND_NO_RESUMED.
8205 * server.c (report_no_resumed): New global.
8206 (handle_query) <qSupported>: Handle "no-resumed+". Report
8207 "no-resumed+" support.
8208 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
8209 return error if the client doesn't support no-resumed events.
8210 (push_stop_notification): New function.
8211 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
8212 events if the client supports them.
8213
a681f9c9
PA
82142015-11-30 Pedro Alves <palves@redhat.com>
8215
8216 * linux-low.c (thread_still_has_status_pending_p): Don't check
8217 vCont;t here.
8218 (lwp_resumed): New function.
8219 (status_pending_p_callback): Return early if the LWP is not
8220 supposed to be resumed.
8221
65706a29
PA
82222015-11-30 Pedro Alves <palves@redhat.com>
8223
8224 * linux-low.c (handle_extended_wait): Assert that the LWP's
8225 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
8226 thread create events, leave the new child's status pending.
8227 (linux_low_filter_event): If GDB wants to hear about thread exit
8228 events, leave the LWP marked dead and don't delete it.
8229 (linux_wait_for_event_filtered): Don't check for thread exit.
8230 (filter_exit_event): New function.
8231 (linux_wait_1): Use it, when returning an exit event.
8232 (linux_resume_one_lwp_throw): Assert that the LWP's
8233 waitstatus is TARGET_WAITKIND_IGNORE.
8234 * remote-utils.c (prepare_resume_reply): Handle
8235 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
8236 * server.c (report_thread_events): New global.
8237 (handle_general_set): Handle QThreadEvents.
8238 (handle_query) <qSupported>: Handle and report QThreadEvents+;
8239 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
8240 TARGET_WAITKIND_THREAD_EXITED.
8241 * server.h (report_thread_events): Declare.
8242
56cf4bed
PA
82432015-11-30 Pedro Alves <palves@redhat.com>
8244
8245 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
8246 the thread's last_resume_kind was resume_stop.
8247
500c1d85
PA
82482015-11-30 Pedro Alves <palves@redhat.com>
8249
8250 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
8251 before returning.
8252
de979965
PA
82532015-11-30 Pedro Alves <palves@redhat.com>
8254
8255 * server.c (handle_v_requests): Handle vCtrlC.
8256
34c65914
PA
82572015-11-30 Pedro Alves <palves@redhat.com>
8258
8259 * gdbthread.h (find_any_thread_of_pid): Declare.
8260 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
8261 functions.
8262 * server.c (handle_query): If current_thread is NULL, look for
8263 another thread of the selected process.
8264
79efa585 82652015-11-26 Daniel Colascione <dancol@dancol.org>
01a49af8 8266 Simon Marchi <simon.marchi@ericsson.com>
79efa585
SM
8267
8268 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
8269 * server.c (handle_qxfer_threads_worker): Refactor to include thread
8270 name in reply.
8271 * target.h (struct target_ops) <thread_name>: New field.
8272 (target_thread_name): New macro.
8273
80d82c19
JB
82742015-11-23 Joel Brobecker <brobecker@adacore.com>
8275
8276 * regcache.h (regcache_invalidate_pid): Add declaration.
8277 * regcache.c (regcache_invalidate_pid): New function, extracted
8278 from regcache_invalidate.
8279 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
8280 Add trivial documentation comment.
8281 * lynx-low.c: Use regcache_invalidate_pid instead of
8282 regcache_invalidate.
8283
64da5dd5
JB
82842015-11-23 Joel Brobecker <brobecker@adacore.com>
8285
8286 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
8287 and Elf64_auxv_t if the target is Android.
8288
37ce4055
DE
82892015-11-22 Doug Evans <xdje42@gmail.com>
8290
8291 * target.h: #include <sys/types.h>.
8292
06e03fff
PA
82932015-11-19 Pedro Alves <palves@redhat.com>
8294
8295 * linux-low.c (linux_process_qsupported): Change prototype.
8296 Adjust.
8297 * linux-low.h (struct linux_target_ops) <process_qsupported>:
8298 Change prototype.
8299 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
8300 and adjust to loop over all features.
8301 * server.c (handle_query) <qSupported>: Adjust to call
8302 target_process_qsupported once, passing it a vector of unprocessed
8303 features.
8304 * target.h (struct target_ops) <process_qsupported>: Change
8305 prototype.
8306 (target_process_qsupported): Adjust.
8307
9a084706
PA
83082015-11-19 Pedro Alves <palves@redhat.com>
8309
8310 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
8311 mode.
8312 * configure: Regenerate.
8313
dad44a1f
PA
83142015-11-19 Pedro Alves <palves@redhat.com>
8315
8316 * configure: Regenerate.
8317
231c0592
YQ
83182015-11-19 Yao Qi <yao.qi@linaro.org>
8319
8320 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
8321 type to uint32_t.
8322
6c1c9a8b
YQ
83232015-11-19 Yao Qi <yao.qi@linaro.org>
8324
8325 * linux-aarch64-low.c (enum aarch64_operand_type): New.
8326 (struct aarch64_operand): Move enum out.
8327
9caa3311
YQ
83282015-11-19 Yao Qi <yao.qi@linaro.org>
8329
8330 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
8331 struct user_fpsimd_state *.
8332 (aarch64_store_fpregset): Likewise.
8333
6a69a054
YQ
83342015-11-19 Yao Qi <yao.qi@linaro.org>
8335
8336 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
8337 struct user_pt_regs *.
8338 (aarch64_store_gregset): Likewise.
8339
1798301e
PA
83402015-11-18 Pedro Alves <palves@redhat.com>
8341
8342 * Makefile.in (all_object_files): Add $IPA_OBJS.
8343
ce7715e2
PA
83442015-11-17 Pedro Alves <palves@redhat.com>
8345
8346 * win32-low.c (win32_resume): Use gdb_signal_from_host,
8347 GDB_SIGNAL_0 and gdb_signal_to_string.
8348
c0879059
PA
83492015-11-17 Pedro Alves <palves@redhat.com>
8350
8351 * win32-low.c (handle_output_debug_string): Remove parameter.
8352 (win32_kill): Remove our_status local and adjust call to
8353 handle_output_debug_string.
8354 (get_child_debug_event): Adjust call to
8355 handle_output_debug_string.
8356
1996e237
SM
83572015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8358
8359 * linux-mips-low.c (mips_fill_gregset): Add cast.
8360 (mips_store_gregset): Likewise.
8361 (mips_fill_fpregset): Likewise.
8362 (mips_store_fpregset): Likewise.
8363
cbec665b
SM
83642015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8365
8366 * linux-mips-low.c (mips_add_watchpoint): Rename private to
8367 priv.
8368
eb3e3c67
SM
83692015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8370
8371 * linux-mips-low.c (mips_linux_new_thread): Change type of
8372 watch_type to enum target_hw_bp_type.
8373
171de4b8
SM
83742015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8375
8376 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
8377 Change return type to arm_hwbp_type.
8378
04248ead
SM
83792015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8380
8381 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
8382 (arm_store_gregset): Likewise.
8383 * linux-arm-low.c (arm_get_hwcap): Likewise.
8384 (arm_read_description): Likewise.
8385
04b3479c
SM
83862015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8387
8388 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
8389
2bc84e8a
SM
83902015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8391
8392 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
8393 (ppc_fill_vsxregset): Likewise.
8394 (ppc_store_vsxregset): Likewise.
8395 (ppc_fill_vrregset): Likewise.
8396 (ppc_store_vrregset): Likewise.
8397 (ppc_fill_evrregset): Likewise.
8398 (ppc_store_evrregset): Likewise.
8399
e6c5bb05
SM
84002015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8401
8402 * linux-ppc-low.c (ppc_usrregs_info): Remove
8403 forward-declaration.
8404 (ppc_arch_setup): Move lower in file.
8405
7ea45d72
SM
84062015-10-30 Simon Marchi <simon.marchi@ericsson.com>
8407
8408 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
8409 (ps_pdwrite): Likewise.
8410
69291610
HW
84112015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
8412
8413 * linux-arm-low.c (arm_new_thread): Move pointer dereference
8414 to after assert checks.
8415
b42945fd
SM
84162015-10-29 Simon Marchi <simon.marchi@ericsson.com>
8417
8418 * proc-service.c (ps_pdread): Add/adjust casts.
8419 (ps_pdwrite): Add/adjust casts.
8420
d6f85c84
SM
84212015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
8422
8423 * server.c (handle_search_memory_1): Cast return value of
8424 memmem.
8425
f98cd059
SM
84262015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
8427
8428 * server.c (write_qxfer_response): Change type of data to
8429 gdb_byte *.
8430
d2412fa5
PA
84312015-10-29 Pedro Alves <palves@redhat.com>
8432
8433 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
8434
c17414a2
PA
84352015-10-29 Pedro Alves <palves@redhat.com>
8436
8437 * tracepoint.c (clear_installed_tracepoints): Add casts.
8438
e053fbc4
PA
84392015-10-29 Pedro Alves <palves@redhat.com>
8440
8441 * server.c (handle_v_cont, process_serial_event): Add enum
8442 gdb_signal casts to signal parsing code.
8443
add67df8
PA
84442015-10-29 Pedro Alves <palves@redhat.com>
8445
8446 * linux-low.h (NULL_REGSET): Define.
8447 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
8448 * linux-arm-low.c (arm_regsets): Likewise.
8449 * linux-crisv32-low.c (cris_regsets): Likewise.
8450 * linux-m68k-low.c (m68k_regsets): Likewise.
8451 * linux-mips-low.c (mips_regsets): Likewise.
8452 * linux-nios2-low.c (nios2_regsets): Likewise.
8453 * linux-ppc-low.c (ppc_regsets): Likewise.
8454 * linux-s390-low.c (s390_regsets): Likewise.
8455 * linux-sh-low.c (sh_regsets): Likewise.
8456 * linux-sparc-low.c (sparc_regsets): Likewise.
8457 * linux-tic6x-low.c (tic6x_regsets): Likewise.
8458 * linux-tile-low.c (tile_regsets): Likewise.
8459 * linux-x86-low.c (x86_regsets): Likewise.
8460 * linux-xtensa-low.c (xtensa_regsets): Likewise.
8461
50bc912a
PA
84622015-10-29 Pedro Alves <palves@redhat.com>
8463
8464 * linux-low.h (NULL_REGSET): Define.
8465 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
8466 * linux-arm-low.c (arm_regsets): Likewise.
8467 * linux-crisv32-low.c (cris_regsets): Likewise.
8468 * linux-m68k-low.c (m68k_regsets): Likewise.
8469 * linux-mips-low.c (mips_regsets): Likewise.
8470 * linux-nios2-low.c (nios2_regsets): Likewise.
8471 * linux-ppc-low.c (ppc_regsets): Likewise.
8472 * linux-s390-low.c (s390_regsets): Likewise.
8473 * linux-sh-low.c (sh_regsets): Likewise.
8474 * linux-sparc-low.c (sparc_regsets): Likewise.
8475 * linux-tic6x-low.c (tic6x_regsets): Likewise.
8476 * linux-tile-low.c (tile_regsets): Likewise.
8477 * linux-x86-low.c (x86_regsets): Likewise.
8478 * linux-xtensa-low.c (xtensa_regsets): Likewise.
8479
682b2546
DE
84802015-10-26 Doug Evans <dje@google.com>
8481
8482 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
8483
963843d4
DE
84842015-10-26 Doug Evans <dje@google.com>
8485
8486 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
8487
d41401ac
DE
84882015-10-26 Doug Evans <dje@google.com>
8489
8490 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
8491 for debug_printf.
8492 (attach_thread, find_new_threads_callback): Ditto.
8493
3db28855
AT
84942015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
8495
8496 * mem-break.h (set_breakpoint_data): Remove.
8497
fb78e89c
AT
84982015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
8499
8500 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
8501 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
8502 (initialize_low): Remove set_breakpoint_data call.
8503 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
8504 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
8505 (initialize_low): Remove set_breakpoint_data call.
8506 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
8507 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
8508 (initialize_low): Remove set_breakpoint_data call.
8509
2e6ee069
AT
85102015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
8511
8512 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
8513 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
8514 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
8515 * target.h (target_breakpoint_kind_from_pc): New macro.
8516
1652a986
AT
85172015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
8518
8519 * linux-low.c (default_breakpoint_kind_from_pc): New function.
8520 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
8521 the default breakpoint kind.
8522
abeead09
AT
85232015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
8524
8525 * linux-arm-low.c (arm_supports_z_point_type): Add software
8526 breakpoint support.
8527
b0b4b501
AT
85282015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
8529
8530 * linux-arm-low.c: Refactor breakpoint definitions.
8531 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
8532 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
8533
8689682c
AT
85342015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
8535
8536 * Makefile.in: Add arm.c/o.
8537 * configure.srv: Likewise.
8538 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
8539 (arm_breakpoint_kind_from_pc): New function.
8540 (arm_sw_breakpoint_from_kind): Return proper kind.
8541 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
8542
27165294
AT
85432015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
8544
8545 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
8546 removal.
8547 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
8548 (struct raw_breakpoint) <size>: Remove.
8549 (struct raw_breakpoint) <kind>: Add.
8550 (bp_size): New function.
8551 (bp_opcode): Likewise.
8552 (find_raw_breakpoint_at): Adjust for kind.
8553 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
8554 (remove_memory_breakpoint): Adjust for kind call bp_size.
8555 (set_raw_breakpoint_at): Adjust for kind.
8556 (set_breakpoint): Likewise.
8557 (set_breakpoint_at): Call breakpoint_kind_from_pc.
8558 (delete_raw_breakpoint): Adjust for kind.
8559 (delete_breakpoint): Likewise.
8560 (find_gdb_breakpoint): Likewise.
8561 (set_gdb_breakpoint_1): Likewise.
8562 (set_gdb_breakpoint): Likewise.
8563 (delete_gdb_breakpoint_1): Likewise.
8564 (delete_gdb_breakpoint): Likewise.
8565 (uninsert_raw_breakpoint): Likewise.
8566 (reinsert_raw_breakpoint): Likewise.
8567 (set_breakpoint_data): Remove.
8568 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
8569 (check_mem_read): Adjust for kind call bp_size.
8570 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
8571 (clone_one_breakpoint): Adjust for kind.
8572 * mem-break.h (set_gdb_breakpoint): Likewise.
8573 (delete_gdb_breakpoint): Likewise.
8574 * server.c (process_serial_event): Likewise.
8575
dd373349
AT
85762015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
8577
8578 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
8579 (struct linux_target_ops) <breakpoint>: Remove.
8580 (struct linux_target_ops) <breakpoint_len>: Remove.
8581 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8582 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8583 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
8584 (arm_sw_breakpoint_from_kind): New function.
8585 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
8586 (struct linux_target_ops) <breakpoint>: Remove.
8587 (struct linux_target_ops) <breakpoint_len>: Remove.
8588 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8589 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8590 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
8591 (struct linux_target_ops) <breakpoint>: Remove.
8592 (struct linux_target_ops) <breakpoint_len>: Remove.
8593 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8594 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8595 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
8596 (struct linux_target_ops) <breakpoint>: Remove.
8597 (struct linux_target_ops) <breakpoint_len>: Remove.
8598 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8599 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8600 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
8601 and sw_breakpoint_from_kind to increment the pc.
8602 (linux_breakpoint_kind_from_pc): New function.
8603 (linux_sw_breakpoint_from_kind): New function.
8604 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
8605 (initialize_low): Call breakpoint_kind_from_pc and
8606 sw_breakpoint_from_kind to replace breakpoint_data/len.
8607 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
8608 New field.
8609 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
8610 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
8611 (struct linux_target_ops) <breakpoint>: Remove.
8612 (struct linux_target_ops) <breakpoint_len>: Remove.
8613 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8614 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8615 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
8616 (struct linux_target_ops) <breakpoint>: Remove.
8617 (struct linux_target_ops) <breakpoint_len>: Remove.
8618 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8619 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8620 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
8621 (struct linux_target_ops) <breakpoint>: Remove.
8622 (struct linux_target_ops) <breakpoint_len>: Remove.
8623 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8624 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8625 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
8626 (struct linux_target_ops) <breakpoint>: Remove.
8627 (struct linux_target_ops) <breakpoint_len>: Remove.
8628 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8629 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8630 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
8631 (struct linux_target_ops) <breakpoint>: Remove.
8632 (struct linux_target_ops) <breakpoint_len>: Remove.
8633 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8634 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8635 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
8636 (struct linux_target_ops) <breakpoint>: Remove.
8637 (struct linux_target_ops) <breakpoint_len>: Remove.
8638 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8639 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8640 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
8641 (struct linux_target_ops) <breakpoint>: Remove.
8642 (struct linux_target_ops) <breakpoint_len>: Remove.
8643 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8644 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8645 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
8646 (struct linux_target_ops) <breakpoint>: Remove.
8647 (struct linux_target_ops) <breakpoint_len>: Remove.
8648 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8649 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8650 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
8651 (struct linux_target_ops) <breakpoint>: Remove.
8652 (struct linux_target_ops) <breakpoint_len>: Remove.
8653 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8654 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8655 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
8656 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
8657 (struct linux_target_ops) <breakpoint>: Remove.
8658 (struct linux_target_ops) <breakpoint_len>: Remove.
8659 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8660 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8661 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
8662 (struct linux_target_ops) <breakpoint>: Remove.
8663 (struct linux_target_ops) <breakpoint_len>: Remove.
8664 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8665 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8666
4cd98a19
AT
86672015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
8668
8669 * linux-cris-low.c (cris_get_pc): Remove void arg.
8670
774ee6d2
AR
86712015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
8672
8673 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
8674 variable name.
8675
833dcd29
AR
86762015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
8677
8678 * inferiors.c (thread_pid_matches_callback): New function.
8679 (find_thread_process): New function.
8680 (remove_thread): Reset current_thread.
8681 (remove_process): Assert threads have been removed first.
8682
8d689ee5
YQ
86832015-10-15 Yao Qi <yao.qi@linaro.org>
8684
8685 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
8686 if it is 3.
8687 (aarch64_remove_point): Likewise.
8688 * regcache.c (regcache_register_size): New function.
8689
1c2e1515
YQ
86902015-10-12 Yao Qi <yao.qi@linaro.org>
8691
8692 * linux-aarch64-low.c: Update all callers as emit_load_store
8693 is renamed to aarch64_emit_load_store.
8694
e1c587c3
YQ
86952015-10-12 Yao Qi <yao.qi@linaro.org>
8696
8697 * linux-aarch64-low.c: Update all callers of function renaming
8698 from emit_insn to aarch64_emit_insn.
8699
b6542f81
YQ
87002015-10-12 Yao Qi <yao.qi@linaro.org>
8701
8702 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
8703 arch/aarch64-insn.h.
8704 (struct aarch64_memory_operand): Likewise.
8705 (ENCODE): Likewise.
8706 (emit_insn): Move to arch/aarch64-insn.c.
8707 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
8708 (emit_load_store): Move to arch/aarch64-insn.c.
8709 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
8710 (can_encode_int32): Remove.
8711
246994ce
YQ
87122015-10-12 Yao Qi <yao.qi@linaro.org>
8713
8714 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
8715 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
8716 (aarch64_relocate_instruction): Likewise.
8717 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
8718 (struct aarch64_insn_visitor): Likewise.
8719
0badd99f
YQ
87202015-10-12 Yao Qi <yao.qi@linaro.org>
8721
8722 * linux-aarch64-low.c (struct aarch64_insn_data): New.
8723 (struct aarch64_insn_visitor): New.
8724 (struct aarch64_insn_relocation_data): New.
8725 (aarch64_ftrace_insn_reloc_b): New function.
8726 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
8727 (aarch64_ftrace_insn_reloc_cb): Likewise.
8728 (aarch64_ftrace_insn_reloc_tb): Likewise.
8729 (aarch64_ftrace_insn_reloc_adr): Likewise.
8730 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
8731 (aarch64_ftrace_insn_reloc_others): Likewise.
8732 (visitor): New.
8733 (aarch64_relocate_instruction): Use visitor.
8734
dfaffe9d
YQ
87352015-10-12 Yao Qi <yao.qi@linaro.org>
8736
8737 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
8738 int. Add argument buf.
8739 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
8740 aarch64_relocate_instruction.
8741
70b439f0
YQ
87422015-10-12 Yao Qi <yao.qi@linaro.org>
8743
8744 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
8745 argument insn. Remove local variable insn. Don't call
8746 target_read_uint32.
8747 (aarch64_install_fast_tracepoint_jump_pad): Call
8748 target_read_uint32.
8749
7781c06f
YQ
87502015-09-30 Yao Qi <yao.qi@linaro.org>
8751
8752 * linux-aarch64-low.c (emit_movk): Shorten a long line.
8753 (emit_load_store_pair): Likewise.
8754
9a3c8263
SM
87552015-09-25 Simon Marchi <simon.marchi@ericsson.com>
8756
8757 * dll.c (match_dll): Add cast(s).
8758 (unloaded_dll): Likewise.
8759 * linux-low.c (second_thread_of_pid_p): Likewise.
8760 (delete_lwp_callback): Likewise.
8761 (count_events_callback): Likewise.
8762 (select_event_lwp_callback): Likewise.
8763 (linux_set_resume_request): Likewise.
8764 * server.c (accumulate_file_name_length): Likewise.
8765 (emit_dll_description): Likewise.
8766 (handle_qxfer_threads_worker): Likewise.
8767 (visit_actioned_threads): Likewise.
8768 * thread-db.c (any_thread_of): Likewise.
8769 * tracepoint.c (same_process_p): Likewise.
8770 (match_blocktype): Likewise.
8771 (build_traceframe_info_xml): Likewise.
8772
224c3ddb
SM
87732015-09-25 Simon Marchi <simon.marchi@ericsson.com>
8774
8775 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
8776 assignment.
8777 (gdb_unparse_agent_expr): Likewise.
8778 * hostio.c (require_data): Likewise.
8779 (handle_pread): Likewise.
8780 * linux-low.c (disable_regset): Likewise.
8781 (fetch_register): Likewise.
8782 (store_register): Likewise.
8783 (get_dynamic): Likewise.
8784 (linux_qxfer_libraries_svr4): Likewise.
8785 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
8786 (set_fast_tracepoint_jump): Likewise.
8787 (uninsert_fast_tracepoint_jumps_at): Likewise.
8788 (reinsert_fast_tracepoint_jumps_at): Likewise.
8789 (validate_inserted_breakpoint): Likewise.
8790 (clone_agent_expr): Likewise.
8791 * regcache.c (init_register_cache): Likewise.
8792 * remote-utils.c (putpkt_binary_1): Likewise.
8793 (decode_M_packet): Likewise.
8794 (decode_X_packet): Likewise.
8795 (look_up_one_symbol): Likewise.
8796 (relocate_instruction): Likewise.
8797 (monitor_output): Likewise.
8798 * server.c (handle_search_memory): Likewise.
8799 (handle_qxfer_exec_file): Likewise.
8800 (handle_qxfer_libraries): Likewise.
8801 (handle_qxfer): Likewise.
8802 (handle_query): Likewise.
8803 (handle_v_cont): Likewise.
8804 (handle_v_run): Likewise.
8805 (captured_main): Likewise.
8806 * target.c (write_inferior_memory): Likewise.
8807 * thread-db.c (try_thread_db_load_from_dir): Likewise.
8808 * tracepoint.c (init_trace_buffer): Likewise.
8809 (add_tracepoint_action): Likewise.
8810 (add_traceframe): Likewise.
8811 (add_traceframe_block): Likewise.
8812 (cmd_qtdpsrc): Likewise.
8813 (cmd_qtdv): Likewise.
8814 (cmd_qtstatus): Likewise.
8815 (response_source): Likewise.
8816 (response_tsv): Likewise.
8817 (cmd_qtnotes): Likewise.
8818 (gdb_collect): Likewise.
8819 (initialize_tracepoint): Likewise.
8820
afbe19f8
PL
88212015-09-21 Pierre Langlois <pierre.langlois@arm.com>
8822
8823 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
8824 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
8825 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
8826 <NOP>: New.
8827 (enum aarch64_condition_codes): New enum.
8828 (w0): New static global.
8829 (fp): Likewise.
8830 (lr): Likewise.
8831 (struct aarch64_memory_operand) <type>: New
8832 MEMORY_OPERAND_POSTINDEX type.
8833 (postindex_memory_operand): New helper function.
8834 (emit_ret): New function.
8835 (emit_load_store_pair): New function, factored out of emit_stp
8836 with support for MEMORY_OPERAND_POSTINDEX.
8837 (emit_stp): Rewrite using emit_load_store_pair.
8838 (emit_ldp): New function.
8839 (emit_load_store): Likewise.
8840 (emit_ldr): Mention post-index instruction in comment.
8841 (emit_ldrh): New function.
8842 (emit_ldrb): New function.
8843 (emit_ldrsw): Mention post-index instruction in comment.
8844 (emit_str): Likewise.
8845 (emit_subs): New function.
8846 (emit_cmp): Likewise.
8847 (emit_and): Likewise.
8848 (emit_orr): Likewise.
8849 (emit_orn): Likewise.
8850 (emit_eor): Likewise.
8851 (emit_mvn): Likewise.
8852 (emit_lslv): Likewise.
8853 (emit_lsrv): Likewise.
8854 (emit_asrv): Likewise.
8855 (emit_mul): Likewise.
8856 (emit_sbfm): Likewise.
8857 (emit_sbfx): Likewise.
8858 (emit_ubfm): Likewise.
8859 (emit_ubfx): Likewise.
8860 (emit_csinc): Likewise.
8861 (emit_cset): Likewise.
8862 (emit_nop): Likewise.
8863 (emit_ops_insns): New helper function.
8864 (emit_pop): Likewise.
8865 (emit_push): Likewise.
8866 (aarch64_emit_prologue): New function.
8867 (aarch64_emit_epilogue): Likewise.
8868 (aarch64_emit_add): Likewise.
8869 (aarch64_emit_sub): Likewise.
8870 (aarch64_emit_mul): Likewise.
8871 (aarch64_emit_lsh): Likewise.
8872 (aarch64_emit_rsh_signed): Likewise.
8873 (aarch64_emit_rsh_unsigned): Likewise.
8874 (aarch64_emit_ext): Likewise.
8875 (aarch64_emit_log_not): Likewise.
8876 (aarch64_emit_bit_and): Likewise.
8877 (aarch64_emit_bit_or): Likewise.
8878 (aarch64_emit_bit_xor): Likewise.
8879 (aarch64_emit_bit_not): Likewise.
8880 (aarch64_emit_equal): Likewise.
8881 (aarch64_emit_less_signed): Likewise.
8882 (aarch64_emit_less_unsigned): Likewise.
8883 (aarch64_emit_ref): Likewise.
8884 (aarch64_emit_if_goto): Likewise.
8885 (aarch64_emit_goto): Likewise.
8886 (aarch64_write_goto_address): Likewise.
8887 (aarch64_emit_const): Likewise.
8888 (aarch64_emit_call): Likewise.
8889 (aarch64_emit_reg): Likewise.
8890 (aarch64_emit_pop): Likewise.
8891 (aarch64_emit_stack_flush): Likewise.
8892 (aarch64_emit_zero_ext): Likewise.
8893 (aarch64_emit_swap): Likewise.
8894 (aarch64_emit_stack_adjust): Likewise.
8895 (aarch64_emit_int_call_1): Likewise.
8896 (aarch64_emit_void_call_2): Likewise.
8897 (aarch64_emit_eq_goto): Likewise.
8898 (aarch64_emit_ne_goto): Likewise.
8899 (aarch64_emit_lt_goto): Likewise.
8900 (aarch64_emit_le_goto): Likewise.
8901 (aarch64_emit_gt_goto): Likewise.
8902 (aarch64_emit_ge_got): Likewise.
8903 (aarch64_emit_ops_impl): New static global variable.
8904 (aarch64_emit_ops): New target function, return
8905 &aarch64_emit_ops_impl.
8906 (struct linux_target_ops): Install it.
8907
bb903df0
PL
89082015-09-21 Pierre Langlois <pierre.langlois@arm.com>
8909
8910 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
8911 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
8912 aarch64-ipa.o.
8913 * linux-aarch64-ipa.c: New file.
8914 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
8915 and endian.h.
8916 (aarch64_get_thread_area): New target method.
8917 (extract_signed_bitfield): New helper function.
8918 (aarch64_decode_ldr_literal): New function.
8919 (enum aarch64_opcodes): New enum.
8920 (struct aarch64_register): New struct.
8921 (struct aarch64_operand): New struct.
8922 (x0): New static global.
8923 (x1): Likewise.
8924 (x2): Likewise.
8925 (x3): Likewise.
8926 (x4): Likewise.
8927 (w2): Likewise.
8928 (ip0): Likewise.
8929 (sp): Likewise.
8930 (xzr): Likewise.
8931 (aarch64_register): New helper function.
8932 (register_operand): Likewise.
8933 (immediate_operand): Likewise.
8934 (struct aarch64_memory_operand): New struct.
8935 (offset_memory_operand): New helper function.
8936 (preindex_memory_operand): Likewise.
8937 (enum aarch64_system_control_registers): New enum.
8938 (ENCODE): New macro.
8939 (emit_insn): New helper function.
8940 (emit_b): New function.
8941 (emit_bcond): Likewise.
8942 (emit_cb): Likewise.
8943 (emit_tb): Likewise.
8944 (emit_blr): Likewise.
8945 (emit_stp): Likewise.
8946 (emit_ldp_q_offset): Likewise.
8947 (emit_stp_q_offset): Likewise.
8948 (emit_load_store): Likewise.
8949 (emit_ldr): Likewise.
8950 (emit_ldrsw): Likewise.
8951 (emit_str): Likewise.
8952 (emit_ldaxr): Likewise.
8953 (emit_stxr): Likewise.
8954 (emit_stlr): Likewise.
8955 (emit_data_processing_reg): Likewise.
8956 (emit_data_processing): Likewise.
8957 (emit_add): Likewise.
8958 (emit_sub): Likewise.
8959 (emit_mov): Likewise.
8960 (emit_movk): Likewise.
8961 (emit_mov_addr): Likewise.
8962 (emit_mrs): Likewise.
8963 (emit_msr): Likewise.
8964 (emit_sevl): Likewise.
8965 (emit_wfe): Likewise.
8966 (append_insns): Likewise.
8967 (can_encode_int32_in): New helper function.
8968 (aarch64_relocate_instruction): New function.
8969 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
8970 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
8971 (struct linux_target_ops): Install aarch64_get_thread_area,
8972 aarch64_install_fast_tracepoint_jump_pad and
8973 aarch64_get_min_fast_tracepoint_insn_len.
8974
787749ea
PL
89752015-09-21 Pierre Langlois <pierre.langlois@arm.com>
8976
8977 * Makefile.in (aarch64-insn.o): New rule.
8978 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
8979
9812b2e6
YQ
89802015-09-21 Yao Qi <yao.qi@linaro.org>
8981
8982 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
8983
18fe412b
YQ
89842015-09-21 Yao Qi <yao.qi@linaro.org>
8985
8986 * tracepoint.c (max_jump_pad_size): Remove.
8987
a0cc84cd
YQ
89882015-09-18 Yao Qi <yao.qi@linaro.org>
8989
8990 * linux-aarch64-low.c: Don't include sys/uio.h.
8991 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
8992
d78908cf
WW
89932015-09-16 Wei-cheng Wang <cole945@gmail.com>
8994
8995 * tracepoint.c (eval_result_type): Change prototype.
8996 (condition_true_at_tracepoint): Fix argument to compiled_cond.
8997
d57e0d50
PA
89982015-09-15 Pedro Alves <palves@redhat.com>
8999
9000 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
9001 Check whether to report exec events instead of checking whether
9002 multiprocess is enabled.
9003
5a676acc
PA
90042015-09-15 Pedro Alves <palves@redhat.com>
9005
9006 PR remote/18965
9007 * remote-utils.c (prepare_resume_reply): Merge
9008 TARGET_WAITKIND_VFORK_DONE switch case with the
9009 TARGET_WAITKIND_FORKED case.
9010
7c5d0fad
YQ
90112015-09-15 Yao Qi <yao.qi@linaro.org>
9012
9013 * server.c (handle_query): Check string comparison using
9014 "else if" instead of "if".
9015
750ce8d1
YQ
90162015-09-15 Yao Qi <yao.qi@linaro.org>
9017
9018 * server.c (vCont_supported): New global variable.
9019 (handle_query): Set vCont_supported to 1 if "vContSupported+"
9020 matches. Append ";vContSupported+" to own_buf.
9021 (handle_v_requests): Append ";s;S" to own_buf if target supports
9022 hardware single step or vCont_supported is false.
9023 (capture_main): Set vCont_supported to zero.
9024
70b90b91
YQ
90252015-09-15 Yao Qi <yao.qi@linaro.org>
9026
9027 * linux-low.c (linux_supports_conditional_breakpoints): Rename
9028 it to ...
9029 (linux_supports_hardware_single_step): ... New function.
9030 (linux_target_ops): Update.
9031 * lynx-low.c (lynx_target_ops): Set field
9032 supports_hardware_single_step to target_can_do_hardware_single_step.
9033 * nto-low.c (nto_target_ops): Likewise.
9034 * spu-low.c (spu_target_ops): Likewise.
9035 * win32-low.c (win32_target_ops): Likewise.
9036 * target.c (target_can_do_hardware_single_step): New function.
9037 * target.h (struct target_ops) <supports_conditional_breakpoints>:
9038 Remove. <supports_hardware_single_step>: New field.
9039 (target_supports_conditional_breakpoints): Remove.
9040 (target_supports_hardware_single_step): New macro.
9041 (target_can_do_hardware_single_step): Declare.
9042 * server.c (handle_query): Use target_supports_hardware_single_step
9043 instead of target_supports_conditional_breakpoints.
9044
ade90bde
YQ
90452015-09-15 Yao Qi <yao.qi@linaro.org>
9046
9047 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
9048 function.
9049 (struct linux_target_ops the_low_target): Install
9050 aarch64_linux_siginfo_fixup.
9051
94585166
DB
90522015-09-11 Don Breazeal <donb@codesourcery.com>
9053 Luis Machado <lgustavo@codesourcery.com>
9054
9055 * linux-low.c (linux_mourn): Static declaration.
9056 (linux_arch_setup): Move in front of
9057 handle_extended_wait.
9058 (linux_arch_setup_thread): New function.
9059 (handle_extended_wait): Handle exec events. Call
9060 linux_arch_setup_thread. Make event_lwp argument a
9061 pointer-to-a-pointer.
9062 (check_zombie_leaders): Do not check stopped threads.
9063 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
9064 (linux_low_filter_event): Add lwp and thread for exec'ing
9065 non-leader thread if leader thread has been deleted.
9066 Refactor code into linux_arch_setup_thread and call it.
9067 Pass child lwp pointer by reference to handle_extended_wait.
9068 (linux_wait_for_event_filtered): Update comment.
9069 (linux_wait_1): Prevent clobbering exec event status.
9070 (linux_supports_exec_events): New function.
9071 (linux_target_ops) <supports_exec_events>: Initialize new member.
9072 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
9073 new member.
9074 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
9075 * server.c (report_exec_events): New global variable.
9076 (handle_query): Handle qSupported query for exec-events feature.
9077 (captured_main): Initialize report_exec_events.
9078 * server.h (report_exec_events): Declare new global variable.
9079 * target.h (struct target_ops) <supports_exec_events>: New
9080 member.
9081 (target_supports_exec_events): New macro.
9082 * win32-low.c (win32_target_ops) <supports_exec_events>:
9083 Initialize new member.
9084
0568462b
MM
90852015-09-09 Markus Metzger <markus.t.metzger@intel.com>
9086
9087 * linux-low.c (linux_low_enable_btrace): Remove.
9088 (linux_target_ops): Replace linux_low_enable_btrace with
9089 linux_enable_btrace.
9090
39edd165
YQ
90912015-09-03 Yao Qi <yao.qi@linaro.org>
9092
9093 * linux-aarch64-low.c (aarch64_insert_point): Call
9094 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
9095 returns true.
9096
1db33b5a
UW
90972015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9098
9099 * linux-low.c (check_stopped_by_breakpoint): Use
9100 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
9101
ab290430
PA
91022015-08-27 Pedro Alves <palves@redhat.com>
9103
9104 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
9105
8d749320
SM
91062015-08-26 Simon Marchi <simon.marchi@ericsson.com>
9107
6711b7f8
SM
9108 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
9109 the XNEW-family equivalent.
8d749320
SM
9110 (compile_bytecodes): Likewise.
9111 * dll.c (loaded_dll): Likewise.
9112 * event-loop.c (append_callback_event): Likewise.
9113 (create_file_handler): Likewise.
9114 (create_file_event): Likewise.
9115 * hostio.c (handle_open): Likewise.
9116 * inferiors.c (add_thread): Likewise.
9117 (add_process): Likewise.
9118 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
9119 * linux-arm-low.c (arm_new_process): Likewise.
9120 (arm_new_thread): Likewise.
9121 * linux-low.c (add_to_pid_list): Likewise.
9122 (linux_add_process): Likewise.
9123 (handle_extended_wait): Likewise.
9124 (add_lwp): Likewise.
9125 (enqueue_one_deferred_signal): Likewise.
9126 (enqueue_pending_signal): Likewise.
9127 (linux_resume_one_lwp_throw): Likewise.
9128 (linux_resume_one_thread): Likewise.
9129 (linux_read_memory): Likewise.
9130 (linux_write_memory): Likewise.
9131 * linux-mips-low.c (mips_linux_new_process): Likewise.
9132 (mips_linux_new_thread): Likewise.
9133 (mips_add_watchpoint): Likewise.
9134 * linux-x86-low.c (initialize_low_arch): Likewise.
9135 * lynx-low.c (lynx_add_process): Likewise.
9136 * mem-break.c (set_raw_breakpoint_at): Likewise.
9137 (set_breakpoint): Likewise.
9138 (add_condition_to_breakpoint): Likewise.
9139 (add_commands_to_breakpoint): Likewise.
9140 (clone_agent_expr): Likewise.
9141 (clone_one_breakpoint): Likewise.
9142 * regcache.c (new_register_cache): Likewise.
9143 * remote-utils.c (look_up_one_symbol): Likewise.
9144 * server.c (queue_stop_reply): Likewise.
9145 (start_inferior): Likewise.
9146 (queue_stop_reply_callback): Likewise.
9147 (handle_target_event): Likewise.
9148 * spu-low.c (fetch_ppc_memory): Likewise.
9149 (store_ppc_memory): Likewise.
9150 * target.c (set_target_ops): Likewise.
9151 * thread-db.c (thread_db_load_search): Likewise.
9152 (try_thread_db_load_1): Likewise.
9153 * tracepoint.c (add_tracepoint): Likewise.
9154 (add_tracepoint_action): Likewise.
9155 (create_trace_state_variable): Likewise.
9156 (cmd_qtdpsrc): Likewise.
9157 (cmd_qtro): Likewise.
9158 (add_while_stepping_state): Likewise.
9159 * win32-low.c (child_add_thread): Likewise.
9160 (get_image_name): Likewise.
9161
ed8b7b42
YQ
91622015-08-25 Yao Qi <yao.qi@linaro.org>
9163
9164 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
9165
db3cb7cb
YQ
91662015-08-25 Yao Qi <yao.qi@linaro.org>
9167
9168 * Makefile.in (aarch64-linux.o): New rule.
9169 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
9170 srv_tgtobj.
9171 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
9172 (aarch64_init_debug_reg_state): Make it extern.
9173 (aarch64_linux_prepare_to_resume): Remove.
9174
f6011a1c
YQ
91752015-08-25 Yao Qi <yao.qi@linaro.org>
9176
9177 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
9178 lwp_arch_private_info and ptid_of_lwp.
9179
88e2cf7e
YQ
91802015-08-25 Yao Qi <yao.qi@linaro.org>
9181
9182 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
9183 Find proc_info by find_process_pid. All callers updated.
9184
5e35436e
YQ
91852015-08-25 Yao Qi <yao.qi@linaro.org>
9186
9187 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
9188 Remove.
9189 (debug_reg_change_callback): Remove.
9190 (aarch64_notify_debug_reg_change): Remove.
9191
4a8a7965
YQ
91922015-08-25 Yao Qi <yao.qi@linaro.org>
9193
9194 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
9195 Call current_lwp_ptid.
9196
32a271ee
YQ
91972015-08-25 Yao Qi <yao.qi@linaro.org>
9198
9199 * linux-aarch64-low.c (debug_reg_change_callback): Use
9200 debug_printf.
9201
0d51c8d7
YQ
92022015-08-25 Yao Qi <yao.qi@linaro.org>
9203
9204 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
9205
31a43dd5
YQ
92062015-08-25 Yao Qi <yao.qi@linaro.org>
9207
9208 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
9209
8ee52567
YQ
92102015-08-25 Yao Qi <yao.qi@linaro.org>
9211
9212 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
9213 the code.
9214
ff3f0f45
YQ
92152015-08-25 Yao Qi <yao.qi@linaro.org>
9216
9217 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
9218 Remove.
9219 (debug_reg_change_callback): Remove argument entry and add argument
9220 lwp. Remove local variable thread. Don't print thread id in the
9221 debugging output. Don't check whether pid of thread equals to pid.
9222 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
9223 iterate_over_lwps instead find_inferior.
9224
3d40fbb5
PA
92252015-08-24 Pedro Alves <palves@redhat.com>
9226
9227 * inferiors.c (get_first_process): New function.
9228 * inferiors.h (get_first_process): New declaration.
9229 * remote-utils.c (read_ptid): Default to the first process in the
9230 list, instead of to the current thread's process.
9231
438e1e42
PA
92322015-08-24 Pedro Alves <palves@redhat.com>
9233
9234 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
9235 * event-loop.c: Likewise.
9236 * remote-utils.c: Likewise.
9237 * tracepoint.c: Likewise.
9238
a8c6d4fc
PA
92392015-08-24 Pedro Alves <palves@redhat.com>
9240
9241 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
9242 ptid_get_lwp.
9243
99b0bb12
PA
92442015-08-21 Pedro Alves <palves@redhat.com>
9245
9246 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
9247 instead of literal 1.
9248
f8904751
PA
92492015-08-21 Pedro Alves <palves@redhat.com>
9250
9251 * tdesc.c (default_description): Explicitly zero-initialize.
9252
465a859e
PA
92532015-08-21 Pedro Alves <palves@redhat.com>
9254
9255 PR gdb/18749
9256 * inferiors.c (remove_thread): Discard any pending stop reply for
9257 this thread.
9258 * server.c (remove_all_on_match_pid): Rename to ...
9259 (remove_all_on_match_ptid): ... this. Work with a filter ptid
9260 instead of a pid.
9261 (discard_queued_stop_replies): Change parameter to a ptid. Now
9262 extern.
9263 (handle_v_kill, kill_inferior_callback, captured_main)
9264 (process_serial_event): Adjust.
9265 * server.h (discard_queued_stop_replies): Declare.
9266
f0db101d
PA
92672015-08-21 Pedro Alves <palves@redhat.com>
9268
9269 * linux-low.c (wait_for_sigstop): Always switch to no thread
9270 selected if the previously current thread dies.
9271 * lynx-low.c (lynx_request_interrupt): Use the first thread's
9272 process instead of the current thread's.
9273 * remote-utils.c (input_interrupt): Don't check if there's no
9274 current thread.
9275 * server.c (gdb_read_memory, gdb_write_memory): If setting the
9276 current thread to the general thread fails, error out.
9277 (handle_qxfer_auxv, handle_qxfer_libraries)
9278 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
9279 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
9280 (handle_query): Check if there's a thread selected instead of
9281 checking whether there's any thread in the thread list.
9282 (handle_qxfer_threads, handle_qxfer_btrace)
9283 (handle_qxfer_btrace_conf): Don't error out early if there's no
9284 thread in the thread list.
9285 (handle_v_cont, myresume): Don't set the current thread to the
9286 continue thread.
9287 (process_serial_event) <Hg handling>: Also set thread_id if the
9288 previous general thread is still alive.
9289 (process_serial_event) <g/G handling>: If setting the current
9290 thread to the general thread fails, error out.
9291 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
9292 thread's lwp instead of the current thread's.
9293 * target.c (set_desired_thread): If the desired thread was not
9294 found, leave the current thread pointing to NULL. Return an int
9295 (boolean) indicating success.
9296 * target.h (set_desired_thread): Change return type to int.
9297
40045d91
MF
92982015-08-20 Max Filippov <jcmvbkbc@gmail.com>
9299
9300 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
9301 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
9302 #includes.
9303 (ps_get_thread_area): New function.
9304
45face3b
GB
93052015-08-19 Gary Benson <gbenson@redhat.com>
9306
9307 * hostio.c (handle_pread): Do not attempt to read more data
9308 than hostio_reply_with_data can fit in a packet.
9309
16d5f642
JB
93102015-08-18 Joel Brobecker <brobecker@adacore.com>
9311
9312 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
9313
a738da3a
MF
93142015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
9315
9316 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
9317
33ebda9d
PA
93182015-08-06 Pedro Alves <palves@redhat.com>
9319
9320 * tracepoint.c (expr_eval_result): Now an int.
9321
a44892be
PA
93222015-08-06 Pedro Alves <palves@redhat.com>
9323
9324 * gdbthread.h (struct regcache): Forward declare.
9325 (struct thread_info) <regcache_data>: Now a struct regcache
9326 pointer.
9327 * inferiors.c (inferior_regcache_data)
9328 (set_inferior_regcache_data): Now work with struct regcache
9329 pointers.
9330 * inferiors.h (struct regcache): Forward declare.
9331 (inferior_regcache_data, set_inferior_regcache_data): Now work
9332 with struct regcache pointers.
9333 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
9334 (free_register_cache_thread): Remove struct regcache pointer
9335 casts.
9336
608a1e46
PA
93372015-08-06 Pedro Alves <palves@redhat.com>
9338
9339 * server.c (captured_main): On error, print the exception message
9340 to stderr, and if run_once is set, throw a quit.
9341
f0ce0d3a
PA
93422015-08-06 Pedro Alves <palves@redhat.com>
9343
9344 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
9345 the current thread.
9346
bf47e248
PA
93472015-08-06 Pedro Alves <palves@redhat.com>
9348
9349 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
9350 reading beyond the passed in buffer length.
9351
b6b9ffcc
PL
93522015-08-06 Pierre Langlois <pierre.langlois@arm.com>
9353
9354 * tracepoint.c (symbol_list) <required>: Remove.
9355
863d01bd
PA
93562015-08-06 Pedro Alves <palves@redhat.com>
9357
9358 * linux-low.c (handle_extended_wait): Set the fork child's suspend
9359 count if stopping and suspending threads.
9360 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
9361 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
9362 (linux_detach): Complete an ongoing step-over.
9363 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
9364 throughout.
9365 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
9366 (linux_wait_1): If passing a signal to the inferior after
9367 finishing a step-over, unsuspend and re-resume all lwps. If we
9368 see a single-step event but the thread should be continuing, don't
9369 pass the trap to gdb.
9370 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
9371 internal_error instead of gdb_assert.
9372 (enqueue_pending_signal): New function.
9373 (check_ptrace_stopped_lwp_gone): Add debug output.
9374 (start_step_over): Use internal_error instead of gdb_assert.
9375 (complete_ongoing_step_over): New function.
9376 (linux_resume_one_thread): Don't resume a suspended thread.
9377 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
9378 it stepping.
9379
00db26fa
PA
93802015-08-06 Pedro Alves <palves@redhat.com>
9381
9382 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
9383 (linux_thread_alive): Use lwp_is_marked_dead.
9384 (extended_event_reported): Delete.
9385 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
9386 instead of extended_event_reported.
9387 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
9388 as well.
9389 (lwp_is_marked_dead): New function.
9390 (lwp_running): Use lwp_is_marked_dead.
9391 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
9392 comment.
9393
ad071a30
PA
93942015-08-06 Pedro Alves <palves@redhat.com>
9395
9396 * linux-low.c (linux_wait_1): Move fork event output out of the
9397 !report_to_gdb check. Pass event_child->waitstatus to
9398 target_waitstatus_to_string instead of ourstatus.
9399
524b57e6
YQ
94002015-08-04 Yao Qi <yao.qi@linaro.org>
9401
9402 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
9403 if current_thread is 32 bit.
9404
6085d6f6
YQ
94052015-08-04 Yao Qi <yao.qi@linaro.org>
9406
9407 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9408 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9409 * server.c (extended_protocol): Remove "static".
9410 * server.h (extended_protocol): Declare it.
9411
8a7e4587
YQ
94122015-08-04 Yao Qi <yao.qi@linaro.org>
9413
9414 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
9415 both aarch64 and aarch32.
9416 (aarch64_set_pc): Likewise.
9417
3b53ae99
YQ
94182015-08-04 Yao Qi <yao.qi@linaro.org>
9419
9420 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
9421 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
9422 arm-with-neon.xml to srv_xmlfiles.
9423 * linux-aarch64-low.c: Include linux-aarch32-low.h.
9424 (is_64bit_tdesc): New function.
9425 (aarch64_linux_read_description): New function.
9426 (aarch64_arch_setup): Call aarch64_linux_read_description.
9427 (regs_info): Rename to regs_info_aarch64.
9428 (aarch64_regs_info): Return right regs_info.
9429 (initialize_low_arch): Call initialize_low_arch_aarch32.
9430
bd9e6534
YQ
94312015-08-04 Yao Qi <yao.qi@linaro.org>
9432
9433 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
9434 * linux-aarch32-low.c: New file.
9435 * linux-aarch32-low.h: New file.
9436 * linux-arm-low.c (arm_fill_gregset): Move it to
9437 linux-aarch32-low.c.
9438 (arm_store_gregset): Likewise.
9439 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
9440 (arm_store_vfpregset): Call arm_store_vfpregset_num.
9441 (arm_arch_setup): Check if PTRACE_GETREGSET works.
9442 (regs_info): Rename to regs_info_arm.
9443 (arm_regs_info): Return regs_info_aarch32 if
9444 have_ptrace_getregset is 1 and target description is
9445 arm_with_neon or arm_with_vfpv3.
9446 (initialize_low_arch): Don't call init_registers_arm_with_neon.
9447 Call initialize_low_arch_aarch32 instead.
9448
ded48a5e
YQ
94492015-08-04 Yao Qi <yao.qi@linaro.org>
9450
9451 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
9452 * linux-low.c: ... here.
9453 * linux-low.h (have_ptrace_getregset): Declare it.
9454
96e9210f
PA
94552015-08-04 Pedro Alves <palves@redhat.com>
9456
9457 * thread-db.c (struct thread_db): Use new typedefs.
9458 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
9459 CHK calls.
9460 (disable_thread_event_reporting): Cast result of dlsym to
9461 destination function pointer type.
9462 (thread_db_mourn): Use td_ta_delete_ftype.
9463
af60a1ef
SL
94642015-08-03 Sandra Loosemore <sandra@codesourcery.com>
9465
9466 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
9467 arch variant.
9468 (CDX_BREAKPOINT): Define for R2.
9469 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
9470 (the_low_target): Add comments.
9471
e8b41681
YQ
94722015-07-30 Yao Qi <yao.qi@linaro.org>
9473
9474 * linux-arm-low.c (arm_hwcap): Remove it.
9475 (arm_read_description): New local variable arm_hwcap. Don't
9476 set arm_hwcap to zero.
9477
89abb039
YQ
94782015-07-30 Yao Qi <yao.qi@linaro.org>
9479
9480 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
9481 Use regcache->tdesc instead.
9482 (arm_store_wmmxregset): Likewise.
9483 (arm_fill_vfpregset): Likewise.
9484 (arm_store_vfpregset): Likewise.
9485
deca266c
YQ
94862015-07-30 Yao Qi <yao.qi@linaro.org>
9487
9488 * linux-arm-low.c: Include arch/arm.h.
9489 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
9490 (arm_store_gregset): Likewise.
9491
aa58a496
SM
94922015-07-29 Simon Marchi <simon.marchi@ericsson.com>
9493
9494 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
9495 ptrace's 4th parameter.
9496
50904b25
YQ
94972015-07-27 Yao Qi <yao.qi@linaro.org>
9498
9499 * configure.srv (case aarch64*-*-linux*): Don't set
9500 srv_linux_usrregs.
9501
5826e159
PA
95022015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
9503
9504 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
9505 sys/ptrace.h.
9506 * linux-arm-low.c: Likewise.
9507 * linux-cris-low.c: Likewise.
9508 * linux-crisv32-low.c: Likewise.
9509 * linux-low.c: Likewise.
9510 * linux-m68k-low.c: Likewise.
9511 * linux-mips-low.c: Likewise.
9512 * linux-nios2-low.c: Likewise.
9513 * linux-s390-low.c: Likewise.
9514 * linux-sparc-low.c: Likewise.
9515 * linux-tic6x-low.c: Likewise.
9516 * linux-tile-low.c: Likewise.
9517 * linux-x86-low.c: Likewise.
9518
54019719
PA
95192015-07-24 Pedro Alves <palves@redhat.com>
9520
9521 * config.in: Regenerate.
9522 * configure: Regenerate.
9523
eb7aa561
PA
95242015-07-24 Pedro Alves <palves@redhat.com>
9525
9526 * acinclude.m4: Include ../ptrace.m4.
9527 * configure.ac: Call GDB_AC_PTRACE.
9528 * config.in, configure: Regenerate.
9529
55d7b841
YQ
95302015-07-24 Yao Qi <yao.qi@linaro.org>
9531
9532 * linux-low.c (linux_create_inferior): Remove setting to
9533 proc->priv->new_inferior.
9534 (linux_attach): Likewise.
9535 (linux_low_filter_event): Likewise.
9536 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
9537
c06cbd92
YQ
95382015-07-24 Yao Qi <yao.qi@linaro.org>
9539
9540 * linux-low.c (linux_arch_setup): New function.
9541 (linux_low_filter_event): If proc->tdesc is NULL and
9542 proc->attached is true, call the_low_target.arch_setup.
9543 Otherwise, keep status pending, and return.
9544 (linux_resume_one_lwp_throw): Don't call get_pc if
9545 thread->while_stepping isn't NULL. Don't call
9546 get_thread_regcache if proc->tdesc is NULL.
9547 (need_step_over_p): Return 0 if proc->tdesc is NULL.
9548 (linux_target_ops): Install arch_setup.
9549 * server.c (start_inferior): Call the_target->arch_setup.
9550 * target.h (struct target_ops) <arch_setup>: New field.
9551 (target_arch_setup): New marco.
9552 * lynx-low.c (lynx_target_ops): Update.
9553 * nto-low.c (nto_target_ops): Update.
9554 * spu-low.c (spu_target_ops): Update.
9555 * win32-low.c (win32_target_ops): Update.
9556
5ae3ebba
YQ
95572015-07-24 Yao Qi <yao.qi@linaro.org>
9558
9559 * linux-low.c (linux_add_process): Don't set
9560 proc->priv->new_inferior.
9561 (linux_create_inferior): Set proc->priv->new_inferior to 1.
9562 (linux_attach): Likewise.
9563
eb97750b
YQ
95642015-07-24 Yao Qi <yao.qi@linaro.org>
9565
9566 * server.c (start_inferior): Code refactor.
9567
51aee833
YQ
95682015-07-24 Yao Qi <yao.qi@linaro.org>
9569
9570 * server.c (process_serial_event): Set general_thread.
9571
af1b22f3
YQ
95722015-07-21 Yao Qi <yao.qi@linaro.org>
9573
9574 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
9575 aarch64_linux_get_debug_reg_capacity.
9576
554717a3
YQ
95772015-07-17 Yao Qi <yao.qi@linaro.org>
9578
9579 * Makefile.in (aarch64-linux-hw-point.o): New rule.
9580 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
9581 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
9582 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
9583 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
9584 (AARCH64_HWP_ALIGNMENT): Likewise.
9585 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
9586 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
9587 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
9588 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
9589 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
9590 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
9591 (struct aarch64_debug_reg_state): Likewise.
9592 (struct arch_lwp_info): Likewise.
9593 (aarch64_align_watchpoint): Likewise.
9594 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
9595 (aarch64_watchpoint_length): Likewise.
9596 (aarch64_point_encode_ctrl_reg): Likewise
9597 (aarch64_point_is_aligned): Likewise.
9598 (aarch64_align_watchpoint): Likewise.
9599 (aarch64_linux_set_debug_regs):
9600 (aarch64_dr_state_insert_one_point): Likewise.
9601 (aarch64_dr_state_remove_one_point): Likewise.
9602 (aarch64_handle_breakpoint): Likewise.
9603 (aarch64_handle_aligned_watchpoint): Likewise.
9604 (aarch64_handle_unaligned_watchpoint): Likewise.
9605 (aarch64_handle_watchpoint): Likewise.
9606
c67ca4de
YQ
96072015-07-17 Yao Qi <yao.qi@linaro.org>
9608
9609 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
9610 and don't aarch64_get_debug_reg_state. All callers update.
9611 (aarch64_handle_aligned_watchpoint): Likewise.
9612 (aarch64_handle_unaligned_watchpoint): Likewise.
9613 (aarch64_handle_watchpoint): Likewise.
9614 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
9615 (aarch64_remove_point): Likewise.
9616
25abf979
YQ
96172015-07-17 Yao Qi <yao.qi@linaro.org>
9618
9619 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
9620 debug_printf.
9621 (aarch64_handle_unaligned_watchpoint): Likewise.
9622
db1ff28b
JK
96232015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9624
9625 Revert the previous 3 commits:
9626 Move gdb_regex* to common/
9627 Move linux_find_memory_regions_full & co.
9628 gdbserver build-id attribute generator
9629
700ca40f
JK
96302015-07-15 Aleksandar Ristovski <aristovski@qnx.com
9631 Jan Kratochvil <jan.kratochvil@redhat.com>
9632
9633 gdbserver build-id attribute generator.
9634 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
9635 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
9636 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
9637 (find_phdr): New.
9638 (get_dynamic): Use find_pdhr to traverse program headers.
9639 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
9640 (compare_mapping_entry_range, struct find_memory_region_callback_data)
9641 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
9642 (get_hex_build_id): New.
9643 (linux_qxfer_libraries_svr4): Add optional build-id attribute
9644 to reply XML document.
9645
9904185c
JK
96462015-07-15 Aleksandar Ristovski <aristovski@qnx.com
9647 Jan Kratochvil <jan.kratochvil@redhat.com>
9648
9649 * target.c: Include target/target-utils.h and fcntl.h.
9650 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
9651 (target_fileio_read_stralloc): New functions.
9652
6e5b4429
JK
96532015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9654
9655 * Makefile.in (OBS): Add gdb_regex.o.
9656 (gdb_regex.o): New.
9657 * config.in: Rebuilt.
9658 * configure: Rebuilt.
9659
ddc98fbf
JK
96602015-07-15 Aleksandar Ristovski <aristovski@qnx.com
9661 Jan Kratochvil <jan.kratochvil@redhat.com>
9662
9663 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
9664 * Makefile.in (OBS): Add target-utils.o.
9665 (linux-maps.o, target-utils.o): New.
9666 * configure.srv (srv_linux_obj): Add linux-maps.o.
9667
e57bb7a0
PL
96682015-07-15 Pierre Langlois <pierre.langlois@arm.com>
9669
9670 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
9671 function, return 1.
9672 (the_low_target): Install it.
9673
586b02a9
PA
96742015-07-14 Pedro Alves <palves@redhat.com>
9675
9676 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
9677 Instead, ignore ECHILD, and throw an error for other errnos.
9678
58c1b36c
PA
96792015-07-10 Pedro Alves <palves@redhat.com>
9680
9681 * event-loop.c (struct callback_event) <data>: Change type to
9682 gdb_client_data instance instead of gdb_client_data pointer.
9683 (append_callback_event): Adjust.
9684
421530db
PL
96852015-07-10 Pierre Langlois <pierre.langlois@arm.com>
9686
9687 * linux-aarch64-low.c: Add comments for each linux_target_ops
9688 method. Remove comments already covered in target_ops and
9689 linux_target_ops definitions.
9690 (the_low_target): Add comments for each unimplemented method.
9691
c2d65f38
YQ
96922015-07-09 Yao Qi <yao.qi@linaro.org>
9693
9694 * linux-aarch64-low.c (aarch64_regmap): Remove.
9695 (aarch64_usrregs_info): Remove.
9696 (regs_info): Set field usrregs to NULL.
9697
b20a6524
MM
96982015-07-02 Markus Metzger <markus.t.metzger@intel.com>
9699
9700 * linux-low.c: Include "rsp-low.h"
9701 (linux_low_encode_pt_config, linux_low_encode_raw): New.
9702 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
9703 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
9704 (handle_btrace_enable_pt): New.
9705 (handle_btrace_general_set): Support "pt".
9706 (handle_btrace_conf_general_set): Support "pt:size".
9707
96c97461
PL
97082015-06-29 Pierre Langlois <pierre.langlois@arm.com>
9709
9710 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
9711 Z_PACKET_SW_BP.
9712
37d66942
PL
97132015-06-29 Pierre Langlois <pierre.langlois@arm.com>
9714
9715 * linux-aarch64-low.c: Remove comment about endianness.
9716 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
9717 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
9718 memcmp.
9719
dc06243f
GB
97202015-06-24 Gary Benson <gbenson@redhat.com>
9721
9722 * linux-i386-ipa.c (stdint.h): Do not include.
9723 * lynx-i386-low.c (stdint.h): Likewise.
9724 * lynx-ppc-low.c (stdint.h): Likewise.
9725 * mem-break.c (stdint.h): Likewise.
9726 * thread-db.c (stdint.h): Likewise.
9727 * tracepoint.c (stdint.h): Likewise.
9728 * win32-low.c (stdint.h): Likewise.
9729
124e13d9
SM
97302015-06-18 Simon Marchi <simon.marchi@ericsson.com>
9731
9732 * server.c (write_qxfer_response): Update call to
9733 remote_escape_output.
9734
909c2cda
JK
97352015-06-15 Aleksandar Ristovski <aristovski@qnx.com
9736 Jan Kratochvil <jan.kratochvil@redhat.com>
9737
9738 Merge multiple hex conversions.
9739 * gdbreplay.c (tohex): Rename to 'fromhex'.
9740 (logchar): Use fromhex.
9741
24c05f46
JK
97422015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9743
9744 * server.c (handle_qxfer_libraries): Set `version' attribute for
9745 <library-list>.
9746
14d2069a
GB
97472015-06-10 Gary Benson <gbenson@redhat.com>
9748
9749 * target.h (struct target_ops) <multifs_open>: New field.
9750 <multifs_unlink>: Likewise.
9751 <multifs_readlink>: Likewise.
9752 * linux-low.c (nat/linux-namespaces.h): New include.
9753 (linux_target_ops): Initialize the_target->multifs_open,
9754 the_target->multifs_unlink and the_target->multifs_readlink.
9755 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
9756 * hostio.c (hostio_fs_pid): New static variable.
9757 (hostio_handle_new_gdb_connection): New function.
9758 (handle_setfs): Likewise.
9759 (handle_open): Use the_target->multifs_open as appropriate.
9760 (handle_unlink): Use the_target->multifs_unlink as appropriate.
9761 (handle_readlink): Use the_target->multifs_readlink as
9762 appropriate.
9763 (handle_vFile): Handle vFile:setfs packets.
9764 * server.c (handle_query): Call hostio_handle_new_gdb_connection
9765 after target_handle_new_gdb_connection.
9766
4b8b5e72
GB
97672015-06-10 Gary Benson <gbenson@redhat.com>
9768
9769 * configure.ac (AC_CHECK_FUNCS): Add setns.
9770 * config.in: Regenerate.
9771 * configure: Likewise.
9772 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
9773 (linux-namespaces.o): New rule.
9774 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
9775
3ac2e371
GB
97762015-06-09 Gary Benson <gbenson@redhat.com>
9777
9778 * hostio.c (handle_open): Process mode argument with
9779 fileio_to_host_mode.
9780
ca9b78ce
YQ
97812015-06-01 Yao Qi <yao.qi@linaro.org>
9782
9783 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
9784 * linux-x86-low.c: Likewise.
9785
bfacd19d
DB
97862015-05-28 Don Breazeal <donb@codesourcery.com>
9787
9788 * linux-low.c (handle_extended_wait): Initialize
9789 thread_info.last_resume_kind for new fork children.
9790
452003ef
PA
97912015-05-15 Pedro Alves <palves@redhat.com>
9792
9793 * target.h (target_handle_new_gdb_connection): Rewrite using if
9794 wrapped in do/while.
9795
1041a03c
JB
97962015-05-14 Joel Brobecker <brobecker@adacore.com>
9797
9798 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
9799 * configure, config.in: Regenerate.
9800 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
9801 Declare typedef.
9802
c269dbdb
DB
98032015-05-12 Don Breazeal <donb@codesourcery.com>
9804
9805 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
9806 PTRACE_EVENT_VFORK_DONE.
9807 (linux_low_ptrace_options, extended_event_reported): Add vfork
9808 events.
9809 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
9810 and "vforkdone" for RSP 'T' Stop Reply Packet.
9811 * server.h (report_vfork_events): Declare
9812 global variable.
9813
3a8a0396
DB
98142015-05-12 Don Breazeal <donb@codesourcery.com>
9815
9816 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
9817 (the_low_target) <new_fork>: Initialize new member.
9818 * linux-arm-low.c (arm_new_fork): New function.
9819 (the_low_target) <new_fork>: Initialize new member.
9820 * linux-low.c (handle_extended_wait): Call new target function
9821 new_fork.
9822 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
9823 * linux-mips-low.c (mips_add_watchpoint): New function
9824 extracted from mips_insert_point.
9825 (the_low_target) <new_fork>: Initialize new member.
9826 (mips_linux_new_fork): New function.
9827 (mips_insert_point): Call mips_add_watchpoint.
9828 * linux-x86-low.c (x86_linux_new_fork): New function.
9829 (the_low_target) <new_fork>: Initialize new member.
9830
de0d863e
DB
98312015-05-12 Don Breazeal <donb@codesourcery.com>
9832
9833 * linux-low.c (handle_extended_wait): Implement return value,
9834 rename argument 'event_child' to 'event_lwp', handle
9835 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
9836 (linux_low_ptrace_options): New function.
9837 (linux_low_filter_event): Call linux_low_ptrace_options,
9838 use different argument fo linux_enable_event_reporting,
9839 use return value from handle_extended_wait.
9840 (extended_event_reported): New function.
9841 (linux_wait_1): Call extended_event_reported and set
9842 status to report fork events.
9843 (linux_write_memory): Add pid to debug message.
9844 (reset_lwp_ptrace_options_callback): New function.
9845 (linux_handle_new_gdb_connection): New function.
9846 (linux_target_ops): Initialize new structure member.
9847 * linux-low.h (struct lwp_info) <waitstatus>: New member.
9848 * lynx-low.c: Initialize new structure member.
9849 * remote-utils.c (prepare_resume_reply): Implement stop reason
9850 "fork" for "T" stop message.
9851 * server.c (handle_query): Call handle_new_gdb_connection.
9852 * server.h (report_fork_events): Declare global flag.
9853 * target.h (struct target_ops) <handle_new_gdb_connection>:
9854 New member.
9855 (target_handle_new_gdb_connection): New macro.
9856 * win32-low.c: Initialize new structure member.
9857
ddcbc397
DB
98582015-05-12 Don Breazeal <donb@codesourcery.com>
9859
9860 * mem-break.c (APPEND_TO_LIST): Define macro.
9861 (clone_agent_expr): New function.
9862 (clone_one_breakpoint): New function.
9863 (clone_all_breakpoints): New function.
9864 * mem-break.h: Declare new functions.
9865
89245bc0
DB
98662015-05-12 Don Breazeal <donb@codesourcery.com>
9867
9868 * linux-low.c (linux_supports_fork_events): New function.
9869 (linux_supports_vfork_events): New function.
9870 (linux_target_ops): Initialize new structure members.
9871 (initialize_low): Call linux_check_ptrace_features.
9872 * lynx-low.c (lynx_target_ops): Initialize new structure
9873 members.
9874 * server.c (report_fork_events, report_vfork_events):
9875 New global flags.
9876 (handle_query): Add new features to qSupported packet and
9877 response.
9878 (captured_main): Initialize new global variables.
9879 * target.h (struct target_ops) <supports_fork_events>:
9880 New member.
9881 <supports_vfork_events>: New member.
9882 (target_supports_fork_events): New macro.
9883 (target_supports_vfork_events): New macro.
9884 * win32-low.c (win32_target_ops): Initialize new structure
9885 members.
9886
835205d0
GB
98872015-05-12 Gary Benson <gbenson@redhat.com>
9888
9889 * server.c (handle_qxfer_exec_file): Use current process
9890 if annex is empty.
9891
21e94bd9
SL
98922015-05-08 Sandra Loosemore <sandra@codesourcery.com>
9893
9894 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
9895 Remove HAVE_PTRACE_GETREGS conditionals.
9896 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
9897 instead of PTRACE_GETREGS and PTRACE_SETREGS.
9898
45614f15
YQ
98992015-05-08 Yao Qi <yao.qi@linaro.org>
9900
9901 * linux-low.c (linux_supports_conditional_breakpoints): New
9902 function.
9903 (linux_target_ops): Install new target method.
9904 * lynx-low.c (lynx_target_ops): Install NULL hook for
9905 supports_conditional_breakpoints.
9906 * nto-low.c (nto_target_ops): Likewise.
9907 * spu-low.c (spu_target_ops): Likewise.
9908 * win32-low.c (win32_target_ops): Likewise.
9909 * server.c (handle_query): Check
9910 target_supports_conditional_breakpoints.
9911 * target.h (struct target_ops) <supports_conditional_breakpoints>:
9912 New field.
9913 (target_supports_conditional_breakpoints): New macro.
9914
80ad801e
PA
99152015-05-06 Pedro Alves <palves@redhat.com>
9916
9917 PR server/18081
9918 * server.c (start_inferior): If the process exits, mourn it.
9919
819843c7
GB
99202015-04-21 Gary Benson <gbenson@redhat.com>
9921
9922 * hostio.c (fileio_open_flags_to_host): Factored out to
9923 fileio_to_host_openflags in common/fileio.c. Single use
9924 updated.
9925
a2d5a9d7
MF
99262015-04-17 Max Filippov <jcmvbkbc@gmail.com>
9927
9928 * linux-xtensa-low.c (xtensa_fill_gregset)
9929 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
9930 XCHAL_HAVE_LOOP.
9931
deb44829
MF
99322015-04-17 Max Filippov <jcmvbkbc@gmail.com>
9933
9934 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
9935 (regs_info): Replace usrregs pointer with NULL.
9936
e57f1de3
GB
99372015-04-17 Gary Benson <gbenson@redhat.com>
9938
9939 * target.h (struct target_ops) <pid_to_exec_file>: New field.
9940 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
9941 * server.c (handle_qxfer_exec_file): New function.
9942 (qxfer_packets): Add exec-file entry.
9943 (handle_query): Report qXfer:exec-file:read as supported packet.
9944
62828379
RN
99452015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
9946
9947 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
9948
b88bb450
GB
99492015-04-09 Gary Benson <gbenson@redhat.com>
9950
9951 * hostio-errno.c (errno_to_fileio_error): Remove function.
9952 Update caller to use remote_fileio_to_fio_error.
9953
c8f4bfdd
YQ
99542015-04-09 Yao Qi <yao.qi@linaro.org>
9955
9956 * linux-low.c (linux_insert_point): Call
9957 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
9958 (linux_remove_point): Call remove_memory_breakpoint if type is
9959 raw_bkpt_type_sw.
9960 * linux-x86-low.c (x86_insert_point): Don't call
9961 insert_memory_breakpoint.
9962 (x86_remove_point): Don't call remove_memory_breakpoint.
9963
41f98f02
PA
99642015-04-01 Pedro Alves <palves@redhat.com>
9965 Cleber Rosa <crosa@redhat.com>
9966
9967 * server.c (gdbserver_usage): Reorganize and extend the usage
9968 message.
9969
2bf6fb9d
PA
99702015-03-24 Pedro Alves <palves@redhat.com>
9971
9972 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
9973 output. Also dump TRAP_TRACE.
9974 (linux_low_filter_event): In debug output, distinguish a
9975 resume_stop SIGSTOP from a delayed SIGSTOP.
9976
369f6daa
GB
99772015-03-24 Gary Benson <gbenson@redhat.com>
9978
9979 * linux-x86-low.c (x86_linux_new_thread): Moved to
9980 nat/x86-linux.c.
9981 (x86_linux_prepare_to_resume): Likewise.
9982
8e5d4070
GB
99832015-03-24 Gary Benson <gbenson@redhat.com>
9984
9985 * Makefile.in (x86-linux-dregs.o): New rule.
9986 * configure.srv: Add x86-linux-dregs.o to relevant targets.
9987 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
9988 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
9989 (x86_linux_dr_get): Likewise.
9990 (x86_linux_dr_set): Likewise.
9991 (update_debug_registers_callback): Likewise.
9992 (x86_linux_dr_set_addr): Likewise.
9993 (x86_linux_dr_get_addr): Likewise.
9994 (x86_linux_dr_set_control): Likewise.
9995 (x86_linux_dr_get_control): Likewise.
9996 (x86_linux_dr_get_status): Likewise.
9997 (x86_linux_update_debug_registers): Likewise.
9998
2b95d440
GB
99992015-03-24 Gary Benson <gbenson@redhat.com>
10000
10001 * linux-x86-low.c (x86_linux_update_debug_registers):
10002 New function, factored out from...
10003 (x86_linux_prepare_to_resume): ...this.
10004
14b0bc68
GB
100052015-03-24 Gary Benson <gbenson@redhat.com>
10006
10007 * linux-x86-low.c (x86_linux_dr_get): Update comments.
10008 (x86_linux_dr_set): Likewise.
10009 (update_debug_registers_callback): Likewise.
10010 (x86_linux_dr_set_addr): Likewise.
10011 (x86_linux_dr_get_addr): Likewise.
10012 (x86_linux_dr_set_control): Likewise.
10013 (x86_linux_dr_get_control): Likewise.
10014 (x86_linux_dr_get_status): Likewise.
10015 (x86_linux_prepare_to_resume): Likewise.
10016
5dfe6ca8
GB
100172015-03-24 Gary Benson <gbenson@redhat.com>
10018
10019 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
10020 Use perror_with_name. Pass string through gettext.
10021 (x86_linux_dr_set): Likewise.
10022
d33472ad
GB
100232015-03-24 Gary Benson <gbenson@redhat.com>
10024
10025 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
10026 (x86_linux_dr_set_addr): ...this.
10027 (x86_dr_low_get_addr): Rename to...
10028 (x86_linux_dr_get_addr): ...this.
10029 (x86_dr_low_set_control): Rename to...
10030 (x86_linux_dr_set_control): ...this.
10031 (x86_dr_low_get_control): Rename to...
10032 (x86_linux_dr_get_control): ...this.
10033 (x86_dr_low_get_status): Rename to...
10034 (x86_linux_dr_get_status): ...this.
10035 (x86_dr_low): Update with new function names.
10036
4b134ca1
GB
100372015-03-24 Gary Benson <gbenson@redhat.com>
10038
10039 * Makefile.in (x86-linux.o): New rule.
10040 * configure.srv: Add x86-linux.o to relevant targets.
10041 * linux-low.c (lwp_set_arch_private_info): New function.
10042 (lwp_arch_private_info): Likewise.
10043 * linux-x86-low.c: Include nat/x86-linux.h.
10044 (arch_lwp_info): Removed structure.
10045 (update_debug_registers_callback):
10046 Use lwp_set_debug_registers_changed.
10047 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
10048 and lwp_set_debug_registers_changed.
10049 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
10050
34c703da
GB
100512015-03-24 Gary Benson <gbenson@redhat.com>
10052
10053 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
10054 * linux-arm-low.c (arm_new_thread): Likewise.
10055 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
10056 * linux-mips-low.c (mips_linux_new_thread): Likewise.
10057 * linux-x86-low.c (x86_linux_new_thread): Likewise.
10058 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
10059
cff068da
GB
100602015-03-24 Gary Benson <gbenson@redhat.com>
10061
10062 * linux-low.c (ptid_of_lwp): New function.
10063 (lwp_is_stopped): Likewise.
10064 (lwp_stop_reason): Likewise.
10065 * linux-x86-low.c (update_debug_registers_callback):
10066 Use lwp_is_stopped.
10067 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
10068 lwp_stop_reason.
10069
b2f7c7e8
GB
100702015-03-24 Gary Benson <gbenson@redhat.com>
10071
10072 * linux-low.h (linux_stop_lwp): Remove declaration.
10073
6d4ee8c6
GB
100742015-03-24 Gary Benson <gbenson@redhat.com>
10075
10076 * linux-low.h: Include nat/linux-nat.h.
10077 * linux-low.c (iterate_over_lwps_args): New structure.
10078 (iterate_over_lwps_filter): New function.
10079 (iterate_over_lwps): Likewise.
10080 * linux-x86-low.c (update_debug_registers_callback):
10081 Update signature to what iterate_over_lwps expects.
10082 Remove PID check that iterate_over_lwps now performs.
10083 (x86_dr_low_set_addr): Use iterate_over_lwps.
10084 (x86_dr_low_set_control): Likewise.
10085
70a0bb6b
GB
100862015-03-24 Gary Benson <gbenson@redhat.com>
10087
10088 * linux-x86-low.c (x86_debug_reg_state): New function.
10089 (x86_linux_prepare_to_resume): Use the above.
10090
7b669087
GB
100912015-03-24 Gary Benson <gbenson@redhat.com>
10092
10093 * linux-low.c (current_lwp_ptid): New function.
10094 * linux-x86-low.c: Include nat/linux-nat.h.
10095 (x86_dr_low_get_addr): Use current_lwp_ptid.
10096 (x86_dr_low_get_control): Likewise.
10097 (x86_dr_low_get_status): Likewise.
10098
eef49a3d
PA
100992015-03-20 Pedro Alves <palves@redhat.com>
10100
10101 * tracepoint.c (cmd_qtstatus): Make "str" const.
10102
b2333d22
PA
101032015-03-20 Pedro Alves <palves@redhat.com>
10104
10105 * server.c (handle_general_set): Make "req_str" const.
10106
23f238d3
PA
101072015-03-19 Pedro Alves <palves@redhat.com>
10108
10109 * linux-low.c (linux_resume_one_lwp): Rename to ...
10110 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
10111 instead call perror_with_name.
10112 (check_ptrace_stopped_lwp_gone): New function.
10113 (linux_resume_one_lwp): Reimplement as wrapper around
10114 linux_resume_one_lwp_throw that swallows errors if the LWP is
10115 gone.
10116
91baf43f
PA
101172015-03-19 Pedro Alves <palves@redhat.com>
10118
10119 * linux-low.c (count_events_callback, select_event_lwp_callback):
10120 No longer check whether the thread has resume_stop as last resume
10121 kind.
10122
8bf3b159
PA
101232015-03-19 Pedro Alves <palves@redhat.com>
10124
10125 * linux-low.c (count_events_callback, select_event_lwp_callback):
10126 Use the lwp's status_pending_p field, not the thread's.
10127
b90fc188
PA
101282015-03-19 Pedro Alves <palves@redhat.com>
10129
10130 * linux-low.c (select_event_lwp_callback): Update comments to
10131 no longer mention SIGTRAP.
10132
464b0089
GB
101332015-03-18 Gary Benson <gbenson@redhat.com>
10134
10135 * server.c (handle_query): Do not report vFile:fstat as supported.
10136
aa9e327f
GB
101372015-03-11 Gary Benson <gbenson@redhat.com>
10138
10139 * hostio.c (sys/types.h): New include.
10140 (sys/stat.h): Likewise.
10141 (common-remote-fileio.h): Likewise.
10142 (handle_fstat): New function.
10143 (handle_vFile): Handle vFile:fstat packets.
aa9e327f 10144
791c0056
GB
101452015-03-11 Gary Benson <gbenson@redhat.com>
10146
10147 * configure.ac (AC_CHECK_MEMBERS): Add checks for
10148 struct stat.st_blocks and struct stat.st_blksize.
10149 * configure: Regenerate.
10150 * config.in: Likewise.
10151 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
10152 (OBS): Add common-remote-fileio.o.
10153 (common-remote-fileio.o): New rule.
10154
9a9df970
PA
101552015-03-09 Pedro Alves <palves@redhat.com>
10156
10157 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
10158 'struct sockaddr' pointer in 'accept' call.
10159
9eb1356e
PA
101602015-03-09 Pedro Alves <palves@redhat.com>
10161
10162 Revert:
10163 2015-03-07 Pedro Alves <palves@redhat.com>
10164 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
10165 or <winsock2.h> here. Instead include "gdb_socket.h".
10166 (remote_open): Use union gdb_sockaddr_u.
10167 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
10168 or <winsock2.h> here. Instead include "gdb_socket.h".
10169 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
10170 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
10171 or <sys/un.h>.
10172 (init_named_socket, gdb_agent_helper_thread): Use union
10173 gdb_sockaddr_u.
10174
aac331e4
PA
101752015-03-07 Pedro Alves <palves@redhat.com>
10176
10177 * configure.ac (build_warnings): Move
10178 -Wdeclaration-after-statement to the C-specific set.
10179 * configure: Regenerate.
10180
366c75fc
PA
101812015-03-07 Pedro Alves <palves@redhat.com>
10182
10183 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
10184 or <winsock2.h> here. Instead include "gdb_socket.h".
10185 (remote_open): Use union gdb_sockaddr_u.
10186 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
10187 or <winsock2.h> here. Instead include "gdb_socket.h".
10188 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
10189 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
10190 or <sys/un.h>.
10191 (init_named_socket, gdb_agent_helper_thread): Use union
10192 gdb_sockaddr_u.
10193
492d29ea
PA
101942015-03-07 Pedro Alves <palves@redhat.com>
10195
10196 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
10197 instead.
10198
60a191ed
YQ
101992015-03-06 Yao Qi <yao.qi@linaro.org>
10200
10201 * linux-aarch64-low.c (aarch64_insert_point): Use
10202 show_debug_regs as a boolean.
10203 (aarch64_remove_point): Likewise.
10204
f5771b1d
PA
102052015-03-05 Pedro Alves <palves@redhat.com>
10206
10207 * lynx-low.c (lynx_target_ops): Install NULL hooks for
10208 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
10209 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
10210 * nto-low.c (nto_target_ops): Likewise.
10211 * spu-low.c (spu_target_ops): Likewise.
10212 * win32-low.c (win32_target_ops): Likewise.
10213
3e572f71
PA
102142015-03-04 Pedro Alves <palves@redhat.com>
10215
72f4393d 10216 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
3e572f71
PA
10217 Decide whether a breakpoint triggered based on the SIGTRAP's
10218 siginfo.si_code.
72f4393d
L
10219 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
10220 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
3e572f71
PA
10221 (linux_low_filter_event): Check for breakpoints before checking
10222 watchpoints.
10223 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
10224 siginfo.si_code.
72f4393d
L
10225 (linux_stopped_by_sw_breakpoint)
10226 (linux_supports_stopped_by_sw_breakpoint)
10227 (linux_stopped_by_hw_breakpoint)
10228 (linux_supports_stopped_by_hw_breakpoint): New functions.
10229 (linux_target_ops): Install new target methods.
3e572f71 10230
1ec68e26
PA
102312015-03-04 Pedro Alves <palves@redhat.com>
10232
10233 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
10234 * server.c (swbreak_feature, hwbreak_feature): New globals.
10235 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
10236 (captured_main): Clear swbreak_feature and hwbreak_feature.
10237 * server.h (swbreak_feature, hwbreak_feature): Declare.
10238 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
10239 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
10240 supports_stopped_by_hw_breakpoint>: New fields.
10241 (target_supports_stopped_by_sw_breakpoint)
10242 (target_stopped_by_sw_breakpoint)
10243 (target_supports_stopped_by_hw_breakpoint)
10244 (target_stopped_by_hw_breakpoint): Declare.
10245
15c66dd6
PA
102462015-03-04 Pedro Alves <palves@redhat.com>
10247
10248 enum lwp_stop_reason -> enum target_stop_reason
10249 * linux-low.c (check_stopped_by_breakpoint): Adjust.
10250 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
10251 (linux_wait_1, stuck_in_jump_pad_callback)
10252 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
10253 (linux_stopped_by_watchpoint):
10254 * linux-low.h (enum lwp_stop_reason): Delete.
10255 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
10256 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
10257
98fc70d6
YQ
102582015-03-04 Yao Qi <yao.qi@linaro.org>
10259
10260 * Makefile.in (SFILES): Add linux-aarch64-low.c.
10261
dd2ac174
GB
102622015-03-03 Gary Benson <gbenson@redhat.com>
10263
10264 * hostio.c (handle_vFile): Fix prefix lengths.
10265
d68e53f4
MM
102662015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10267
10268 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
10269 ptr_bits.
10270
bf2d68ab
AA
102712015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
10272
10273 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
10274 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
10275 (clean): Add "rm -f" for above C files.
10276 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
10277 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
10278 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
10279 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
10280 * linux-s390-low.c (HWCAP_S390_VX): New macro.
10281 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
10282 (init_registers_s390x_vx_linux64)
10283 (init_registers_s390x_tevx_linux64)
10284 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
10285 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
10286 declarations.
10287 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
10288 (s390_store_vxrs_high): New functions.
10289 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
10290 NT_S390_VXRS_HIGH.
10291 (s390_arch_setup): Add logic for selecting one of the new target
10292 descriptions. Activate the new vector regsets if applicable.
10293 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
10294 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
10295 and init_registers_s390x_tevx_linux64.
10296
c966a859
PA
102972015-03-01 Pedro Alves <palves@redhat.com>
10298
10299 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
10300 parameter.
10301
4180215b
PA
103022015-02-27 Pedro Alves <palves@redhat.com>
10303
10304 * linux-x86-low.c (u_debugreg_offset): New function.
10305 (x86_linux_dr_get, x86_linux_dr_set): Use it.
10306
749bab01
PA
103072015-02-27 Pedro Alves <palves@redhat.com>
10308
10309 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
10310 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
10311 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
10312 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
10313 (ps_lsetfpregs, ps_getpid)
10314 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
10315 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
10316 (ps_lsetxregs, ps_plog): Declare.
10317
3c14e5a3
PA
103182015-02-27 Pedro Alves <palves@redhat.com>
10319
10320 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
10321 IP_AGENT_EXPORT_FUNC.
10322 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
10323 IP_AGENT_EXPORT_FUNC.
10324 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
10325 (IP_AGENT_EXPORT): Delete.
10326 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
10327 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
10328 (gdb_trampoline_buffer_error, collecting, gdb_collect)
10329 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
10330 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
10331 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
10332 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
10333 (traceframe_read_count, traceframe_write_count)
10334 (traceframes_created, trace_state_variables, get_raw_reg)
10335 (get_trace_state_variable_value, set_trace_state_variable_value)
10336 (ust_loaded, helper_thread_id, cmd_buf): Use
10337 IPA_SYM_EXPORTED_NAME.
10338 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
10339 (tracepoints) Use IP_AGENT_EXPORT_VAR.
10340 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
10341 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
10342 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
10343 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
10344 EXTERN_C_PUSH/EXTERN_C_POP.
10345 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
10346 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
10347 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
10348 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
10349 (traceframe_write_count, traceframe_read_count)
10350 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
10351 (about_to_request_buffer_space, get_trace_state_variable_value)
10352 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
10353 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
10354 EXTERN_C_PUSH/EXTERN_C_POP.
10355 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
10356 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
10357 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
10358 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
10359 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
10360 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
10361 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
10362 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
10363 Define.
10364 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
10365 (IP_AGENT_EXPORT_VAR_DECL): Define.
10366 (tracing): Declare.
10367 (gdb_agent_get_raw_reg): Declare.
10368
fe978cb0
PA
103692015-02-27 Tom Tromey <tromey@redhat.com>
10370 Pedro Alves <palves@redhat.com>
10371
10372 Rename symbols whose names are reserved C++ keywords throughout.
10373
3bc3d82a
PA
103742015-02-27 Pedro Alves <palves@redhat.com>
10375
10376 * Makefile.in (COMPILER): New, get it from autoconf.
10377 (CXX): Get from autoconf instead.
10378 (COMPILE.pre): Use COMPILER.
10379 (CC-LD): Rename to ...
10380 (CC_LD): ... this. Use COMPILER.
10381 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
10382 (CXX_FOR_TARGET): Default to g++ instead of gcc.
10383 * acinclude.m4: Include build-with-cxx.m4.
10384 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
10385 Disable -Werror by default if building in C++ mode.
10386 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
10387 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
10388 the C++ compiler. Save/restore CXXFLAGS too.
10389 * configure: Regenerate.
10390
07697489
PA
103912015-02-27 Pedro Alves <palves@redhat.com>
10392
10393 * acinclude.m4: Include libiberty.m4.
10394 * configure.ac: Call libiberty_INIT.
10395 * config.in, configure: Regenerate.
10396
9beb7c4e
PA
103972015-02-26 Pedro Alves <palves@redhat.com>
10398
10399 * linux-low.c (linux_wait_1): When incrementing the PC past a
10400 program breakpoint always use the_low_target.breakpoint_len as
10401 increment, rather than the maximum between that and
10402 the_low_target.decr_pc_after_break.
10403
8090aef2
PA
104042015-02-23 Pedro Alves <palves@redhat.com>
10405
10406 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
10407 thread was doing a step-over; always adjust the PC if
10408 we stepped over a permanent breakpoint.
10409 (linux_wait_1): If we stepped over breakpoint that was on top of a
10410 permanent breakpoint, manually advance the PC past it.
10411
bc9540e8
PA
104122015-02-23 Pedro Alves <palves@redhat.com>
10413
10414 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
10415 modes.
10416 (x86_fill_gregset, x86_store_gregset): Use it when handling
10417 $orig_eax.
10418
2db9a427
PA
104192015-02-20 Pedro Alves <palves@redhat.com>
10420
10421 * thread-db.c: Include "nat/linux-procfs.h".
10422 (thread_db_init): Skip listing new threads if the kernel supports
10423 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
10424
afa8d396
PA
104252015-02-20 Pedro Alves <palves@redhat.com>
10426
10427 * linux-low.c (status_pending_p_callback): Use ptid_match.
10428
c9587f88
AT
104292015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
10430
10431 PR breakpoints/16812
10432 * linux-low.c (wstatus_maybe_breakpoint): Remove.
10433 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
10434 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
10435
b05ec7a5
AT
104362015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
10437
10438 PR breakpoints/15956
10439 * tracepoint.c (cmd_qtinit): Add check for current_thread.
10440
d33501a5
MM
104412015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10442
10443 * linux-low.c (linux_low_btrace_conf): Print size.
10444 * server.c (handle_btrace_conf_general_set): New.
10445 (hanle_general_set): Call handle_btrace_conf_general_set.
10446 (handle_query): Report Qbtrace-conf:bts:size as supported.
10447
f4abbc16
MM
104482015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10449
10450 * linux-low.c (linux_low_enable_btrace): Update parameters.
10451 (linux_low_btrace_conf): New.
10452 (linux_target_ops)<to_btrace_conf>: Initialize.
10453 * server.c (current_btrace_conf): New.
10454 (handle_btrace_enable): Rename to ...
10455 (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
10456 to target_enable_btrace. Update comment. Update users.
10457 (handle_qxfer_btrace_conf): New.
10458 (qxfer_packets): Add btrace-conf entry.
10459 (handle_query): Report qXfer:btrace-conf:read as supported packet.
10460 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
10461 (target_ops)<read_btrace_conf>: New.
10462 (target_enable_btrace): Update parameters.
10463 (target_read_btrace_conf): New.
10464
043c3577
MM
104652015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10466
10467 * server.c (handle_btrace_general_set): Remove call to
10468 target_supports_btrace.
10469 (supported_btrace_packets): New.
10470 (handle_query): Call supported_btrace_packets.
10471 * target.h: include btrace-common.h.
10472 (btrace_target_info): Removed.
10473 (supports_btrace, target_supports_btrace): Update parameters.
10474
734b0e4b
MM
104752015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10476
10477 * Makefile.in (SFILES): Add common/btrace-common.c.
10478 (OBS): Add common/btrace-common.o.
10479 (btrace-common.o): Add build rules.
10480 * linux-low: Include btrace-common.h.
10481 (linux_low_read_btrace): Use struct btrace_data. Call
10482 btrace_data_init and btrace_data_fini.
10483
d6c146e9
PA
104842015-02-06 Pedro Alves <palves@redhat.com>
10485
10486 * thread-db.c (find_new_threads_callback): Add debug output.
10487
20ba1ce6
PA
104882015-02-04 Pedro Alves <palves@redhat.com>
10489
10490 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
10491 (resume_stopped_resumed_lwps): New function.
10492 (linux_wait_for_event_filtered): Use it.
10493
8cc73a39
SDJ
104942015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
10495
10496 * Makefile.in (SFILES): Add linux-personality.c.
10497 (linux-personality.o): New rule.
10498 * configure.srv (srv_linux_obj): Add linux-personality.o to the
10499 list of objects to be built.
10500 * linux-low.c: Include nat/linux-personality.h.
10501 (linux_create_inferior): Remove code to disable address space
10502 randomization (moved to ../nat/linux-personality.c). Create
10503 cleanup to disable address space randomization.
10504
fb23d554
SDJ
105052015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
10506
10507 * Makefile.in (posix-strerror.o): New rule.
10508 (mingw-strerror.o): Likewise.
10509 * configure: Regenerated.
10510 * configure.ac: Source file ../common/common.host. Initialize new
10511 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
10512
cdf43629
YQ
105132015-01-14 Yao Qi <yao@codesourcery.com>
10514
10515 * Makefile.in (SFILES): Add nat/ppc-linux.c.
10516 (ppc-linux.o): New rule.
10517 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
10518 * configure.ac: AC_CHECK_FUNCS(getauxval).
10519 * config.in: Re-generated.
10520 * configure: Re-generated.
10521 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
10522 ppc64_64bit_inferior_p
10523
514c5338
YQ
105242015-01-14 Yao Qi <yao@codesourcery.com>
10525
10526 * linux-ppc-low.c: Include "nat/ppc-linux.h".
10527 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
10528 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
10529 (PT_ORIG_R3, PT_TRAP): Likewise.
10530 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
10531 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
10532 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
10533
3368c1e5
JB
105342015-01-10 Joel Brobecker <brobecker@adacore.com>
10535
10536 * i387-fp.c (i387_cache_to_xsave): In look over
10537 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
10538 zmmh_low_space field by use of zmmh_high_space.
10539
582511be
PA
105402015-01-09 Pedro Alves <palves@redhat.com>
10541
10542 * linux-low.c (step_over_bkpt): Move higher up in the file.
10543 (handle_extended_wait): Don't store the stop_pc here.
10544 (get_stop_pc): Adjust comments and rename to ...
10545 (check_stopped_by_breakpoint): ... this. Record whether the LWP
10546 stopped for a software breakpoint or hardware breakpoint.
10547 (thread_still_has_status_pending_p): New function.
10548 (status_pending_p_callback): Use
10549 thread_still_has_status_pending_p. If the event is no longer
10550 interesting, resume the LWP.
10551 (handle_tracepoints): Add assert.
10552 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
10553 (wstatus_maybe_breakpoint): New function.
10554 (cancel_breakpoint): Delete function.
10555 (check_stopped_by_watchpoint): New function, factored out from
10556 linux_low_filter_event.
10557 (lp_status_maybe_breakpoint): Delete function.
10558 (linux_low_filter_event): Remove filter_ptid argument.
10559 Leave thread group exits pending here. Store the LWP's stop PC.
10560 Always leave events pending.
10561 (linux_wait_for_event_filtered): Pull all events out of the
10562 kernel, and leave them all pending.
10563 (count_events_callback, select_event_lwp_callback): Consider all
10564 events.
10565 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
10566 (select_event_lwp): Only give preference to the stepping LWP in
10567 all-stop mode. Adjust comments.
10568 (ignore_event): New function.
10569 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
10570 references to cancel_breakpoints. Adjust to renames. Also give
10571 equal priority to all LWPs that have had events in non-stop mode.
10572 If reporting a software breakpoint event, unadjust the LWP's PC.
10573 (linux_wait): If linux_wait_1 returned an ignored event, retry.
10574 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
10575 Adjust.
10576 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
10577 (resume_status_pending_p): Use thread_still_has_status_pending_p.
10578 (linux_stopped_by_watchpoint): Adjust.
10579 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
10580 * linux-low.h (enum lwp_stop_reason): New.
10581 (struct lwp_info) <stop_pc>: Adjust comment.
10582 <stopped_by_watchpoint>: Delete field.
10583 <stop_reason>: New field.
10584 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
10585 * mem-break.c (software_breakpoint_inserted_here)
10586 (hardware_breakpoint_inserted_here): New function.
10587 * mem-break.h (software_breakpoint_inserted_here)
10588 (hardware_breakpoint_inserted_here): Declare.
10589 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
10590 (cancel_breakpoints): Delete.
10591 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
10592 (upload_fast_traceframes): Remove references to
10593 cancel_breakpoints.
10594
a33e3959
PA
105952015-01-09 Pedro Alves <palves@redhat.com>
10596
10597 * thread-db.c (find_new_threads_callback): Ignore thread if the
10598 kernel thread ID is -1.
10599
8784d563
PA
106002015-01-09 Pedro Alves <palves@redhat.com>
10601
10602 * linux-low.c (linux_attach_fail_reason_string): Move to
10603 nat/linux-ptrace.c, and rename.
10604 (linux_attach_lwp): Update comment.
10605 (attach_proc_task_lwp_callback): New function.
10606 (linux_attach): Adjust to rename and use
10607 linux_proc_attach_tgid_threads.
10608 (linux_attach_fail_reason_string): Delete declaration.
10609
76f2b779
JB
106102015-01-01 Joel Brobecker <brobecker@adacore.com>
10611
10612 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
10613 * server.c (gdbserver_version): Likewise.
10614
fafcc06a
SDJ
106152014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
10616
10617 * remote-utils.c: Include ctype.h.
10618 (input_interrupt): Explicitly handle the case when the char
10619 received is the NUL byte. Improve the printing of non-ASCII
10620 characters.
10621
beed38b8
JB
106222014-12-16 Joel Brobecker <brobecker@adacore.com>
10623
10624 * linux-low.c (linux_low_filter_event): Update call to
10625 linux_enable_event_reporting following the addition of
10626 a new parameter to that function.
10627
bf330350
CU
106282014-12-16 Catalin Udma <catalin.udma@freescale.com>
10629
10630 PR server/17457
10631 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
10632 (AARCH64_FPCR_REGNO): Likewise.
10633 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
10634 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
10635 (aarch64_store_fpregset): Likewise.
10636
5227d625
JB
106372014-12-15 Joel Brobecker <brobecker@adacore.com>
10638
10639 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
10640 Remove FIXME comment about assumption about N.
10641
f93b65a0
JB
106422014-12-13 Joel Brobecker <brobecker@adacore.com>
10643
10644 * configure.ac: If large-file support is disabled in GDBserver,
10645 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
10646 * configure: Regenerate.
10647
e5a9158d
AA
106482014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
10649
10650 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
10651 warning upon ENODATA from ptrace.
10652 * linux-s390-low.c (s390_store_tdb): New.
10653 (s390_regsets): Add regset for NT_S390_TDB.
10654
feea5f36
AA
106552014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
10656
10657 * linux-low.c (regsets_store_inferior_registers): Skip regsets
10658 without a fill_function.
10659 * linux-s390-low.c (s390_fill_last_break): Remove.
10660 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
10661 (s390_arch_setup): Use regset's size instead of fill_function for
10662 loop end condition.
10663
098dbe61
AA
106642014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
10665
10666 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
10667 the regset's store function when ptrace returned an error.
10668 * regcache.c (get_thread_regcache): Invalidate register cache
10669 before fetching inferior's registers.
10670
28eef672
AA
106712014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
10672
10673 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
10674 while-loop as for-loop.
10675 (regsets_store_inferior_registers): Likewise.
10676
bdca27a2
YQ
106772014-11-28 Yao Qi <yao@codesourcery.com>
10678
10679 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
10680 * config.in, configure: Re-generate.
10681 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
10682 is defined.
10683
9c232dda
YQ
106842014-11-21 Yao Qi <yao@codesourcery.com>
10685
10686 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
10687 (AC_CHECK_HEADERS): Remove malloc.h.
10688 * configure: Re-generated.
10689 * config.in: Re-generated.
10690 * server.h: Don't include alloca.h and malloc.h.
10691 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
10692 Don't include malloc.h.
10693
43968415
JB
106942014-11-17 Joel Brobecker <brobecker@adacore.com>
10695
10696 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
10697 corresponding ERRNO check in same block.
10698
40e91bc7
PA
106992014-11-12 Pedro Alves <palves@redhat.com>
10700
10701 * server.c (cont_thread): Update comment.
10702 (start_inferior, attach_inferior): No longer clear cont_thread.
10703 (handle_v_cont): No longer set cont_thread.
10704 (captured_main): Clear cont_thread each time a GDB connects.
10705
c2c118cf
PA
107062014-11-12 Pedro Alves <palves@redhat.com>
10707
10708 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
10709 thread, and don't resume all threads if the Hc thread has exited.
10710
78708b7c
PA
107112014-11-12 Pedro Alves <palves@redhat.com>
10712
10713 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
10714 the process group instead of to a specific LWP.
10715
a2abc7de
PA
107162014-10-15 Pedro Alves <palves@redhat.com>
10717
10718 PR server/17487
10719 * win32-arm-low.c (arm_set_thread_context): Remove current_event
10720 parameter.
10721 (arm_set_thread_context): Delete.
10722 (the_low_target): Adjust.
10723 * win32-i386-low.c (debug_registers_changed)
10724 (debug_registers_used): Delete.
10725 (update_debug_registers_callback): New function.
10726 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
10727 needing to update their debug registers.
10728 (win32_get_current_dr): New function.
10729 (x86_dr_low_get_addr, x86_dr_low_get_control)
10730 (x86_dr_low_get_status): Fetch the debug register from the thread
10731 record's context.
10732 (i386_initial_stuff): Adjust.
10733 (i386_get_thread_context): Remove current_event parameter. Don't
10734 clear debug_registers_changed nor copy DR values to
10735 debug_reg_state.
10736 (i386_set_thread_context): Delete.
10737 (i386_prepare_to_resume): New function.
10738 (i386_thread_added): Mark the thread as needing to update irs
10739 debug registers.
10740 (the_low_target): Remove i386_set_thread_context and install
10741 i386_prepare_to_resume.
10742 * win32-low.c (win32_get_thread_context): Adjust.
10743 (win32_set_thread_context): Use SetThreadContext
10744 directly.
10745 (win32_prepare_to_resume): New function.
10746 (win32_require_context): New function, factored out from ...
10747 (thread_rec): ... this.
10748 (continue_one_thread): Call win32_prepare_to_resume on each thread
10749 we're about to continue.
10750 (win32_resume): Call win32_prepare_to_resume on the event thread.
10751 * win32-low.h (struct win32_thread_info)
10752 <debug_registers_changed>: New field.
10753 (struct win32_target_ops): Change prototype of set_thread_context,
10754 delete set_thread_context and add prepare_to_resume.
10755 (win32_require_context): New declaration.
10756
a442d071
GB
107572014-10-08 Gary Benson <gbenson@redhat.com>
10758
10759 * server.h: Do not include common-exceptions.h.
10760
6f1947e8
GB
107612014-10-08 Gary Benson <gbenson@redhat.com>
10762
10763 * server.h: Do not include cleanups.h.
10764
63b434a4
JH
107652014-09-30 James Hogan <james.hogan@imgtec.com>
10766
10767 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
10768 mips64-dsp-linux.c.
10769
c4d9ceb6
YQ
107702014-09-23 Yao Qi <yao@codesourcery.com>
10771
10772 * linux-low.c (lp_status_maybe_breakpoint): New function.
10773 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
10774 (count_events_callback): Likewise.
10775 (select_event_lwp_callback): Likewise.
10776 (cancel_breakpoints_callback): Likewise.
10777
89a5711c
DB
107782014-09-19 Don Breazeal <donb@codesourcery.com>
10779
10780 * linux-low.c (handle_extended_wait): Call
10781 linux_ptrace_get_extended_event.
10782 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
10783 linux_is_extended_waitstatus.
10784
bffc0964
JB
107852014-09-16 Joel Brobecker <brobecker@adacore.com>
10786
10787 * Makefile.in (CPPFLAGS): Define.
10788 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
10789 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
10790
0bfdf32f
GB
107912014-09-16 Gary Benson <gbenson@redhat.com>
10792
10793 * inferiors.h (current_inferior): Renamed as...
10794 (current_thread): New variable. All uses updated.
10795 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
10796 (maybe_move_out_of_jump_pad): Likewise.
10797 (cancel_breakpoint): Likewise.
10798 (linux_low_filter_event): Likewise.
10799 (wait_for_sigstop): Likewise.
10800 (linux_resume_one_lwp): Likewise.
10801 (need_step_over_p): Likewise.
10802 (start_step_over): Likewise.
10803 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
10804 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
10805 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
10806 and save_inferior as saved_thread.
10807 * regcache.c (get_thread_regcache): Renamed saved_inferior as
10808 saved_thread.
10809 (regcache_invalidate_thread): Likewise.
10810 * remote-utils.c (prepare_resume_reply): Likewise.
10811 * thread-db.c (thread_db_get_tls_address): Likewise.
10812 (disable_thread_event_reporting): Likewise.
10813 (remove_thread_event_breakpoints): Likewise.
10814 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
10815 as saved_thread.
10816 * target.h (set_desired_inferior): Renamed as...
10817 (set_desired_thread): New declaration. All uses updated.
10818 * server.c (myresume): Updated comment to reference thread instead
10819 of inferior.
10820 (handle_serial_event): Likewise.
10821 (handle_target_event): Likewise.
10822
361c8ade
GB
108232014-09-12 Tom Tromey <tromey@redhat.com>
10824 Gary Benson <gbenson@redhat.com>
10825
10826 * regcache.h: Include common-regcache.h.
10827 (regcache_read_pc): Don't declare.
10828 * regcache.c (get_thread_regcache_for_ptid): New function.
10829
bd9269f7
GB
108302014-09-11 Tom Tromey <tromey@redhat.com>
10831 Gary Benson <gbenson@redhat.com>
10832
10833 * symbol.c: New file.
10834 * Makefile.in (SFILES): Add symbol.c.
10835 (OBS): Add symbol.o.
10836
f8c1d06b
GB
108372014-09-11 Gary Benson <gbenson@redhat.com>
10838
10839 * target.c (target_stop_ptid, target_continue_ptid): New
10840 functions.
10841
721ec300
GB
108422014-09-11 Tom Tromey <tromey@redhat.com>
10843 Gary Benson <gbenson@redhat.com>
10844
10845 * target.h: Include target/target.h.
10846 * target.c (target_read_memory, target_read_uint32)
10847 (target_write_memory): New functions.
10848
c5e92cca
GB
108492014-09-11 Gary Benson <gbenson@redhat.com>
10850
10851 * server.h (debug_hw_points): Don't declare.
10852 * server.c (debug_hw_points): Don't define. Replace all uses
10853 with show_debug_regs.
10854 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
10855 all uses with show_debug_regs.
10856
2e4bb98a
EBM
108572014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
10858
10859 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
10860 endianness into account.
10861 (ppc_supply_ptrace_register): Likewise.
10862
ac740bc7
JH
108632014-09-03 James Hogan <james.hogan@imgtec.com>
10864
10865 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
10866 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
10867
97ea6506
GB
108682014-09-03 Gary Benson <gbenson@redhat.com>
10869
10870 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
10871 ALL_DEBUG_ADDRESS_REGISTERS.
10872
df7e5265
GB
108732014-09-02 Gary Benson <gbenson@redhat.com>
10874
10875 * i386-low.h: Renamed as...
10876 * x86-low.h: New file. All type, function and variable name
10877 prefixes changed from "i386_" to "x86_". All references updated.
10878 * i386-low.c: Renamed as...
10879 * x86-low.c: New file. All type, function and variable name
10880 prefixes changed from "i386_" to "x86_". All references updated.
10881
ed859da7
GB
108822014-09-02 Gary Benson <gbenson@redhat.com>
10883
10884 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
10885 (x86_linux_new_thread): Likewise.
10886
860789c7
GB
108872014-08-29 Gary Benson <gbenson@redhat.com>
10888
10889 * server.h (setjmp.h): Do not include.
10890 (toplevel): Do not declare.
10891 (common-exceptions.h): Include.
10892 (cleanups.h): Likewise.
10893 * server.c (toplevel): Do not define.
10894 (exit_code): New static global.
10895 (detach_or_kill_for_exit_cleanup): New function.
10896 (main): New function. Original main renamed to...
10897 (captured_main): New function.
10898 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
10899
ff55e1b5
GB
109002014-08-29 Gary Benson <gbenson@redhat.com>
10901
10902 * Makefile.in (SFILES): Add common/common-exceptions.c.
10903 (OBS): Add common-exceptions.o.
10904 (common-exceptions.o): New rule.
10905 * utils.c (prepare_to_throw_exception): New function.
10906
e9bcb658
GB
109072014-08-29 Gary Benson <gbenson@redhat.com>
10908
10909 * config.in: Regenerate.
10910 * configure: Likewise.
10911
e3180625
GB
109122014-08-29 Gary Benson <gbenson@redhat.com>
10913
10914 * Makefile.in (SFILES): Add common/cleanups.c.
10915 (OBS): cleanups.o.
10916 (cleanups.o): New rule.
10917
e3d6ba5d
GB
109182014-08-29 Gary Benson <gbenson@redhat.com>
10919
10920 * utils.c (internal_vwarning): New function.
10921
7096e886
GB
109222014-08-28 Gary Benson <gbenson@redhat.com>
10923
10924 * utils.h (fatal): Remove declaration.
10925 * utils.c (fatal): Remove function.
10926
14ce3192
GB
109272014-08-28 Gary Benson <gbenson@redhat.com>
10928
10929 * tracepoint.c (gdb_agent_init): Replace fatal with
10930 perror_with_name.
10931 (initialize_tracepoint): Likewise.
10932
50278d59
GB
109332014-08-28 Gary Benson <gbenson@redhat.com>
10934
10935 * remote-utils.c (remote_prepare): Replace fatal with error.
10936
aa96c426
GB
109372014-08-28 Gary Benson <gbenson@redhat.com>
10938
10939 * linux-low.c (linux_async): Replace fatal with warning.
10940 Tidy up and return.
10941 (linux_start_non_stop): Return -1 if linux_async failed.
10942
f7160e97
GB
109432014-08-28 Gary Benson <gbenson@redhat.com>
10944
10945 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
10946 gdb_assert.
10947 (i386_dr_low_get_addr): Remove vague comment.
10948 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
10949 gdb_assert.
10950
38e08fca
GB
109512014-08-28 Gary Benson <gbenson@redhat.com>
10952
10953 * inferiors.c (get_thread_process): Replace check with gdb_assert.
10954 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
10955 internal_error.
10956 (linux_resume_one_lwp): Likewise.
10957 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
10958 gdb_assert.
10959 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
10960 with internal_error.
10961 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
10962 (init_register_cache): Replace fatal with gdb_assert_not_reached.
10963 (find_register_by_name): Replace fatal with internal_error.
10964 (find_regno): Likewise.
10965 * tdesc.c (init_target_desc): Replace check with gdb_assert.
10966 * thread-db.c (thread_db_create_event): Likewise.
10967 (thread_db_load_search): Likewise.
10968 (try_thread_db_load_1): Likewise.
10969 * tracepoint.c (get_jump_space_head): Replace fatal with
10970 internal_error.
10971 (claim_trampoline_space): Likewise.
10972 (have_fast_tracepoint_trampoline_buffer): Likewise.
10973 (cmd_qtstart): Likewise.
10974 (stop_tracing): Likewise.
10975 (fast_tracepoint_collecting): Likewise.
10976 (target_malloc): Likewise.
10977 (download_tracepoint): Likewise.
10978 (download_trace_state_variables): Replace check with gdb_assert.
10979 (upload_fast_traceframes): Replace fatal with internal_error.
10980
34abf635
GB
109812014-08-19 Tom Tromey <tromey@redhat.com>
10982 Gary Benson <gbenson@redhat.com>
10983
10984 * Makefile.in (SFILES): Add common/common-debug.c.
10985 (OBS): Add common-debug.o.
10986 (common-debug.o): New rule.
10987 * debug.h (debug_printf): Don't declare.
10988 * debug.c (debug_printf): Renamed and rewritten as...
10989 (debug_vprintf): New function.
10990
f6e94d78
GB
109912014-08-19 Gary Benson <gbenson@redhat.com>
10992
10993 * utils.h: Do not include print-utils.h.
10994
9239eeab
GB
109952014-08-19 Tom Tromey <tromey@redhat.com>
10996 Gary Benson <gbenson@redhat.com>
10997
10998 * server.h: Add static assertion.
10999 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
11000
ef87c8bb
GB
110012014-08-19 Tom Tromey <tromey@redhat.com>
11002 Gary Benson <gbenson@redhat.com>
11003
11004 * Makefile.in (SFILES): Add common/errors.c.
11005 (OBS): Add errors.o.
11006 (IPA_OBS): Add errors-ipa.o.
11007 (errors.o): New rule.
11008 (errors-ipa.o): Likewise.
11009 * utils.h (perror_with_name, error, warning): Don't declare.
11010 * utils.c (warning): Renamed and rewritten as...
11011 (vwarning): New function.
11012 (error): Renamed and rewritten as...
11013 (verror): New function.
11014 (internal_error): Renamed and rewritten as...
11015 (internal_verror): New function.
11016
bb974a24
GB
110172014-08-07 Gary Benson <gbenson@redhat.com>
11018
11019 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
11020 * configure: Regenerate.
11021 * config.in: Likewise.
11022 * server.h: Do not include errno.h.
11023 * event-loop.c: Likewise.
11024 * hostio-errno.c: Likewise.
11025 * linux-low.c: Likewise.
11026 * remote-utils.c: Likewise.
11027 * spu-low.c: Likewise.
11028 * utils.c: Likewise.
11029 * gdbreplay.c: Unconditionally include errno.h.
11030
6d3d12eb
GB
110312014-08-07 Gary Benson <gbenson@redhat.com>
11032
11033 * server.h: Do not include string.h.
11034 * event-loop.c: Likewise.
11035 * linux-low.c: Likewise.
11036 * regcache.c: Likewise.
11037 * remote-utils.c: Likewise.
11038 * spu-low.c: Likewise.
11039 * utils.c: Likewise.
11040
dccbb609
GB
110412014-08-07 Gary Benson <gbenson@redhat.com>
11042
11043 * server.h: Do not include gdb_assert.h.
11044
e76df0d0
GB
110452014-08-07 Gary Benson <gbenson@redhat.com>
11046
11047 * server.h: Do not include common-utils.h.
11048
4cb9c816
GB
110492014-08-07 Gary Benson <gbenson@redhat.com>
11050
11051 * server.h: Do not include ptid.h.
11052 * notif.h: Likewise.
11053
3995eeee
GB
110542014-08-07 Gary Benson <gbenson@redhat.com>
11055
11056 * server.h: Do not include gdb_locale.h.
11057
cb9f1a9b
GB
110582014-08-07 Gary Benson <gbenson@redhat.com>
11059
11060 * server.h: Do not include gdb/signals.h.
11061 * win32-low.c: Likewise.
11062
a5fceff8
GB
110632014-08-07 Gary Benson <gbenson@redhat.com>
11064
11065 * server.h: Do not include pathmax.h.
11066
b9391142
GB
110672014-08-07 Gary Benson <gbenson@redhat.com>
11068
11069 * server.h: Do not include libiberty.h.
11070 * linux-bfin-low.c: Likewise.
11071
0e443c87
GB
110722014-08-07 Gary Benson <gbenson@redhat.com>
11073
11074 * server.h: Do not include ansidecl.h.
11075
8ebb3f56
GB
110762014-08-07 Gary Benson <gbenson@redhat.com>
11077
11078 * linux-x86-low.c: Do not include stddef.h.
11079 * lynx-ppc-low.c: Likewise.
11080 * tracepoint.c: Likewise.
11081
8980bdf6
GB
110822014-08-07 Gary Benson <gbenson@redhat.com>
11083
11084 * server.h: Do not include stdarg.h.
11085 * nto-low.c: Likewise.
11086
d7096f71
GB
110872014-08-07 Gary Benson <gbenson@redhat.com>
11088
11089 * server.h: Do not include stdlib.h.
11090 * inferiors.c: Likewise.
11091 * linux-low.c: Likewise.
11092 * regcache.c: Likewise.
11093 * spu-low.c: Likewise.
11094 * tracepoint.c: Likewise.
11095 * utils.c: Likewise.
11096
d02f550d
GB
110972014-08-07 Gary Benson <gbenson@redhat.com>
11098
11099 * server.h: Do not include stdio.h.
11100 * linux-low.c: Likewise.
11101 * remote-utils.c: Likewise.
11102 * spu-low.c: Likewise.
11103 * utils.c: Likewise.
11104 * wincecompat.c: Likewise.
11105
87f6c4e3
GB
111062014-08-06 Gary Benson <gbenson@redhat.com>
11107
11108 * regcache.c (init_register_cache): Move conditionals inside if.
11109
7089dca4
GB
111102014-08-06 Gary Benson <gbenson@redhat.com>
11111
11112 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
11113
462f517e
GB
111142014-07-31 Gary Benson <gbenson@redhat.com>
11115
11116 * ax.h: Do not include server.h.
11117 * gdbthread.h: Likewise.
11118 * lynx-low.h: Likewise.
11119 * notif.h: Likewise.
11120
976411d6
GB
111212014-07-30 Gary Benson <gbenson@redhat.com>
11122
11123 * server.h: Include common-defs.h.
11124 Do not include config.h or build-gnulib-gdbserver/config.h.
11125
d41f6d8e
GB
111262014-07-30 Gary Benson <gbenson@redhat.com>
11127
11128 * hostio-errno.c: Move server.h to top of includes list.
11129 * inferiors.c: Likewise.
11130 * linux-x86-low.c: Likewise.
11131 * notif.c: Include server.h.
11132
314c6a35
TT
111332014-07-24 Tom Tromey <tromey@redhat.com>
11134 Gary Benson <gbenson@redhat.com>
11135
11136 * server.h (CORE_ADDR): Now unsigned.
11137
69ff6be5
PA
111382014-07-16 Pedro Alves <palves@redhat.com>
11139
11140 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
11141
ce9e3fe7
PA
111422014-07-15 Pedro Alves <palves@redhat.com>
11143
11144 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
11145 copy.
11146
e76126e8
PA
111472014-07-11 Pedro Alves <palves@redhat.com>
11148
11149 * linux-low.c (kill_wait_lwp): New function, based on
11150 kill_one_lwp_callback, but use my_waitpid directly.
11151 (kill_one_lwp_callback, linux_kill): Use it.
11152
8e9db26e
PA
111532014-06-23 Pedro Alves <palves@redhat.com>
11154
11155 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
11156 before setting DR0..DR3.
11157
698b3e08
GB
111582014-06-20 Gary Benson <gbenson@redhat.com>
11159
11160 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
11161 * configure: Regenerated.
11162 * config.in: Likewise.
11163
125f8a3d
GB
111642014-06-20 Gary Benson <gbenson@redhat.com>
11165
11166 * Makefile.in (SFILES): Update locations for files moved
11167 from common to nat.
11168 (object file files): Reordered.
11169
42995dbd
GB
111702014-06-20 Gary Benson <gbenson@redhat.com>
11171
11172 * i386-low.h (i386_dr_low_can_set_addr): Removed.
11173 (i386_dr_low_set_addr): Likewise.
11174 (i386_dr_low_get_addr): Likewise.
11175 (i386_dr_low_can_set_control): Likewise.
11176 (i386_dr_low_set_control): Likewise.
11177 (i386_dr_low_get_control): Likewise.
11178 (i386_dr_low_get_status): Likewise.
11179 (i386_get_debug_register_length): Likewise.
11180 * linux-x86-low.c (i386_dr_low_set_addr):
11181 Changed signature. Made static.
11182 (i386_dr_low_get_addr): Likewise.
11183 (i386_dr_low_set_control): Likewise.
11184 (i386_dr_low_get_control): Likewise.
11185 (i386_dr_low_get_status): Likewise.
11186 (i386_dr_low): New global variable.
11187 * win32-i386-low.c (i386_dr_low_set_addr):
11188 Changed signature. Made static.
11189 (i386_dr_low_get_addr): Likewise.
11190 (i386_dr_low_set_control): Likewise.
11191 (i386_dr_low_get_control): Likewise.
11192 (i386_dr_low_get_status): Likewise.
11193 (i386_dr_low): New global variable.
11194
e1d2394b
MS
111952014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
11196
11197 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
11198 * Makefile.in (AR, AR_FLAGS): Define.
11199 * configure: Regenerate.
11200
3a8ee006
GB
112012014-06-19 Gary Benson <gbenson@redhat.com>
11202
11203 * Makefile.in (i386-dregs.o): New rule.
11204 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
11205 * i386-low.c (target.h): Remove include.
11206 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
11207 (DR_CONTROL_SHIFT): Likewise.
11208 (DR_CONTROL_SIZE): Likewise.
11209 (DR_RW_EXECUTE): Likewise.
11210 (DR_RW_WRITE): Likewise.
11211 (DR_RW_READ): Likewise.
11212 (DR_RW_IORW): Likewise.
11213 (DR_LEN_1): Likewise.
11214 (DR_LEN_2): Likewise.
11215 (DR_LEN_4): Likewise.
11216 (DR_LEN_8): Likewise.
11217 (DR_LOCAL_ENABLE_SHIFT): Likewise.
11218 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
11219 (DR_ENABLE_SIZE): Likewise.
11220 (DR_LOCAL_SLOWDOWN): Likewise.
11221 (DR_GLOBAL_SLOWDOWN): Likewise.
11222 (DR_CONTROL_RESERVED): Likewise.
11223 (I386_DR_CONTROL_MASK): Likewise.
11224 (I386_DR_VACANT): Likewise.
11225 (I386_DR_LOCAL_ENABLE): Likewise.
11226 (I386_DR_GLOBAL_ENABLE): Likewise.
11227 (I386_DR_DISABLE): Likewise.
11228 (I386_DR_SET_RW_LEN): Likewise.
11229 (I386_DR_GET_RW_LEN): Likewise.
11230 (I386_DR_WATCH_HIT): Likewise.
11231 (i386_wp_op_t): Likewise.
11232 (i386_show_dr): Likewise.
11233 (i386_length_and_rw_bits): Likewise.
11234 (i386_insert_aligned_watchpoint): Likewise.
11235 (i386_remove_aligned_watchpoint): Likewise.
11236 (i386_handle_nonaligned_watchpoint): Likewise.
11237 i386_update_inferior_debug_regs(): Likewise.
11238 (i386_dr_insert_watchpoint): Likewise.
11239 (i386_dr_remove_watchpoint): Likewise.
11240 (i386_dr_region_ok_for_watchpoint): Likewise.
11241 (i386_dr_stopped_data_address): Likewise.
11242 (i386_dr_stopped_by_watchpoint): Likewise.
11243
8f26655c
GB
112442014-06-19 Gary Benson <gbenson@redhat.com>
11245
11246 * i386-low.c (i386_dr_show): Renamed to
11247 i386_show_dr and made static. All uses updated.
11248 (i386_dr_length_and_rw_bits): Renamed to
11249 i386_length_and_rw_bits and made static.
11250 All uses updated.
11251 (i386_dr_insert_aligned_watchpoint): Renamed to
11252 i386_insert_aligned_watchpoint and made static.
11253 All uses updated.
11254 (i386_dr_remove_aligned_watchpoint): Renamed to
11255 i386_remove_aligned_watchpoint and made static.
11256 All uses updated.
11257 (i386_dr_update_inferior_debug_regs): Renamed to
11258 i386_update_inferior_debug_regs and made static.
11259 All uses updated.
11260
b9228891
GB
112612014-06-18 Gary Benson <gbenson@redhat.com>
11262
5171def3
GB
11263 * i386-low.h (i386_dr_low_can_set_addr): New macro.
11264 (i386_dr_low_can_set_control): Likewise.
11265 (i386_get_debug_register_length): Likewise.
11266 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
11267 (i386_dr_low_can_set_control): Likewise.
11268 (i386_get_debug_register_length): Likewise.
11269
112702014-06-17 Gary Benson <gbenson@redhat.com>
11271
b9228891
GB
11272 * i386-low.h (i386-dregs.h): New include.
11273 (DR_FIRSTADDR): Now in i386-dregs.h.
11274 (DR_LASTADDR): Likewise.
11275 (DR_NADDR): Likewise.
11276 (DR_STATUS): Likewise.
11277 (DR_CONTROL): Likewise.
11278 (i386_debug_reg_state): Likewise.
11279 (i386_dr_insert_watchpoint): Likewise.
11280 (i386_dr_remove_watchpoint): Likewise.
11281 (i386_dr_region_ok_for_watchpoint): Likewise.
11282 (i386_dr_stopped_data_address): Likewise.
11283 (i386_dr_stopped_by_watchpoint): Likewise.
11284 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
11285
4be83cc2
GB
112862014-06-18 Gary Benson <gbenson@redhat.com>
11287
11288 * i386-low.h (i386_low_insert_watchpoint): Renamed to
11289 i386_dr_insert_watchpoint.
11290 (i386_low_remove_watchpoint): Renamed to
11291 i386_dr_remove_watchpoint.
11292 (i386_low_region_ok_for_watchpoint): Renamed to
11293 i386_dr_region_ok_for_watchpoint.
11294 (i386_low_stopped_data_address): Renamed to
11295 i386_dr_stopped_data_address.
11296 (i386_low_stopped_by_watchpoint): Renamed to
11297 i386_dr_stopped_by_watchpoint.
11298 * i386-low.c (i386_show_dr): Renamed to
11299 i386_dr_show and made nonstatic. All uses updated.
11300 (i386_length_and_rw_bits): Renamed to
11301 i386_dr_length_and_rw_bits and made nonstatic.
11302 All uses updated.
11303 (i386_insert_aligned_watchpoint): Renamed to
11304 i386_dr_insert_aligned_watchpoint and made nonstatic.
11305 All uses updated.
11306 (i386_remove_aligned_watchpoint): Renamed to
11307 i386_dr_remove_aligned_watchpoint and made nonstatic.
11308 All uses updated.
11309 (i386_update_inferior_debug_regs): Renamed to
11310 i386_dr_update_inferior_debug_regs and made nonstatic.
11311 All uses updated.
11312 (i386_low_insert_watchpoint): Renamed to
11313 i386_dr_insert_watchpoint. All uses updated.
11314 (i386_low_remove_watchpoint): Renamed to
11315 i386_dr_remove_watchpoint. All uses updated.
11316 (i386_low_region_ok_for_watchpoint): Renamed to
11317 i386_dr_region_ok_for_watchpoint. All uses updated.
11318 (i386_low_stopped_data_address): Renamed to
11319 i386_dr_stopped_data_address. All uses updated.
11320 (i386_low_stopped_by_watchpoint): Renamed to
11321 i386_dr_stopped_by_watchpoint. All uses updated.
11322
131aa0d4
GB
113232014-06-18 Gary Benson <gbenson@redhat.com>
11324
11325 * i386-low.c (i386_dr_low_can_set_addr): New macro.
11326 (i386_dr_low_can_set_control): Likewise.
11327 (i386_insert_aligned_watchpoint): New check.
11328
d9305f7f
GB
113292014-06-18 Gary Benson <gbenson@redhat.com>
11330
11331 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
11332 Renamed to state.
11333
e927c9fc
GB
113342014-06-18 Gary Benson <gbenson@redhat.com>
11335
11336 * i386-low.c (i386_length_and_rw_bits): Use internal_error
11337 instead of fatal and error.
11338 (i386_handle_nonaligned_watchpoint): Likewise.
11339
1b6d4134
GB
113402014-06-18 Gary Benson <gbenson@redhat.com>
11341
11342 * i386-low.c (i386_get_debug_register_length): New macro.
11343 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
11344 (i386_show_dr): Use debug_printf instead of fprintf. Use
11345 phex to format values.
11346
6e62758f
GB
113472014-06-18 Gary Benson <gbenson@redhat.com>
11348
11349 * i386-low.h: Comment changes.
11350 * i386-low.c: Likewise.
11351
fc6e2f03
GB
113522014-06-18 Gary Benson <gbenson@redhat.com>
11353
11354 * i386-low.c: Whitespace changes.
11355
f9d1eeed
TT
113562014-06-12 Tom Tromey <tromey@redhat.com>
11357
11358 * utils.c (freeargv): Remove.
11359
0b04e523
TT
113602014-06-12 Tom Tromey <tromey@redhat.com>
11361
11362 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
11363 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
11364 (parse_debug_format_options): Likewise.
11365 (gdbserver_usage): Likewise.
11366 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
11367 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
11368 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
11369 against libiberty.
11370 ($(LIBGNU)): Depend on libiberty.
11371 (all-lib): Recurse into all subdirs.
11372 (install-only): Invoke "install" target in subdirs.
11373 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
11374 targets.
11375 * configure: Rebuild.
11376 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
11377 for vasprintf, vsnprintf, or gettimeofday.
11378 * configure.srv: Don't add safe-ctype.o or lbasename.o to
11379 srv_tgtobj.
11380
270c9937
JB
113812014-06-05 Joel Brobecker <brobecker@adacore.com>
11382
11383 * development.sh: Delete.
11384 * Makefile.in (config.status): Adjust dependency on development.sh.
11385 * configure.ac: Adjust development.sh source call.
11386 * configure: Regenerate.
11387
0a261ed8
PA
113882014-06-02 Pedro Alves <palves@redhat.com>
11389
11390 * ax.c (gdb_free_agent_expr): New function.
11391 * ax.h (gdb_free_agent_expr): New declaration.
11392 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
11393 list.
11394 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
11395 static.
11396 (clear_breakpoint_conditions_and_commands): New function.
11397 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
11398 (clear_breakpoint_conditions_and_commands): New declaration.
11399
e9dae05e
RR
114002014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11401
11402 * linux-aarch64-low.c (asm/ptrace.h): Include.
11403
5876f503
JK
114042014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11405
11406 Fix TLS access for -static -pthread.
11407 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
11408 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
11409 (thread_db_load_search, try_thread_db_load_1): Initialize it.
11410
802e8e6d
PA
114112014-05-20 Pedro Alves <palves@redhat.com>
11412
11413 * linux-aarch64-low.c (aarch64_insert_point)
11414 (aarch64_remove_point): No longer check whether the type is
11415 supported here. Adjust to new interface.
11416 (the_low_target): Install aarch64_supports_z_point_type as
11417 supports_z_point_type method.
11418 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
11419 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
11420 instead of a Z packet char. Adjust.
11421 (arm_supports_z_point_type): New function.
11422 (arm_insert_point, arm_remove_point): Adjust to new interface.
11423 (the_low_target): Install arm_supports_z_point_type.
11424 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
11425 (cris_insert_point, cris_remove_point): Adjust to new interface.
11426 Don't check whether the type is supported here.
11427 (the_low_target): Install cris_supports_z_point_type.
11428 * linux-low.c (linux_supports_z_point_type): New function.
11429 (linux_insert_point, linux_remove_point): Adjust to new interface.
11430 * linux-low.h (struct linux_target_ops) <insert_point,
11431 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
11432 raw_breakpoint pointer parameter.
11433 <supports_z_point_type>: New method.
11434 * linux-mips-low.c (mips_supports_z_point_type): New function.
11435 (mips_insert_point, mips_remove_point): Adjust to new interface.
11436 Use mips_supports_z_point_type.
11437 (the_low_target): Install mips_supports_z_point_type.
11438 * linux-ppc-low.c (the_low_target): Install NULL as
11439 supports_z_point_type method.
11440 * linux-s390-low.c (the_low_target): Install NULL as
11441 supports_z_point_type method.
11442 * linux-sparc-low.c (the_low_target): Install NULL as
11443 supports_z_point_type method.
11444 * linux-x86-low.c (x86_supports_z_point_type): New function.
11445 (x86_insert_point): Adjust to new insert_point interface. Use
11446 insert_memory_breakpoint. Adjust to new
11447 i386_low_insert_watchpoint interface.
11448 (x86_remove_point): Adjust to remove_point interface. Use
11449 remove_memory_breakpoint. Adjust to new
11450 i386_low_remove_watchpoint interface.
11451 (the_low_target): Install x86_supports_z_point_type.
11452 * lynx-low.c (lynx_target_ops): Install NULL as
11453 supports_z_point_type callback.
11454 * nto-low.c (nto_supports_z_point_type): New.
11455 (nto_insert_point, nto_remove_point): Adjust to new interface.
11456 (nto_target_ops): Install nto_supports_z_point_type.
11457 * mem-break.c: Adjust intro comment.
11458 (struct raw_breakpoint) <raw_type, size>: New fields.
11459 <inserted>: Update comment.
11460 <shlib_disabled>: Delete field.
11461 (enum bkpt_type) <gdb_breakpoint>: Delete value.
11462 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
11463 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
11464 (raw_bkpt_type_to_target_hw_bp_type): New function.
11465 (find_enabled_raw_code_breakpoint_at): New function.
11466 (find_raw_breakpoint_at): New type and size parameters. Use them.
11467 (insert_memory_breakpoint): New function, based off
11468 set_raw_breakpoint_at.
11469 (remove_memory_breakpoint): New function.
11470 (set_raw_breakpoint_at): Reimplement.
11471 (set_breakpoint): New, based on set_breakpoint_at.
11472 (set_breakpoint_at): Reimplement.
11473 (delete_raw_breakpoint): Go through the_target->remove_point
11474 instead of assuming memory breakpoints.
11475 (find_gdb_breakpoint_at): Delete.
11476 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
11477 (find_gdb_breakpoint): New function.
11478 (set_gdb_breakpoint_at): Delete.
11479 (z_type_supported): New function.
11480 (set_gdb_breakpoint_1): New function, loosely based off
11481 set_gdb_breakpoint_at.
11482 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
11483 (delete_gdb_breakpoint_at): Delete.
11484 (delete_gdb_breakpoint_1): New function, loosely based off
11485 delete_gdb_breakpoint_at.
11486 (delete_gdb_breakpoint): New function.
11487 (clear_gdb_breakpoint_conditions): Rename to ...
11488 (clear_breakpoint_conditions): ... this. Don't handle a NULL
11489 breakpoint.
11490 (add_condition_to_breakpoint): Make static.
11491 (add_breakpoint_condition): Take a struct breakpoint pointer
11492 instead of an address. Adjust.
11493 (gdb_condition_true_at_breakpoint): Rename to ...
11494 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
11495 z_type parameter.
11496 (gdb_condition_true_at_breakpoint): Reimplement.
11497 (add_breakpoint_commands): Take a struct breakpoint pointer
11498 instead of an address. Adjust.
11499 (gdb_no_commands_at_breakpoint): Rename to ...
11500 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
11501 parameter. Return true if no breakpoint was found. Change debug
11502 output.
11503 (gdb_no_commands_at_breakpoint): Reimplement.
11504 (run_breakpoint_commands): Rename to ...
11505 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
11506 and change return type to boolean.
11507 (run_breakpoint_commands): New function.
11508 (gdb_breakpoint_here): Also check for Z1 breakpoints.
11509 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
11510 breakpoint. Go through the_target->remove_point instead of
11511 assuming memory breakpoint.
11512 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
11513 software and hardware breakpoints.
11514 (reinsert_raw_breakpoint): Go through the_target->insert_point
11515 instead of assuming memory breakpoint.
11516 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
11517 software and hardware breakpoints.
11518 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
11519 Check both software and hardware breakpoints.
11520 (validate_inserted_breakpoint): Assert the breakpoint is a
11521 software breakpoint. Set the inserted flag to -1 instead of
11522 setting shlib_disabled.
11523 (delete_disabled_breakpoints): Adjust.
11524 (validate_breakpoints): Only validate software breakpoints.
11525 Adjust to inserted flag change.
11526 (check_mem_read, check_mem_write): Skip breakpoint types other
11527 than software breakpoints. Adjust to inserted flag change.
11528 * mem-break.h (enum raw_bkpt_type): New enum.
11529 (raw_breakpoint, struct process_info): Forward declare.
11530 (Z_packet_to_target_hw_bp_type): Delete declaration.
11531 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
11532 (set_gdb_breakpoint, delete_gdb_breakpoint)
11533 (clear_breakpoint_conditions): New declarations.
11534 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
11535 (breakpoint_inserted_here): Update comment.
11536 (add_breakpoint_condition, add_breakpoint_commands): Replace
11537 address parameter with a breakpoint pointer parameter.
11538 (gdb_breakpoint_here): Update comment.
11539 (delete_gdb_breakpoint_at): Delete.
11540 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
11541 * server.c (process_point_options): Take a struct breakpoint
11542 pointer instead of an address. Adjust.
11543 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
11544 delete_gdb_breakpoint.
11545 * spu-low.c (spu_target_ops): Install NULL as
11546 supports_z_point_type method.
11547 * target.h: Include mem-break.h.
11548 (struct target_ops) <prepare_to_access_memory>: Update comment.
11549 <supports_z_point_type>: New field.
11550 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
11551 instead of a char. Also take a raw breakpoint pointer.
11552 * win32-arm-low.c (the_low_target): Install NULL as
11553 supports_z_point_type.
11554 * win32-i386-low.c (i386_supports_z_point_type): New function.
11555 (i386_insert_point, i386_remove_point): Adjust to new interface.
11556 (the_low_target): Install i386_supports_z_point_type.
11557 * win32-low.c (win32_supports_z_point_type): New function.
11558 (win32_insert_point, win32_remove_point): Adjust to new interface.
11559 (win32_target_ops): Install win32_supports_z_point_type.
11560 * win32-low.h (struct win32_target_ops):
11561 <supports_z_point_type>: New method.
11562 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
11563 instead of a char. Also take a raw breakpoint pointer.
11564
932539e3
PA
115652014-05-20 Pedro Alves <palves@redhat.com>
11566
11567 * mem-break.h: Include break-common.h.
11568 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
11569 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
11570 (Z_packet_to_target_hw_bp_type): New declaration.
11571 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
11572 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
11573 (Z_PACKET_ACCESS_WP): Delete macros.
11574 (Z_packet_to_hw_type): Delete function.
11575 * i386-low.h: Don't include break-common.h here.
11576 (Z_packet_to_hw_type): Delete declaration.
11577 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
11578 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
11579 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
11580 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
11581 * linux-aarch64-low.c: Don't include break-common.h here.
11582 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
11583 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
11584 (Z_packet_to_target_hw_bp_type): Delete function.
11585 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
11586 function.
11587 (mips_insert_point, mips_remove_point): Use
11588 Z_packet_to_target_hw_bp_type.
11589
4ff0d3d8
PA
115902014-05-20 Pedro Alves <palves@redhat.com>
11591
11592 * linux-aarch64-low.c: Include break-common.h.
11593 (enum target_point_type): Delete.
11594 (Z_packet_to_point_type): Rename to ...
11595 (Z_packet_to_target_hw_bp_type): ... this, and return a
11596 target_hw_bp_type instead.
11597 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
11598 instead of an enum target_point_type.
11599 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
11600 breakpoint type.
11601 (aarch64_dr_state_insert_one_point)
11602 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
11603 (aarch64_handle_aligned_watchpoint)
11604 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
11605 Take an enum target_hw_bp_type instead of an enum
11606 target_point_type.
11607 (aarch64_supports_z_point_type): New function.
11608 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
11609 use Z_packet_to_target_hw_bp_type.
11610
786dc519
JB
116112014-05-20 Joel Brobecker <brobecker@adacore.com>
11612
11613 * configure.ac: Only use -Werror by default when DEVELOPMENT
11614 is true.
11615 * configure: Regenerate.
11616
9e0aa64f
JK
116172014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
11618
11619 Fix gdbserver qGetTLSAddr for x86_64 -m32.
11620 * linux-x86-low.c (X86_64_USER_REGS): New.
11621 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
11622
2b577b92
YQ
116232014-04-28 Yao Qi <yao@codesourcery.com>
11624
11625 * Makefile.in (i386-avx512.c): Fix the typo of generated file
11626 name.
11627
94611da2
PA
116282014-04-25 Pedro Alves <palves@redhat.com>
11629
11630 PR server/16255
11631 * linux-low.c (linux_attach_fail_reason_string): New function.
11632 (linux_attach_lwp): Delete.
11633 (linux_attach_lwp_1): Rename to ...
11634 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
11635 argument. Remove "initial" parameter. Return int instead of
11636 void. Don't error or warn here.
11637 (linux_attach): Adjust to call linux_attach_lwp. Call error on
11638 failure to attach to the tgid. Call warning when failing to
11639 attach to an lwp.
11640 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
11641 argument. Remove "initial" parameter. Return int instead of
11642 void. Don't error or warn here.
11643 (linux_attach_fail_reason_string): New declaration.
11644 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
11645 interface change. Use linux_attach_fail_reason_string.
11646
01f9f808
MS
116472014-04-24 Michael Sturm <michael.sturm@mintel.com>
11648 Walfred Tedeschi <walfred.tedeschi@intel.com>
11649
11650 * Makefile.in: Added rules to handle new files
11651 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
11652 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
11653 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
11654 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
11655 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
11656 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
11657 x32-avx512-linux.o.
11658 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
11659 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
11660 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
11661 i386/x32-avx512.xml.
11662 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
11663 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
11664 i386/x32-avx512-linux.xml.
11665 * i387-fp.c (num_avx512_k_registers): New constant for number
11666 of K registers.
11667 (num_avx512_zmmh_low_registers): New constant for number of
11668 lower ZMM registers (0-15).
11669 (num_avx512_zmmh_high_registers): New constant for number of
11670 higher ZMM registers (16-31).
11671 (num_avx512_ymmh_registers): New contant for number of higher
11672 YMM registers (ymm16-31 added by avx521 on x86_64).
11673 (num_avx512_xmm_registers): New constant for number of higher
11674 XMM registers (xmm16-31 added by AVX512 on x86_64).
11675 (struct i387_xsave): Add space for AVX512 registers.
11676 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
11677 Add code to handle AVX512 registers.
11678 (i387_xsave_to_cache): Add code to handle AVX512 registers.
11679 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
11680 prototypei from generated file.
11681 (tdesc_amd64_avx512_linux): Likewise.
11682 (init_registers_x32_avx512_linux): Likewise.
11683 (tdesc_x32_avx512_linux): Likewise.
11684 (init_registers_i386_avx512_linux): Likewise.
11685 (tdesc_i386_avx512_linux): Likewise.
11686 (x86_64_regmap): Add AVX512 registers.
11687 (x86_linux_read_description): Add code to handle AVX512 XSTATE
11688 mask.
11689 (initialize_low_arch): Add code to initialize AVX512 registers.
11690
51aa91f9
PA
116912014-04-23 Pedro Alves <palves@redhat.com>
11692
11693 * mem-break.c (find_gdb_breakpoint_at): Make static.
11694 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
11695
a4165e94
PA
116962014-04-23 Pedro Alves <palves@redhat.com>
11697
11698 * i386-low.c: Don't include break-common.h here.
11699 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
11700 prototype to take target_hw_bp_type as argument instead of a Z
11701 packet char.
11702 * i386-low.h: Include break-common.h here.
11703 (Z_packet_to_hw_type): Declare.
11704 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
11705 prototypes.
11706 * linux-x86-low.c (x86_insert_point): Convert the packet number to
11707 a target_hw_bp_type before calling i386_low_insert_watchpoint.
11708 (x86_remove_point): Convert the packet number to a
11709 target_hw_bp_type before calling i386_low_remove_watchpoint.
11710 * win32-i386-low.c (i386_insert_point): Convert the packet number
11711 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
11712 (i386_remove_point): Convert the packet number to a
11713 target_hw_bp_type before calling i386_low_remove_watchpoint.
11714
b8acf843
PA
117152014-04-23 Pedro Alves <palves@redhat.com>
11716
11717 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
11718
d708bcd1
PA
117192014-04-10 Pedro Alves <palves@redhat.com>
11720
11721 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
11722 Check if the condition or command is NULL before checking if the
11723 breakpoint is known. On success, return true.
11724 * mem-break.h (add_breakpoint_condition): Document return.
11725 (add_breakpoint_commands): Add describing comment.
11726 * server.c (skip_to_semicolon): New function.
11727 (process_point_options): Use it.
11728
2eec7d5b
PA
117292014-04-09 Pedro Alves <palves@redhat.com>
11730
11731 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
11732 to lwpid_of.
11733
fa96cb38
PA
117342014-02-27 Pedro Alves <palves@redhat.com>
11735
11736 PR 12702
11737 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
11738 macros.
11739 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
11740 output.
11741 (last_thread_of_process_p): Take a PID argument instead of a
11742 thread pointer.
11743 (linux_wait_for_lwp): Delete.
11744 (num_lwps, check_zombie_leaders, not_stopped_callback): New
11745 functions.
11746 (linux_low_filter_event): New function, party factored out from
11747 linux_wait_for_event.
11748 (linux_wait_for_event): Rename to ...
11749 (linux_wait_for_event_filtered): ... this. Add new filter ptid
11750 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
11751 sigsuspend. Check for zombie leaders.
11752 (linux_wait_for_event): Reimplement as wrapper around
11753 linux_wait_for_event_filtered.
11754 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
11755 a normal or signal exit is seen, it's the whole process exiting.
11756 (wait_for_sigstop): No longer a for_each_inferior callback.
11757 Rewrite on top of linux_wait_for_event_filtered.
11758 (stop_all_lwps): Call wait_for_sigstop directly.
11759 * server.c (resume, handle_target_event): Handle
11760 TARGET_WAITKIND_NO_RESUMED.
11761
d763de10
JB
117622014-02-26 Joel Brobecker <brobecker@adacore.com>
11763
11764 * win32-low.c (psapi_get_dll_name,
11765 * win32_CreateToolhelp32Snapshot): Delete.
11766 (win32_CreateToolhelp32Snapshot, win32_Module32First)
11767 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
11768 Delete.
11769 (handle_load_dll): Add function description.
11770 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
11771
850a0f76
JB
117722014-02-26 Joel Brobecker <brobecker@adacore.com>
11773
11774 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
11775 Add comment.
11776 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
11777 base address when calling win32_add_one_solib.
11778 (handle_load_dll): Delete local variable load_addr.
11779 Remove 0x1000 offset applied to DLL base address when calling
11780 win32_add_one_solib.
11781 (handle_unload_dll): Add comment.
11782
f25b3fc3
JB
117832014-02-26 Joel Brobecker <brobecker@adacore.com>
11784
11785 * win32-low.c (win32_add_all_dlls): Renames
11786 win32_ensure_ntdll_loaded. Rewrite function documentation.
11787 Adjust implementation to always load all DLLs.
11788 Add 0x1000 offset to DLL base address when calling
11789 win32_add_one_solib.
11790 (child_initialization_done): New static global.
11791 (do_initial_child_stuff): Set child_initialization_done to
11792 zero during child initialization, and 1 after. Replace call
11793 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
11794 Add comment.
11795 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
11796 (handle_unload_dll): Add function documentation.
11797 (get_child_debug_event): Ignore load and unload DLL events
11798 during child initialization.
11799
d86d4aaf
DE
118002014-02-20 Doug Evans <dje@google.com>
11801
3bc32da3 11802 Remove global all_lwps.
d86d4aaf
DE
11803 * inferiors.h (ptid_of): Move here from linux-low.h.
11804 (pid_of, lwpid_of): Ditto.
11805 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
11806 parameter is a struct thread_info * now.
11807 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
11808 directly. Pass &all_threads to find_inferior instead of &all_lwps.
11809 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
11810 directly.
11811 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
11812 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
11813 * linux-arm-low.c (update_registers_callback): Update, "entry"
11814 parameter is a struct thread_info * now.
11815 Fetch lwpid from current_inferior directly.
11816 (arm_insert_point): Pass &all_threads to find_inferior instead of
11817 &all_lwps.
11818 (arm_remove_point): Ditto.
11819 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
11820 (arm_prepare_to_resume): Fetch pid from thread.
11821 (arm_read_description): Fetch lwpid from current_inferior directly.
11822 * linux-low.c (all_lwps): Delete.
11823 (delete_lwp): Delete call to remove_inferior.
11824 (handle_extended_wait): Fetch lwpid from thread.
11825 (add_lwp): Don't set lwp->entry.id. Remove call to
11826 add_inferior_to_list.
11827 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
11828 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
11829 (kill_one_lwp_callback): Ditto.
11830 (linux_kill): Don't dereference NULL pointer.
11831 Fetch ptid,lwpid from thread.
11832 (get_detach_signal): Fetch ptid from thread.
11833 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
11834 Simplify call to regcache_invalidate_thread.
11835 (delete_lwp_callback): Update, "entry" parameter is a
11836 struct thread_info * now. Fetch pid from thread.
11837 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
11838 (status_pending_p_callback): Update, "entry" parameter is a
11839 struct thread_info * now. Fetch ptid from thread.
11840 (find_lwp_pid): Update, "entry" parameter is a
11841 struct thread_info * now.
11842 (linux_wait_for_lwp): Fetch pid from thread.
11843 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
11844 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
11845 (enqueue_one_deferred_signal): Fetch lwpid from thread.
11846 (dequeue_one_deferred_signal): Ditto.
11847 (cancel_breakpoint): Fetch ptid from current_inferior.
11848 (linux_wait_for_event): Pass &all_threads to find_inferior,
11849 not &all_lwps. Fetch ptid, lwpid from thread.
11850 (count_events_callback): Update, "entry" parameter is a
11851 struct thread_info * now.
11852 (select_singlestep_lwp_callback): Ditto.
11853 (select_event_lwp_callback): Ditto.
11854 (cancel_breakpoints_callback): Ditto.
11855 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
11856 not &all_lwps.
11857 (select_event_lwp): Ditto. Fetch ptid from event_thread.
11858 (unsuspend_one_lwp): Update, "entry" parameter is a
11859 struct thread_info * now.
11860 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
11861 not &all_lwps.
11862 (linux_stabilize_threads): Ditto. And for for_each_inferior.
11863 Fetch lwpid from thread, not lwp.
11864 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
11865 Pass &all_threads to find_inferior, not &all_lwps.
11866 (send_sigstop): Fetch lwpid from thread, not lwp.
11867 (send_sigstop_callback): Update, "entry" parameter is a
11868 struct thread_info * now.
11869 (suspend_and_send_sigstop_callback): Ditto.
11870 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
11871 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
11872 struct thread_info * now.
11873 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
11874 from thread, lwp.
11875 (lwp_running): Update, "entry" parameter is a
11876 struct thread_info * now.
11877 (stop_all_lwps): Fetch ptid from thread.
11878 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
11879 (linux_resume_one_lwp): Fetch lwpid from thread.
11880 (linux_set_resume_request): Update, "entry" parameter is a
11881 struct thread_info * now. Fetch pid, lwpid from thread.
11882 (resume_status_pending_p): Update, "entry" parameter is a
11883 struct thread_info * now.
11884 (need_step_over_p): Ditto. Fetch lwpid from thread.
11885 (start_step_over): Fetch lwpid from thread.
11886 (linux_resume_one_thread): Update, "entry" parameter is a
11887 struct thread_info * now. Fetch lwpid from thread.
11888 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
11889 (proceed_one_lwp): Update, "entry" parameter is a
11890 struct thread_info * now. Fetch lwpid from thread.
11891 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
11892 struct thread_info * now.
11893 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
11894 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
11895 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
11896 directly.
11897 (regsets_store_inferior_registers): Ditto.
11898 (fetch_register, store_register): Ditto.
11899 (linux_read_memory, linux_write_memory): Ditto.
11900 (linux_request_interrupt): Ditto.
11901 (linux_read_auxv): Ditto.
11902 (linux_xfer_siginfo): Ditto.
11903 (linux_qxfer_spu): Ditto.
11904 (linux_qxfer_libraries_svr4): Ditto.
11905 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
11906 moved to inferiors.h.
11907 (get_lwp): Delete.
11908 (get_thread_lwp): Update.
11909 (struct lwp_info): Delete member "entry". Simplify comment for
11910 member "thread".
11911 (all_lwps): Delete.
11912 * linux-mips-low.c (mips_read_description): Fetch lwpid from
11913 current_inferior directly.
11914 (update_watch_registers_callback): Update, "entry" parameter is a
11915 struct thread_info * now. Fetch pid from thread.
11916 (mips_linux_prepare_to_resume): Fetch ptid from thread.
11917 (mips_insert_point): Fetch lwpid from current_inferior.
11918 Pass &all_threads to find_inferior, not &all_lwps.
11919 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
11920 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
11921 directly.
11922 (mips_stopped_data_address): Ditto.
11923 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
11924 directly.
11925 * linux-tile-low.c (tile_arch_setup): Ditto.
11926 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
11927 (update_debug_registers_callback): Update, "entry" parameter is a
11928 struct thread_info * now. Fetch pid from thread.
11929 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
11930 Pass &all_threads to find_inferior, not &all_lwps.
11931 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
11932 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
11933 Pass &all_threads to find_inferior, not &all_lwps.
11934 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
11935 (i386_dr_low_get_status): Ditto.
11936 (x86_linux_prepare_to_resume): Fetch ptid from thread.
11937 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
11938 (x86_linux_read_description): Ditto.
11939 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
11940
3b8361aa
DE
119412014-02-20 Doug Evans <dje@google.com>
11942
11943 * inferiors.c (get_first_inferior): Fix buglet.
11944
f7667f0d
DE
119452014-02-19 Doug Evans <dje@google.com>
11946
11947 * gdbthread.h (add_thread): Change result type to struct thread_info *.
11948 * inferiors.c (add_thread): Change result type to struct thread_info *.
11949 All callers updated.
11950 (add_lwp): Call add_thread here instead of in callers.
11951 All callers updated.
11952 * linux-low.h (get_lwp_thread): Rewrite.
11953 (struct lwp_info): New member "thread".
11954
b3312d80
DE
119552014-02-19 Doug Evans <dje@google.com>
11956
11957 * linux-low.c (add_lwp): Change result to struct lwp_info *.
11958 All callers updated.
11959
ecc6f45c
DE
119602014-02-19 Doug Evans <dje@google.com>
11961
11962 * inferiors.c (add_thread): Fix whitespace.
11963
649ebbca
DE
119642014-02-19 Doug Evans <dje@google.com>
11965
11966 * dll.c (clear_dlls): Replace accessing list implemention details
11967 with API function.
11968 * gdbthread.h (get_first_thread): Declare.
11969 * inferiors.c (for_each_inferior_with_data): New function.
11970 (get_first_thread): New function.
11971 (find_thread_ptid): Simplify.
11972 (get_first_inferior): New function.
11973 (clear_list): Delete.
11974 (one_inferior_p): New function.
11975 (clear_inferior_list): New function.
11976 (clear_inferiors): Update.
11977 * inferiors.h (for_each_inferior_with_data): Declare.
11978 (clear_inferior_list): Declare.
11979 (one_inferior_p): Declare.
11980 (get_first_inferior): Declare.
11981 * linux-low.c (linux_wait_for_event): Replace accessing list
11982 implemention details with API function.
11983 * server.c (target_running): Ditto.
11984 (accumulate_file_name_length): New function.
11985 (emit_dll_description): New function.
11986 (handle_qxfer_libraries): Replace accessing list implemention
11987 details with API function.
11988 (handle_qxfer_threads_worker): New function.
11989 (handle_qxfer_threads_proper): Replace accessing list implemention
11990 details with API function.
11991 (handle_query): Ditto.
11992 (visit_actioned_threads_callback_ftype): New typedef.
11993 (visit_actioned_threads_data): New struct.
11994 (visit_actioned_threads): Rewrite to be find_inferior callback.
11995 (resume): Call find_inferior.
11996 (handle_status): Replace accessing list implemention
11997 details with API function.
11998 (process_serial_event): Replace accessing list implemention details
11999 with API function.
12000 * target.c (set_desired_inferior): Replace accessing list implemention
12001 details with API function.
12002 * tracepoint.c (same_process_p): New function.
12003 (gdb_agent_about_to_close): Replace accessing list implemention
12004 details with API function.
12005 * win32-low.c (child_delete_thread): Replace accessing list
12006 implemention details with API function.
12007 (match_dll_by_basename): New function.
12008 (dll_is_loaded_by_basename): New function.
12009 (win32_ensure_ntdll_loaded): Replace accessing list implemention
12010 details call to dll_is_loaded_by_basename.
12011
80894984
DE
120122014-02-19 Doug Evans <dje@google.com>
12013
12014 * dll.h (struct dll_info): Add comment.
12015 * gdbthread.h (struct thread_info): Add comment.
12016 (current_ptid): Simplify.
12017 * inferiors.c (add_process): Update.
12018 (remove_process): Update.
12019 * inferiors.h (struct process_info): Rename member "head" to "entry".
12020 * linux-low.c (delete_lwp): Update.
12021 (add_lwp): Update.
12022 (last_thread_of_process_p): Update.
12023 (kill_one_lwp_callback, linux_kill): Update.
12024 (status_pending_p_callback): Update.
12025 (wait_for_sigstop): Update. Simplify read of ptid.
12026 (start_step_over): Update.
12027 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
12028 (get_lwp_thread): Update.
12029 (struct lwp_info): Rename member "head" to "entry".
12030 * regcache.h (inferior_list_entry): Delete.
12031 * server.c (kill_inferior_callback): Update.
12032 (detach_or_kill_inferior_callback): Update.
12033 (print_started_pid): Update.
12034 (print_attached_pid): Update.
12035 (process_serial_event): Simplify read of ptid.
12036 * thread-db.c (thread_db_create_event): Update.
12037 (thread_db_get_tls_address): Update.
12038 * win32-low.c (current_inferior_ptid): Simplify.
12039
46917d26
TT
120402014-02-19 Tom Tromey <tromey@redhat.com>
12041
12042 * target.h (struct target_ops) <supports_btrace>: Add target_ops
12043 argument.
12044 (target_supports_btrace): Update.
12045
0759a81e
YQ
120462014-02-14 Yao Qi <yao@codesourcery.com>
12047
12048 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
12049 (rsp-low-ipa.o): New target.
12050
a7191e8b
TT
120512014-02-12 Tom Tromey <tromey@redhat.com>
12052
12053 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
12054 convert_ascii_to_int.
12055 * regcache.c (registers_to_string): Likewise.
12056 * remote-utils.c (decode_M_packet): Likewise.
12057 * server.c (process_serial_event): Likewise.
12058
ff0e980e
TT
120592014-02-12 Tom Tromey <tromey@redhat.com>
12060
12061 * server.c (handle_query, handle_v_run): Use hex2bin, not
12062 unhexify.
12063 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
12064
e9371aff
TT
120652014-02-12 Tom Tromey <tromey@redhat.com>
12066
12067 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
12068 convert_int_to_ascii.
12069 * regcache.c (registers_to_string, collect_register_as_string):
12070 Likewise.
12071 * remote-utils.c (look_up_one_symbol, relocate_instruction):
12072 Likewise.
12073 * server.c (process_serial_event): Likewise.
12074 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
12075 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
12076
971dc0b8
TT
120772014-02-12 Tom Tromey <tromey@redhat.com>
12078
12079 * remote-utils.c (look_up_one_symbol, monitor_output): Use
12080 bin2hex, not hexify.
12081 * tracepoint.c (cmd_qtstatus): Likewise.
12082
0a822afb
TT
120832014-02-12 Tom Tromey <tromey@redhat.com>
12084
12085 * remote-utils.c (monitor_output): Pass explicit length to
12086 hexify.
12087
9c3d6531
TT
120882014-02-12 Tom Tromey <tromey@redhat.com>
12089
12090 * tracepoint.c: Include rsp-low.h.
12091 * server.c: Include rsp-low.h.
12092 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
12093 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
12094 declare.
12095 * remote-utils.c: Include rsp-low.h.
12096 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
12097 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
12098 (convert_int_to_ascii, convert_ascii_to_int): Move to
12099 common/rsp-low.c.
12100 * regcache.c: Include rsp-low.h.
12101 * ax.c: Include rsp-low.h.
12102 * Makefile.in (SFILES): Add common/rsp-low.c.
12103 (OBS): Add rsp-low.o.
12104 (rsp-low.o): New target.
12105
01fd3ea5
TT
121062014-02-12 Tom Tromey <tromey@redhat.com>
12107
12108 * utils.h (pulongest, plongest, phex_nz): Don't declare.
12109 Include print-utils.h.
12110 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12111 (plongest, thirty_two, phex_nz): Remove.
12112 * Makefile.in (SFILES): Add common/print-utils.c.
12113 (OBS): Add print-utils.o.
12114 (print-utils-ipa.o): New target.
12115 (print-utils.o): New target.
12116 (IPA_OBJS): Add print-utils-ipa.o.
12117
e99dc820
TT
121182014-02-06 Tom Tromey <tromey@redhat.com>
12119
12120 * Makefile.in (SFILES): Fix indentation.
12121
ee1e2d4f
DE
121222014-02-05 Doug Evans <dje@google.com>
12123
12124 * linux-low.c (linux_wait_for_event): Improve comment.
12125 (linux_wait_1): Keep current_inferior in sync with event_child.
12126
f5a02773
DE
121272014-01-22 Doug Evans <dje@google.com>
12128
12129 * gdbthread.h (gdb_id_to_thread): Delete, unused.
12130
87ce2a04
DE
121312014-01-22 Doug Evans <dje@google.com>
12132
12133 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
12134 * configure: Regenerate.
12135 * config.in: Regenerate.
12136 * Makefile.in (SFILES): Add debug.c.
12137 (OBS): Add debug.o.
12138 * debug.c: New file.
12139 * debug.h: New file.
12140 * linux-aarch64-low.c (*): Update all debugging printfs to use
12141 debug_printf instead of fprintf.
12142 * linux-arm-low.c (*): Ditto.
12143 * linux-cris-low.c (*): Ditto.
12144 * linux-crisv32-low.c (*): Ditto.
12145 * linux-m32r-low.c (*): Ditto.
12146 * linux-sparc-low.c (*): Ditto.
12147 * linux-x86.c (*): Ditto.
12148 * linux-low.c (*): Ditto.
12149 (linux_wait_1): Add calls to debug_enter, debug_exit.
12150 (linux_wait): Remove redundant debugging printf.
12151 (stop_all_lwps): Add calls to debug_enter, debug_exit.
12152 (linux_resume, unstop_all_lwps): Ditto.
12153 * mem-break.c (*): Update all debugging printfs to use
12154 debug_printf instead of fprintf.
12155 * remote-utils.c (*): Ditto.
12156 * thread-db.c (*): Ditto.
12157 * server.c #include <ctype.h>, "gdb_vecs.h".
12158 (debug_threads): Moved to debug.c.
12159 (*): Update all debugging printfs to use debug_printf instead of
12160 fprintf.
12161 (start_inferior): Replace call to fflush with call to debug_flush.
12162 (monitor_show_help): Mention set debug-format.
12163 (parse_debug_format_options): New function.
12164 (handle_monitor_command): Handle "monitor set debug-format".
12165 (gdbserver_usage): Mention --debug-format.
12166 (main): Parse --debug-format.
12167 * server.h (debug_threads): Declaration moved to debug.h.
12168 #include "debug.h".
12169 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
12170 trace_debug_1 that uses debug_printf.
12171 (tracepoint_look_up_symbols): Update all debugging printfs to use
12172 debug_printf instead of fprintf.
12173
e671835b
BS
121742014-01-20 Baruch Siach <baruch@tkos.co.il>
12175
12176 * linux-xtensa-low.c: Include asm/ptrace.h instead of
12177 sys/ptrace.h.
12178
b5737fa9
PA
121792014-01-17 Pedro Alves <palves@redhat.com>
12180
ea38d2a9 12181 PR build/16445
c7faa97a
PA
12182 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
12183 defined after including gdb_proc_service.h.
b5737fa9 12184
40ed484e
DE
121852014-01-16 Doug Evans <dje@google.com>
12186
12187 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
12188 (match_dll): Use it.
12189
969c39fb
MM
121902014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12191
12192 * target.h (target_ops) <read_btrace>: Change parameters and
12193 return type to allow error reporting.
12194 * server.c (handle_qxfer_btrace): Support delta reads. Pass
12195 trace reading errors on.
12196 * linux-low.c (linux_low_read_btrace): Pass trace reading
12197 errors on.
12198 (linux_low_disable_btrace): New.
12199
ab7f45ba
DE
122002014-01-15 Doug Evans <dje@google.com>
12201
12202 * inferiors.c (thread_id_to_gdb_id): Delete.
12203 * inferiors.h (thread_id_to_gdb_id): Delete.
12204
66af0f44
EZ
122052014-01-13 Eli Zaretskii <eliz@gnu.org>
12206
12207 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
12208 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
12209 versions.
12210
9939e131
PA
122112014-01-08 Pedro Alves <palves@redhat.com>
12212
12213 * server.c (handle_status): Don't discard previous queued stop
12214 replies or thread's pending status here.
12215 (main) <disconnection>: Do it here instead.
12216
b7ea362b
PA
122172014-01-08 Pedro Alves <palves@redhat.com>
12218
12219 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
12220 * server.c (visit_actioned_threads, handle_pending_status): New
12221 function.
12222 (handle_v_cont): Factor out parts to ...
12223 (resume): ... this new function. If in all-stop, and a thread
12224 being resumed has a pending status, report it without actually
12225 resuming.
12226 (myresume): Adjust to use the new 'resume' function.
12227 (clear_pending_status_callback, set_pending_status_callback)
12228 (find_status_pending_thread_callback): New functions.
12229 (handle_status): Handle the case of multiple threads having
12230 interesting statuses to report. Report threads' real last signal
12231 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
12232 with an interesting thread to report the status for, instead of
12233 always reporting the status of the first thread.
12234
28498c42
JB
122352014-01-01 Joel Brobecker <brobecker@adacore.com>
12236
12237 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
12238 * gdbreplay.c (gdbreplay_version): Likewise.
12239
f45c82da
YZ
122402013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
12241
12242 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
12243 iov.iov_len with the real length in use.
12244
379a5e2d
JB
122452013-12-13 Joel Brobecker <brobecker@adacore.com>
12246
12247 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
12248 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
12249 for all targets that use win32-low.c.
12250 * win32-low.c (win32_ensure_ntdll_loaded): New function.
12251 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
12252
4210d83e
PA
122532013-12-13 Pedro Alves <palves@redhat.com>
12254
12255 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
12256 if equal to TARGET_WAITKIND_LOADED.
12257 * win32-low.c (cached_status): New static global.
12258 (win32_wait): Add declaration.
12259 (do_initial_child_stuff): Flush all initial pending debug events
12260 up to the initial breakpoint.
12261 (win32_wait): If CACHED_STATUS was set, return that instead
12262 of doing a real wait. Remove the code resuming the execution
12263 of the inferior after receiving a TARGET_WAITKIND_LOADED event
12264 during the initial phase. Also remove the code changing
12265 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
12266 TARGET_WAITKIND_STOPPED.
12267
e7f0d979
YQ
122682013-12-11 Yao Qi <yao@codesourcery.com>
12269
12270 * notif.c (handle_notif_ack): Return 0 if no notification
12271 matches.
12272
ebcf782c
DE
122732013-11-20 Doug Evans <dje@google.com>
12274
12275 * linux-low.c (linux_set_resume_request): Fix comment.
12276
20ad9378
DE
122772013-11-20 Doug Evans <dje@google.com>
12278
12279 * linux-low.c (resume_status_pending_p): Tweak comment.
12280
a196ebeb
WT
122812013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
12282
12283 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
12284 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
12285 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
12286 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
12287 (srv_amd64_regobj): Add amd64-mpx.o.
12288 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
12289 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
12290 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
12291 * i387-fp.c (num_pl_bnd_register) Added constant.
12292 (num_pl_bnd_cfg_registers) Added constant.
12293 (struct i387_xsave) Added reserved area and MPX fields.
12294 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
12295 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
12296 function.
12297 (tdesc_i386_mpx_linux): Add MPX amd64 target.
12298 (init_registers_amd64_mpx_linux): Declare new function.
12299 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
12300 (x86_64_regmap): Add MPX registers.
12301 (x86_linux_read_description): Add MPX case.
12302 (initialize_low_arch): Initialize MPX targets.
12303
0080a2f6
TT
123042013-11-18 Tom Tromey <tromey@redhat.com>
12305
12306 * configure: Rebuild.
12307 * configure.ac: Don't check for stdlib.h.
12308 * gdbreplay.c: Unconditionally include stdlib.h.
12309
2978b111
TT
123102013-11-18 Tom Tromey <tromey@redhat.com>
12311
12312 * config.in: Rebuild.
12313 * configure: Rebuild.
12314 * configure.ac: Don't use AC_HEADER_DIRENT.
12315
a3d08894
TT
123162013-11-18 Tom Tromey <tromey@redhat.com>
12317
12318 * server.h: Don't check HAVE_STRING_H.
12319 * gdbreplay.c: Don't check HAVE_STRING_H.
12320 * configure: Rebuild.
12321
0a5dd17d
TT
123222013-11-18 Tom Tromey <tromey@redhat.com>
12323
12324 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
12325 LIBGNU.
12326
1bd2f0ba
TT
123272013-11-08 Tom Tromey <tromey@redhat.com>
12328
12329 * configure, config.in: Rebuild.
12330 * configure.ac: Remove unused configury.
12331
3266f10b
TT
123322013-11-08 Tom Tromey <tromey@redhat.com>
12333
12334 * acinclude.m4: Include common.m4, codeset.m4.
12335 * configure, config.in: Rebuild.
12336 * configure.ac: Use GDB_AC_COMMON.
12337
6682d959
AA
123382013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
12339
12340 * linux-s390-low.c (HWCAP_S390_TE): New define.
12341 (s390_arch_setup): Consider the TE field in the HWCAP for
12342 determining 'have_regset_tdb'.
12343
fd0a4d76
SDJ
123442013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
12345
12346 PR gdb/16014
12347 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
12348 call to sizeof.
12349
1a3d890b
PA
123502013-10-02 Pedro Alves <palves@redhat.com>
12351
12352 * server.c (process_serial_event): Don't output "GDBserver
12353 exiting" if GDB is connected through stdio.
12354 * target.c (mywait): Likewise, be silent if GDB is connected
12355 through stdio.
12356
97ad4581
JB
123572013-10-01 Joel Brobecker <brobecker@adacore.com>
12358
12359 * lynx-low.c (lynx_add_threads_after_attach): New function.
12360 (lynx_attach): Remove call to add_thread. Add call to
12361 lynx_add_threads_after_attach instead.
12362
5b4e221c
MF
123632013-09-28 Mike Frysinger <vapier@gentoo.org>
12364
12365 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
12366 * config.in, configure: Regenerated.
12367
ee47b2f8
YQ
123682013-09-18 Yao Qi <yao@codesourcery.com>
12369
12370 PR server/15959
12371 * server.c (start_inferior): Clear 'resume_info'.
12372
d6707650 123732013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 12374
d6707650
JW
12375 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
12376 for each register.
12377
9243dd0e 123782013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 12379
9243dd0e
JW
12380 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
12381 linux-tile-low.o to srv_tgtobj.
12382
c623a6ef
WN
123832013-09-16 Will Newton <will.newton@linaro.org>
12384
12385 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
12386 out regs.
12387
fb71d39e
PA
123882013-09-06 Pedro Alves <palves@redhat.com>
12389
12390 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
12391 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
12392 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
12393 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
12394 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
12395 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
12396
8e7e9910
PA
123972013-09-06 Pedro Alves <palves@redhat.com>
12398
12399 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
12400 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
12401
7c3a12ca
PA
124022013-09-06 Pedro Alves <palves@redhat.com>
12403
12404 * linux-amd64-ipa.c: Include tracepoint.h.
12405 * linux-i386-ipa.c: Include tracepoint.h.
12406
8eb3d7b6
RW
124072013-09-06 Ricard Wanderlof <ricardw@axis.com>
12408
12409 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
12410 (ps_get_thread_area): New function.
12411
eddddb9d
RW
124122013-09-06 Ricard Wanderlof <ricardw@axis.com>
12413
12414 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
12415 (initialize_low_arch): Call init_registers_crisv32 rather than
12416 init_register_crisv32.
12417
533b0600
PA
124182013-09-05 Pedro Alves <palves@redhat.com>
12419
12420 * server.h (handle_vFile, hostio_last_error_from_errno): Move
12421 to ...
12422 * hostio.h: ... this new file.
12423 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
12424 win32-low.c: Include hostio.h.
12425
0ce3d3b5
PA
124262013-09-05 Pedro Alves <palves@redhat.com>
12427
12428 * server.h (gdb_client_data, handler_func, callback_handler_func)
12429 (delete_file_handler, add_file_handler, append_callback_event)
12430 (delete_callback_event, start_event_loop, initialize_event_loop):
12431 Move to event-loop.h and include it.
12432 * event-loop.h: New file.
12433
799cdc37
PA
124342013-09-05 Pedro Alves <palves@redhat.com>
12435
12436 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
12437 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
12438 (loaded_dll, unloaded_dll): Move to ...
12439 * dll.h: ... this new file.
12440 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
12441
6a6bbd9d
PA
124422013-09-05 Pedro Alves <palves@redhat.com>
12443
12444 * server.h (current_process, get_thread_process, all_processes)
12445 (add_inferior_to_list, for_each_inferior, current_inferior)
12446 (remove_inferior, add_process, remove_process, find_process_pid)
12447 (have_started_inferiors_p, have_attached_inferiors_p)
12448 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
12449 (clear_inferiors, find_inferior, find_inferior_id)
12450 (inferior_target_data, set_inferior_target_data)
12451 (inferior_regcache_data, set_inferior_regcache_data): Move to
12452 inferiors.h, and include it.
12453 * inferiors.h: New file.
12454
f699aaba
PA
124552013-09-05 Pedro Alves <palves@redhat.com>
12456
12457 * server.h (struct emit_ops, current_insn_ptr, emit_error):
12458 Move ...
72f4393d 12459 * ax.h: ... here.
f699aaba 12460
c144c7a0
PA
124612013-09-05 Pedro Alves <palves@redhat.com>
12462
12463 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
12464 tracepoint.h.
12465 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
12466 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
12467 (handle_tracepoint_general_set, handle_tracepoint_query)
12468 (tracepoint_finished_step, tracepoint_was_hit)
12469 (release_while_stepping_state_list, current_traceframe)
12470 (in_readonly_region, traceframe_read_mem)
12471 (fetch_traceframe_registers, traceframe_read_sdata)
12472 (traceframe_read_info, struct fast_tpoint_collect_status)
12473 (fast_tracepoint_collecting, force_unlock_trace_buffer)
12474 (handle_tracepoit_bkpts, initialize_low_tracepoint)
12475 (supply_fast_tracepoint_registers)
12476 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
12477 (ipa_tdesc, claim_trampoline_space)
12478 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
12479 (agent_mem_read, agent_get_trace_state_variable_value)
12480 (agent_set_trace_state_variable_value, agent_tsv_read)
12481 (agent_mem_read_string, get_raw_reg_func_addr)
12482 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
12483 * tracepoint.h: ... this new file.
12484
ff42e6ab
PA
124852013-09-05 Pedro Alves <palves@redhat.com>
12486
12487 * server.h (perror_with_name, error, fatal, warning, paddress)
12488 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
12489 include it.
12490 * utils.h: New file.
12491
541af0f4
PA
124922013-09-05 Pedro Alves <palves@redhat.com>
12493
12494 * server.h (remote_debug, noack_mode, transport_is_reliable)
12495 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
12496 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
12497 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
12498 (write_enn, initialize_async_io, enable_async_io)
12499 (disable_async_io, check_remote_input_interrupt_request)
12500 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
12501 (dead_thread_notify, prepare_resume_reply)
12502 (decode_address_to_semicolon, decode_address, decode_m_packet)
12503 (decode_M_packet, decode_X_packet, decode_xfer_write)
12504 (decode_search_memory_packet, unhexify, hexify)
12505 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
12506 (look_up_one_symbol, relocate_instruction)
12507 (monitor_output): Move to remote-utils.h, and include it.
12508 * remote-utils.h: New file.
12509
eebdf26b
PA
125102013-09-05 Pedro Alves <palves@redhat.com>
12511
12512 * server.h (_): Delete.
12513
3aafd2ff
PA
125142013-09-02 Pedro Alves <palves@redhat.com>
12515
12516 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
12517 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
12518 allocated.
12519 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
12520
cee83bcb
PM
125212013-09-02 Pierre Muller <muller@sourceware.org>
12522
12523 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
12524 or WriteProcessMemory complete successfully and handle
12525 ERROR_PARTIAL_COPY error.
12526
9a13b2fa
PA
125272013-09-02 Pedro Alves <palves@redhat.com>
12528
12529 * server.c (gdb_read_memory): Return -1 on traceframe memory read
12530 error instead of EIO.
12531
602e3198
JK
125322013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
12533
12534 PR server/15604
12535 * linux-low.c: Include filestuff.h.
12536 (linux_create_inferior) <pid == 0>: Call close_most_fds.
12537 * lynx-low.c: Include filestuff.h.
12538 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
12539 * server.c: Include filestuff.h.
12540 (main): Call notice_open_fds.
12541 * spu-low.c: Include filestuff.h.
12542 (spu_create_inferior) <pid == 0>: Call close_most_fds.
12543
96d7229d
LM
125442013-08-22 Luis Machado <lgustavo@codesourcery.com>
12545
12546 * Makefile.in: Explain why ../target and ../nat are not
12547 listed as include file search paths.
12548 (linux-waitpid.o): New object file rule.
12549 * configure.srv (srv_native_linux_obj): New variable.
12550 Replace all occurrences of linux native object files with
12551 $srv_native_linux_obj.
12552 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
12553 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
12554 (linux_enable_event_reporting): Remove declaration.
12555 (my_waitpid): Moved to common/linux-waitpid.c.
12556 (linux_wait_for_event): Pass ptid when calling
12557 linux_enable_event_reporting.
12558 (linux_supports_tracefork_flag): Remove.
12559 (linux_enable_event_reporting): Likewise.
12560 (linux_tracefork_grandchild): Remove.
12561 (STACK_SIZE): Moved to common/linux-ptrace.c.
12562 (linux_tracefork_child): Remove.
12563 (linux_test_for_tracefork): Remove.
12564 (linux_look_up_symbols): Call linux_supports_traceclone.
12565 (initialize_low): Remove call to linux_test_for_tracefork.
12566 * linux-low.h (PTRACE_TYPE_ARG3): Move to
12567 common/linux-ptrace.h.
12568 (PTRACE_TYPE_ARG4): Likewise.
12569 Include linux-ptrace.h.
12570
32940073
PA
125712013-08-21 Pedro Alves <palves@redhat.com>
12572
12573 * config.in: Renegerate.
12574
33b60d58 125752013-08-19 Luis Machado <lgustavo@codesourcery.com>
a261b8f5 12576
33b60d58
LM
12577 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
12578 (SFILES): Remove $(srcdir)/common/target-common.c and
12579 add $(srcdir)/target/waitstatus.c.
12580 (OBS): Remove target-common.o and add waitstatus.o.
12581 (server_h): Remove $(srcdir)/../common/target-common.h and
12582 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
12583 and $(srcdir)/../target/waitstatus.h.
12584 (target-common.o): Remove.
12585 (waitstatus.o): New target object file.
12586 * target.h: Do not include target-common.h and
12587 include target/resume.h, target/wait.h and
12588 target/waitstatus.h.
12589
b8e1b30e
LM
125902013-08-13 Luis Machado <lgustavo@codesourcery.com>
12591
12592 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
12593 to PTRACE_TYPE_ARG3.
12594 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
12595 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
12596 PTRACE_TYPE_ARG4.
12597 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
12598 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
12599
7a60ad40
YQ
126002013-07-27 Jie Zhang <jie@codesourcery.com>
12601 Daniel Jacobowitz <dan@codesourcery.com>
12602 Yao Qi <yao@codesourcery.com>
12603
12604 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
12605 (mips-linux-watch.o): New rule.
12606 (mips_linux_watch_h): New variable.
12607 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
12608 srv_tgtobj.
12609 * linux-mips-low.c: Include mips-linux-watch.h.
12610 (struct arch_process_info, struct arch_lwp_info): New.
12611 (update_watch_registers_callback): New function.
12612 (mips_linux_new_process, mips_linux_new_thread) New functions.
12613 (mips_linux_prepare_to_resume, mips_insert_point): New
12614 functions.
12615 (mips_remove_point, mips_stopped_by_watchpoint): New
12616 functions.
12617 (rsp_bp_type_to_target_hw_bp_type): New function.
12618 (mips_stopped_data_address): New function.
12619 (the_low_target): Add watchpoint support functions.
12620
de6f69ad
YQ
126212013-07-27 Yao Qi <yao@codesourcery.com>
12622
12623 * i386-low.c: Include break-common.h.
12624 (enum target_hw_bp_type): Remove.
12625
3360c0bf
LM
126262013-07-24 Luis Machado <lgustavo@codesourcery.com>
12627
12628 * Makefile.in (SFILES): /common/target-common.c.
12629 (OBS): Add target-common.o.
12630 (server_h): Add $(srcdir)/../common/target-common.h.
12631 (target-common.o): New target.
12632 * server.c (queue_stop_reply_callback): Free
12633 status string after use.
12634 * target.c (target_waitstatus_to_string): Remove.
12635 * target.h: Include target-common.h.
12636 (resume_kind): Likewise.
12637 (target_waitkind): Likewise.
12638 (target_waitstatus): Likewise.
12639 (TARGET_WNOHANG): Likewise.
12640
bd885420
YQ
126412013-07-04 Yao Qi <yao@codesourcery.com>
12642
12643 * Makefile.in (host_alias): Use @host_noncanonical@.
12644 (target_alias): Use @target_noncanonical@.
12645 * configure.ac: Use ACX_NONCANONICAL_TARGET and
12646 ACX_NONCANONICAL_HOST.
12647 * configure: Regenerated.
12648
12649 Revert:
12650 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
12651
12652 * configure.ac (version_host, version_target): Set and AC_SUBST them.
12653 * configure: Rebuild.
12654 * Makefile.in (version_host, version_target): Get from configure.
12655 (version.c): Use $(version_host) and $(version_target).
12656
17ef446e
PA
126572013-07-03 Pedro Alves <palves@redhat.com>
12658
12659 * Makefile.in (config.status): Depend on development.sh.
12660 * acinclude.m4: Include libmcheck.m4.
12661 * configure: Regenerate.
12662
7a9a7487
MG
126632013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
12664
12665 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
12666 attribute inside the parentheses.
12667 (winapi_DebugSetProcessKillOnExit): Ditto.
12668 (winapi_DebugBreakProcess): Ditto.
12669 (winapi_GenerateConsoleCtrlEvent): Ditto.
a261b8f5 12670
49b64de6
MG
126712013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
12672
12673 * notif.h (notif_event): Add a dummy member to avoid compiler
12674 errors.
12675
d5749ee7
PA
126762013-07-01 Pedro Alves <palves@redhat.com>
12677
12678 * hostio.c (HOSTIO_PATH_MAX): Define.
12679 (require_filename, handle_open, handle_unlink, handle_readlink):
12680 Use it.
12681
d8d2a3ee
PA
126822013-07-01 Pedro Alves <palves@redhat.com>
12683
12684 * server.h: Include "pathmax.h".
12685 * linux-low.c: Don't include sys/param.h.
12686 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
12687 MAXPATHLEN.
12688 * win32-low.c: Don't include sys/param.h.
12689 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
12690
bc7dea8d
PA
126912013-07-01 Pedro Alves <palves@redhat.com>
12692
12693 * event-loop.c: Don't check HAVE_UNISTD_H before including
12694 <unistd.h>.
12695 * gdbreplay.c: Likewise.
12696 * remote-utils.c: Likewise.
12697 * server.c: Likewise.
12698 * configure.ac: Don't check for unistd.h.
12699 * configure: Regenerate.
12700
d6c2da54
TT
127012013-06-28 Tom Tromey <tromey@redhat.com>
12702
12703 * Makefile.in (version.c): Use version.in, not
12704 common/version.in.
12705
257b6bec
MG
127062013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
12707
12708 * configure.ac (version_host, version_target): Set and AC_SUBST them.
12709 * configure: Rebuild.
12710 * Makefile.in (version_host, version_target): Get from configure.
12711 (version.c): Use $(version_host) and $(version_target).
12712
86ebe149
DK
127132013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
12714
12715 Fix trace-status to output user name without trailing colon.
12716 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
12717
f30aa5af
DK
127182013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
12719
12720 Fix trace-status to output proper start-time and stop-time.
12721 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
12722 output start time and stop time in hex as gdb expects.
12723
28a93511
YQ
127242013-06-26 Pedro Alves <pedro@codesourcery.com>
12725
12726 * tracepoint.c (build_traceframe_info_xml): Output trace state
12727 variables present in the trace buffer.
12728
01208463
TT
127292013-06-24 Tom Tromey <tromey@redhat.com>
12730
12731 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
12732 create-version.sh.
12733 (version.o): Remove.
12734 * gdbreplay.c: Include version.h.
12735 (version, host_name): Don't declare.
12736 * server.h: Include version.h.
12737 (version, host_name): Don't declare.
12738
760256f9
PA
127392013-06-12 Pedro Alves <palves@redhat.com>
12740
12741 * linux-x86-low.c (linux_is_elf64): Delete global.
12742 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
12743 with local linux_pid_exe_is_elf_64_file use.
12744
030031ee
PA
127452013-06-11 Pedro Alves <palves@redhat.com>
12746
12747 * linux-low.c (regset_disabled, disable_regset): New functions.
12748 (regsets_fetch_inferior_registers)
12749 (regsets_store_inferior_registers): Use them.
12750 (initialize_regsets_info); Don't allocate the disabled_regsets
12751 array here.
12752 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
12753 comment.
12754
5da6eb0a
PA
127552013-06-11 Pedro Alves <palves@redhat.com>
12756
12757 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
12758 xmalloc.
12759
7e5aaa09
PA
127602013-06-11 Pedro Alves <palves@redhat.com>
12761
12762 * linux-x86-low.c (initialize_low_arch): Call
12763 init_registers_x32_avx_linux.
12764
d878444c
JK
127652013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12766
12767 Fix compatibility with Android Bionic.
12768 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
12769 it is not empty.
12770
3aee8918
PA
127712013-06-07 Pedro Alves <palves@redhat.com>
12772
5f2b57b5 12773 PR server/14823
3aee8918
PA
12774 * Makefile.in (OBS): Add tdesc.o.
12775 (IPA_OBJS): Add tdesc-ipa.o.
12776 (tdesc-ipa.o): New rule.
12777 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
12778 interface.
12779 * linux-low.c (new_inferior): Delete.
12780 (disabled_regsets, num_regsets): Delete.
12781 (linux_add_process): Adjust to set the new per-process
12782 new_inferior flag.
12783 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
12784 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
12785 was a stop. When calling arch_setup, switch the current inferior
12786 to the thread that got an event.
12787 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
12788 (regsets_fetch_inferior_registers)
12789 (regsets_store_inferior_registers): New regsets_info parameter.
12790 Adjust to use it.
12791 (linux_register_in_regsets): New regs_info parameter. Adjust to
12792 use it.
12793 (register_addr, fetch_register, store_register): New usrregs_info
12794 parameter. Adjust to use it.
12795 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
12796 parameter regs_info. Adjust to use it.
12797 (linux_fetch_registers): Get the current inferior's regs_info, and
12798 adjust to use it.
12799 (linux_store_registers): Ditto.
12800 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
12801 (initialize_low): Don't initialize the target_regsets here. Call
12802 initialize_low_arch.
12803 * linux-low.h (target_regsets): Delete declaration.
12804 (struct regsets_info): New.
12805 (struct usrregs_info): New.
12806 (struct regs_info): New.
12807 (struct process_info_private) <new_inferior>: New field.
12808 (struct linux_target_ops): Delete the num_regs, regmap, and
12809 regset_bitmap fields. New field regs_info.
12810 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
12811 * i387-fp.c (num_xmm_registers): Delete.
12812 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
12813 calls to new interface.
12814 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
12815 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
12816 Infer the number of xmm registers from the regcache's target
12817 description.
12818 * i387-fp.h (num_xmm_registers): Delete.
12819 * inferiors.c (add_thread): Don't install the thread's regcache
12820 here.
12821 * proc-service.c (gregset_info): Fetch the current inferior's
12822 regs_info. Adjust to use it.
12823 * regcache.c: Include tdesc.h.
12824 (register_bytes, reg_defs, num_registers)
12825 (gdbserver_expedite_regs): Delete.
12826 (get_thread_regcache): If the thread doesn't have a regcache yet,
12827 create one, instead of aborting gdbserver.
12828 (regcache_invalidate_one): Rename to ...
12829 (regcache_invalidate_thread): ... this.
12830 (regcache_invalidate_one): New.
12831 (regcache_invalidate): Only invalidate registers of the current
12832 process.
12833 (init_register_cache): Add target_desc parameter, and use it.
12834 (new_register_cache): Ditto. Assert the target description has a
12835 non zero registers_size.
12836 (regcache_cpy): Add assertions. Adjust.
12837 (realloc_register_cache, set_register_cache): Delete.
12838 (registers_to_string, registers_from_string): Adjust.
12839 (find_register_by_name, find_regno, find_register_by_number)
12840 (register_cache_size): Add target_desc parameter, and use it.
12841 (free_register_cache_thread, free_register_cache_thread_one)
12842 (regcache_release, register_cache_size): New.
12843 (register_size): Add target_desc parameter, and use it.
12844 (register_data, supply_register, supply_register_zeroed)
12845 (supply_regblock, supply_register_by_name, collect_register)
12846 (collect_register_as_string, collect_register_by_name): Adjust.
12847 * regcache.h (struct target_desc): Forward declare.
12848 (struct regcache) <tdesc>: New field.
12849 (init_register_cache, new_register_cache): Add target_desc
12850 parameter.
12851 (regcache_invalidate_thread): Declare.
12852 (regcache_invalidate_one): Delete declaration.
12853 (regcache_release): Declare.
12854 (find_register_by_number, register_cache_size, register_size)
12855 (find_regno): Add target_desc parameter.
12856 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
12857 declarations.
12858 * remote-utils.c: Include tdesc.h.
12859 (outreg, prepare_resume_reply): Adjust.
12860 * server.c: Include tdesc.h.
12861 (gdbserver_xmltarget): Delete declaration.
12862 (get_features_xml, process_serial_event): Adjust.
12863 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
12864 declare.
12865 (struct process_info) <tdesc>: New field.
12866 (ipa_tdesc): Declare.
12867 * tdesc.c: New file.
12868 * tdesc.h: New file.
12869 * tracepoint.c: Include tdesc.h.
12870 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
12871 (get_context_regcache): Adjust to pass ipa_tdesc down.
12872 (do_action_at_tracepoint): Adjust to get the register cache size
12873 from the context regcache's description.
12874 (traceframe_walk_blocks): Adjust to get the register cache size
12875 from the current trace frame's description.
12876 (traceframe_get_pc): Adjust to get current trace frame's
12877 description and pass it down.
12878 (gdb_collect): Adjust to get the register cache size from the
12879 IPA's description.
12880 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
12881 (gdbserver_xmltarget): Delete.
12882 (initialize_low_tracepoint): Set the ipa's target description.
12883 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
12884 (initialize_low_tracepoint): Set the ipa's target description.
12885 * linux-x86-low.c: Include tdesc.h.
12886 [__x86_64__] (is_64bit_tdesc): New.
12887 (ps_get_thread_area, x86_get_thread_area): Use it.
12888 (i386_cannot_store_register): Rename to ...
12889 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
12890 (i386_cannot_fetch_register): Rename to ...
12891 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
12892 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
12893 to new interface.
12894 (target_regsets): Rename to ...
12895 (x86_regsets): ... this.
12896 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
12897 interface.
12898 (x86_siginfo_fixup): Use is_64bit_tdesc.
12899 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
12900 (tdesc_x32_avx_linux, tdesc_x32_linux)
12901 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
12902 Declare.
12903 (x86_linux_update_xmltarget): Delete.
12904 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
12905 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
12906 (AMD64_LINUX_USER64_CS): New.
12907 (x86_linux_read_description): New, based on
12908 x86_linux_update_xmltarget.
12909 (same_process_callback): New.
12910 (x86_arch_setup_process_callback): New.
12911 (x86_linux_update_xmltarget): New.
12912 (x86_regsets_info): New.
12913 (amd64_linux_regs_info): New.
12914 (i386_linux_usrregs_info): New.
12915 (i386_linux_regs_info): New.
12916 (x86_linux_regs_info): New.
12917 (x86_arch_setup): Reimplement.
12918 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
12919 (x86_emit_ops): Ditto.
12920 (the_low_target): Adjust. Install x86_linux_regs_info,
12921 x86_cannot_fetch_register, and x86_cannot_store_register.
12922 (initialize_low_arch): New.
12923 * linux-ia64-low.c (tdesc_ia64): Declare.
12924 (ia64_fetch_register): Adjust.
12925 (ia64_usrregs_info, regs_info): New globals.
12926 (ia64_regs_info): New function.
12927 (the_low_target): Adjust.
12928 (initialize_low_arch): New function.
12929 * linux-sparc-low.c (tdesc_sparc64): Declare.
12930 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
12931 Adjust.
12932 (sparc_arch_setup): New function.
12933 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
12934 (the_low_target): Adjust.
12935 (initialize_low_arch): New function.
12936 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
12937 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
12938 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
12939 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
12940 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
12941 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
12942 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
12943 (tdesc_powerpc_isa205_vsx64l): Declare.
12944 (ppc_cannot_store_register, ppc_collect_ptrace_register)
12945 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
12946 (ppc_set_pc, ppc_get_hwcap): Adjust.
12947 (ppc_usrregs_info): Forward declare.
12948 (!__powerpc64__) ppc_regmap_adjusted: New global.
12949 (ppc_arch_setup): Adjust to the current process'es target
12950 description.
12951 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
12952 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
12953 (ppc_store_evrregset): Adjust.
12954 (target_regsets): Rename to ...
12955 (ppc_regsets): ... this, and make static.
12956 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
12957 (ppc_regs_info): New function.
12958 (the_low_target): Adjust.
12959 (initialize_low_arch): New function.
12960 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
12961 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
12962 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
12963 (tdesc_s390x_linux64v2): Declare.
12964 (s390_collect_ptrace_register, s390_supply_ptrace_register)
12965 (s390_fill_gregset, s390_store_last_break): Adjust.
12966 (target_regsets): Rename to ...
12967 (s390_regsets): ... this, and make static.
12968 (s390_get_pc, s390_set_pc): Adjust.
12969 (s390_get_hwcap): New target_desc parameter, and use it.
12970 [__s390x__] (have_hwcap_s390_high_gprs): New global.
12971 (s390_arch_setup): Adjust to set the current process'es target
12972 description. Don't adjust the regmap.
12973 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
12974 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
12975 (regs_info_3264): New globals.
12976 (s390_regs_info): New function.
12977 (the_low_target): Adjust.
12978 (initialize_low_arch): New function.
12979 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
12980 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
12981 [__mips64] (init_registers_mips_linux)
12982 (init_registers_mips_dsp_linux): Delete defines.
12983 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
12984 (have_dsp): New global.
12985 (mips_read_description): New, based on mips_arch_setup.
12986 (mips_arch_setup): Reimplement.
12987 (get_usrregs_info): New function.
12988 (mips_cannot_fetch_register, mips_cannot_store_register)
12989 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
12990 (mips_fill_fpregset, mips_store_fpregset): Adjust.
12991 (target_regsets): Rename to ...
12992 (mips_regsets): ... this, and make static.
12993 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
12994 (dsp_regs_info, regs_info): New globals.
12995 (mips_regs_info): New function.
12996 (the_low_target): Adjust.
12997 (initialize_low_arch): New function.
12998 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
12999 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
13000 Declare.
13001 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
13002 (arm_read_description): New, with bits factored from
13003 arm_arch_setup.
13004 (arm_arch_setup): Reimplement.
13005 (target_regsets): Rename to ...
13006 (arm_regsets): ... this, and make static.
13007 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
13008 (arm_regs_info): New function.
13009 (the_low_target): Adjust.
13010 (initialize_low_arch): New function.
13011 * linux-m68k-low.c (tdesc_m68k): Declare.
13012 (target_regsets): Rename to ...
13013 (m68k_regsets): ... this, and make static.
13014 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
13015 (m68k_regs_info): New function.
13016 (m68k_arch_setup): New function.
13017 (the_low_target): Adjust.
13018 (initialize_low_arch): New function.
13019 * linux-sh-low.c (tdesc_sharch): Declare.
13020 (target_regsets): Rename to ...
13021 (sh_regsets): ... this, and make static.
13022 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
13023 (sh_regs_info, sh_arch_setup): New functions.
13024 (the_low_target): Adjust.
13025 (initialize_low_arch): New function.
13026 * linux-bfin-low.c (tdesc_bfin): Declare.
13027 (bfin_arch_setup): New function.
13028 (bfin_usrregs_info, regs_info): New globals.
13029 (bfin_regs_info): New function.
13030 (the_low_target): Adjust.
13031 (initialize_low_arch): New function.
13032 * linux-cris-low.c (tdesc_cris): Declare.
13033 (cris_arch_setup): New function.
13034 (cris_usrregs_info, regs_info): New globals.
13035 (cris_regs_info): New function.
13036 (the_low_target): Adjust.
13037 (initialize_low_arch): New function.
13038 * linux-cris-low.c (tdesc_crisv32): Declare.
13039 (cris_arch_setup): New function.
13040 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
13041 (cris_regs_info): New function.
13042 (the_low_target): Adjust.
13043 (initialize_low_arch): New function.
13044 * linux-m32r-low.c (tdesc_m32r): Declare.
13045 (m32r_arch_setup): New function.
13046 (m32r_usrregs_info, regs_info): New globals.
13047 (m32r_regs_info): Adjust.
13048 (initialize_low_arch): New function.
13049 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
13050 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
13051 (tic6x_usrregs_info): Forward declare.
13052 (tic6x_read_description): New function, based on ...
13053 (tic6x_arch_setup): ... this. Reimplement.
13054 (target_regsets): Rename to ...
13055 (tic6x_regsets): ... this, and make static.
13056 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
13057 (tic6x_regs_info): New function.
13058 (the_low_target): Adjust.
13059 (initialize_low_arch): New function.
13060 * linux-xtensa-low.c (tdesc_xtensa): Declare.
13061 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
13062 (target_regsets): Rename to ...
13063 (xtensa_regsets): ... this, and make static.
13064 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
13065 globals.
13066 (xtensa_arch_setup, xtensa_regs_info): New functions.
13067 (the_low_target): Adjust.
13068 (initialize_low_arch): New function.
13069 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
13070 (nios2_arch_setup): Set the current process'es tdesc.
13071 (target_regsets): Rename to ...
13072 (nios2_regsets): ... this.
13073 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
13074 (nios2_regs_info): New function.
13075 (the_low_target): Adjust.
13076 (initialize_low_arch): New function.
a261b8f5
PA
13077 * linux-aarch64-low.c (tdesc_aarch64): Declare.
13078 (aarch64_arch_setup): Set the current process'es tdesc.
13079 (target_regsets): Rename to ...
13080 (aarch64_regsets): ... this.
13081 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
13082 (aarch64_regs_info): New function.
13083 (the_low_target): Adjust.
13084 (initialize_low_arch): New function.
3aee8918
PA
13085 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
13086 globals.
13087 (target_regsets): Rename to ...
13088 (tile_regsets): ... this.
13089 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
13090 (tile_regs_info): New function.
13091 (tile_arch_setup): Set the current process'es tdesc.
13092 (the_low_target): Adjust.
13093 (initialize_low_arch): New function.
13094 * spu-low.c (tdesc_spu): Declare.
13095 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
13096 * win32-arm-low.c (tdesc_arm): Declare.
13097 (arm_arch_setup): New function.
13098 (the_low_target): Install arm_arch_setup instead of
13099 init_registers_arm.
13100 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
13101 (init_windows_x86): Rename to ...
13102 (i386_arch_setup): ... this. Set `win32_tdesc'.
13103 (the_low_target): Adjust.
13104 * win32-low.c (win32_tdesc): New global.
13105 (child_add_thread): Don't create the thread cache here.
13106 (do_initial_child_stuff): Set the new process'es tdesc.
13107 * win32-low.h (struct target_desc): Forward declare.
13108 (win32_tdesc): Declare.
13109 * lynx-i386-low.c (tdesc_i386): Declare global.
13110 (lynx_i386_arch_setup): Set `lynx_tdesc'.
13111 * lynx-low.c (lynx_tdesc): New global.
13112 (lynx_add_process): Set the new process'es tdesc.
13113 * lynx-low.h (struct target_desc): Forward declare.
13114 (lynx_tdesc): Declare global.
13115 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
13116 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
13117 * nto-low.c (nto_tdesc): New global.
13118 (do_attach): Set the new process'es tdesc.
13119 * nto-low.h (struct target_desc): Forward declare.
13120 (nto_tdesc): Declare.
13121 * nto-x86-low.c (tdesc_i386): Declare.
13122 (nto_x86_arch_setup): Set `nto_tdesc'.
13123
b1fbec62
GB
131242013-06-04 Gary Benson <gbenson@redhat.com>
13125
13126 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
13127 to qSupported response when appropriate.
13128 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
13129 with nonzero-length annex.
13130 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
13131 arguments supplied in annex.
13132
d1ec4ce7
DE
131332013-05-31 Doug Evans <dje@google.com>
13134
ac44adcb 13135 PR server/15594
d1ec4ce7
DE
13136 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
13137 64 bits in 64-cross-32 environment.
13138
9b25f2d3
PA
131392013-05-28 Pedro Alves <palves@redhat.com>
13140
13141 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
13142 (aarch64-without-fpu.c): Delete rule.
13143 * configure.srv (aarch64*-*-linux*): Remove references to
13144 aarch64-without-fpu.o and aarch64-without-fpu.xml.
13145 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
13146 declaration.
13147
6740dc9c
PA
131482013-05-24 Pedro Alves <palves@redhat.com>
13149
13150 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
13151 instead of strchr/decode_address. Error if the range isn't split
13152 with a ','. Don't assume there's be a ':' in the action.
13153
c2d6af84
PA
131542013-05-23 Yao Qi <yao@codesourcery.com>
13155 Pedro Alves <palves@redhat.com>
13156
13157 * linux-low.c (lwp_in_step_range): New function.
13158 (linux_wait_1): If the thread was range stepping and stopped
13159 outside the stepping range, report the stop to GDB. Otherwise,
13160 continue stepping. Add range stepping debug output.
13161 (linux_set_resume_request): Copy the step range from the resume
13162 request to the lwp.
13163 (linux_supports_range_stepping): New.
13164 (linux_target_ops) <supports_range_stepping>: Set to
13165 linux_supports_range_stepping.
13166 * linux-low.h (struct linux_target_ops)
13167 <supports_range_stepping>: New field.
13168 (struct lwp_info) <step_range_start, step_range_end>: New fields.
13169 * linux-x86-low.c (x86_supports_range_stepping): New.
13170 (the_low_target) <supports_range_stepping>: Set to
13171 x86_supports_range_stepping.
13172 * server.c (handle_v_cont): Handle 'r' action.
13173 (handle_v_requests): Append ";r" if the target supports range
13174 stepping.
13175 * target.h (struct thread_resume) <step_range_start,
13176 step_range_end>: New fields.
13177 (struct target_ops) <supports_range_stepping>:
13178 New field.
13179 (target_supports_range_stepping): New macro.
13180
58794e1a
JB
131812013-05-17 Joel Brobecker <brobecker@adacore.com>
13182
13183 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
13184 confusion in comment.
13185
d631c5a7
JB
131862013-05-17 Joel Brobecker <brobecker@adacore.com>
13187
13188 * lynx-low.c (struct process_info_private): New type.
13189 (lynx_add_process): New function.
13190 (lynx_create_inferior, lynx_attach): Replace calls to
13191 add_process by calls to lynx_add_process.
13192 (lynx_resume): If PTID is null, then try using
13193 current_process()->private->last_wait_event_ptid.
13194 Add comments.
13195 (lynx_clear_inferiors): Delete. The contents of that function
13196 has been inlined in lynx_mourn;
13197 (lynx_wait_1): Save the ptid in the process's private data.
13198 (lynx_mourn): Free the process' private data. Replace call
13199 to lynx_clear_inferiors by call to clear_inferiors.
13200
96f7a20f
YQ
132012013-05-17 Yao Qi <yao@codesourcery.com>
13202
13203 * i386-low.c (i386_length_and_rw_bits): Move the comment to
13204 the right place.
13205
db0dfaa0
LM
132062013-05-16 Luis Machado <lgustavo@codesourcery.com>
13207
13208 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
13209 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
13210 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
13211 PT_TEXT_END_ADDR guards. Update comments.
13212 (linux_target_op) <read_offsets>: Conditionally define to
13213 linux_read_offsets if the target is UCLIBC and if it defines
13214 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
13215
68f5f838
SL
132162013-05-06 Sandra Loosemore <sandra@codesourcery.com>
13217 Andrew Jenner <andrew@codesourcery.com>
13218
13219 * Makefile.in (SFILES): Add linux-nios2-low.c.
13220 (clean): Add action to delete nios2-linux.c.
13221 (nios2-linux.c): New rule.
13222 * configure.srv: Add nios2*-*-linux*.
13223 * linux-nios2-low.c: New.
13224
1ebff1fd
HAQ
132252013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
13226
13227 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
13228
f6150862
HZ
132292013-04-25 Hui Zhu <hui@codesourcery.com>
13230
13231 PR gdb/15186
f6150862
HZ
13232 * ax.c (ax_printf): Add fflush.
13233
614c279d
TT
132342013-04-22 Tom Tromey <tromey@redhat.com>
13235
13236 * Makefile.in (SFILES): Add filestuff.c.
13237 (OBS): Add filestuff.o.
13238 (filestuff.o): New target.
13239 * config.in, configure: Rebuild.
13240 * configure.ac: Check for fdwalk, pipe2.
13241
7d4e5717
PA
132422013-04-17 Pedro Alves <palves@redhat.com>
13243
13244 * configure.ac (USE_THREAD_DB): Delete variable.
13245 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
13246 Don't AC_SUBST USE_THREAD_DB.
13247 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
13248 * config.in, configure: Regenerate.
13249
d5c93e41
PA
132502013-04-16 Pedro Alves <palves@redhat.com>
13251
13252 * linux-low.h (struct lwp_info) <thread_known>: Move under
13253 the USE_THREAD_DB #ifdef.
13254
04f5fe89
PA
132552013-04-16 Pedro Alves <palves@redhat.com>
13256
13257 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
13258 (linux-low.o): Delete rule.
13259 * linux-low.h: Always include "gdb_thread_db.h" instead of
13260 conditionally including thread_db.h.
13261 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
13262 HAVE_THREAD_DB_H.
13263
480b27bf
JK
132642013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
13265
13266 * Makefile.in (install-only): Fix make install regression.
13267
43662968
JK
132682013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
13269
13270 Convert man pages to texinfo, new gdbinit.5 texinfo page.
13271 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
13272 installation.
13273 * gdbserver.1: Remove.
13274
3e74e146
PA
132752013-03-22 Pedro Alves <palves@redhat.com>
13276
13277 * linux-low.c (handle_extended_wait): Don't call
13278 linux_enable_event_reporting.
13279
a8347a2a
TT
132802013-03-15 Tony Theodore <tonyt@logyst.com>
13281
13282 PR build/9098:
13283 * Makefile.in (SHELL): Use @SHELL@.
13284
eeb56fa7
SDJ
132852013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
13286
13287 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
13288 compiler warning.
13289
4fa7e2ff
JB
132902013-03-13 Joel Brobecker <brobecker@adacore.com>
13291
13292 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
13293 Remove extraneous NULL element.
13294
8ddb1965
YQ
132952013-03-13 Yao Qi <yao@codesourcery.com>
13296
13297 * tracepoint.c (traceframe_read_tsv): Look for the last matched
13298 'V' block in trace frame.
13299
9accd112
MM
133002013-03-11 Markus Metzger <markus.t.metzger@intel.com>
13301
13302 * target.h (struct target_ops): Add btrace ops.
13303 (target_supports_btrace): New macro.
13304 (target_enable_btrace): New macro.
13305 (target_disable_btrace): New macro.
13306 (target_read_btrace): New macro.
13307 * gdbthread.h (struct thread_info): Add btrace field.
13308 * server.c: Include btrace-common.h.
13309 (handle_btrace_general_set): New function.
13310 (handle_btrace_enable): New function.
13311 (handle_btrace_disable): New function.
13312 (handle_general_set): Call handle_btrace_general_set.
13313 (handle_qxfer_btrace): New function.
13314 (struct qxfer qxfer_packets[]): Add btrace entry.
13315 * inferiors.c (remove_thread): Disable btrace.
13316 * linux-low: Include linux-btrace.h.
13317 (linux_low_enable_btrace): New function.
13318 (linux_low_read_btrace): New function.
13319 (linux_target_ops): Add btrace ops.
13320 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
13321 Add srv_linux_btrace=yes.
13322 (x86_64-*-linux*): Add linux-btrace.o.
13323 Add srv_linux_btrace=yes.
13324 * configure.ac: Define HAVE_LINUX_BTRACE.
13325 * config.in: Regenerated.
13326 * configure: Regenerated.
13327
5cc22e4c
MM
133282013-03-11 Markus Metzger <markus.t.metzger@intel.com>
13329
13330 * server.c (handle_qxfer): Preserve error message if -3 is
13331 returned.
13332 (qxfer): Document the -3 return value.
13333
7c97f91e
MM
133342013-03-11 Markus Metzger <markus.t.metzger@intel.com>
13335
13336 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
13337 (linux_btrace_h): New variable.
13338 (linux-btrace.o): New rule.
13339
be9a119c 133402013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
13341 Hafiz Abid Qadeer <abidh@codesourcery.com>
13342
13343 * tracepoint.c (trace_buffer_size): New global.
13344 (DEFAULT_TRACE_BUFFER_SIZE): New define.
13345 (init_trace_buffer): Change to one-argument function. Allocate
13346 trace buffer memory.
13347 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
13348 handle QTBuffer:size packet.
13349 (cmd_bigqtbuffer_size): New function.
13350 (initialize_tracepoint): Call init_trace_buffer with
13351 DEFAULT_TRACE_BUFFER_SIZE.
13352 * server.c (handle_query): Add QTBuffer:size in the
13353 supported packets.
13354
e64f7499
YQ
133552013-03-07 Yao Qi <yao@codesourcery.com>
13356
13357 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
13358 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
13359 of -1.
13360 (cmd_qtsp): Adjust condition. Do post increment.
13361 Set cur_action and cur_step_action back to 0.
13362
f0ae6fc3
PA
133632013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
13364
13365 PR server/15236
13366 * linux-low.c (linux_write_memory): Return early success if LEN is
13367 zero.
13368
b5b0b0af
CV
133692013-03-05 Corinna Vinschen <vinschen@redhat.de>
13370
334ad4a8 13371 * configure.srv: Add x86_64-*-cygwin* as target.
b5b0b0af 13372
589bc927
TT
133732013-02-28 Tom Tromey <tromey@redhat.com>
13374
13375 * configure.ac: Invoke AC_SYS_LARGEFILE.
13376 * configure, config.in: Rebuild.
13377
dfe07582
CV
133782013-02-28 Corinna Vinschen <vinschen@redhat.com>
13379
13380 * win32-low.c: Throughout, fix format strings and casts of
13381 printf-like functions to avoid type related warnings on all
13382 platforms.
13383 (get_child_debug_event): Print dwDebugEventCode as hex since
13384 that's how it's usually documented.
13385
736cd585
YQ
133862013-02-28 Yao Qi <yao@codesourcery.com>
13387
13388 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
13389 pulongest.
13390
e1f58301
JW
133912013-02-27 Jiong Wang <jiwang@tilera.com>
13392
13393 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
13394 (reg-tilegx32.c): New rule.
13395 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
13396 * linux-tile-low.c (tile_arch_setup): New function. Invoke
13397 different register info initializer according to elf class.
13398 (init_registers_tilgx32): New function. The tilegx32 register info
13399 initializer.
13400 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
13401 (tile_store_gregset): Likewise.
13402
d171ca78
YQ
134032013-02-27 Yao Qi <yao@codesourcery.com>
13404
13405 * server.c (process_point_options): Print debug message when
13406 debug_threads is true.
13407
282bbdf3
YQ
134082013-02-26 Yao Qi <yao@codesourcery.com>
13409
13410 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
13411
aca22551
PA
134122013-02-19 Pedro Alves <palves@redhat.com>
13413 Kai Tietz <ktietz@redhat.com>
13414
13415 PR gdb/15161
13416
13417 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
13418 instead of strtoul to extract address from packet.
13419 (process_serial_event) <'z'>: Likewise.
13420
4f3cee1c
YQ
134212013-02-18 Yao Qi <yao@codesourcery.com>
13422
13423 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
13424
8e1d55a3
PA
134252013-02-14 Pedro Alves <palves@redhat.com>
13426
13427 Plug memory leak.
13428
13429 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
13430 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
13431
458820da
PA
134322013-02-14 Pedro Alves <palves@redhat.com>
13433
13434 * tracepoint.c (cmd_qtdpsrc): Use savestring.
13435
baea0dae
PA
134362013-02-14 Pedro Alves <palves@redhat.com>
13437
13438 * tracepoint.c (save_string): Delete.
13439 (add_tracepoint_action): Use savestring instead of save_string.
13440
0b1afbb3
PA
134412013-02-12 Pedro Alves <palves@redhat.com>
13442
13443 * linux-xtensa-low.c: Ditto.
13444 * xtensa-xtregs.c: Ditto.
13445
8a4ac37e
PA
134462013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13447
13448 * thread-db.c (thread_db_get_tls_address): NULL pointer check
13449 thread_db.
13450
148de6bb
MS
134512013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
13452
13453 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
13454 aarch64_num_wp_regs and aarch64_num_bp_regs to
13455 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
13456
55fac6e0
MS
134572013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
13458
13459 * linux-aarch64-low.c (ps_get_thread_area): Replace
13460 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
13461
176eb98c
MS
134622013-02-04 Jim MacArthur <jim.macarthur@arm.com>
13463 Marcus Shawcroft <marcus.shawcroft@arm.com>
13464 Nigel Stephens <nigel.stephens@arm.com>
13465 Yufeng Zhang <yufeng.zhang@arm.com>
13466
13467 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
13468 (aarch64.c, aarch64-without-fpu.c): New targets.
13469 * configure.srv (aarch64*-*-linux*): New.
13470 * linux-aarch64-low.c: New file.
13471
56f7af9c
MS
134722013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
13473
43aaf8b6 13474 * linux-low.c (handle_extended_wait, linux_create_inferior)
56f7af9c
MS
13475 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
13476 (dequeue_one_deferred_signal, linux_resume_one_thread)
13477 (fetch_register, linux_write_memory, linux_enable_event_reporting)
13478 (linux_tracefork_grandchild, linux_test_for_tracefork)
13479 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
13480 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
13481 where the argument is 0.
13482
60f662b0
YQ
134832013-01-25 Yao Qi <yao@codesourcery.com>
13484
13485 * event-loop.c: Include "queue.h".
13486 (gdb_event_p): New typedef.
13487 (struct gdb_event) <next_event>: Remove.
13488 (event_queue): Change to QUEUE(gdb_event_p).
13489 (async_queue_event): Remove.
13490 (gdb_event_xfree): New.
13491 (initialize_event_loop): New.
13492 (process_event): Use API from QUEUE.
13493 (wait_for_event): Likewise.
13494 * server.c (main): Call initialize_event_loop.
13495 * server.h (initialize_event_loop): Declare.
13496
5ae4861a
YQ
134972013-01-18 Yao Qi <yao@codesourcery.com>
13498
13499 * ax.h (struct eval_agent_expr_context): New.
13500 (gdb_eval_agent_expr): Update declaration.
13501 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
13502 TFRAME. Add new argument CTX.
13503 * server.h (struct eval_agent_expr_context): Declare.
13504 (agent_mem_read, agent_tsv_read): Update declaration.
13505 (agent_mem_read_string): Likewise.
13506 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
13507 (add_traceframe_block): Add new argument TPOINT.
13508 Increase TPOINT->traceframe_usage.
13509 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
13510 eval_tracepoint_agent_expr.
13511 (condition_true_at_tracepoint): Likewise.
13512 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
13513 (agent_mem_read_string, agent_tsv_read): Likewise.
13514
85e00e85
YQ
135152013-01-16 Yao Qi <yao@codesourcery.com>
13516
13517 * linux-low.c (linux_resume_one_lwp): Don't check
13518 'lwp->bp_reinsert != 0'.
13519
4039cf45
JB
135202013-01-07 Joel Brobecker <brobecker@adacore.com>
13521 Pedro Alves <palves@redhat.com>
13522
13523 * lynx-low.c (ptrace_request_to_str): Define a temporary
13524 macro and use it to simplify this function's implementation.
13525
9044dee2
JB
135262013-01-07 Joel Brobecker <brobecker@adacore.com>
13527
13528 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
13529 sets errno.
13530
e6352c8f
JB
135312013-01-07 Joel Brobecker <brobecker@adacore.com>
13532
13533 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
13534
50681a27
JB
135352013-01-07 Joel Brobecker <brobecker@adacore.com>
13536
13537 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
13538
3f6e77ef
JB
135392013-01-07 Joel Brobecker <brobecker@adacore.com>
13540
13541 * lynx-low.c (lynx_resume): Use the resume_info parameter
13542 to determine the ptid for the lynx_ptrace call, unless
13543 it is equal to minus_one_ptid, in which case we use the
13544 ptid of the current_inferior.
13545 (lynx_wait_1): After having received a thread create/exit
13546 event, resume the inferior's execution using the signaling
13547 thread's ptid, rather than the old ptid.
13548
7fda33ae
JB
135492013-01-07 Joel Brobecker <brobecker@adacore.com>
13550
13551 * lynx-low.c (lynx_resume): Delete variable ret.
13552
b9786c74
JB
135532013-01-01 Joel Brobecker <brobecker@adacore.com>
13554
13555 * gdbreplay.c (gdbreplay_version): Update copyright year.
13556 * server.c (gdbserver_version): Likewise.
13557
8b93d60f
JB
135582012-12-17 Joel Brobecker <brobecker@adacore.com>
13559
13560 * lynx-low.c (lynx_wait_1): Add debug trace before adding
13561 new thread.
13562
037335a7
JB
135632012-12-17 Joel Brobecker <brobecker@adacore.com>
13564
13565 * lynx-low.c (ptrace_request_to_str): Add handling for
13566 PTRACE_GETTRACESIG.
13567
52d4cbd8
JB
135682012-12-17 Joel Brobecker <brobecker@adacore.com>
13569
13570 * lynx-low.c (lynx_attach): Delete variable new_process.
13571
ab8f6ca9
JB
135722012-12-17 Joel Brobecker <brobecker@adacore.com>
13573
13574 * lynx-low.c (lynx_create_inferior): Delete variable
13575 new_process.
13576
78cbc024
JB
135772012-12-17 Joel Brobecker <brobecker@adacore.com>
13578
13579 * lynx-low.c (ptrace_request_to_str): Do not handle
13580 PTRACE_GETTHREADLIST if this macro does not exist.
13581
14a00470
YQ
135822012-12-15 Yao Qi <yao@codesourcery.com>
13583
13584 * Makefile.in (OBS): Add notif.o.
13585 * notif.c, notif.h: New.
13586 * server.c: Include "notif.h".
13587 (struct vstop_notif) <next>: Remove.
13588 <base>: New field.
13589 (queue_stop_reply): Update.
13590 (push_event, send_next_stop_reply): Remove.
13591 (discard_queued_stop_replies): Update.
13592 (notif_stop): New variable.
13593 (handle_v_stopped): Remove.
13594 (handle_v_requests): Don't call handle_v_stopped. Call
13595 handle_ack_notif instead.
13596 (queue_stop_reply_callback): Call notif_event_enque instead
13597 of queue_stop_reply.
13598 (handle_status): Don't call send_next_stop_reply, call
13599 notif_write_event instead.
13600 (kill_inferior_callback): Likewise.
13601 (detach_or_kill_inferior_callback): Likewise.
13602 (main): Call initialize_notif.
13603 (process_serial_event): Call QUEUE_is_empty.
13604 (handle_target_event): Call notif_push instead of push event.
13605 * server.h (push_event): Remove declaration.
13606
61c125b9
TT
136072012-12-10 Tom Tromey <tromey@redhat.com>
13608
13609 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
13610 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
13611 macros.
13612 (.c.o): Rewrite.
13613 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
13614 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
13615 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
13616 (amd64-linux-ipa.o, ax.o): Rewrite.
13617 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
13618 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
13619 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
13620 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
13621 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
13622 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
13623 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
13624 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
13625 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
13626 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
13627 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
13628 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
13629 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
13630 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
13631 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
13632 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
13633 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
13634 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
13635 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
13636 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
13637 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
13638 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
13639 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
13640 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
13641 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
13642 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
13643 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
13644 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
13645 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
13646 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
13647 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
13648 (reg-tilegx.o): Remove.
13649 (all_object_files): New macro.
13650 Include .deps files.
13651 * aclocal.m4, configure: Rebuild.
13652 * acinclude.m4: Include depstand.m4, lead-dot.m4.
13653 * configure.ac: Invoke ZW_CREATE_DEPDIR,
13654 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
13655
e90e9ad9
TT
136562012-12-05 Tom Tromey <tromey@redhat.com>
13657
13658 PR gdb/14917:
13659 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
13660
02d403bf 136612012-11-28 Markus Metzger <markus.t.metzger@intel.com>
945bf713
MM
13662
13663 * configure.ac: Check for linux/perf_event.h.
13664 * config.in: Regenerated.
13665 * configure: Regenerated.
13666
0270a750
PA
136672012-11-26 Maxime Villard <rustyBSD@gmx.fr>
13668
13669 * hostio.c (handle_readlink): Decrease buffer size
13670 parameter passed to readlink by one byte.
13671
8c29b58e
YQ
136722012-11-26 Yao Qi <yao@codesourcery.com>
13673
13674 * configure.ac (build_warnings): Append '-Wempty-body'.
13675 * configure: Regenerated.
13676 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
13677 body.
13678
8bdce1ff
PM
136792012-11-15 Pierre Muller <muller@sourceware.org>
13680
13681 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
13682 * config.in: Regenerate.
13683 * configure: Regenerate.
13684 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
13685 Use "gdb_wait.h" header instead of <sys/wait.h> header.
13686 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
13687 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
13688 header.
13689 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
13690 instead of <sys/wait.h> header.
13691 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
13692
02d403bf 136932012-11-13 Markus Metzger <markus.t.metzger@intel.com>
3ba6ad0f
MM
13694
13695 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
13696 (various make rules): Remove -DGDBSERVER
13697
fbd5db48
YQ
136982012-11-09 Yao Qi <yao@codesourcery.com>
13699
13700 * spu-low.c (current_ptid): Move it to ..
13701 * gdbthread.h: ... here. New.
13702 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
13703 * server.c (myresume, process_serial_event): Likewise.
13704 * thread-db.c (thread_db_find_new_threads): Likewise.
13705 * tracepoint.c (run_inferior_command): Likewise.
13706
b3dc46ff
AB
137072012-10-01 Andrew Burgess <aburgess@broadcom.com>
13708
13709 * server.c (handle_search_memory_1): Include access length in
13710 warning message.
13711
07c04788
HPN
137122012-09-05 Michael Brandt <michael.brandt@axis.com>
13713
13714 * linux-crisv32-low.c: Fix compile errors.
13715
918d227b
YQ
137162012-09-04 Yao Qi <yao@codesourcery.com>
13717
13718 * tracepoint.c (cmd_qtsv): Adjust debug message.
13719 Don't check CUR_TPOINT.
13720
18c1b81a
YQ
137212012-08-28 Yao Qi <yao@codesourcery.com>
13722
13723 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
13724 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
13725 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
13726 Remove declarations of xmalloc, xreallloc, xstrdup and
13727 freeargv.
13728 * Makefile.in (libiberty_h): New.
13729 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
13730 (linux-bfin-low.o): Append dependency 'libiberty.h'.
13731
dc82f37b
YQ
137322012-08-23 Yao Qi <yao@codesourcery.com>
13733
13734 * server.h: Remove declaration of 'xsnprintf'.
13735
406b1477
KS
137362012-08-22 Keith Seitz <keiths@redhat.com>
13737
13738 * server.h: Include build-gnulib-gbserver/config.h.
13739 * gdbreplay.c: Likewise.
13740
e6712ff1
DE
137412012-08-08 Doug Evans <dje@google.com>
13742
13743 * Makefile.in (SFILES): Add gdb_vecs.c.
13744 (OBS): Add gdb_vecs.o.
13745 (gdb_vecs_h, host_defs_h): New variables.
13746 (thread-db.o): Add $(gdb_vecs_h) dependency.
13747 (gdb_vecs.o): New rule.
13748 * thread-db.c: #include "gdb_vecs.h".
13749 (thread_db_load_search): Use a vector to iterate over path elements.
13750 Handle text appearing after "$pdir".
13751
13752 * configure.ac: Add check for strstr.
13753 * config.in: Regenerate.
13754 * configure: Regenerate.
13755
7c3270ae
UW
137562012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
13757
13758 * hostio.c (handle_pread): If pread fails, fall back to attempting
13759 lseek/read.
13760 (handle_pwrite): Likewise for pwrite.
13761
b62e2b27
UW
137622012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
13763
13764 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
13765 between unsupported TYPE and unimplementable ADDR/LEN combination.
13766 (arm_insert_point): Act on new return value.
13767
78a99e91
PA
137682012-07-31 Pedro Alves <palves@redhat.com>
13769
13770 * server.c (process_point_options): Only skip tokens if we find
13771 one that is unrecognized. Don't treat 'X' specially while
13772 skipping unrecognized tokens.
13773
fcf303ab
UW
137742012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
13775
13776 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
13777 to 4-byte-align HW breakpoint addresses for Thumb.
13778
7255706c
YQ
137792012-07-27 Yao Qi <yao@codesourcery.com>
13780
13781 PR remote/14161.
13782
13783 * server.h: Declare gdb_agent_about_to_close.
13784 * target.c (kill_inferior): Include "agent.h".
13785 New. Send command 'kill'.
13786 * target.h (kill_inferior): Removed macro.
13787 * tracepoint.c (gdb_agent_about_to_close): New.
13788 (gdb_agent_helper_thread): Handle command 'close'.
13789 Wait endlessly until the inferior stops.
13790 Install gdb_agent_remove_socket to atexit hook.
13791 (agent_socket_name): New static variable.
13792 (gdb_agent_socket_init): Replace local variable 'name' with
13793 'agent_socket_name'.
13794 (gdb_agent_remove_socket): New.
13795
5a3f286f
YQ
137962012-07-27 Yao Qi <yao@codesourcery.com>
13797
13798 * server.c (process_point_options): Stop at 'X' when parsing.
13799
961bd387
ME
138002012-07-19 Michael Eager <eager@eagercon.com>
13801
a261b8f5 13802 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
961bd387
ME
13803 to hw_execute.
13804 * linux-x86-low.c (x86_insert_point, x86_remove_point):
13805 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
13806 hardware breakpoint.
13807
aa7c7447
JK
138082012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
13809
13810 * gdbserver/linux-low.c (initialize_low): Call
13811 linux_ptrace_init_warnings.
13812
7f216e7c
DE
138132012-07-02 Doug Evans <dje@google.com>
13814
13815 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
13816 pointer to int.
13817
d3ce09f5
SS
138182012-07-02 Stan Shebs <stan@codesourcery.com>
13819
13820 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
13821 (ax.o): Add it to build rule.
13822 (ax-ipa.o): Ditto.
13823 (OBS): Add format.o.
13824 (IPA_OBS): Add format.o.
13825 * server.c (handle_query): Claim support for breakpoint commands.
13826 (process_point_options): Add command case.
13827 (process_serial_event): Leave running if there are printfs in
13828 effect.
13829 * mem-break.h (any_persistent_commands): Declare.
13830 (add_breakpoint_commands): Declare.
13831 (gdb_no_commands_at_breakpoint): Declare.
13832 (run_breakpoint_commands): Declare.
13833 * mem-break.c (struct point_command_list): New struct.
13834 (struct breakpoint): New field command_list.
13835 (any_persistent_commands): New function.
13836 (add_commands_to_breakpoint): New function.
13837 (add_breakpoint_commands): New function.
13838 (gdb_no_commands_at_breakpoint): New function.
13839 (run_breakpoint_commands): New function.
13840 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
13841 locally.
13842 * ax.c: Include format.h.
13843 (ax_printf): New function.
13844 (gdb_eval_agent_expr): Add printf opcode.
13845
2f8f6aed
YQ
138462012-06-13 Yao Qi <yao@codesourcery.com>
13847
13848 * server.c (start_inferior): Remove duplicated writes to fields
13849 'last_resume_kind' and 'last_status' of 'current_inferior'.
13850
0c9070b3
YQ
138512012-06-12 Yao Qi <yao@codesourcery.com>
13852 Pedro Alves <palves@redhat.com>
13853
13854 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
13855 comment.
13856 * server.c (handle_v_cont): Extend comment.
13857
c52daf70
YQ
138582012-06-11 Yao Qi <yao@codesourcery.com>
13859
13860 * linux-low.c (linux_attach): Add 'static'.
13861
d38bbb0a
YQ
138622012-06-06 Yao Qi <yao@codesourcery.com>
13863
13864 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
13865
89dc0afd
JK
138662012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
13867
13868 Fix gcc -flto compilation warning.
13869 * server.c (main): Make variable multi_mode and attach volatile.
13870
75f62ce7
TJB
138712012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
13872
13873 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
13874 if the platform doesn't know about it.
13875
65f479b6
PA
138762012-05-30 Jeff Kenton <jkenton@tilera.com>
13877
13878 * Makefile.in (SFILES): Add linux-tile-low.c.
13879 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
13880 * configure.srv: Handle tilegx-*-linux*.
13881 * linux-tile-low.c: New file.
13882
0c5bf5a9
JK
138832012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13884
13885 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
13886
a493e3e2
PA
138872012-05-24 Pedro Alves <palves@redhat.com>
13888
13889 PR gdb/7205
13890
43aaf8b6 13891 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 13892
2ea28649
PA
138932012-05-24 Pedro Alves <palves@redhat.com>
13894
13895 PR gdb/7205
13896
13897 Replace target_signal with gdb_signal throughout.
13898
8d409d16
MR
138992012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
13900
13901 * linux-low.c (linux_store_registers): Avoid the copying sequence
13902 when no data has been retrieved by ptrace.
13903
23512c01
MGD
139042012-05-22 Will Deacon <will.deacon@arm.com>
13905
13906 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
13907 Include asm/ptrace.h.
13908 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
13909 already defined.
13910
4934b29e
MR
139112012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
13912
13913 * linux-low.c (linux_store_registers): Don't re-retrieve data
13914 with ptrace that has already been obtained from /proc. Always
13915 copy any data retrieved with ptrace to the buffer supplied.
13916
bde24c0a
PA
139172012-05-11 Yao Qi <yao@codesourcery.com>
13918 Pedro Alves <palves@redhat.com>
13919
13920 * linux-low.c (enum stopping_threads_kind): New.
13921 (stopping_threads): Change type to `enum stopping_threads_kind'.
13922 (handle_extended_wait): If stopping and suspending threads, leave
13923 the new_lwp suspended too.
13924 (linux_wait_for_event): Adjust.
13925 (stop_all_lwps): Set `stopping_threads' to
13926 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
13927 whether we're suspending threads or just stopping them. Assert no
13928 recursion happens.
13929
623b6bdf
YQ
139302012-04-29 Yao Qi <yao@codesourcery.com>
13931
13932 * server.h: Move some code to ...
13933 * gdbthread.h: ... here. New.
13934 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
13935 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
13936 (nto-low.o, win32-low.o): Likewise.
13937 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
13938 * regcache.c, remote-utils.c, server.c: Likewise.
13939 * target.c, tracepoint.c, win32-low.c: Likewise.
13940
f15f9948
TJB
139412012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
13942
13943 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
13944 (PTRACE_ARG4_TYPE): Likewise.
13945 (PTRACE_XFER_TYPE): Likewise.
13946 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
13947 ptrace to PTRACE_ARG3_TYPE.
13948 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
13949 (PTRACE_ARG4_TYPE): Likewise.
13950 (PTRACE_XFER_TYPE): Likewise.
13951 (linux_detach_one_lwp): Cast fourth argument of
13952 ptrace to long then PTRACE_ARG4_TYPE.
13953 (regsets_fetch_inferior_registers): Cast third argument of
13954 ptrace to long then PTRACE_ARG3_TYPE.
13955 (regsets_store_inferior_registers): Likewise.
13956
38ea300a
PA
139572012-04-20 Pedro Alves <palves@redhat.com>
13958
13959 * configure: Regenerate.
13960
c971b7fa
PA
139612012-04-19 Pedro Alves <palves@redhat.com>
13962
43aaf8b6 13963 * Makefile.in (GNULIB_BUILDDIR): New.
c971b7fa 13964 (LIBGNU, INCGNU, GNULIB_H): Adjust.
43aaf8b6
PA
13965 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
13966 (all, install-only, uninstall, clean-info, all-lib, clean): No
13967 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
13968 (maintainer-clean realclean distclean): Use subdir_do.
13969 (subdir_do): New.
13970 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
c971b7fa 13971 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
43aaf8b6
PA
13972 * acinclude.m4: Include acx_configure_dir.m4.
13973 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
13974 calls. Call AC_PROG_RANLIB. Configure gnulib using
13975 ACX_CONFIGURE_DIR.
13976 (GNULIB): New.
13977 (GNULIB_STDINT_H): Adjust.
13978 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
13979 * gdbreplay.c: Include build-gnulib/config.h.
13980 * server.h: Likewise.
13981 * aclocal.m4: Regenerate.
13982 * config.in: Regenerate.
13983 * configure: Regenerate.
c971b7fa 13984
809277f8
PA
139852012-04-19 Pedro Alves <palves@redhat.com>
13986
13987 * Makefile.in (LIBGNU, INCGNU): Adjust.
13988 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
13989 (all, install-only, uninstall, clean-info, all-lib, clean)
13990 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
13991 * configure.ac: Adjust AC_OUTPUT output.
13992 * aclocal.m4: Regenerate.
13993 * configure: Regenerate.
13994
fd9bb8b8
PA
139952012-04-19 Pedro Alves <palves@redhat.com>
13996
13997 * Makefile.in (generated_files): New.
13998 (server_h): Remove the explicit dependency on config.h, and depend
13999 on $generated_files.
14000
1c298c66
PA
140012012-04-19 Pedro Alves <palves@redhat.com>
14002
14003 * Makefile.in (INCGNU): Add -Ignulib.
14004
57c4b50b
PA
140052012-04-19 Pedro Alves <palves@redhat.com>
14006
14007 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
14008 (INCGNU): ... this, and spell out -I here.
14009 (GNULIB_LIB): Rename to ...
14010 (LIBGNU): ... this.
14011 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
14012
1030e047
PA
140132012-04-19 Pedro Alves <palves@redhat.com>
14014
14015 * config.in: Regenerate.
14016
447d4319
PA
140172012-04-19 Pedro Alves <palves@redhat.com>
14018
14019 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
14020 * server.h (memmem): Remove declaration.
14021 * config.in: Regenerate.
14022 * configure: Regenerate.
14023
aad9eab9
YQ
140242012-04-19 Yao Qi <yao@codesourcery.com>
14025
14026 * Makefile.in (SFILES): Add common/vec.c.
14027 (OBS): Add vec.o.
14028 (vec.o): New rule.
14029
3e10640f
YQ
140302012-04-19 Yao Qi <yao@codesourcery.com>
14031
14032 * remote-utils.c (prepare_resume_reply): Replace with macro
14033 target_core_of_thread.
14034 * server.c (handle_qxfer_threads_proper): Likewise.
14035 * target.h (traget_core_of_thread): New macro.
14036
71622373
PA
140372012-04-18 Pedro Alves <palves@redhat.com>
14038
14039 * aclocal.m4: Regenerate.
14040 * configure: Regenerate.
14041
80d26939
YQ
140422012-04-16 Yao Qi <yao@codesourcery.com>
14043
14044 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
14045 duplicated on address.
14046
42476b70
YQ
140472012-04-16 Yao Qi <yao@codesourcery.com>
14048
14049 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
14050 (struct tracepoint_action_ops) <send>: New field.
14051 (m_tracepoint_action_send, r_tracepoint_action_send): New.
14052 (agent_expr_send, x_tracepoint_action_send): New.
14053 (l_tracepoint_action_send): New.
14054 (cmd_qtdp): Download and install tracepoint
14055 according to `use_agent'.
14056 (run_inferior_command): Add one more parameter `len'.
14057 Update callers.
14058 (tracepoint_send_agent): New.
14059 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
14060
7bc83639
YQ
140612012-04-16 Yao Qi <yao@codesourcery.com>
14062
14063 * tracepoint.c (download_tracepoints): Moved to ...
14064 (cmd_qtstart): ... here.
14065
5f18041e
YQ
140662012-04-14 Yao Qi <yao@codesourcery.com>
14067
14068 * tracepoint.c: Include inttypes.h.
14069 (struct collect_memory_action): Use sized types.
14070 (struct tracepoint): Likewise.
14071 (cmd_qtdp, stop_tracing): Update print specifiers.
14072 (cmd_qtp, response_tracepoint): Likewise.
14073 (collect_data_at_tracepoint): Likewise.
14074 (collect_data_at_step): Likewise.
14075
55a8c076
YQ
140762012-04-14 Yao Qi <yao@codesourcery.com>
14077
14078 Import gnulib module inttypes.
14079 * aclocal.m4, config.in, configure: Regenerated.
14080
dc750257
YQ
140812012-04-14 Yao Qi <yao@codesourcery.com>
14082
14083 * Makefile.in (maintainer-clean, realclean, distclean): Remove
14084 Makefile and config.status at last.
14085
0ab5faf9
YQ
140862012-04-13 Yao Qi <yao@codesourcery.com>
14087
14088 * tracepoint.c: Include stdint.h unconditionally.
14089
18f5fd81
TJB
140902012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14091
14092 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
14093 on BFD_HAVE_SYS_PROCFS_TYPE.
14094 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
14095 * configure: Regenerate.
14096 * config.in: Likewise.
14097
4d47af5c
L
140982012-04-13 H.J. Lu <hongjiu.lu@intel.com>
14099
14100 * Makefile.in (clean): Also remove x32.c x32-linux.c
14101 x32-avx.c x32-avx-linux.c.
14102 (x32.o): New target.
14103 (x32.c): Likewise.
14104 (x32-linux.o): Likewise.
14105 (x32-linux.c): Likewise.
14106 (x32-avx.o): Likewise.
14107 (x32-avx.c): Likewise.
14108 (x32-avx-linux.o): Likewise.
14109 (x32-avx-linux.c): Likewise.
14110
14111 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
14112 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
14113 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
14114 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
14115 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
14116 i386/x32-avx-linux.xml.
14117
14118 * linux-x86-low.c (init_registers_x32_linux): New prototype.
14119 (init_registers_x32_avx_linux): Likwise.
14120 (x86_linux_update_xmltarget): Call init_registers_x32_linux
14121 or init_registers_x32_avx_linux if linux_is_elf64 is false.
14122
ecedbe58
PA
141232012-04-13 Pedro Alves <palves@redhat.com>
14124
14125 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
14126 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
14127 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
14128 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
14129 the sub-make.
14130
c92b5177
L
141312012-04-12 H.J. Lu <hongjiu.lu@intel.com>
14132
14133 * linux-x86-low.c (compat_x32_clock_t): New.
14134 (compat_x32_siginfo_t): Likewise.
14135 (compat_x32_siginfo_from_siginfo): Likewise.
14136 (siginfo_from_compat_x32_siginfo): Likewise.
14137 (linux_is_elf64): Likewise.
14138 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
14139 and siginfo_from_compat_x32_siginfo for x32.
14140 (x86_arch_setup): Set linux_is_elf64.
14141
214d508e
L
141422012-04-12 H.J. Lu <hongjiu.lu@intel.com>
14143
14144 PR gdb/13969
14145 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
14146 e_machine field.
14147 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
14148 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
14149 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
14150 compatible with process.
14151
c9a1864a
YQ
141522012-04-12 Yao Qi <yao@codesourcery.com>
14153
14154 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
14155 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
14156 (install-only, install-info, clean): Handle sub dir gnulib.
14157 (all-lib, am--refresh): New targets.
14158 (memmem.o): Remove target.
14159 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
14160 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
14161 (AC_REPLACE_FUNCS): Remove memmem.
14162 Invoke gl_INIT and AM_INIT_AUTOMAKE.
14163 (AC_OUTPUT): Generate Makefile in gnulib/.
14164 * aclocal.m4, config.in, configure: Regenerated.
14165
367ba2c2
MR
141662012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
14167
14168 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
14169
9d236627
PA
141702012-04-05 Pedro Alves <palves@redhat.com>
14171
14172 -Werror=strict-aliasing
14173
14174 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
14175 pointer.
14176
111217b3
PA
141772012-04-04 Pedro Alves <palves@redhat.com>
14178
14179 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
14180 (sparc_store_gregset_from_stack, sparc_store_gregset)
14181 (sparc_breakpoint_at): Fix formatting.
14182
8365dcf5
TJB
141832012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14184
14185 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
14186 are available.
14187 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
14188 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
14189 * config.in: Regenerate.
14190 * configure: Likewise.
14191
689cc2ae
PA
141922012-03-29 Pedro Alves <palves@redhat.com>
14193
14194 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
14195 Correct ptrace arguments.
14196
c14dfd32
PA
141972012-03-28 Pedro Alves <palves@redhat.com>
14198
14199 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
14200 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
14201 (IA64_FR1_REGNUM): New defines.
14202 (ia64_fetch_register): New.
14203 (the_low_target): Install it.
14204 * linux-low.h (struct linux_target_ops) <fetch_register>: New
14205 field.
14206 * linux-low.c (linux_fetch_registers): Try the
14207 the_low_target.fetch_register hook first.
14208
14209 * linux-arm-low.c (the_low_target): Adjust.
14210 * linux-bfin-low.c (the_low_target): Adjust.
14211 * linux-cris-low.c (the_low_target): Adjust.
14212 * linux-crisv32-low.c (the_low_target): Adjust.
14213 * linux-m32r-low.c (the_low_target): Adjust.
14214 * linux-m68k-low.c (the_low_target): Adjust.
14215 * linux-mips-low.c (the_low_target): Adjust.
14216 * linux-ppc-low.c (the_low_target): Adjust.
14217 * linux-s390-low.c (the_low_target): Adjust.
14218 * linux-sh-low.c (the_low_target): Adjust.
14219 * linux-sparc-low.c (the_low_target): Adjust.
14220 * linux-tic6x-low.c (the_low_target): Adjust.
14221 * linux-x86-low.c (the_low_target): Adjust.
14222 * linux-xtensa-low.c (the_low_target): Adjust.
14223
63c88e13
PA
142242012-03-26 Pedro Alves <palves@redhat.com>
14225
14226 * server.c (handle_qxfer_libraries): Don't bail early if
14227 the_target->qxfer_libraries_svr4 is not NULL.
14228
fb723180
PA
142292012-03-26 Pedro Alves <palves@redhat.com>
14230
14231 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
14232
0afae3cf
PA
142332012-03-23 Pedro Alves <palves@redhat.com>
14234
14235 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
14236 "library-list-svr4" element's start tag when the the DSO list is
14237 empty.
14238
485f1ee4
PA
142392012-03-23 Pedro Alves <palves@redhat.com>
14240
14241 * linux-low.c (read_one_ptr): Read the inferior's pointer through
14242 a variable whose type size is the same as the inferior's pointer
14243 size.
14244
a5362b9a
TS
142452012-03-21 Thomas Schwinge <thomas@codesourcery.com>
14246
14247 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
14248 struct siginfo.
14249 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
14250 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
14251 * linux-low.h: Include <signal.h>.
14252 (struct siginfo): Remove forward declaration.
14253 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
14254 struct siginfo.
14255
d226c142
MF
142562012-03-21 Mike Frysinger <vapier@gentoo.org>
14257
14258 * .gitignore: Ignore more files.
14259
122f36ef
PA
142602012-03-19 Pedro Alves <palves@redhat.com>
14261 Jan Kratochvil <jan.kratochvil@redhat.com>
14262
14263 * server.c (cont_thread, general_thread): Add describing comments.
14264 (start_inferior): Clear `cont_thread'.
14265 (handle_v_cont): Don't set `cont_thread' if resuming all threads
14266 of a process.
14267
fc3e5175
YQ
142682012-03-15 Yao Qi <yao@codesourcery.com>
14269
14270 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
14271 handling to ...
14272 (cmd_qtdp): ... here.
14273
8d0d92cd
YQ
142742012-03-15 Yao Qi <yao@codesourcery.com>
14275
14276 * tracepoint.c (struct tracepoint_action_ops): New.
14277 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
14278 (m_tracepoint_action_download): New.
14279 (r_tracepoint_action_download): New.
14280 (x_tracepoint_action_download): New.
14281 (l_tracepoint_action_download): New.
14282 (add_tracepoint_action): Install `action->ops' according type.
14283 (download_tracepoint_1): Move code `download' function pointer
14284 of various tracepoint_action_ops.
14285
87b0bb13
JK
142862012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14287
14288 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
14289 linux_ptrace_attach_warnings.
14290
5f572dec
JK
142912012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14292
14293 * Makefile.in (linux-ptrace.o): New.
14294 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
14295 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
14296 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
14297 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
14298 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
14299 of these targets.
14300 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
14301
f4647387
YQ
143022012-03-08 Yao Qi <yao@codesourcery.com>
14303 Pedro Alves <palves@redhat.com>
14304
14305 Fix PR server/13392.
14306 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
14307 offset of JMP insn.
14308 * tracepoint.c (remove_tracepoint): New.
14309 (cmd_qtdp): Call remove_tracepoint when failed to install.
14310
9b224c5e
PA
143112012-03-07 Pedro Alves <palves@redhat.com>
14312
14313 * linux-low.c (get_detach_signal): New.
14314 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
14315 Pass on pending signals to PTRACE_DETACH. Check the result of the
14316 ptrace call.
14317 * server.c (program_signals, program_signals_p): New.
14318 (handle_general_set): Handle QProgramSignals.
14319 * server.h (program_signals, program_signals_p): Declare.
14320
e237a7e2
JK
143212012-03-05 Pedro Alves <palves@redhat.com>
14322 Jan Kratochvil <jan.kratochvil@redhat.com>
14323
14324 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
14325 New comment why.
14326
5808517f
YQ
143272012-03-03 Yao Qi <yao@codesourcery.com>
14328
14329 * tracepoint.c (tracepoint_look_up_symbols): Update call to
14330 agent_look_up_symbols.
14331
58b4daa5
YQ
143322012-03-03 Yao Qi <yao@codesourcery.com>
14333
14334 * Makefile.in (linux-low.o): Keep dependence on agent.h.
14335 (linux-x86-low.o): Likewise.
14336 * server.h: Remove in_process_agent_loaded.
14337 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
14338 common/agent.c.
14339 Update callers.
14340
8ffcbaaf
YQ
143412012-03-03 Yao Qi <yao@codesourcery.com>
14342
14343 * tracepoint.c (gdb_agent_capability): New global.
14344 (in_process_agent_loaded_ust): Renamed to
14345 `in_process_agent_supports_ust'.
14346 Update callers.
14347 (in_process_agent_supports_ust): Call agent_capability_check.
14348 (clear_installed_tracepoints): Assert that agent supports
14349 agent.
14350
d1feda86
YQ
143512012-03-03 Yao Qi <yao@codesourcery.com>
14352
14353 * linux-low.c (linux_supports_agent): New.
14354 (linux_target_ops): Initialize field `supports_agent' with
14355 linux_supports_agent.
14356 * target.h (struct target_ops) <supports_agent>: New.
14357 (target_supports_agent): New macro.
14358 * server.c (handle_general_set): Handle packet 'QAgent'.
14359 (handle_query): Send `QAgent+'.
14360 * Makefile.in (server.o): Depends on agent.h.
14361
2fa291ac
YQ
143622012-03-03 Yao Qi <yao@codesourcery.com>
14363
14364 * Makefile.in (OBS): Add agent.o.
14365 Add new rule for agent.o.
14366 Track dependence of tracepoint.c on agent.h.
14367 * tracepoint.c (run_inferior_command_1):
14368 (run_inferior_command): Call agent_run_command.
14369 (gdb_ust_connect_sync_socket): Deleted. Move it to
14370 common/agent.c.
14371 (resume_thread, stop_thread): Likewise.
14372 (gdb_ust_socket_init): Renamed to ...
14373 (gdb_agent_socket_init): ... New.
14374 (gdb_ust_thread): Renamed to ...
14375 (gdb_agent_helper_thread): ... New.
14376 (gdb_ust_init): Move some code to ...
14377 (gdb_agent_init): ... here. New.
14378 [HAVE_UST]: Call gdb_ust_init.
14379 (initialize_tracepoint_ftlib): Call gdb_agent_init.
14380 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
14381 * config.in, configure: Regenerated.
14382
05044653
PA
143832012-03-02 Pedro Alves <palves@redhat.com>
14384
14385 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
14386 * linux-low.c (struct simple_pid_list): New.
14387 (stopped_pids): New a struct simple_pid_list pointer.
14388 (add_to_pid_list, pull_pid_from_list): New.
14389 (handle_extended_wait): Don't assume the first signal new children
14390 report is SIGSTOP. Adjust call to pull_pid_from_list.
14391 (linux_wait_for_lwp): Adjust.
14392
8d00225b
YQ
143932012-03-02 Yao Qi <yao@codesourcery.com>
14394
14395 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
14396 debug log.
14397
19560ba5
YQ
143982012-03-02 Yao Qi <yao@codesourcery.com>
14399
14400 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
14401 `stop_pc' and `tpoint'. Update caller.
14402
1faeff08
MR
144032012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
14404
14405 * linux-low.h (linux_target_ops): Add regset_bitmap member.
14406 * linux-low.c (use_linux_regsets): New macro.
14407 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
14408 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
14409 (linux_register_in_regsets): New function.
14410 (usr_fetch_inferior_registers): Skip registers covered by
14411 regsets.
14412 (usr_store_inferior_registers): Likewise.
14413 (usr_fetch_inferior_registers): New macro.
14414 (usr_store_inferior_registers): Likewise.
14415 (linux_fetch_registers): Handle mixed regset/non-regset targets.
14416 (linux_store_registers): Likewise.
14417 * linux-mips-low.c (init_registers_mips_dsp_linux): New
14418 prototype.
14419 (init_registers_mips64_dsp_linux): Likewise.
14420 (init_registers_mips_linux): New macro.
14421 (init_registers_mips_dsp_linux): Likewise.
14422 (mips_dsp_num_regs): Likewise.
14423 (DSP_BASE, DSP_CONTROL): New fallback macros.
14424 (mips_base_regs): New macro.
14425 (mips_regmap): Use it. Fix the size.
14426 (mips_dsp_regmap): New variable.
14427 (mips_dsp_regset_bitmap): Likewise.
14428 (mips_arch_setup): New function.
14429 (mips_cannot_fetch_register): Use the_low_target.regmap rather
14430 than mips_regmap.
14431 (mips_cannot_store_register): Likewise.
14432 (the_low_target): Update .arch_setup, .num_regs and .regmap
14433 initializers. Add .regset_bitmap initializer.
14434 * linux-arm-low.c (the_low_target): Add .regset_bitmap
14435 initializer.
14436 * linux-bfin-low.c (the_low_target): Likewise.
14437 * linux-cris-low.c (the_low_target): Likewise.
14438 * linux-crisv32-low.c (the_low_target): Likewise.
14439 * linux-ia64-low.c (the_low_target): Likewise.
14440 * linux-m32r-low.c (the_low_target): Likewise.
14441 * linux-m68k-low.c (the_low_target): Likewise.
14442 * linux-ppc-low.c (the_low_target): Likewise.
14443 * linux-s390-low.c (the_low_target): Likewise.
14444 * linux-sh-low.c (the_low_target): Likewise.
14445 * linux-sparc-low.c (the_low_target): Likewise.
14446 * linux-tic6x-low.c (the_low_target): Likewise.
14447 * linux-x86-low.c (the_low_target): Likewise.
14448 * linux-xtensa-low.c (the_low_target): Likewise.
14449 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
14450 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
14451 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
14452 srv_xmlfiles.
14453 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
14454 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
14455
c03e6ccc
YQ
144562012-02-29 Yao Qi <yao@codesourcery.com>
14457 Pedro Alves <palves@redhat.com>
14458
14459 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
14460 `step_over_finished' is true.
14461
644cebc9
PA
144622012-02-27 Pedro Alves <palves@redhat.com>
14463
14464 * linux-low.c (pid_is_stopped): Delete, moved to common/.
14465 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
14466
c14d7ab2
PA
144672012-02-27 Pedro Alves <palves@redhat.com>
14468
14469 PR server/9684
14470 * linux-low.c (pid_is_stopped): New.
14471 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
14472
412c89dd
LM
144732012-02-25 Luis Machado <lgustavo@codesourcery.com>
14474
14475 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
14476 of conditions.
14477
b745defe
MR
144782012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
14479
14480 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
14481
9f3a5c85
LM
144822012-02-24 Luis Machado <lgustavo@codesourcery>
14483
14484 * server.c (handle_query): Advertise support for target-side
14485 breakpoint condition evaluation.
14486 (process_point_options): New function.
14487 (process_serial_event): When inserting a breakpoint, check for
14488 a target-side condition that should be evaluated.
14489
14490 * mem-break.c: Include regcache.h and ax.h.
14491 (point_cond_list_t): New data structure.
14492 (breakpoint) <cond_list>: New field.
14493 (find_gdb_breakpoint_at): Make non-static.
14494 (delete_gdb_breakpoint_at): Clear any target-side
14495 conditions.
14496 (clear_gdb_breakpoint_conditions): New function.
14497 (add_condition_to_breakpoint): Likewise.
14498 (add_breakpoint_condition): Likewise.
14499 (gdb_condition_true_at_breakpoint): Likewise.
14500 (gdb_breakpoint_here): Return result directly instead
14501 of going through a local variable.
14502
14503 * mem-break.h (find_gdb_breakpoint_at): New prototype.
14504 (clear_gdb_breakpoint_conditions): Likewise.
14505 (add_breakpoint_condition): Likewise.
14506 (gdb_condition_true_at_breakpoint): Likewise.
14507
14508 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
14509 (need_step_over_p): Take target-side breakpoint condition into
14510 consideration.
14511
5e1dc496
LM
145122012-02-24 Luis Machado <lgustavo@codesourcery>
14513
14514 * server.h: Include tracepoint.h.
14515 (agent_mem_read, agent_get_trace_state_variable_value,
14516 agent_set_trace_state_variable_value,
14517 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
14518 get_set_tsv_func_addr): New prototypes.
14519
14520 * ax.h: New include file.
14521 * ax.c: New source file.
14522
14523 * tracepoint.c: Include ax.h.
14524 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
14525 agent_expr, eval_result_type): Move to ax.h.
14526 (parse_agent_expr): Rename to ...
14527 (gdb_parse_agent_expr): ... this, make it non-static and move
14528 to ax.h.
14529 (unparse_agent_expr) Rename to ...
14530 (gdb_unparse_agent_expr): ... this, make it non-static and move
14531 to ax.h.
14532 (eval_agent_expr): Rename to ...
14533 (eval_tracepoint_agent_expr): ... this.
14534 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
14535 forward declarations.
14536 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
14537 (agent_get_trace_state_variable_value): New function.
14538 (agent_set_trace_state_variable_value): New function.
14539 (cmd_qtdp): Call gdb_parse_agent_expr (...).
14540 (response_tracepoint): Call gdb_unparse_agent_expr (...).
14541 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
14542 (condition_true_at_tracepoint): Likewise.
14543 (parse_agent_expr): Rename to ...
14544 (gdb_parse_agent_expr): ... this and move to ax.c.
14545 (unparse_agent_expr): Rename to ...
14546 (gdb_unparse_agent_expr): ... this and move to ax.c.
14547 (gdb_agent_op_name): Move to ax.c.
14548 (eval_agent_expr): Rename to ...
14549 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
14550 and move to ax.c.
14551 (eval_tracepoint_agent_expr): New function.
14552 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
43aaf8b6 14553 non-static.
5e1dc496
LM
14554 (current_insn_ptr, emit_error, struct bytecode_address): Move to
14555 ax.c.
14556 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
14557 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
14558 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
14559 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
14560 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
14561 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
14562 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
14563 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
14564 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
14565 (compile_bytecodes): Remove forward declaration.
14566 (is_goto_target): Move to ax.c.
14567 (compile_bytecodes): Move to ax.c and call
14568 agent_get_trace_state_variable_value (...) and
14569 agent_set_trace_state_variable_value (...).
14570
14571 * Makefile.in: Update ax.c and IPA dependencies.
14572
277e4e52
PA
145732012-02-24 Pedro Alves <palves@redhat.com>
14574
14575 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
14576 (cmd_bigqtbuffer_circular): ... this. Only handle
14577 'QTBuffer:circular:'.
14578 (handle_tracepoint_general_set): Adjust.
14579
bf4c19f7
YQ
145802012-02-16 Yao Qi <yao@codesourcery.com>
14581
14582 * inferiors.c: Move code to ...
14583 * dll.c: .... here. New.
14584 * server.h: Declare clear_dlls.
14585 * Makefile.in (SFILES): Add dll.c.
14586 (OBS): Add dll.o
14587 (dll.o): New rule.
14588
d73f2619
YQ
145892012-02-11 Yao Qi <yao@codesourcery.com>
14590
14591 * server.c: (handle_monitor_command): Add a new parameter
14592 `own_buf'.
14593 (handle_query): Update caller.
14594
f8255c2a
JB
145952012-02-09 Joel Brobecker <brobecker@adacore.com>
14596
14597 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
14598 * configure, config.in: Regenerate.
14599 * hostio.c: Provide an alternate implementation if HAVE_READLINK
14600 is not defined.
14601
da84f473
PA
146022012-02-02 Pedro Alves <palves@redhat.com>
14603
14604 Try SIGKILL first, then PTRACE_KILL.
14605 * linux-low.c (linux_kill_one_lwp): New.
14606 (linux_kill_one_lwp): Rename to ...
14607 (kill_one_lwp_callback): ... this. Use the new
14608 linux_kill_one_lwp.
14609
e886a173
PA
146102012-02-02 Pedro Alves <palves@redhat.com>
14611
14612 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
14613 inferior.
14614
be07f1a2
PA
146152012-01-27 Pedro Alves <palves@redhat.com>
14616
14617 * linux-low.c (linux_child_pid_to_exec_file): Delete.
14618 (elf_64_file_p): Make static.
14619 (linux_pid_exe_is_elf_64_file): New.
14620 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
14621 Delete declarations.
14622 (linux_pid_exe_is_elf_64_file): Declare.
14623 * linux-x86-low.c (x86_arch_setup): Use
14624 linux_pid_exe_is_elf_64_file.
14625
d8301ad1
JK
146262012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
14627
14628 * linux-low.c (linux_wait_for_event_1): Rename to ...
14629 (linux_wait_for_event): ... here and merge it with former
14630 linux_wait_for_event - new variable wait_ptid, use it.
14631 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
14632
01b17894
PA
146332012-01-23 Pedro Alves <palves@redhat.com>
14634
14635 * server.c (main): Avoid yet another case of infinite loop while
14636 detaching/killing after a longjmp.
14637
e825046f
JK
146382012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
14639
14640 Code cleanup.
14641 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
14642
b9e7b9c3
UW
146432012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
14644
14645 * hostio.c (handle_readlink): New function.
14646 (handle_vFile): Call it to handle "vFile:readlink" packets.
14647
901f9912
UW
146482012-01-20 Pedro Alves <palves@redhat.com>
14649 Ulrich Weigand <ulrich.weigand@linaro.org>
14650
14651 * server.c (handle_v_requests): Only support vAttach and vRun to
14652 start multiple processes when in extended protocol mode.
14653
fc1ab1a0
PA
146542012-01-17 Pedro Alves <palves@redhat.com>
14655
14656 * tracepoint.c (initialize_tracepoint): Use mmap instead of
14657 memalign plus mprotect to allocate the scratch buffer.
14658
7d5d4e98
PA
146592012-01-13 Pedro Alves <palves@redhat.com>
14660
14661 * server.c (attach_inferior): Clear `cont_thread'.
14662
f128d5e9
PA
146632012-01-13 Pedro Alves <palves@redhat.com>
14664
14665 * server.c (main): Avoid infinite loop while detaching/killing
14666 after a longjmp.
14667
06db92f0
DE
146682012-01-09 Doug Evans <dje@google.com>
14669
14670 * server.c (start_inferior): Set last_ptid in --wrapper case.
14671
32d92999
YQ
146722012-01-06 Yao Qi <yao@codesourcery.com>
14673
14674 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
14675 defined.
14676 [IN_PROCESS_AGENT] (debug_agent): New global variable.
14677
5e0a92a9
YQ
146782012-01-04 Yao Qi <yao@codesourcery.com>
14679
14680 * tracepoint.c (cmd_qtdp): Print debug message
14681 for static tracepoint.
14682
ae639e8c
YQ
146832012-01-04 Yao Qi <yao@codesourcery.com>
14684
14685 * tracepoint.c (trace_vdebug): Differentiate debug message
14686 between gdbserver and IPA.
14687
f72429c5
YQ
146882012-01-03 Yao Qi <yao@codesourcery.com>
14689
14690 * tracepoint.c (tracepoint_was_hit): Don't collect for
14691 static tracepoint.
14692
12c3e59c
JB
146932012-01-02 Joel Brobecker <brobecker@adacore.com>
14694
14695 * terminal.h: Reformat copyright header.
14696
67827812
JB
146972012-01-02 Joel Brobecker <brobecker@adacore.com>
14698
14699 * server.c (gdbserver_version): Update copyright year.
14700 * gdbreplay.c (gdbreplay_version): Likewise.
14701
3e52c33d
JK
147022011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
14703
14704 * linux-low.c (linux_create_inferior): Put empty if clause for write.
14705
14706 Revert:
14707 2011-12-18 Hui Zhu <teawater@gmail.com>
14708 * linux-low.c (linux_create_inferior): Save return value to ret.
14709
66f1260e
HZ
147102011-12-18 Hui Zhu <teawater@gmail.com>
14711
14712 * linux-low.c (linux_create_inferior): Save return value to ret.
14713
e77616d7
DE
147142011-12-16 Doug Evans <dje@google.com>
14715
e7b06c57
DE
14716 * linux-low.c (linux_create_inferior): If stdio connection,
14717 redirect stdin from /dev/null, stdout to stderr.
14718 * remote-utils.c (remote_is_stdio): New static global.
14719 (remote_connection_is_stdio): New function.
14720 (remote_prepare): Handle stdio connection.
14721 (remote_open): Ditto.
14722 (remote_close): Don't close stdin for stdio connections.
14723 (read_prim,write_prim): New functions. Replace all calls to
14724 read/write to these.
14725 * server.c (main): Watch for "-" argument. Move call to
14726 remote_prepare before start_inferior.
14727 * server.h (STDIO_CONNECTION_NAME): New macro.
14728 (remote_connection_is_stdio): Declare.
14729
e77616d7
DE
14730 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
14731 in debugging output.
14732
82067193
YQ
147332011-12-15 Yao Qi <yao@codesourcery.com>
14734
14735 * tracepoint.c: Include sys/syscall.h.
14736 (gdb_ust_thread): Remove preprocessor conditional.
14737
82bfbe7e
PA
147382011-12-14 Pedro Alves <pedro@codesourcery.com>
14739
14740 * linux-low.c (linux_detach_one_lwp): Call
14741 the_low_target.prepare_to_resume before detaching.
14742
712c6575
YQ
147432011-12-14 Yao Qi <yao@codesourcery.com>
14744
14745 * tracepoint.c (gdb_ust_thread): Don't ignore return value
14746 of write.
14747
d54d1edf
YQ
147482011-12-14 Yao Qi <yao@codesourcery.com>
14749
14750 * i386-low.c (i386_low_stopped_data_address): Initialize local
14751 variable `control'.
14752
6210a125
PA
147532011-12-13 Pedro Alves <pedro@codesourcery.com>
14754
14755 PR remote/13492
14756
14757 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
14758 DR_CONTROL unless necessary. Extend comments.
14759 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
14760 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
14761
2ece8244
YQ
147622011-12-13 Yao Qi <yao@codesourcery.com>
14763
14764 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
14765 macros.
14766 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
14767
784867a5
JK
147682011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
14769
14770 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
14771 Print new debug message for such case.
14772
6bf36717
JK
147732011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
14774
14775 Fix overlapping memcpy.
14776 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
14777 the read_inferior_memory transfer.
14778 (delete_fast_tracepoint_jump): New variable buf. Use it for the
14779 write_inferior_memory transfer.
14780 (set_fast_tracepoint_jump): New variable buf. Use it for the
14781 read_inferior_memory and write_inferior_memory transfers.
14782 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
14783 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
14784 Use it for the write_inferior_memory transfer.
14785 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
14786 buffers.
14787
50275556
MR
147882011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
14789
14790 * linux-low.c (fetch_register, store_register): Make code
14791 consistent, fix formatting.
14792
7325beb4
MR
147932011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
14794
14795 * linux-low.c (usr_store_inferior_registers): Factor out code
14796 to handle individual registers into...
14797 (store_register): ... this new function.
14798
c642a434
UW
147992011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
14800
14801 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
14802 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
14803 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
14804 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
14805 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
14806 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
14807 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
14808 (srv_xmlfiles): Add new XML files.
14809
14810 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
14811 and <sys/uio.h>.
14812 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
14813 (init_registers_s390_linux32v1): Add prototype.
14814 (init_registers_s390_linux32v2): Likewise.
14815 (init_registers_s390_linux64v1): Likewise.
14816 (init_registers_s390_linux64v2): Likewise.
14817 (init_registers_s390x_linux64v1): Likewise.
14818 (init_registers_s390x_linux64v2): Likewise.
14819 (s390_num_regs): Increment to 52.
14820 (s390_regmap): Add orig_r2 register.
14821 (s390_num_regs_3264): Increment to 68.
14822 (s390_regmap_3264): Add orig_r2 register.
14823 (s390_collect_ptrace_register): Handle orig_r2 register.
14824 (s390_supply_ptrace_register): Likewise.
14825 (s390_fill_last_break): New function.
14826 (s390_store_last_break): Likewise.
14827 (s390_fill_system_call): New function.
14828 (s390_store_system_call): Likewise.
14829 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
14830 register sets.
14831 (s390_check_regset): New function.
14832 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
14833 NT_S390_SYSTEM_CALL regsets and use appropriate description.
14834 Update target_regsets for available register sets.
14835
2268b414
JK
148362011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
14837 Jan Kratochvil <jan.kratochvil@redhat.com>
14838
14839 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
14840 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
14841 New.
14842 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
14843 * linux-low.h (struct process_info_private): New member r_debug.
14844 * server.c (handle_qxfer_libraries): Call
14845 the_target->qxfer_libraries_svr4.
14846 (handle_qxfer_libraries_svr4): New function.
14847 (qxfer_packets): New entry "libraries-svr4".
14848 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
14849 * target.h (struct target_ops): New member qxfer_libraries_svr4.
14850 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
14851 PACKET_qXfer_libraries_svr4.
14852
d6db1fab
UW
148532011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
14854
14855 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
14856 PSW address/mask between 8-byte and 16-byte formats.
14857 (s390_supply_ptrace_register): Likewise.
14858 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
14859 basic addressing mode bit.
14860
242f5f1c
SS
148612011-11-24 Stan Shebs <stan@codesourcery.com>
14862
14863 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
14864
f196051f
SS
148652011-11-17 Stan Shebs <stan@codesourcery.com>
14866
14867 * tracepoint.c (struct tracepoint): New field traceframe_usage.
14868 (tracing_start_time): New global.
14869 (tracing_stop_time): New global.
14870 (tracing_user_name): New global.
14871 (tracing_notes): New global.
14872 (tracing_stop_note): New global.
14873 (cmd_qtstart): Set traceframe_usage, start_time.
14874 (stop_tracing): Set stop_time.
14875 (cmd_qtstatus): Report additional status.
14876 (cmd_qtp): New function.
14877 (handle_tracepoint_query): Call it.
14878 (cmd_qtnotes): New function.
14879 (handle_tracepoint_general_set): Call it.
14880 (get_timestamp): Rename from tsv_get_timestamp.
14881
405f8e94
SS
148822011-11-14 Stan Shebs <stan@codesourcery.com>
14883 Kwok Cheung Yeung <kcy@codesourcery.com>
14884
14885 * linux-x86-low.c (small_jump_insn): New.
14886 (i386_install_fast_tracepoint_jump_pad): Add arguments for
14887 trampoline and error message, build a trampoline and issue a small
14888 jump instruction to it.
14889 (x86_install_fast_tracepoint_jump_pad): Add arguments for
14890 trampoline and error message.
14891 (x86_get_min_fast_tracepoint_insn_len): New.
14892 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
14893 * linux-low.h (struct linux_target_ops): Add arguments to
14894 install_fast_tracepoint_jump_pad operation, add new operation.
14895 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
14896 arguments.
14897 (linux_get_min_fast_tracepoint_insn_len): New function.
14898 (linux_target_op): Add new operation.
14899 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
14900 (gdb_trampoline_buffer_end): Ditto.
14901 (gdb_trampoline_buffer_error): Ditto.
14902 (struct ipa_sym_addresses): Add fields for new IPA variables.
14903 (symbol_list): Add entries for new IPA variables.
14904 (struct tracepoint): Add fields to hold the address range of the
14905 trampoline used by the tracepoint.
14906 (trampoline_buffer_head): New static variable.
14907 (trampoline_buffer_tail): Ditto.
14908 (claim_trampoline_space): New function.
14909 (have_fast_tracepoint_trampoline_buffer): New function.
14910 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
14911 structure.
14912 (install_fast_tracepoint): Ditto, also add error buffer argument.
14913 (cmd_qtminftpilen): New function.
14914 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
14915 (fast_tracepoint_from_trampoline_address): New function.
14916 (fast_tracepoint_collecting): Handle trampoline as part of jump
14917 pad space.
14918 (set_trampoline_buffer_space): New function.
14919 (initialize_tracepoint): Initialize new IPA variables.
14920 * target.h (struct target_ops): Add arguments to
14921 install_fast_tracepoint_jump_pad operation, add new
14922 get_min_fast_tracepoint_insn_len operation.
14923 (target_get_min_fast_tracepoint_insn_len): New.
14924 (install_fast_tracepoint_jump_pad): Add arguments.
14925 * server.h (IPA_BUFSIZ): Define.
14926 * linux-i386-ipa.c: Include extra header files.
14927 (initialize_fast_tracepoint_trampoline_buffer): New function.
14928 (initialize_low_tracepoint): Call it.
14929 * server.h (set_trampoline_buffer_space): Declare.
14930 (claim_trampoline_space): Ditto.
14931 (have_fast_tracepoint_trampoline_buffer): Ditto.
14932
1e4d1764
YQ
149332011-11-14 Yao Qi <yao@codesourcery.com>
14934
14935 * server.c (handle_query): Handle InstallInTrace for qSupported.
14936 * tracepoint.c (add_tracepoint): Sort list.
14937 (install_tracepoint, download_tracepoint): New.
14938 (cmd_qtdp): Call them to install and download tracepoints.
14939 (sort_tracepoints): Removed.
14940 (cmd_qtstart): Update.
14941
5c73ff4e
YQ
149422011-11-14 Yao Qi <yao@codesourcery.com>
14943
14944 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
14945 * mem-break.h: Declare.
14946 * tracepoint.c (cmd_qtstart): Move some code to ...
14947 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
14948 New.
14949 (download_tracepoints): Move some code to ...
14950 (download_tracepoint_1): ... here. New.
14951
86a30030
YQ
149522011-11-08 Yao Qi <yao@codesourcery.com>
14953
14954 * remote-utils.c (relocate_instruction): A comment fix.
14955
8d26e50c
JB
149562011-11-07 Joel Brobecker <brobecker@adacore.com>
14957
14958 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
14959 (i386_dr_low_get_control, i386_dr_low_get_status): Use
14960 dr_status_mirror and dr_control_mirror from debug_reg_state.
14961 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
14962 (i386_initial_stuff): Remove use of deleted globals.
14963 (i386_get_thread_context, i386_set_thread_context,
14964 i386_thread_added): Use dr_status_mirror and dr_control_mirror
14965 from debug_reg_state.
14966
a59306a3
YQ
149672011-11-05 Yao Qi <yao@codesourcery.com>
14968
14969 * tracepoint.c (gdb_collect): Loop over tracepoints of same
14970 address as TPOINT's.
14971
3065dfb6
SS
149722011-11-02 Stan Shebs <stan@codesourcery.com>
14973
14974 * tracepoint.c (agent_mem_read_string): New function.
14975 (eval_agent_expr): Call it for tracenz.
14976 * server.c (handle_query): Report support for tracenz.
14977
fd0d8c7c
YQ
149782011-11-02 Yao Qi <yao@codesourcery.com>
14979
14980 * tracepoint.c (cmd_qtstart): Remove unused local variables.
14981
609086b1
YQ
149822011-11-02 Yao Qi <yao@codesourcery.com>
14983
14984 * target.h: Fix a typo in comment.
14985
b9fd1791
PA
149862011-10-31 Pedro Alves <pedro@codesourcery.com>
14987
14988 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
14989 clobber the breakpoints' shadows with fast tracepoint jumps.
14990 * mem-break.h (check_mem_write): Add `myaddr' parameter.
14991 * target.c (write_inferior_memory): Also pass MYADDR down to
14992 check_mem_write.
14993
03583c20
UW
149942011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
14995
14996 * configure.ac: Check support for personality routine.
14997 * configure: Regenerate.
14998 * config.in: Likewise.
14999 * linux-low.c: Include <sys/personality.h>.
15000 Define ADDR_NO_RANDOMIZE if necessary.
15001 (linux_create_inferior): Disable address space randomization when
15002 forking inferior, if requested.
15003 (linux_supports_disable_randomization): New function.
15004 (linux_target_ops): Install it.
15005 * server.h (disable_randomization): Declare.
15006 * server.c (disable_randomization): New global variable.
15007 (handle_general_set): Handle QDisableRandomization.
15008 (handle_query): Likewise for qSupported.
15009 (main): Support --disable-randomization and --no-disable-randomization
15010 command line arguments.
15011 * target.h (struct target_ops): Add supports_disable_randomization.
15012 (target_supports_disable_randomization): New macro.
15013
723b724b
MF
150142011-09-29 Mike Frysinger <vapier@gentoo.org>
15015
15016 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
15017 ifdef check.
15018 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
15019 [!PT_GETDSBT] (target_loadmap): New definition.
15020 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
15021 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
15022 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
15023 and PT_GETDSBT to LINUX_LOADMAP.
15024 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
15025 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
15026
55329a5c 150272011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
71487fd7
UW
15028
15029 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
15030 (arm_linux_hwbp_cap): New static variable.
15031 (arm_linux_get_hwbp_cap): Replace by ...
15032 (arm_linux_init_hwbp_cap): ... this new function.
15033 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
15034 (arm_linux_get_hw_watchpoint_count): Likewise.
15035 (arm_linux_get_hw_watchpoint_max_length): Likewise.
15036 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
15037 (arm_prepare_to_resume): Use perror_with_name instead of error.
15038
55329a5c 150392011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
09b4ad9f
UW
15040
15041 * linux-arm-low.c: Include <signal.h>.
15042 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
15043 (struct arm_linux_hwbp_cap): New data type.
15044 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
15045 (struct arm_linux_hw_breakpoint): New data type.
15046 (MAX_BPTS, MAX_WPTS): Define.
15047 (struct arch_process_info, struct arch_lwp_info): New data types.
15048 (arm_linux_get_hwbp_cap): New function.
15049 (arm_linux_get_hw_breakpoint_count): Likewise.
15050 (arm_linux_get_hw_watchpoint_count): Likewise.
15051 (arm_linux_get_hw_watchpoint_max_length): Likewise.
15052 (arm_hwbp_control_initialize): Likewise.
15053 (arm_hwbp_control_is_enabled): Likewise.
15054 (arm_hwbp_control_is_initialized): Likewise.
15055 (arm_hwbp_control_disable): Likewise.
15056 (arm_linux_hw_breakpoint_equal): Likewise.
15057 (arm_linux_hw_point_initialize): Likewise.
15058 (struct update_registers_data): New data structure.
15059 (update_registers_callback: New function.
15060 (arm_insert_point): Likewise.
15061 (arm_remove_point): Likewise.
15062 (arm_stopped_by_watchpoint): Likewise.
15063 (arm_stopped_data_address): Likewise.
15064 (arm_new_process): Likewise.
15065 (arm_new_thread): Likewise.
15066 (arm_prepare_to_resume): Likewise.
15067 (the_low_target): Register arm_insert_point, arm_remove_point,
15068 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
15069 arm_new_thread, and arm_prepare_to_resume.
15070
6b9801d4
SS
150712011-09-15 Stan Shebs <stan@codesourcery.com>
15072
15073 * server.h (struct emit_ops): Add compare-goto fields.
15074 * tracepoint.c (gdb_agent_op_sizes): New table.
15075 (emit_eq_goto): New function.
15076 (emit_ne_goto): New function.
15077 (emit_lt_goto): New function.
15078 (emit_le_goto): New function.
15079 (emit_gt_goto): New function.
15080 (emit_ge_goto): New function.
15081 (is_goto_target): New function.
15082 (compile_bytecodes): Recognize special cases of compare-goto
15083 combinations and call specialized emitters for them.
15084 * linux-x86-low.c (amd64_emit_eq_goto): New function.
15085 (amd64_emit_ne_goto): New function.
15086 (amd64_emit_lt_goto): New function.
15087 (amd64_emit_le_goto): New function.
15088 (amd64_emit_gt_goto): New function.
15089 (amd64_emit_ge_goto): New function.
15090 (amd64_emit_ops): Add the new functions.
15091 (i386_emit_eq_goto): New function.
15092 (i386_emit_ne_goto): New function.
15093 (i386_emit_lt_goto): New function.
15094 (i386_emit_le_goto): New function.
15095 (i386_emit_gt_goto): New function.
15096 (i386_emit_ge_goto): New function.
15097 (i386_emit_ops): Add the new functions.
15098
bf15cbda
SS
150992011-09-08 Stan Shebs <stan@codesourcery.com>
15100
15101 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
15102 (i386_emit_epilogue): Restore %ebx.
15103
943ca1dd
JZ
151042011-08-31 Jie Zhang <jzhang918@gmail.com>
15105
15106 * server.c (step_thread): Remove definition.
15107 (process_serial_event): Don't handle Hs.
15108 * server.h (step_thread): Remove declaration.
15109 * target.c (set_desired_inferior): Remove use of step_thread.
15110
e3deef73
LM
151112011-08-24 Luis Machado <lgustavo@codesourcery.com>
15112
15113 * linux-low.c: Include linux-procfs.h.
15114 (linux_attach_lwp_1): Update comments.
15115 (linux_attach): Scan for existing threads when attaching to a
15116 process that is the tgid.
15117 * Makefile.in: Update dependencies.
15118
13da1c97
LM
151192011-08-24 Luis Machado <lgustavo@codesourcery.com>
15120
15121 * configure.srv: Add linux-procfs.o dependencies.
15122
881127c9
YQ
151232011-08-14 Yao Qi <yao@codesourcery.com>
15124
15125 * target.h (struct target_ops): Fix indent.
15126 * win32-low.c (win32_target_ops): Fix comment.
15127
58dbd541
YQ
151282011-08-14 Andrew Jenner <andrew@codesourcery.com>
15129 Yao Qi <yao@codesourcery.com>
15130
15131 * Makefile.in (clean): Remove tic6x-*.c files.
15132 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
15133 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
15134 (tic6x-c64xp-linux.c): Likewise.
15135 * configure.srv: Add support for tic6x-*-uclinux.
15136 * linux-tic6x-low.c: New.
15137 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
15138
78d85199
YQ
151392011-08-14 Andrew Stubbs <ams@codesourcery.com>
15140 Yao Qi <yao@codesourcery.com>
15141
15142 * target.h (struct target_ops): Add read_loadmap.
15143 * linux-low.c (struct target_loadseg): New type.
15144 (struct target_loadmap): New type.
15145 (linux_read_loadmap): New function.
15146 (linux_target_ops): Add linux_read_loadmap.
15147 * server.c (handle_query): Support qXfer:fdpic:read packet.
43aaf8b6
PA
15148 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
15149 to NULL.
78d85199 15150
a959a88d
EZ
151512011-08-05 Eli Zaretskii <eliz@gnu.org>
15152
15153 * win32-low.c: Include <stdint.h>.
15154
1ced966e
PA
151552011-07-22 Pedro Alves <pedro@codesourcery.com>
15156
15157 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
15158 to the inferior here.
15159 (i386_remove_aligned_watchpoint): Ditto.
15160 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
15161 fit part of the watchpoint in the debug registers.
15162 (i386_update_inferior_debug_regs): New.
15163 (i386_low_insert_watchpoint): Work on a local mirror of the debug
15164 registers, and only update the inferior on success.
15165 (i386_low_remove_watchpoint): Ditto.
15166
d26e3629
KY
151672011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
15168
15169 * linux-low.c (compare_ints, unique, list_threads, show_process,
15170 linux_core_of_thread): Delete.
15171 (linux_target_ops): Change linux_core_of_thread to
15172 linux_common_core_of_thread.
15173 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
15174 * utils.c (malloc_failure): Change type of argument.
15175 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
15176 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
15177 common/linux-osdata.c, common/ptid.c and common/buffer.c.
15178 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
15179 (IPA_OBJS): Add common-utils-ipa.o.
15180 (ptid_h, linux_osdata_h): New macros.
15181 (server_h): Add common/common-utils.h, common/xml-utils.h,
15182 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
15183 common/ptid.h.
15184 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
15185 ptid.o, buffer.o): New rules.
15186 (linux-low.o): Add common/linux-osdata.h as a dependency.
15187 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
15188 * configure.ac: Add AC_HEADER_DIRENT check.
15189 * config.in: Regenerate.
15190 * configure: Regenerate.
15191 * remote-utils.c (xml_escape_text): Delete.
15192 (buffer_grow, buffer_free, buffer_init, buffer_finish,
15193 buffer_xml_printf): Move to common/buffer.c.
15194 * server.c (main): Remove call to initialize_inferiors.
15195 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
15196 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
15197 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
15198 internal_error, gdb_assert, gdb_assert_fail): Delete.
15199 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
15200 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
15201 common/buffer.h.
15202 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
15203 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
15204 initialize_inferiors): Delete.
15205
2275a1a7
PA
152062011-07-20 Pedro Alves <pedro@codesourcery.com>
15207
15208 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
15209 symbol error.
15210
0a5b1e09
PA
152112011-05-31 Pedro Alves <pedro@codesourcery.com>
15212
15213 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
15214 assertion.
15215 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
15216
6938fd34
YQ
152172011-05-26 Yao Qi <yao@codesourcery.com>
15218
15219 * Makefile.in (thread-db.o): Track dependence to
15220 common/gdb_thread_db.h.
15221 * thread-db.c: include gdb_thread_db.h from right place.
15222
b481f9e0
TT
152232011-05-16 Adrian Cornish <gnu@bluedreamer.com>
15224
15225 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
15226 __FILE__ and __LINE__ to internal_error.
15227
98a5dd13
DE
152282011-05-13 Doug Evans <dje@google.com>
15229
15230 * thread-db.c (try_thread_db_load_from_sdir): New function.
15231 (try_thread_db_load_from_dir): New function.
15232 (thread_db_load_search): Handle $sdir, ignore $pdir.
15233 Remove trying of system directories if search of
15234 libthread-db-search-path fails, that is now done via $sdir.
15235
d248b706
KY
152362011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
15237
15238 * server.c (handle_query): Add EnableDisableTracepoints to the list
15239 of supported features.
43aaf8b6 15240 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
d248b706 15241 tracepoints.
43aaf8b6
PA
15242 (cmd_qtenable_disable): New.
15243 (cmd_qtstart): Install tracepoints even if disabled.
15244 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
15245 receiving a QTEnable or QTDisable packet.
15246 (gdb_collect): Skip data collection if fast tracepoint is disabled.
15247 (ust_marker_to_static_tracepoint): Do not ignore disabled static
15248 tracepoints.
15249 (gdb_probe): Skip data collection if static tracepoint is disabled.
d248b706 15250
84e578fb
DE
152512011-05-10 Doug Evans <dje@google.com>
15252
15253 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
15254
71f55dd8
DE
152552011-05-04 Doug Evans <dje@google.com>
15256
15257 * linux-low.c (linux_join): Skip process lookup.
15258 * spu-low.c (spu_join): Ditto.
15259 * server.c (join_inferiors_callback): Delete.
15260 (process_serial_event): For 'D' packet (detach) call join_inferior
15261 directly.
15262
4d393d60
JM
152632011-05-04 Joseph Myers <joseph@codesourcery.com>
15264
15265 * README: Don't mention xscale*-*-linux*.
15266 * configure.srv (xscale*-*-linux*): Don't handle target.
15267
b00ad6ff
NF
152682011-04-27 Nathan Froyd <froydnj@codesourcery.com>
15269
15270 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
15271 casting pointers.
15272 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
15273 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
15274 (i386_emit_void_call_2): Likewise.
15275
af96c192
YQ
152762011-04-26 Yao Qi <yao@codesourcery.com>
15277
43aaf8b6
PA
15278 * linux-low.c: Move common macros to linux-ptrace.h.
15279 Include linux-ptrace.h.
af96c192
YQ
15280 * Makefile.in (linux_ptrace_h): New.
15281 (linux-low.o): Depends on linux-ptrace.h.
15282
03f2bd59
JK
152832011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
15284
15285 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
15286 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
15287 (remote_prepare): New function with most of the TCP code from ...
15288 (remote_open): ... here. Detect PORT here unconditionally. Move also
15289 setting transport_is_reliable.
15290 * server.c (run_once): New variable.
15291 (gdbserver_usage): Document it.
15292 (main): Set run_once for `--once'. Call remote_prepare. Exit after
15293 the first run if RUN_ONCE.
15294 * server.h (run_once, remote_prepare): New declarations.
15295
7a9dd1b2
TT
152962011-04-19 Tom Tromey <tromey@redhat.com>
15297
15298 * win32-low.c (handle_load_dll): Remove duplicate "the".
15299
81239425
PM
153002011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
15301
15302 Remove support for old Cygwin 1.5 versions.
15303 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
15304 function to avoid warning.
15305 (win32_add_one_solib): Use cygwin_conv_path function to avoid
15306 warning.
15307
9e0627f1
PM
153082011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
15309
15310 * gdbserver/server.h (Macro _): Define it if not available.
15311
588eebee
MS
153122011-03-14 Michael Snyder <msnyder@vmware.com>
15313
348af9f7 15314 * hostio.c (handle_close): Remove unnecessary null test.
588eebee 15315
43f70d4c
JB
153162011-03-10 Joel Brobecker <brobecker@adacore.com>
15317
15318 * Makefile.in (maintainer-clean realclean distclean): Remove
15319 "make ... subdir_do" command.
15320
348af9f7
MS
153212011-03-10 Michael Snyder <msnyder@vmware.com>
15322
15323 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
15324
15325 * server.c (handle_v_run): Free alloced buffer on early return.
15326
e637a4f5
YQ
153272011-03-09 Yao Qi <yao@codesourcery.com>
15328
15329 Revert:
15330 2011-03-04 Yao Qi <yao@codesourcery.com>
15331
15332 * Makefile.in: Remove GNU make feature --directory.
15333
15334 2011-03-05 Yao Qi <yao@codesourcery.com>
15335
15336 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
15337 (subdir_do): New make target. Copied from gdb/Makefile.
15338 (maintainer-clean, realclean, distclean, clean): Call corresponding
15339 make targets in common/Makefile.
15340
15341 2011-02-11 Yao Qi <yao@codesourcery.com>
15342
15343 * configure.ac: Call AC_PROG_RANLIB.
15344 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
15345 * configure: Regenerate.
15346
e6edda56
JK
153472011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
15348
15349 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
15350
e5141119
JB
153512011-03-06 Yao Qi <yao@codesourcery.com>
15352
15353 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
15354
64794aa4
JB
153552011-03-05 Yao Qi <yao@codesourcery.com>
15356
15357 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
15358 (subdir_do): New make target. Copied from gdb/Makefile.
15359 (maintainer-clean, realclean, distclean, clean): Call corresponding
15360 make targets in common/Makefile.
15361
7a762829
YQ
153622011-03-04 Yao Qi <yao@codesourcery.com>
15363
15364 * Makefile.in: Remove GNU make feature --directory.
15365
348af9f7
MS
153662011-03-04 Michael Snyder <msnyder@vmware.com>
15367
15368 * server.c (queue_stop_reply): Call xmalloc not malloc.
15369
153702011-03-02 Michael Snyder <msnyder@vmware.com>
15371
15372 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
15373
9f72fee2
MS
153742011-02-28 Michael Snyder <msnyder@vmware.com>
15375
588eebee
MS
15376 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
15377 (cmd_qtframe): Ditto.
15378 (cmd_qtbuffer): Ditto.
15379 (cmd_bigqtbuffer): Ditto.
15380
9f72fee2
MS
15381 * utils.c (decimal2str): Initialize 'width' to nine, then
15382 don't mess with it.
15383
8040bd49
UW
153842011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
15385
15386 * hostio.c (require_data): Free *data, not data.
15387
7e52cbd0
JK
153882011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15389
15390 * hostio.c (require_data): Use free, not xfree.
15391
9130f83e
MS
153922011-02-27 Michael Snyder <msnyder@vmware.com>
15393
4b812f4e
MS
15394 * server.c (handle_query): Discard unused value.
15395
9130f83e
MS
15396 * hostio.c (require_data): Free malloc memory before returning
15397 error.
15398
69d37113
MS
153992011-02-26 Michael Snyder <msnyder@vmware.com>
15400
15401 * linux-low.c (list_threads): Call closedir for dirent.
15402
35f5825a
MS
154032011-02-27 Michael Snyder <msnyder@vmware.com>
15404
2a589cef
MS
15405 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
15406 a case statement falls through.
15407
0adea5f7
MS
15408 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
15409
35f5825a
MS
15410 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
15411 in comparison.
15412
238f1c74
MS
154132011-02-26 Michael Snyder <msnyder@vmware.com>
15414
15415 * utils.c (decimal2str): Eliminate dead code and dead param.
15416 (pulongest): Drop dead param from call to decimal2str.
15417 (plongest): Ditto.
15418
633ff500
JB
154192011-02-24 Joel Brobecker <brobecker@adacore.com>
15420
15421 Revert the following patch (not approved yet):
15422 2011-02-21 Hui Zhu <teawater@gmail.com>
15423 * tracepoint.c (tp_printf): New function.
15424 (eval_agent_expr): Handle gdb_agent_op_printf.
15425
f9c6ff72
HZ
154262011-02-21 Hui Zhu <teawater@gmail.com>
15427
15428 * tracepoint.c (tp_printf): New function.
15429 (eval_agent_expr): Handle gdb_agent_op_printf.
15430
94d5e490
TT
154312011-02-18 Tom Tromey <tromey@redhat.com>
15432
15433 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
15434 (tracepoint.o): Likewise.
15435 * tracepoint.c (enum gdb_agent_op): Use ax.def.
15436 (gdb_agent_op_names): Likewise.
15437
c7f96d2b
TT
154382011-02-18 Tom Tromey <tromey@redhat.com>
15439
15440 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
15441 gdb_agent_op_rot>: New constants.
15442 (gdb_agent_op_names): Add pick and roll.
15443 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
15444 cases.
15445
0feedb2c
JK
154462011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
15447
15448 * aclocal.m4: Regenerated with aclocal-1.11.1.
15449
b3b9301e
PA
154502011-02-14 Pedro Alves <pedro@codesourcery.com>
15451
15452 * server.c (handle_qxfer_traceframe_info): New.
15453 (qxfer_packets): Register "traceframe-info".
15454 (handle_query): Report support for qXfer:traceframe-info:read+.
15455 * tracepoint.c (match_blocktype): New.
15456 (traceframe_find_block_type): Rename to ...
15457 (traceframe_walk_blocks): ... this. Add callback filter argument,
15458 and use it.
15459 (traceframe_find_block_type): New, reimplemented on top of
15460 traceframe_walk_blocks.
15461 (build_traceframe_info_xml): New.
15462 (traceframe_read_info): New.
15463 * server.h (traceframe_read_info): Declare.
15464
4f3e6fb7
YQ
154652011-02-11 Yao Qi <yao@codesourcery.com>
15466
15467 * configure.ac: Call AC_PROG_RANLIB.
15468 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
15469 * configure: Regenerate.
15470
764880b7
PA
154712011-02-07 Pedro Alves <pedro@codesourcery.com>
15472
15473 * server.c (gdb_read_memory): Change return semantics to allow
15474 partial transfers.
15475 (handle_search_memory_1): Adjust.
15476 (process_serial_event) <'m' packet>: Handle partial transfers.
15477 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
15478
1c79eb8a
PA
154792011-01-28 Pedro Alves <pedro@codesourcery.com>
15480
15481 * regcache.c (init_register_cache): Initialize
15482 regcache->register_status.
15483 (free_register_cache): Release regcache->register_status.
15484 (regcache_cpy): Copy register_status.
15485 (registers_to_string): Print 'x's for unavailable registers.
15486 (supply_register): Mark the register's status valid or
15487 unavailable, depending on whether a buffer was passed in or not.
15488 (supply_register_zeroed): New.
15489 (supply_regblock): Mark the registers' status valid or
15490 unavailable, depending on whether a buffer was passed in or not.
15491 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
15492 (struct regcache): New `register_status' field.
15493 (supply_register_zeroed): Declare.
15494 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
15495 supply_register_zeroed, rather than passing a NULL buffer to
15496 supply_register.
15497 * tracepoint.c (fetch_traceframe_registers): Update comment.
15498
85724a0e
PA
154992011-01-28 Pedro Alves <pedro@codesourcery.com>
15500
15501 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
15502 buffer explicit.
15503
d08aafef
PA
155042011-01-25 Pedro Alves <pedro@codesourcery.com>
15505
15506 * server.h (decode_xfer_write): Change prototype.
15507 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
15508 and don't extract the annex here.
15509 * server.c (decode_xfer_read): Remove `annex' parameter,
15510 and don't extract the annex here.
15511 (decode_xfer): New.
15512 (struct qxfer): New.
15513 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
15514 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
15515 (handle_qxfer_statictrace): New functions, abstracted out from
15516 handle_query, and made to use the struct qxfer interface.
15517 (handle_threads_qxfer_proper): Rename to ...
15518 (handle_qxfer_threads_proper): ... this.
15519 (handle_threads_qxfer): Rename to ...
15520 (handle_qxfer_threads): ... this. Adjust.
15521 (qxfer_packets): New array.
15522 (handle_qxfer): New function.
15523 (handle_query): Use handle_qxfer.
15524
493e2a69
MS
155252011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
15526
15527 * gdbreplay.c: Shorten lines of >= 80 columns.
15528 * linux-low.c: Ditto.
15529 * linux-ppc-low.c: Ditto.
15530 * linux-s390-low.c: Ditto.
15531 * linux-sparc-low.c: Ditto.
15532 * linux-x86-low.c: Ditto.
15533 * linux-xtensa-low.c: Ditto.
15534 * mem-break.c: Ditto.
15535 * nto-low.c: Ditto.
15536 * regcache.h: Ditto.
15537 * remote-utils.c: Ditto.
15538 * server.c: Ditto.
15539 * server.h: Ditto.
15540 * thread-db.c: Ditto.
15541 * tracepoint.c: Ditto.
15542 * utils.c: Ditto.
15543 * win32-low.h: Ditto.
15544
44944448
JB
155452011-01-05 Joel Brobecker <brobecker@adacore.com>
15546
15547 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
15548 update.
15549
71ce852c
JB
155502011-01-01 Joel Brobecker <brobecker@adacore.com>
15551
15552 * server.c (gdbserver_version): Update copyright year in version
15553 output.
15554 * gdbreplay.c (gdbreplay_version): Ditto.
15555
eb826dc6
MF
155562010-12-29 Jie Zhang <jie.zhang@analog.com>
15557
15558 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
15559 * linux-bfin-low.c: New file.
15560 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
15561 PT_DATA_ADDR for BFIN targets.
15562 * Makefile.in (SFILES): Add linux-bfin-low.c.
15563 (clean): Remove reg-bfin.c.
15564 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
15565 * README: Mention supported Blackfin targets.
15566
39ab222a
MF
155672010-12-23 Mike Frysinger <vapier@gentoo.org>
15568
15569 * .gitignore: New file.
15570
a1f2ce7d
MF
155712010-11-16 Mike Frysinger <vapier@gentoo.org>
15572
15573 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
15574
f474844c
JZ
155752010-10-22 Jie Zhang <jie@codesourcery.com>
15576
15577 * Makefile.in: Add FLAGS_TO_PASS variable.
15578 (install): Remove dependency of install-only and recursively
15579 invoke make for install-only.
15580
f1048712
DE
155812010-10-04 Doug Evans <dje@google.com>
15582
15583 * Makefile.in (uninstall): Use $(DESTDIR).
15584
b53a1623
PA
155852010-09-24 Pedro Alves <pedro@codesourcery.com>
15586
e6ee044d
PA
15587 PR gdb/11842
15588
b53a1623
PA
15589 * linux-x86-low.c (compat_siginfo_from_siginfo)
15590 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
15591 si_code is < 0. Check for si_code == SI_TIMER before checking for
15592 si_code < 0.
15593
fa1bd1e4
JB
155942010-09-13 Joel Brobecker <brobecker@adacore.com>
15595
15596 * lynx-i386-low.c: New file.
15597 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
15598
47fac8f8
JB
155992010-09-13 Joel Brobecker <brobecker@adacore.com>
15600
15601 * lynx-low.c (ptrace_request_to_str): Remove handling for
15602 request values that have been removed in LynxOS 5.x.
15603
1adfc54d
JB
156042010-09-13 Joel Brobecker <brobecker@adacore.com>
15605
15606 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
15607 <ptrace.h>
15608
c2a66c29
NS
156092010-09-09 Nathan Sidwell <nathan@codesourcery.com>
15610
15611 * configure.ac: Add --enable-inprocess-agent option.
15612 * configure: Rebuilt.
15613
32fcada3
YQ
156142010-09-06 Yao Qi <yao@codesourcery.com>
15615
15616 * linux-low.c (linux_kill): Remove unused variable.
15617 (linux_stabilize_threads): Likewise.
15618 * server.c (start_inferior): Likewise.
15619 (queue_stop_reply_callback): Likewise.
15620 * tracepoint.c (do_action_at_tracepoint): Likewise.
15621
0cccb683
YQ
156222010-09-06 Yao Qi <yao@codesourcery.com>
15623
15624 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
15625 on return.
15626
423ec54c
JK
156272010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
15628
15629 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
15630
12ac6819
PA
156312010-09-06 Pedro Alves <pedro@codesourcery.com>
15632
15633 * Makefile.in (install-only): Replace $IPA_DEPFILES with
15634 "$(IPA_DEPFILES)".
15635
8ed54b31
JB
156362010-09-01 Joel Brobecker <brobecker@adacore.com>
15637
15638 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
15639 gdbserver/lynx-ppc-low.c: New files.
15640 * Makefile.in (lynx_low_h): New variable.
15641 (lynx-low.o, lynx-ppc-low.o): New rules.
15642 * configure.ac: On LynxOS, link with -lnetinet.
15643 * configure.srv: Add handling of powerpc-*-lynxos* targets.
15644 * configure: regenerate.
15645
bb0116a4
JB
156462010-09-01 Joel Brobecker <brobecker@adacore.com>
15647
15648 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
15649 * configure.ac: Add check for vasprintf and vsnprintf.
15650 * configure, config.in: Regenerate.
15651 * server.h (vasprintf, vsnprintf): Add conditional declarations.
15652
a778ab81 156532010-09-01 Joel Brobecker <brobecker@adacore.com>
15654
15655 * gdbreplay.c: Move include of alloca.h up, next to include of
15656 malloc.h.
15657 * server.h: Add include of malloc.h.
15658 * mem-break.c: Remove include of malloc.h.
15659 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
15660
8b034a19 156612010-09-01 Joel Brobecker <brobecker@adacore.com>
15662
15663 * Makefile.in (memmem.o): Build with -Wno-error.
15664
156652010-09-01 Joel Brobecker <brobecker@adacore.com>
15666
15667 * utils.c (xsnprintf): Make non-static.
15668 * server.h: Add xsnprintf declaration.
15669 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
15670 replace calls to snprintf by calls to xsnprintf throughout.
15671
156722010-09-01 Joel Brobecker <brobecker@adacore.com>
15673
15674 * configure.ac: Add configure check for alloca.
15675 * configure, config.in: Regenerate.
15676 * server.h: Include alloca.h if it exists.
15677 * gdbreplay.c: Include alloca.h if it exists.
15678
1a981360
PA
156792010-08-28 Pedro Alves <pedro@codesourcery.com>
15680
15681 * linux-low.c (__SIGRTMIN): Define if not already defined.
15682 (linux_create_inferior): Check for __ANDROID__ rather than
15683 __SIGRTMIN.
15684 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
15685 are already deferred.
15686 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
15687 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
15688 stopped and already has a pending signal to report.
15689 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
15690 a pending signal to report or is moving out of a jump pad.
15691 (linux_init_signals): Check for __ANDROID__ rather than
15692 __SIGRTMIN.
15693
b4d51a55
PA
156942010-08-28 Pedro Alves <pedro@codesourcery.com>
15695
15696 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
15697 debug_threads check. Avoid a linear search when not doing debug
15698 output.
15699
ec48365d
PA
157002010-08-27 Pedro Alves <pedro@codesourcery.com>
15701
15702 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
15703 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
15704 (struct file_handler) <fd>: Change type to gdb_fildes_t.
15705 (process_event): Change local fd's type to gdb_fildes_t.
15706 (create_file_handler): Adjust prototype.
15707 (delete_file_handler): Adjust prototype.
15708 (handle_file_event): Adjust prototype. Use pfildes.
15709 (create_file_event): Adjsut prototype.
15710 * remote-utils.c (remote_desc, listen_desc): Change type to
15711 gdb_fildes_t.
15712 * server.h: New gdb_fildes_t typedef.
15713 [USE_WIN32API]: Include winsock2.h.
15714 (delete_file_handler, add_file_handler): Adjust prototypes.
15715 (pfildes): Declare.
15716 * utils.c (pfildes): New.
15717
854d88f0
PA
157182010-08-27 Pedro Alves <pedro@codesourcery.com>
15719
15720 * configure.ac (build_warnings): Add -Wno-char-subscripts.
15721 * configure: Regenerate.
15722
0146f85b
PA
157232010-08-27 Pedro Alves <pedro@codesourcery.com>
15724
15725 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
15726 (linux_done_accessing_memory): ... this.
15727 (linux_target_ops): Adjust.
15728 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
15729 * nto-low.c (nto_target_ops): Adjust comment.
15730 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
15731 * spu-low.c (spu_target_ops): Adjust comment.
15732 * target.h (target_ops): Rename unprepare_to_access_memory field
15733 to done_accessing_memory.
15734 (unprepare_to_access_memory): Rename to ...
15735 (done_accessing_memory): ... this.
15736
90d74c30
PA
157372010-08-26 Pedro Alves <pedro@codesourcery.com>
15738
15739 * linux-low.c (linux_prepare_to_access_memory): New.
15740 (linux_unprepare_to_access_memory): New.
15741 (linux_target_ops): Install them.
15742 * server.c (read_memory): Rename to ...
15743 (gdb_read_memory): ... this. Use
15744 prepare_to_access_memory/prepare_to_access_memory.
15745 (write_memory): Rename to ...
15746 (gdb_write_memory): ... this. Use
15747 prepare_to_access_memory/prepare_to_access_memory.
15748 (handle_search_memory_1): Adjust.
15749 (process_serial_event): Adjust.
15750 * target.h (struct target_ops): New fields
15751 prepare_to_access_memory and unprepare_to_access_memory.
15752 (prepare_to_access_memory, unprepare_to_access_memory): New.
15753 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
15754 prepare_to_access_memory/prepare_to_access_memory.
15755 * nto-low.c (nto_target_ops): Adjust.
15756 * spu-low.c (spu_target_ops): Adjust.
15757 * win32-low.c (win32_target_ops): Adjust.
15758
fd467969
PA
157592010-08-26 Pedro Alves <pedro@codesourcery.com>
15760
15761 * Makefile.in (WARN_CFLAGS): Get it from configure.
15762 (WERROR_CFLAGS): New.
15763 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
15764 * configure.ac: Introduce --enable-werror, which adds -Werror to
15765 the compiler command line. Enabled by default. Disable with
15766 --disable-werror. Add -Wdeclaration-after-statement
15767 Wpointer-arith and -Wformat-nonliteral to warning flags.
15768 * configure: Regenerate.
15769
331e2f5f
PA
157702010-08-26 Pedro Alves <pedro@codesourcery.com>
15771
15772 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
15773
e581f2b4
PA
157742010-08-26 Pedro Alves <pedro@codesourcery.com>
15775
15776 * gdbreplay.c (remote_error): New.
15777 (gdbchar): New.
15778 (expect): Use gdbchar. Check for error reading from GDB.
15779 Clarify sync error output.
15780 (play): Check for errors writing to GDB.
15781 * linux-low.c (sigchld_handler): Really ignore `write' errors.
15782 * remote-utils.c (getpkt): Check for errors writing to the remote
15783 descriptor.
15784
3c11dd79
PA
157852010-08-25 Pedro Alves <pedro@codesourcery.com>
15786
15787 * linux-low.c (linux_wait_1): Move non-debugging code out of
15788 `debug_threads' control.
15789
d20a8ad9
PA
157902010-08-25 Pedro Alves <pedro@codesourcery.com>
15791
15792 * linux-low.c (linux_wait_1): Don't set last_status here.
15793 * server.c (push_event, queue_stop_reply_callback): Assert we're
15794 not pushing a TARGET_WAITKIND_IGNORE event.
15795 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
15796 (myresume, handle_target_event): Set the thread's last_resume_kind
15797 and last_status from the target returned status.
15798
964e4306
PA
157992010-08-25 Pedro Alves <pedro@codesourcery.com>
15800
15801 PR threads/10729
15802
15803 * linux-x86-low.c (update_debug_registers_callback): New.
15804 (i386_dr_low_set_addr): Use it.
15805 (i386_dr_low_get_addr): New.
15806 (i386_dr_low_set_control): Use update_debug_registers_callback.
15807 (i386_dr_low_get_control): New.
15808 (i386_dr_low_get_status): Adjust.
15809 * linux-low.c (linux_stop_lwp): New.
15810 * linux-low.h (linux_stop_lwp): Declare.
15811
15812 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
15813 argument instead of a i386_debug_reg_state.
15814 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
15815 a i386_debug_reg_state.
15816 (i386_insert_aligned_watchpoint): Adjust.
15817 (i386_remove_aligned_watchpoint): Adjust.
15818 (i386_low_stopped_data_address): Read the debug registers from the
15819 inferior instead of from the mirrors.
15820 * i386-low.h (struct i386_debug_reg_state): Extend comment.
15821 (i386_dr_low_get_addr): Declare.
15822 (i386_dr_low_get_control): Declare.
15823 (i386_dr_low_get_status): Change prototype.
15824
15825 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
15826 (i386_dr_low_get_addr): New.
15827 (i386_dr_low_get_control): New.
15828 (i386_dr_low_get_status): Adjust prototype. Return
15829 dr_status_mirror.
15830 (i386_initial_stuff): Clear dr_status_mirror and
15831 dr_control_mirror.
15832 (i386_get_thread_context): Adjust.
15833 (i386_set_thread_context): Adjust.
15834 (i386_thread_added): Adjust.
15835
5f21a75b
PA
158362010-08-24 Pedro Alves <pedro@codesourcery.com>
15837
15838 * linux-low.h (linux_thread_area): Delete declaration.
15839
3e4c1235
TS
158402010-08-11 Thomas Schwinge <thomas@codesourcery.com>
15841
15842 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
15843 after its termination.
15844
1971b033
PA
158452010-08-09 Pedro Alves <pedro@codesourcery.com>
15846
15847 * linux-low.c (gdb_wants_lwp_stopped): Delete.
15848 (gdb_wants_all_stopped): Delete.
15849 (linux_wait_1): Don't call them.
15850 * server.c (handle_v_cont): Tag all threads as want-stopped.
15851 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
15852 stopped as "client-wants-stopped".
15853
310444ac
PA
158542010-07-31 Pedro Alves <pedro@codesourcery.com>
15855
15856 * Makefile.in (signals_h): New.
15857 (server_h): Depend on it.
15858 (server.o): Don't depend on $(signals_def).
15859 (signals.o): Depend on $(signals_def).
15860
a19cae16
JK
158612010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
15862
15863 * Makefile.in (signals_def): New.
15864 (server_h): Append include/gdb/signals.h and signals_def.
15865 (server.o): Append signals_def.
15866
30d50328
JK
158672010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
15868
15869 * server.c (handle_target_event): Use target_signal_to_host for
15870 resume_info.sig initialization.
15871 * target.h (struct thread_resume) <sig>: New comment.
15872
5c3216e2
OS
158732010-07-20 Ozkan Sezer <sezeroz@gmail.com>
15874
c6f46ca0
OS
15875 * server.c (handle_query): strcpy() the returned string from paddress()
15876 instead of sprintf().
5c3216e2
OS
15877 * utils.c (paddress): Return phex_nz().
15878
6bd31874
JB
158792010-07-07 Joel Brobecker <brobecker@adacore.com>
15880
15881 * server.c (handle_v_cont): Call mourn_inferior if process
15882 just exited.
15883 (myresume): Likewise.
15884
0fb4aa4b
PA
158852010-07-01 Pedro Alves <pedro@codesourcery.com>
15886
15887 Static tracepoints, and integration with UST.
15888
15889 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
15890 * mem-break.c (uninsert_all_breakpoints)
15891 (reinsert_all_breakpoints): New.
15892 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
15893 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
15894 (gdb_agent_ust_loaded, helper_thread_id)
15895 (gdb_agent_helper_thread_id): New macros.
15896 (struct ipa_sym_addresses): Add addr_ust_loaded,
15897 addr_helper_thread_id, addr_cmd_buf.
15898 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
15899 (in_process_agent_loaded_ust): New.
15900 (write_e_ust_not_loaded): New.
15901 (maybe_write_ipa_ust_not_loaded): New.
15902 (struct collect_static_trace_data_action): New.
15903 (enum tracepoint_type) <static_tracepoint>: New.
15904 (struct tracepoint) <handle>: Mention static tracepoints.
15905 (struct static_tracepoint_ctx): New.
15906 (CMD_BUF_SIZE): New.
15907 (add_tracepoint_action): Handle static tracepoint actions.
15908 (unprobe_marker_at): New.
15909 (clear_installed_tracepoints): Handle static tracepoints.
15910 (cmd_qtdp): Handle static tracepoints.
15911 (probe_marker_at): New.
15912 (cmd_qtstart): Handle static tracepoints.
15913 (response_tracepoint): Handle static tracepoints.
15914 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
15915 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
15916 (get_context_regcache): Handle static tracepoints.
15917 (do_action_at_tracepoint): Handle static tracepoint actions.
15918 (traceframe_find_block_type): Handle static trace data blocks.
15919 (traceframe_read_sdata): New.
15920 (download_tracepoints): Download static tracepoint actions.
15921 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
15922 (GDB_PROBE_NAME): New.
15923 (ust_ops): New.
15924 (GET_UST_SYM): New.
15925 (USTF): New.
15926 (dlsym_ust): New.
15927 (ust_marker_to_static_tracepoint): New.
15928 (gdb_probe): New.
15929 (collect_ust_data_at_tracepoint): New.
15930 (gdb_ust_probe): New.
15931 (UNIX_PATH_MAX, SOCK_DIR): New.
15932 (gdb_ust_connect_sync_socket): New.
15933 (resume_thread, stop_thread): New.
15934 (run_inferior_command): New.
15935 (init_named_socket): New.
15936 (gdb_ust_socket_init): New.
15937 (cstr_to_hexstr): New.
15938 (next_st): New.
15939 (first_marker, next_marker): New.
15940 (response_ust_marker): New.
15941 (cmd_qtfstm, cmd_qtsstm): New.
15942 (unprobe_marker_at, probe_marker_at): New.
15943 (cmd_qtstmat, gdb_ust_thread): New.
15944 (gdb_ust_init): New.
15945 (initialize_tracepoint_ftlib): Call gdb_ust_init.
15946 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
15947 (ST_REGENTRY): New.
15948 (x86_64_st_collect_regmap): New.
15949 (X86_64_NUM_ST_COLLECT_GREGS): New.
15950 (AMD64_RIP_REGNUM): New.
15951 (supply_static_tracepoint_registers): New.
15952 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
15953 (ST_REGENTRY): New.
15954 (i386_st_collect_regmap): New.
15955 (i386_NUM_ST_COLLECT_GREGS): New.
15956 (supply_static_tracepoint_registers): New.
15957 * server.c (handle_query): Handle qXfer:statictrace:read.
15958 <qSupported>: Report support for StaticTracepoints, and
15959 qXfer:statictrace:read features.
15960 * server.h (traceframe_read_sdata)
15961 (supply_static_tracepoint_registers): Declare.
15962 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
15963 (unpack_varlen_hex): Include in IPA build.
15964 * Makefile.in (ustlibs, ustinc): New.
15965 (IPA_OBJS): Add remote-utils-ipa.o.
15966 ($(IPA_LIB)): Link -ldl and -lpthread.
15967 (UST_CFLAGS): New.
15968 (IPAGENT_CFLAGS): Add UST_CFLAGS.
15969 * config.in, configure: Regenerate.
15970
9e4344e5
PA
159712010-06-20 Ian Lance Taylor <iant@google.com>
15972 Pedro Alves <pedro@codesourcery.com>
15973
15974 * linux-x86-low.c (always_true): Delete.
15975 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
15976 trying to fool the compiler with always_true.
15977
c6beb2cb
PA
159782010-06-20 Pedro Alves <pedro@codesourcery.com>
15979
15980 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
15981 conditions in gdbserver.
15982
d2ed6730
UW
159832010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
15984
15985 * spu-low.c (spu_read_memory): Wrap around local store limit.
15986 (spu_write_memory): Likewise.
15987
4e29fb54
PA
159882010-06-15 Pedro Alves <pedro@codesourcery.com>
15989
15990 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
15991 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
15992 LONGEST uses.
15993 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
15994 uses.
15995 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
15996 uses with LONGEST uses.
15997
6a271cae
PA
159982010-06-14 Stan Shebs <stan@codesourcery.com>
15999 Pedro Alves <pedro@codesourcery.com>
16000
16001 Bytecode compiler.
16002
16003 * linux-x86-low.c: Include limits.h.
16004 (add_insns): New.
16005 (always_true): New.
16006 (EMIT_ASM): New.
16007 (EMIT_ASM32): New.
16008 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
16009 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
16010 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
16011 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
16012 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
16013 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
16014 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
16015 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
16016 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
16017 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
16018 (amd64_emit_void_call_2): New.
16019 (amd64_emit_ops): New.
16020 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
16021 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
16022 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
16023 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
16024 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
16025 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
16026 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
16027 (i386_emit_call, i386_emit_reg, i386_emit_pop)
16028 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
16029 (i386_emit_stack_adjust, i386_emit_int_call_1)
16030 (i386_emit_void_call_2): New.
16031 (i386_emit_ops): New.
16032 (x86_emit_ops): New.
16033 (the_low_target): Install x86_emit_ops.
16034 * server.h (struct emit_ops): New.
16035 (get_raw_reg_func_addr): Declare.
16036 (current_insn_ptr, emit_error): Declare.
16037 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
16038 (set_trace_state_variable_value): New defines.
16039 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
16040 addr_get_trace_state_variable_value and
16041 addr_set_trace_state_variable_value.
16042 (symbol_list): New fields for get_raw_reg,
16043 get_trace_state_variable_value and set_trace_state_variable_value.
16044 (condfn): New typedef.
16045 (struct tracepoint): New field `compiled_cond'.
16046 (do_action_at_tracepoint): Clear compiled_cond.
16047 (get_trace_state_variable_value, set_trace_state_variable_value):
16048 Export in the IPA.
16049 (condition_true_at_tracepoint): If there's a compiled condition,
16050 run that.
16051 (current_insn_ptr, emit_error): New globals.
16052 (struct bytecode_address): New.
16053 (get_raw_reg_func_addr): New.
16054 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
16055 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
16056 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
16057 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
16058 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
16059 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
16060 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
16061 (compile_tracepoint_condition, compile_bytecodes): New.
16062 * target.h (emit_ops): Forward declare.
16063 (struct target_ops): New field emit_ops.
16064 (target_emit_ops): New.
16065 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
16066 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
16067 * linux-low.c (linux_emit_ops): New.
16068 (linux_target_ops): Install it.
16069 * linux-low.h (struct linux_target_ops): New field emit_ops.
16070
92b72907
UW
160712010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
16072
16073 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
16074 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
16075
fa593d66
PA
160762010-06-01 Pedro Alves <pedro@codesourcery.com>
16077 Stan Shebs <stan@codesourcery.com>
16078
16079 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
16080 (all): Depend on $(extra_libraries).
16081 (install-only): Install the IPA.
16082 (IPA_OBJS, IPA_LIB): New.
16083 (clean): Remove the IPA lib.
16084 (IPAGENT_CFLAGS): New.
16085 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
16086 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
16087 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
16088 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
16089 * configure.ac: Check for atomic builtins support in the compiler.
16090 (IPA_DEPFILES, extra_libraries): Define.
16091 * configure.srv (ipa_obj): Add description.
16092 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
16093 (i[34567]86-*-linux*): Set ipa_obj.
16094 (x86_64-*-linux*): Set ipa_obj.
16095 * linux-low.c (stabilizing_threads): New.
16096 (supports_fast_tracepoints): New.
16097 (linux_detach): Stabilize threads before detaching.
16098 (handle_tracepoints): Handle internal tracing breakpoints. Assert
16099 the lwp is either not stabilizing, or is moving out of a jump pad.
16100 (linux_fast_tracepoint_collecting): New.
16101 (maybe_move_out_of_jump_pad): New.
16102 (enqueue_one_deferred_signal): New.
16103 (dequeue_one_deferred_signal): New.
16104 (linux_wait_for_event_1): If moving out of a jump pad, defer
16105 pending signals to later.
16106 (linux_stabilize_threads): New.
16107 (linux_wait_1): Check if threads need moving out of jump pads, and
16108 do it if so.
16109 (stuck_in_jump_pad_callback): New.
16110 (move_out_of_jump_pad_callback): New.
16111 (lwp_running): New.
16112 (linux_resume_one_lwp): Handle moving out of jump pads.
16113 (linux_set_resume_request): Dequeue deferred signals.
16114 (need_step_over_p): Also step over fast tracepoint jumps.
16115 (start_step_over): Also uninsert fast tracepoint jumps.
16116 (finish_step_over): Also reinsert fast tracepoint jumps.
16117 (linux_install_fast_tracepoint_jump): New.
16118 (linux_target_ops): Install linux_stabilize_threads and
16119 linux_install_fast_tracepoint_jump_pad.
16120 * linux-low.h (linux_target_ops) <get_thread_area,
16121 install_fast_tracepoint_jump_pad>: New fields.
16122 (struct lwp_info) <collecting_fast_tracepoint,
16123 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
16124 (linux_get_thread_area): Declare.
16125 * linux-x86-low.c (jump_insn): New.
16126 (x86_get_thread_area): New.
16127 (append_insns): New.
16128 (push_opcode): New.
16129 (amd64_install_fast_tracepoint_jump_pad): New.
16130 (i386_install_fast_tracepoint_jump_pad): New.
16131 (x86_install_fast_tracepoint_jump_pad): New.
16132 (the_low_target): Install x86_get_thread_area and
16133 x86_install_fast_tracepoint_jump_pad.
16134 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
16135 (struct fast_tracepoint_jump): New.
16136 (fast_tracepoint_jump_insn): New.
16137 (fast_tracepoint_jump_shadow): New.
16138 (find_fast_tracepoint_jump_at): New.
16139 (fast_tracepoint_jump_here): New.
16140 (delete_fast_tracepoint_jump): New.
16141 (set_fast_tracepoint_jump): New.
16142 (uninsert_fast_tracepoint_jumps_at): New.
16143 (reinsert_fast_tracepoint_jumps_at): New.
16144 (set_breakpoint_at): Use write_inferior_memory.
16145 (uninsert_raw_breakpoint): Use write_inferior_memory.
16146 (check_mem_read): Mask out fast tracepoint jumps.
16147 (check_mem_write): Mask out fast tracepoint jumps.
16148 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
16149 (set_fast_tracepoint_jump): Declare.
16150 (delete_fast_tracepoint_jump)
16151 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
16152 (reinsert_fast_tracepoint_jumps_at): Declare.
16153 * regcache.c: Don't compile many functions when building the
16154 in-process agent library.
16155 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
16156 the register buffer in the heap.
16157 (free_register_cache): If the register buffer isn't owned by the
16158 regcache, don't free it.
16159 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
16160 pre-existing register caches.
16161 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
16162 type.
16163 (convert_ascii_to_int): : Constify `from' parameter type.
16164 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
16165 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
16166 the needed buffer in-place.
16167 (relocate_instruction): New.
16168 * server.c (handle_query) <qSymbols>: If the target supports
16169 tracepoints, give it a chance of looking up symbols. Report
16170 support for fast tracepoints.
16171 (handle_status): Stabilize threads.
16172 (process_serial_event): Adjust.
16173 * server.h (struct fast_tracepoint_jump): Forward declare.
16174 (struct process_info) <fast_tracepoint_jumps>: New field.
16175 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
16176 (decode_X_packet, decode_M_packet): Adjust.
16177 (relocate_instruction): Declare.
16178 (in_process_agent_loaded): Declare.
16179 (tracepoint_look_up_symbols): Declare.
16180 (struct fast_tpoint_collect_status): Declare.
16181 (fast_tracepoint_collecting): Declare.
16182 (force_unlock_trace_buffer): Declare.
16183 (handle_tracepoint_bkpts): Declare.
16184 (initialize_low_tracepoint)
16185 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
16186 * target.h (struct target_ops) <stabilize_threads,
16187 install_fast_tracepoint_jump_pad>: New fields.
16188 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
16189 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
16190 [HAVE_STDINT_H]: Include stdint.h.
16191 (trace_debug_1): Rename to ...
16192 (trace_vdebug): ... this.
16193 (trace_debug): Rename to ...
16194 (trace_debug_1): ... this. Add `level' parameter.
16195 (trace_debug): New.
16196 (ATTR_USED, ATTR_NOINLINE): New.
16197 (IP_AGENT_EXPORT): New.
16198 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
16199 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
16200 (about_to_request_buffer_space, trace_buffer_is_full)
16201 (stopping_tracepoint, expr_eval_result, error_tracepoint)
16202 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
16203 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
16204 (traceframe_write_count, traceframes_created)
16205 (trace_state_variables)
16206 New renaming defines.
16207 (struct ipa_sym_addresses): New.
16208 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
16209 (symbol_list): New.
16210 (ipa_sym_addrs): New.
16211 (all_tracepoint_symbols_looked_up): New.
16212 (in_process_agent_loaded): New.
16213 (write_e_ipa_not_loaded): New.
16214 (maybe_write_ipa_not_loaded): New.
16215 (tracepoint_look_up_symbols): New.
16216 (debug_threads) [IN_PROCESS_AGENT]: New.
16217 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
16218 (UNKNOWN_SIDE_EFFECTS): New.
16219 (stop_tracing): New.
16220 (flush_trace_buffer): New.
16221 (stop_tracing_bkpt): New.
16222 (flush_trace_buffer_bkpt): New.
16223 (read_inferior_integer): New.
16224 (read_inferior_uinteger): New.
16225 (read_inferior_data_pointer): New.
16226 (write_inferior_data_pointer): New.
16227 (write_inferior_integer): New.
16228 (write_inferior_uinteger): New.
16229 (struct collect_static_trace_data_action): Delete.
16230 (enum tracepoint_type): New.
16231 (struct tracepoint) <type>: New field `type'.
43aaf8b6
PA
16232 <actions_str, step_actions, step_actions_str>: Only include in
16233 GDBserver.
fa593d66
PA
16234 <orig_size, obj_addr_on_target, adjusted_insn_addr>
16235 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
16236 (tracepoints): Use IP_AGENT_EXPORT.
16237 (last_tracepoint): Don't include in the IPA.
16238 (stopping_tracepoint): Use IP_AGENT_EXPORT.
16239 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
16240 (alloced_trace_state_variables): New.
16241 (trace_state_variables): Use IP_AGENT_EXPORT.
16242 (traceframe_t): Delete unused variable.
16243 (circular_trace_buffer): Don't include in the IPA.
16244 (trace_buffer_start): Delete.
16245 (struct trace_buffer_control): New.
16246 (trace_buffer_free): Delete.
16247 (struct ipa_trace_buffer_control): New.
16248 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
16249 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
16250 New.
16251 (trace_buffer_ctrl): New.
16252 (TRACE_BUFFER_CTRL_CURR): New.
16253 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
16254 Reimplement as macros.
16255 (trace_buffer_wrap): Delete.
16256 (traceframe_write_count, traceframe_read_count)
16257 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
16258 (struct tracepoint_hit_ctx) <type>: New field.
16259 (struct fast_tracepoint_ctx): New.
16260 (memory_barrier): New.
16261 (cmpxchg): New.
16262 (record_tracepoint_error): Update atomically in the IPA.
16263 (clear_inferior_trace_buffer): New.
16264 (about_to_request_buffer_space): New.
16265 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
16266 updating the same buffer.
16267 (add_tracepoint): Default the tracepoint's type to trap
16268 tracepoint, and orig_size to -1.
16269 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
16270 internal variables.
16271 (create_trace_state_variable): New parameter `gdb'. Handle it.
16272 (clear_installed_tracepoints): Clear fast tracepoint jumps.
16273 (cmd_qtdp): Handle fast tracepoints.
16274 (cmd_qtdv): Adjust.
16275 (max_jump_pad_size): New.
16276 (gdb_jump_pad_head): New.
16277 (get_jump_space_head): New.
16278 (claim_jump_space): New.
16279 (sort_tracepoints): New.
16280 (MAX_JUMP_SIZE): New.
16281 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
16282 IPA.
16283 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
16284 support. Upload fast traceframes, and delete internal IPA
16285 breakpoints.
16286 (stop_tracing_handler): New.
16287 (flush_trace_buffer_handler): New.
16288 (cmd_qtstop): Upload fast tracepoints.
16289 (response_tracepoint): Handle fast tracepoints.
16290 (tracepoint_finished_step): Upload fast traceframes. Set the
16291 tracepoint hit context's tracepoint type.
16292 (handle_tracepoint_bkpts): New.
16293 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
16294 type. Add comment about fast tracepoints.
16295 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
16296 non-existing action_str field.
16297 (get_context_regcache): Handle fast tracepoints.
16298 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
16299 to the regcache.
16300 (fast_tracepoint_from_jump_pad_address): New.
16301 (fast_tracepoint_from_ipa_tpoint_address): New.
16302 (collecting_t): New.
16303 (force_unlock_trace_buffer): New.
16304 (fast_tracepoint_collecting): New.
16305 (collecting): New.
16306 (gdb_collect): New.
16307 (write_inferior_data_ptr): New.
16308 (target_tp_heap): New.
16309 (target_malloc): New.
16310 (download_agent_expr): New.
16311 (UALIGN): New.
16312 (download_tracepoints): New.
16313 (download_trace_state_variables): New.
16314 (upload_fast_traceframes): New.
16315 (IPA_FIRST_TRACEFRAME): New.
16316 (IPA_NEXT_TRACEFRAME_1): New.
16317 (IPA_NEXT_TRACEFRAME): New.
16318 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
16319 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
16320 (gdb_jump_pad_buffer_end): New.
16321 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
16322 (initialize_tracepoint): Adjust.
16323 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
16324 buffer. Initialize the low module.
16325 * utils.c (PREFIX, TOOLNAME): New.
16326 (malloc_failure): Use PREFIX.
16327 (error): In the IPA, an error causes an exit.
16328 (fatal, warning): Use PREFIX.
16329 (internal_error): Use TOOLNAME.
16330 (NUMCELLS): Increase to 10.
16331 * configure, config.in: Regenerate.
16332
d149dd1d
PA
163332010-06-01 Pedro Alves <pedro@codesourcery.com>
16334
16335 * server.c (handle_query) <qSupported>: Do two passes over the
16336 qSupported string to avoid nesting strtok.
16337
f6528abd
JK
163382010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16339
16340 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
16341 (CDEPS): New.
16342 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
16343 -Wl,--dynamic-list.
16344 * configure: Regenerate.
16345 * proc-service.list: New.
16346
ca2a87a0
JK
163472010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16348
16349 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
16350 New comment.
16351
363a6e9f
OS
163522010-05-26 Ozkan Sezer <sezeroz@gmail.com>
16353
16354 * gdbreplay.c (remote_open): Check error return from socket() call by
16355 its equality to -1 not by it being negative.
16356 * remote-utils.c (remote_open): Likewise.
16357
d23b6cb1
PA
163582010-05-23 Pedro Alves <pedro@codesourcery.com>
16359
16360 * config.h: Regenerate.
16361
28d3cf85
MK
163622010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
16363
16364 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
16365 doesn't provide PTRACE_GET_THREAD_AREA.
16366
fea36a59
MK
163672010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
16368
16369 * linux-m68k-low.c: Include <asm/ptrace.h>
16370 (ps_get_thread_area): Implement.
16371
24b066ba
DE
163722010-05-03 Doug Evans <dje@google.com>
16373
16374 * event-loop.c (struct callback_event): New struct.
16375 (callback_list): New global.
16376 (append_callback_event, delete_callback_event): New functions.
16377 (process_callback): New function.
16378 (start_event_loop): Call it.
16379 * remote-utils.c (NOT_SCHEDULED): Define.
16380 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
16381 moved out of readchar.
16382 (readchar): Rewrite. Call reschedule before returning.
16383 (reset_readchar): New function.
16384 (remote_close): Call it.
16385 (process_remaining, reschedule): New functions.
16386 * server.h (callback_handler_func): New typedef.
16387 (append_callback_event, delete_callback_event): Declare.
16388
9836d6ea
PA
163892010-05-03 Pedro Alves <pedro@codesourcery.com>
16390
16391 * proc-service.c (ps_pglobal_lookup): Use
16392 thread_db_look_up_one_symbol.
16393 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
16394 parameter. Use it instead of all_symbols_looked_up.
16395 * server.h (struct process_info) <all_symbols_looked_up>: Delete
16396 field.
16397 (all_symbols_looked_up): Don't declare.
16398 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
16399 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
16400 field.
16401 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
16402 Set all_symbols_looked_up here.
16403 (thread_db_look_up_one_symbol): New.
16404 (thread_db_get_tls_address): Adjust.
16405 (thread_db_load_search, try_thread_db_load_1): Always allocate the
16406 thread_db object on the heap, and tentatively set it in the
16407 process structure.
16408 (thread_db_init): Don't set all_symbols_looked_up here.
16409 * linux-low.h (thread_db_look_up_one_symbol): Declare.
16410
7984d532
PA
164112010-05-03 Pedro Alves <pedro@codesourcery.com>
16412
16413 * linux-low.c (linux_kill, linux_detach): Adjust.
16414 (status_pending_p_callback): Remove redundant statement. Check
16415 for !TARGET_WAITIKIND_IGNORE, instead of
16416 TARGET_WAITKIND_STOPPED.
16417 (handle_tracepoints): Make sure LWP is locked. Adjust.
16418 (linux_wait_for_event_1): Adjust.
16419 (linux_cancel_breakpoints): New.
16420 (unsuspend_one_lwp): New.
16421 (unsuspend_all_lwps): New.
16422 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
16423 (send_sigstop_callback): Change return type to int, add new
16424 `except' parameter and handle it.
16425 (suspend_and_send_sigstop_callback): New.
16426 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
16427 pass them down. If SUSPEND, also increment the lwp's suspend
16428 count.
16429 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
16430 (need_step_over_p): Don't consider suspended LWPs.
16431 (start_step_over): Adjust.
16432 (proceed_one_lwp): Change return type to int, add new `except'
16433 parameter and handle it.
16434 (unsuspend_and_proceed_one_lwp): New.
16435 (proceed_all_lwps): Use find_inferior instead of
16436 for_each_inferior.
16437 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
16438 also decrement the suspend count of LWPs. Pass `except' down,
16439 instead of hacking its suspend count.
16440 (linux_pause_all): Add `freeze' parameter. Adjust.
16441 (linux_unpause_all): New.
16442 (linux_target_ops): Install linux_unpause_all.
16443 * server.c (handle_status): Adjust.
16444 * target.h (struct target_ops): New fields `unpause_all' and
16445 `cancel_breakpoints'. Add new parameter to `pause_all'.
16446 (pause_all): Add new `freeze' parameter.
16447 (unpause_all): New.
16448 (cancel_breakpoints): New.
16449 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
16450 cancel breakpoints.
16451 (cmd_qtstart): Pause threads.
16452 (stop_tracing): Pause threads, and cancel breakpoints.
16453 * win32-low.c (win32_target_ops): Adjust.
16454
e471f25b
PA
164552010-05-03 Pedro Alves <pedro@codesourcery.com>
16456
16457 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
16458 the inferior right away from here...
16459 (linux_wait_1): ... to here, and adjust to check the thread's
16460 last_resume_kind instead of the lwp's step or stop_expected flags.
16461
1915ef4f
PA
164622010-05-02 Pedro Alves <pedro@codesourcery.com>
16463
16464 * README: Use consistent `GDB' and `GDBserver' spellings.
16465
f9e39928
PA
164662010-05-02 Pedro Alves <pedro@codesourcery.com>
16467
16468 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
16469 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
16470 (linux_detach_one_lwp): Assume the lwp is stopped.
16471 (any_thread_of): Delete.
16472 (linux_detach): Stop all lwps here. Don't blindly delete all
16473 breakpoints.
16474 (delete_lwp_callback): New.
16475 (linux_mourn): Delete all lwps of the process that is gone.
16476 (linux_wait_1): Don't delete the last lwp of the process here.
16477 * mem-break.h (mark_breakpoints_out): Declare.
16478 * mem-break.c (mark_breakpoints_out): New.
16479 (free_all_breakpoints): Use it.
16480 * server.c (handle_target_event): If the process is gone, mark
16481 breakpoints out.
16482 * thread-db.c (struct thread_db) <create_bp>: New field.
16483 (thread_db_enable_reporting): Fix prototype. Store a thread event
16484 breakpoint reference in the thread_db struct.
16485 (thread_db_load_search): Clear the thread_db object.
16486 (try_thread_db_load_1): Ditto.
16487 (switch_to_process): New.
16488 (disable_thread_event_reporting): Use it.
16489 (remove_thread_event_breakpoints): New.
16490 (thread_db_detach, thread_db_mourn): Use it.
16491
1e7fc18c
PA
164922010-05-01 Pedro Alves <pedro@codesourcery.com>
16493
16494 * linux-low.c (linux_enable_event_reporting): New.
16495 (linux_wait_for_event_1, handle_extended_wait): Use it.
16496
02fc4de7
PA
164972010-04-30 Pedro Alves <pedro@codesourcery.com>
16498
16499 * linux-low.c (linux_kill_one_lwp, linux_kill)
16500 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
16501 (send_sigstop): Take an lwp_info as parameter instead. Queue a
16502 SIGSTOP even if the LWP is stopped.
16503 (send_sigstop_callback): New.
16504 (stop_all_lwps): Use send_sigstop_callback instead.
16505 (linux_resume_one_thread): Adjust.
16506 (proceed_one_lwp): Still proceed an LWP that the client has
16507 requested to stop, if we haven't reported it as stopped yet. Make
16508 sure that LWPs the client want stopped, have a pending SIGSTOP.
16509
bc3b5632
DE
165102010-04-26 Doug Evans <dje@google.com>
16511
ae1ada35
DE
16512 * server.c (handle_general_set): Make static.
16513
bc3b5632
DE
16514 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
16515 Print received char after testing for error/eof instead of before.
16516 (input_interrupt): Tweak comment.
16517
65730243
DE
165182010-04-23 Doug Evans <dje@google.com>
16519
16520 * server.c (start_inferior): Print inferior argv if --debug.
16521
a8ae7dc0
AR
165222010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
16523
16524 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
16525 * nto-x86-low.c: Include server.h
16526
1c07cc19
PM
165272010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
16528
16529 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
16530 be consistent with other sources of this directory.
16531 (init_registers_amd64): Correct name of source file of this function
16532 in the comment.
16533
e0a61e09
PM
165342010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
16535
16536 * configure.srv (x86_64-*-mingw*): New configuration for Windows
16537 64-bit executables.
16538
54709339
PM
165392010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
16540
16541 * win32-i386-low.c: Add 64-bit support.
16542 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
16543 (init_registers_amd64): Declare.
16544 (mappings): Add 64-bit version of array.
16545 (init_windows_x86): New function.
16546 (the_low_target): Change init_arch field to init_windows_x86.
16547
e8f0053d
PM
165482010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
16549
16550 * win32-low.c: Adapt to support also 64-bit architecture.
16551 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
16552 (get_image_name): Use SIZE_T type for local variable `done'.
16553 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
16554 (toolhelp_get_dll_name): Idem.
16555 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
16556 Use uintptr_t typecast to avoid warning.
16557 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
16558 (handle_exception): Use phex_nz to avoid warning.
16559 (win32_wait): Remove unused local variable `process'.
16560
c481e77e
PM
165612010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
16562
16563 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
16564 `amd64-avx.o'.
16565
12ea4b69
PM
165662010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
16567
16568 * configure.ac: Use `ws2_32' library for srv_mingw.
16569 * configure: Regenerate.
16570 * gdbreplay.c: Include winsock2.h instead of winsock.h.
16571 * remote-utils.c: Likewise.
16572
f6d1620c
L
165732010-04-17 H.J. Lu <hongjiu.lu@intel.com>
16574
16575 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
16576 if __x86_64__ is defined.
16577
8e642873
PM
165782010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
16579
16580 * configure: Regenerate.
16581
711e434b
PM
165822010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
16583
16584 * server.c (handle_query): Handle 'qGetTIBAddr' query.
16585 * target.h (target_ops): New get_tib_address field.
16586 * win32-low.h (win32_thread_info): Add thread_local_base field.
16587 * win32-low.c (child_add_thread): Add tlb argument.
16588 Set thread_local_base field to TLB.
16589 (get_child_debug_event): Adapt to child_add_thread change.
16590 (win32_get_tib_address): New function.
16591 (win32_target_ops): Set get_tib_address field to
16592 win32_get_tib_address.
16593 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
16594
505106cd
PA
165952010-04-12 Pedro Alves <pedro@codesourcery.com>
16596
505106cd
PA
16597 * linux-low.c (linux_mourn): Also remove the process.
16598 * server.c (handle_target_event): Don't remove the process here.
16599 * nto-low.c (nto_mourn): New.
16600 (nto_target_ops): Install it.
16601 * spu-low.c (spu_mourn): New.
16602 (spu_target_ops): Install it.
16603 * win32-low.c (win32_mourn): New.
16604 (win32_target_ops): Install it.
16605
e8470a06
PA
166062010-04-12 Pedro Alves <pedro@codesourcery.com>
16607
16608 * server.h (buffer_xml_printf): Remove redundant `;'.
16609
45ba0d02
PA
166102010-04-12 Pedro Alves <pedro@codesourcery.com>
16611
16612 * regcache.c (set_register_cache): Invalidate regcaches before
16613 changing the register cache layout.
16614 (regcache_invalidate_one): Allow a NULL regcache.
16615 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
16616 regcaches before changing the register cache layout or the target
16617 regsets.
16618
59e04013
L
166192010-04-12 H.J. Lu <hongjiu.lu@intel.com>
16620
16621 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
16622 variable warning on Linux/x86-64.
16623
8336d594
PA
166242010-04-11 Pedro Alves <pedro@codesourcery.com>
16625
16626 GDBserver disconnected tracing support.
16627
16628 * linux-low.c (linux_remove_process): Delete.
16629 (add_lwp): Don't set last_resume_kind here.
16630 (linux_kill): Use `mourn'.
16631 (linux_detach): Use `thread_db_detach', and `mourn'.
16632 (linux_mourn): New.
16633 (linux_attach_lwp_1): Adjust comment.
16634 (linux_attach): last_resume_kind moved the thread_info; adjust.
16635 (status_pending_p_callback): Adjust.
16636 (linux_wait_for_event_1): Adjust.
16637 (count_events_callback, select_singlestep_lwp_callback)
16638 (select_event_lwp_callback, cancel_breakpoints_callback)
16639 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
16640 (proceed_one_lwp): Adjust.
16641 (linux_async): Add debug output.
16642 (linux_thread_stopped): New.
16643 (linux_pause_all): New.
16644 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
16645 linux_pause_all.
16646 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
16647 (thread_db_free): Delete declaration.
16648 (thread_db_detach, thread_db_mourn): Declare.
16649 * thread-db.c (thread_db_init): Use thread_db_mourn.
16650 (thread_db_free): Delete, split in two.
16651 (disable_thread_event_reporting): New.
16652 (thread_db_detach): New.
16653 (thread_db_mourn): New.
16654
16655 * server.h (struct thread_info) <last_resume_kind>: New field.
16656 <attached>: Add comment.
16657 <gdb_detached>: New field.
16658 (handler_func): Change return type to int.
16659 (handle_serial_event, handle_target_event): Ditto.
16660 (gdb_connected): Declare.
16661 (tracing): Delete.
16662 (disconnected_tracing): Declare.
16663 (stop_tracing): Declare.
16664
16665 * server.c (handle_query) <qSupported>: Report support for
16666 disconnected tracing.
16667 (queue_stop_reply_callback): Account for running threads.
16668 (gdb_wants_thread_stopped): New.
16669 (gdb_wants_all_threads_stopped): New.
16670 (gdb_reattached_process): New.
16671 (handle_status): Clear the `gdb_detached' flag of all processes.
16672 In all-stop, stop all threads.
16673 (main): Be sure to leave tfind mode. Handle disconnected tracing.
16674 (process_serial_event): If the remote connection breaks, or if an
16675 exit was forced with "monitor exit", force an event loop exit.
16676 Handle disconnected tracing on detach.
16677 (handle_serial_event): Adjust.
16678 (handle_target_event): If GDB isn't connected, forward events back
16679 to the inferior, unless the last process exited, in which case,
16680 exit gdbserver. Adjust interface.
16681
16682 * remote-utils.c (remote_open): Don't block in accept. Instead
16683 register an event loop source on the listen socket file
16684 descriptor. Refactor bits into ...
16685 (listen_desc): ... this new global.
16686 (gdb_connected): ... this new function.
16687 (enable_async_notification): ... this new function.
16688 (handle_accept_event): ... this new function.
16689 (remote_close): Clear remote_desc.
16690
16691 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
16692
16693 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
16694 New fields.
16695 (mourn_inferior): Define.
16696 (target_process_qsupported): Avoid the dangling else problem.
16697 (thread_stopped): Define.
16698 (pause_all): Define.
16699 (target_waitstatus_to_string): Declare.
16700 * target.c (target_waitstatus_to_string): New.
16701
16702 * tracepoint.c (tracing): Make extern.
16703 (disconnected_tracing): New.
16704 (stop_tracing): Make extern. Handle tracing stops due to GDB
16705 disconnecting.
16706 (cmd_qtdisconnected): New.
16707 (cmd_qtstatus): Report disconnected tracing status in trace reply.
16708 (handle_tracepoint_general_set): Handle QTDisconnected.
16709
16710 * event-loop.c (event_handler_func): Change return type to int.
16711 (process_event): Bail out if the event handler wants the event
16712 loop to stop.
16713 (handle_file_event): Ditto.
16714 (start_event_loop): Bail out if the event handler wants the event
16715 loop to stop.
16716
16717 * nto-low.c (nto_target_ops): Adjust.
16718 * spu-low.c (spu_wait): Don't remove the process here.
16719 (spu_target_ops): Adjust.
16720 * win32-low.c (win32_wait): Don't remove the process here.
16721 (win32_target_ops): Adjust.
16722
5d267c4c
PA
167232010-04-11 Pedro Alves <pedro@codesourcery.com>
16724
16725 * regcache.c (realloc_register_cache): Invalidate inferior's
16726 regcache before recreating it.
16727
623ccd72
PA
167282010-04-09 Pedro Alves <pedro@codesourcery.com>
16729
16730 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
16731
219f2f23
PA
167322010-04-09 Stan Shebs <stan@codesourcery.com>
16733 Pedro Alves <pedro@codesourcery.com>
16734
16735 * server.h (LONGEST): New.
16736 (struct thread_info) <while_stepping>: New field.
16737 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
16738 Declare.
16739 (initialize_tracepoint, handle_tracepoint_general_set)
16740 (handle_tracepoint_query, tracepoint_finished_step)
16741 (tracepoint_was_hit, release_while_stepping_state_list):
16742 (current_traceframe): Declare.
16743 * server.c (handle_general_set): Handle tracepoint packets.
16744 (read_memory): New.
16745 (write_memory): New.
16746 (handle_search_memory_1): Use read_memory.
16747 (handle_query): Report support for conditional tracepoints, trace
16748 state variables, and tracepoint sources. Handle tracepoint
16749 queries.
16750 (main): Initialize the tracepoints module.
16751 (process_serial_event): Handle traceframe reads/writes.
16752
16753 * linux-low.c (handle_tracepoints): New.
16754 (linux_wait_1): Call it.
16755 (linux_resume_one_lwp): Handle while-stepping.
16756 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
16757 (linux_target_ops): Install them.
16758 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
16759 New field.
16760 * linux-x86-low.c (x86_supports_tracepoints): New.
16761 (the_low_target). Install it.
16762
16763 * mem-break.h (delete_breakpoint): Declare.
16764 * mem-break.c (delete_breakpoint): Make external.
16765
16766 * target.h (struct target_ops): Add `supports_tracepoints',
16767 `read_pc', and `write_pc' fields.
16768 (target_supports_tracepoints): Define.
16769 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
16770 (phex_nz): New.
16771
16772 * regcache.h (struct regcache) <registers_owned>: New field.
16773 (init_register_cache, regcache_cpy): Declare.
16774 (regcache_read_pc, regcache_write_pc): Declare.
16775 (register_cache_size): Declare.
16776 (supply_regblock): Declare.
16777 * regcache.c (init_register_cache): New.
16778 (new_register_cache): Use it.
16779 (regcache_cpy): New.
16780 (register_cache_size): New.
16781 (supply_regblock): New.
16782 (regcache_read_pc, regcache_write_pc): New.
889bf7c5 16783
219f2f23
PA
16784 * tracepoint.c: New.
16785
16786 * Makefile.in (OBS): Add tracepoint.o.
16787 (tracepoint.o): New rule.
16788
3a13a53b
L
167892010-04-08 H.J. Lu <hongjiu.lu@intel.com>
16790
16791 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
16792 (i386-mmx.o): New.
16793 (i386-mmx.c): Likewise.
16794 (i386-mmx-linux.o): Likewise.
16795 (i386-mmx-linux.c): Likewise.
16796
16797 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
16798 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
16799 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
16800 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
16801
16802 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
16803 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
16804 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
16805
1570b33e
L
168062010-04-07 H.J. Lu <hongjiu.lu@intel.com>
16807
16808 * Makefile.in (clean): Updated.
16809 (i386-avx.o): New.
16810 (i386-avx.c): Likewise.
16811 (i386-avx-linux.o): Likewise.
16812 (i386-avx-linux.c): Likewise.
16813 (amd64-avx.o): Likewise.
16814 (amd64-avx.c): Likewise.
16815 (amd64-avx-linux.o): Likewise.
16816 (amd64-avx-linux.c): Likewise.
16817
16818 * configure.srv (srv_i386_regobj): Add i386-avx.o.
16819 (srv_i386_linux_regobj): Add i386-avx-linux.o.
16820 (srv_amd64_regobj): Add amd64-avx.o.
16821 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
16822 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
16823 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
16824 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
16825 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
16826 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
16827 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
16828
16829 * i387-fp.c: Include "i386-xstate.h".
16830 (i387_xsave): New.
16831 (i387_cache_to_xsave): Likewise.
16832 (i387_xsave_to_cache): Likewise.
16833 (x86_xcr0): Likewise.
16834
16835 * i387-fp.h (i387_cache_to_xsave): Likewise.
16836 (i387_xsave_to_cache): Likewise.
16837 (x86_xcr0): Likewise.
16838
16839 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
16840 * linux-crisv32-low.c (target_regsets): Likewise.
16841 * linux-m68k-low.c (target_regsets): Likewise.
16842 * linux-mips-low.c (target_regsets): Likewise.
16843 * linux-ppc-low.c (target_regsets): Likewise.
16844 * linux-s390-low.c (target_regsets): Likewise.
16845 * linux-sh-low.c (target_regsets): Likewise.
16846 * linux-sparc-low.c (target_regsets): Likewise.
16847 * linux-xtensa-low.c (target_regsets): Likewise.
16848
16849 * linux-low.c: Include <sys/uio.h>.
16850 (regsets_fetch_inferior_registers): Support nt_type.
16851 (regsets_store_inferior_registers): Likewise.
16852 (linux_process_qsupported): New.
16853 (linux_target_ops): Add linux_process_qsupported.
16854
16855 * linux-low.h (regset_info): Add nt_type.
16856 (linux_target_ops): Add process_qsupported.
16857
16858 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
16859 and <sys/uio.h>.
16860 (init_registers_i386_avx_linux): New.
16861 (init_registers_amd64_avx_linux): Likewise.
16862 (xmltarget_i386_linux_no_xml): Likewise.
16863 (xmltarget_amd64_linux_no_xml): Likewise.
16864 (PTRACE_GETREGSET): Likewise.
16865 (PTRACE_SETREGSET): Likewise.
16866 (x86_fill_xstateregset): Likewise.
16867 (x86_store_xstateregset): Likewise.
16868 (use_xml): Likewise.
16869 (x86_linux_update_xmltarget): Likewise.
16870 (x86_linux_process_qsupported): Likewise.
16871 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
16872 (x86_arch_setup): Don't call init_registers_amd64_linux nor
16873 init_registers_i386_linux here. Call
16874 x86_linux_update_xmltarget.
16875 (the_low_target): Add x86_linux_process_qsupported.
16876
16877 * server.c (handle_query): Call target_process_qsupported.
16878
16879 * target.h (target_ops): Add process_qsupported.
16880 (target_process_qsupported): New.
16881
fc7238bb
PA
168822010-04-03 Pedro Alves <pedro@codesourcery.com>
16883
16884 * inferiors.c (add_thread): Set last_status kind to
16885 TARGET_WAITKIND_IGNORE.
16886 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
16887 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
16888 (linux_wait_1): Move `thread' local definition to block that uses
16889 it. Don't NULL initialize `event_child'.
16890 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
16891 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
16892 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
16893
bdabb078
PA
168942010-04-01 Pedro Alves <pedro@codesourcery.com>
16895
16896 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
16897 an extended waitstatus, or by a watchpoint.
16898 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
16899 thread was stepping or has been stopped by a watchpoint.
16900
d3bbe7a0
PA
169012010-04-01 Pedro Alves <pedro@codesourcery.com>
16902
16903 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
16904 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
16905 of another, then delete the previous, and validate all
16906 breakpoints.
16907 (validate_inserted_breakpoint): New.
16908 (delete_disabled_breakpoints): New.
16909 (validate_breakpoints): New.
16910 (check_mem_read): Validate breakpoints before trusting their
16911 shadow. Delete disabled breakpoints.
16912 (check_mem_write): Validate breakpoints before trusting they
16913 should be inserted. Delete disabled breakpoints.
16914 * mem-break.h (validate_breakpoints):
16915 * server.c (handle_query): Validate breakpoints when we see a
16916 qSymbol query.
16917
8b07ae33
PA
169182010-04-01 Pedro Alves <pedro@codesourcery.com>
16919
16920 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
16921 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
16922 if we could tell there's a GDB breakpoint at stop_pc.
16923 (need_step_over_p): Don't do a step over if we find a GDB
16924 breakpoint at the resume PC.
16925
16926 * mem-break.c (struct raw_breakpoint): New.
16927 (enum bkpt_type): New type `gdb_breakpoint'.
16928 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
16929 fields. New field `raw'.
16930 (find_raw_breakpoint_at): New.
16931 (set_raw_breakpoint_at): Handle refcounting. Create a raw
16932 breakpoint instead.
16933 (set_breakpoint_at): Adjust.
16934 (delete_raw_breakpoint): New.
16935 (release_breakpoint): New.
16936 (delete_breakpoint): Rename to...
16937 (delete_breakpoint_1): ... this. Add proc parameter. Use
16938 release_breakpoint. Return ENOENT.
16939 (delete_breakpoint): Reimplement.
16940 (find_breakpoint_at): Delete.
16941 (find_gdb_breakpoint_at): New.
16942 (delete_breakpoint_at): Delete.
16943 (set_gdb_breakpoint_at): New.
16944 (delete_gdb_breakpoint_at): New.
16945 (gdb_breakpoint_here): New.
16946 (set_reinsert_breakpoint): Use release_breakpoint.
16947 (uninsert_breakpoint): Rename to ...
16948 (uninsert_raw_breakpoint): ... this.
16949 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
16950 (reinsert_raw_breakpoint): Change parameter type to
16951 raw_breakpoint.
16952 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
16953 instead.
16954 (check_breakpoints): Adjust. Use release_breakpoint.
16955 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
16956 (breakpoint_inserted_here): Ditto.
16957 (check_mem_read): Adjust to iterate over raw breakpoints instead.
16958 Don't trust the breakpoint's shadow if it is not inserted.
16959 (check_mem_write): Adjust to iterate over raw breakpoints instead.
16960 (delete_all_breakpoints): Adjust.
16961 (free_all_breakpoints): Mark all breakpoints as uninserted, and
16962 use delete_breakpoint_1.
16963
16964 * mem-break.h (breakpoints_supported): Delete declaration.
16965 (set_gdb_breakpoint_at): Declare.
16966 (gdb_breakpoint_here): Declare.
16967 (delete_breakpoint_at): Delete.
16968 (delete_gdb_breakpoint_at): Declare.
16969
16970 * server.h (struct raw_breakpoint): Forward declare.
16971 (struct process_info): New field `raw_breakpoints'.
16972
16973 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
16974 breakpoints.
16975
6bf5e0ba
PA
169762010-03-24 Pedro Alves <pedro@codesourcery.com>
16977
16978 * linux-low.c (status_pending_p_callback): Fix comment.
16979 (linux_wait_for_event_1): Move most of the internal breakpoint
16980 handling from here...
16981 (linux_wait_1): ... to here.
16982 (count_events_callback): New.
16983 (select_singlestep_lwp_callback): New.
16984 (select_event_lwp_callback): New.
16985 (cancel_breakpoints_callback): New.
16986 (select_event_lwp): New.
16987 (linux_wait_1): Simplify internal breakpoint handling. Give equal
16988 priority to all LWPs that have had events that should be reported
16989 to the client. Cancel breakpoints when about to reporting the
16990 event to the client, not while stopping lwps. No longer cancel
16991 finished single-steps here.
16992 (cancel_finished_single_step): Delete.
16993 (cancel_finished_single_steps): Delete.
16994
414a389f
PA
169952010-03-24 Pedro Alves <pedro@codesourcery.com>
16996
16997 * mem-break.c (enum bkpt_type): New.
16998 (struct breakpoint): New field `type'.
16999 (set_breakpoint_at): Change return type to struct breakpoint
17000 pointer. Set type to `other_breakpoint' by default.
17001 (delete_breakpoint): Rewrite, supporting more than one breakpoint
17002 in the breakpoint list.
17003 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
17004 (reinsert_breakpoint): Rename to ...
17005 (reinsert_raw_breakpoint): ... this.
17006 (reinsert_breakpoints_at): Adjust.
17007 * mem-break.h (struct breakpoint): Declare.
17008 (set_breakpoint_at): Change return type to struct breakpoint
17009 pointer.
17010
2280c721
PA
170112010-03-24 Pedro Alves <pedro@codesourcery.com>
17012
17013 * server.c (handle_query): Assign, not compare.
17014
d50171e4
PA
170152010-03-24 Pedro Alves <pedro@codesourcery.com>
17016
17017 Teach linux gdbserver to step-over-breakpoints.
17018
17019 * linux-low.c (can_hardware_single_step): New.
17020 (supports_breakpoints): New.
17021 (handle_extended_wait): If stopping threads, read the stop pc of
17022 the new cloned LWP.
17023 (get_pc): New.
17024 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
17025 low target doesn't support retrieving the PC.
17026 (add_lwp): Set last_resume_kind to resume_continue.
17027 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
17028 (linux_attach): Don't clear stop_expected. Set the lwp's
17029 last_resume_kind to resume_stop.
17030 (linux_detach_one_lwp): Don't check for removed breakpoints.
17031 (check_removed_breakpoint): Delete.
17032 (status_pending_p): Rename to ...
17033 (status_pending_p_callback): ... this. Don't check for removed
17034 breakpoints. Don't consider threads that are stopped from GDB's
17035 perspective.
17036 (linux_wait_for_lwp): Always read the stop_pc here.
17037 (cancel_breakpoint): New.
17038 (step_over_bkpt): New global.
17039 (linux_wait_for_event_1): Implement stepping over breakpoints.
17040 (gdb_wants_lwp_stopped): New.
17041 (gdb_wants_all_stopped): New.
17042 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
17043 single-step traps here. Store the thread's last reported target
17044 wait status.
17045 (send_sigstop): Don't clear stop_expected. Always set it,
17046 instead.
17047 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
17048 (cancel_finished_single_step): New.
17049 (cancel_finished_single_steps): New.
17050 (wait_for_sigstop): Don't cancel finished single-step traps here.
17051 (linux_resume_one_lwp): Don't check for removed breakpoints.
17052 Don't set `step' on non-hardware step archs.
17053 (linux_set_resume_request): Ignore resume_stop requests if already
17054 stopping or stopped. Set the lwp's last_resume_kind.
17055 (resume_status_pending_p): Don't check for removed breakpoints.
17056 (need_step_over_p): New.
17057 (start_step_over): New.
17058 (finish_step_over): New.
17059 (linux_resume_one_thread): Always queue a sigstop for resume_stop
17060 requests. Clear the thread's last reported target waitstatus.
17061 Don't use the `suspended' flag. Don't consider pending breakpoints.
17062 (linux_resume): Start a step-over if necessary.
17063 (proceed_one_lwp): New.
17064 (proceed_all_lwps): New.
17065 (unstop_all_lwps): New.
17066 * linux-low.h (struct lwp_info): Rewrite comment for the
17067 `suspended' flag. Add the `stop_pc' field. Delete the
17068 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
17069 Add `'last_resume_kind' and `need_step_over' fields.
17070 * inferiors.c (struct thread_info): Delete, moved elsewhere.
17071 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
17072 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
17073 (set_raw_breakpoint_at): New.
17074 (set_breakpoint_at): Rewrite to use it.
17075 (reinsert_breakpoint_handler): Delete.
17076 (set_reinsert_breakpoint): New.
17077 (reinsert_breakpoint_by_bp): Delete.
17078 (delete_reinsert_breakpoints): New.
17079 (uninsert_breakpoint): Rewrite.
17080 (uninsert_breakpoints_at): New.
17081 (reinsert_breakpoint): Rewrite.
17082 (reinsert_breakpoints_at): New.
17083 (check_breakpoints): Rewrite.
17084 (breakpoint_here): New.
17085 (breakpoint_inserted_here): New.
17086 (check_mem_read): Adjust.
17087 * mem-break.h (breakpoints_supported, breakpoint_here)
17088 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
17089 (reinsert_breakpoint_by_bp): Delete declaration.
17090 (delete_reinsert_breakpoints): Declare.
17091 (reinsert_breakpoint): Delete declaration.
17092 (reinsert_breakpoints_at): Declare.
17093 (uninsert_breakpoint): Delete declaration.
17094 (uninsert_breakpoints_at): Declare.
17095 (check_breakpoints): Adjust prototype.
17096 * server.h: Adjust include order.
17097 (struct thread_info): Declare here. Add a `last_status' field.
17098
30ba68cb
MS
170992010-03-23 Michael Snyder <msnyder@vmware.com>
17100
17101 * server.c (crc32): New function.
17102 (handle_query): Add handling for 'qCRC:' request.
17103
b9a881c2
PA
171042010-03-23 Pedro Alves <pedro@codesourcery.com>
17105
17106 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
17107 lwp had been stopped by a watchpoint.
17108
e92d13d5
PA
171092010-03-16 Pedro Alves <pedro@codesourcery.com>
17110
17111 * server.h (internal_error): Declare.
17112 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
17113 * utils.c (internal_error): New function.
17114
64daa791
AS
171152010-03-15 Andreas Schwab <schwab@redhat.com>
17116
17117 * configure.srv: Fix typo setting srv_regobj.
17118
f52cd8cd
PA
171192010-03-15 Pedro Alves <pedro@codesourcery.com>
17120
17121 * linux-low.c (fetch_register): Avoid passing a non string literal
17122 format to `error'.
17123 (usr_store_inferior_registers): Ditto.
17124
93ae6fdc
PA
171252010-03-14 Pedro Alves <pedro@codesourcery.com>
17126
17127 * linux-low.c (linux_write_memory): Bail out early if peeking
17128 memory failed.
17129
c3adc08c
PA
171302010-03-14 Pedro Alves <pedro@codesourcery.com>
17131
17132 * linux-low.h (struct lwp_info): New fields
17133 `stopped_by_watchpoint' and `stopped_data_address'.
17134 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
17135 here, and cache them in the lwp object.
17136 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
17137 directly.
17138 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
17139 field.
17140 (linux_stopped_by_watchpoint): Rewrite.
17141 (linux_stopped_data_address): Rewrite.
17142
bce522a2
PA
171432010-03-06 Simo Melenius <simo.melenius@iki.fi>
17144
17145 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
17146 switching the current inferior, not before.
17147
90884b2b
L
171482010-03-01 H.J. Lu <hongjiu.lu@intel.com>
17149
17150 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
17151 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
17152 i386-linux.c and amd64-linux.c.
17153 (reg-i386.o): Removed.
17154 (reg-i386.c): Likewise.
17155 (reg-i386-linux.o): Likewise.
17156 (reg-i386-linux.c): Likewise.
17157 (reg-x86-64.o): Likewise.
17158 (reg-x86-64.c): Likewise.
17159 (reg-x86-64-linux.o): Likewise.
17160 (reg-x86-64-linux.c): Likewise.
17161 (i386.o): New.
17162 (i386.c): Likewise.
17163 (i386-linux.o): Likewise.
17164 (i386-linux.c): Likewise.
17165 (amd64.o): Likewise.
17166 (amd64.c): Likewise.
17167 (amd64-linux.o): Likewise.
17168 (amd64-linux.c): Likewise.
17169
17170 * configure.srv (srv_i386_regobj): New.
17171 (srv_i386_linux_regobj): Likewise.
17172 (srv_amd64_regobj): Likewise.
17173 (srv_amd64_linux_regobj): Likewise.
17174 (srv_i386_32bit_xmlfiles): Likewise.
17175 (srv_i386_64bit_xmlfiles): Likewise.
17176 (srv_i386_xmlfiles): Likewise.
17177 (srv_amd64_xmlfiles): Likewise.
17178 (srv_i386_linux_xmlfiles): Likewise.
17179 (srv_amd64_linux_xmlfiles): Likewise.
17180 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
17181 srv_xmlfiles to $srv_i386_xmlfiles.
17182 (i[34567]86-*-mingw32ce*): Likewise.
17183 (i[34567]86-*-mingw*): Likewise.
17184 (i[34567]86-*-nto*): Likewise.
17185 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
17186 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
17187 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
17188 (x86_64-*-linux*): Likewise.
17189
17190 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
17191 (init_registers_amd64_linux): New.
17192 (x86_arch_setup): Replace init_registers_x86_64_linux with
17193 init_registers_amd64_linux.
17194
193f13e6
MK
171952010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
17196
17197 * configure.ac: Check for libdl. If it is not available link against
17198 static libthread_db.
17199 * configure: Regenerate.
17200
85d721b8
PA
172012010-02-22 Pedro Alves <pedro@codesourcery.com>
17202
17203 PR9605
17204
17205 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
17206 handing a read watchpoint.
17207 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
17208
6076632b
DE
172092010-02-12 Doug Evans <dje@google.com>
17210
17211 * linux-low.c (linux_supports_tracefork_flag): Document.
17212 (linux_look_up_symbols): Add comment.
17213
3327ccf7
L
172142010-02-03 H.J. Lu <hongjiu.lu@intel.com>
17215
17216 * regcache.c (supply_register): Clear regcache if buf is NULL.
17217
0718675c 172182010-02-02 Nicolas Roche <roche@sourceware.org>
3327ccf7 17219 Joel Brobecker <brobecker@adacore.com>
0718675c
JB
17220
17221 * inferiors.c (find_inferior): Add function documentation.
17222 (unloaded_dll): Handle the case where the unloaded dll has not
17223 been previously registered in the dll list.
17224
177321bd
DJ
172252010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
17226
17227 * linux-arm-low.c (thumb_breakpoint_len): Delete.
17228 (thumb2_breakpoint): New.
17229 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
17230
2b009048
DJ
172312010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
17232
17233 * linux-low.c (get_stop_pc): Check for SIGTRAP.
17234 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
17235 breakpoints.
17236
3be029c7
PA
172372010-01-21 Pedro Alves <pedro@codesourcery.com>
17238
17239 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
17240
18f5de3b
JK
172412010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
17242
17243 * linux-s390-low.c (s390_collect_ptrace_register)
17244 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
17245
3743bb4f
DE
172462010-01-21 Doug Evans <dje@google.com>
17247
14ce3065
DE
17248 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
17249 (PTRACE_ARG4_TYPE): New macro.
17250 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
17251 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
17252 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
17253 (usr_store_inferior_registers): Ditto.
17254 (linux_read_memory, linux_write_memory): Ditto.
17255 (linux_test_for_tracefork): Ditto.
17256
3743bb4f
DE
17257 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
17258 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
17259
8b315be5
PA
172602010-01-21 Pedro Alves <pedro@codesourcery.com>
17261
17262 * proc-service.c (ps_lgetregs): Don't refetch registers from the
17263 target.
17264
85492558
PA
172652010-01-21 Pedro Alves <pedro@codesourcery.com>
17266
17267 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
17268 prototype to take a regcache. Adjust.
17269
442ea881
PA
172702010-01-20 Pedro Alves <pedro@codesourcery.com>
17271
17272 * regcache.h (struct thread_info): Forward declare.
17273 (struct regcache): New.
17274 (new_register_cache): Adjust prototype.
17275 (get_thread_regcache): Declare.
17276 (free_register_cache): Adjust prototype.
17277 (registers_to_string, registers_from_string): Ditto.
17278 (supply_register, supply_register_by_name, collect_register)
17279 (collect_register_as_string, collect_register_by_name): Ditto.
17280 * regcache.c (struct inferior_regcache_data): Delete.
17281 (get_regcache): Rename to ...
17282 (get_thread_regcache): ... this. Adjust. Switch inferior before
17283 fetching registers.
17284 (regcache_invalidate_one): Adjust.
17285 (regcache_invalidate): Fix prototype.
17286 (new_register_cache): Return the new register cache.
17287 (free_register_cache): Change prototype.
17288 (realloc_register_cache): Adjust.
17289 (registers_to_string): Change prototype to take a regcache. Adjust.
17290 (registers_from_string): Ditto.
17291 (register_data): Ditto.
17292 (supply_register): Ditto.
17293 (supply_register_by_name): Ditto.
17294 (collect_register): Ditto.
17295 (collect_register_as_string): Ditto.
17296 (collect_register_by_name): Ditto.
17297 * server.c (process_serial_event): Adjust.
17298 * linux-low.h (regset_fill_func, regset_store_func): Change
17299 prototype.
17300 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
17301 Change prototype.
17302 * linux-low.c (get_stop_pc): Adjust.
17303 (check_removed_breakpoint): Adjust.
17304 (linux_wait_for_event): Adjust.
17305 (linux_resume_one_lwp): Adjust.
17306 (fetch_register): Add regcache parameter. Adjust.
17307 (usr_store_inferior_registers): Ditto.
17308 (regsets_fetch_inferior_registers): Ditto.
17309 (regsets_store_inferior_registers): Ditto.
17310 (linux_fetch_registers, linux_store_registers): Ditto.
17311 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
17312 regcache. Adjust.
43aaf8b6
PA
17313 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
17314 Ditto.
442ea881
PA
17315 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
17316 prototype to take a regcache.
17317 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
17318 * remote-utils.c (convert_ascii_to_int, outreg)
17319 (prepare_resume_reply): Change prototype to take a regcache.
17320 Adjust.
17321 * target.h (struct target_ops) <fetch_registers, store_registers>:
17322 Change prototype to take a regcache.
17323 (fetch_inferior_registers, store_inferior_registers): Change
17324 prototype to take a regcache. Adjust.
17325 * proc-service.c (ps_lgetregs): Adjust.
17326 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
17327 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
17328 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
17329 take a regcache. Adjust.
17330 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
17331 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
17332 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
17333 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
17334 * linux-cris-low.c (cris_get_pc, cris_set_pc)
17335 (cris_cannot_fetch_register):
17336 (cris_breakpoint_at): Change prototype to take a regcache.
17337 Adjust.
17338 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
17339 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
17340 to take a regcache. Adjust.
17341 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
17342 Adjust.
17343 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
17344 take a regcache. Adjust.
17345 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
17346 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
17347 (m68k_set_pc): Change prototype to take a regcache. Adjust.
17348 * linux-mips-low.c (mips_get_pc):
17349 (mips_set_pc): Change prototype to take a regcache. Adjust.
17350 (mips_reinsert_addr): Adjust.
17351 (mips_collect_register): Change prototype to take a regcache.
17352 Adjust.
17353 (mips_supply_register):
17354 (mips_collect_register_32bit, mips_supply_register_32bit)
17355 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
17356 (mips_store_fpregset): Ditto.
43aaf8b6
PA
17357 * linux-ppc-low.c (ppc_supply_ptrace_register)
17358 (ppc_supply_ptrace_register): Ditto.
442ea881
PA
17359 (parse_spufs_run): Adjust.
17360 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
17361 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
17362 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
17363 take a regcache. Adjust.
17364 * linux-s390-low.c (s390_collect_ptrace_register)
17365 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
17366 (s390_set_pc): Change prototype to take a regcache. Adjust.
17367 (s390_arch_setup): Adjust.
17368 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
17369 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
17370 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
17371 (sparc_fill_gregset, sparc_store_gregset_from_stack)
17372 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
17373 regcache. Adjust.
17374 (sparc_breakpoint_at): Adjust.
17375 * linux-xtensa-low.c (xtensa_fill_gregset):
17376 (xtensa_store_gregset):
17377 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
17378 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
17379 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
17380 prototype to take a regcache. Adjust.
17381 * win32-arm-low.c (arm_fetch_inferior_register)
17382 (arm_store_inferior_register): Change prototype to take a
17383 regcache. Adjust.
17384 * win32-i386-low.c (i386_fetch_inferior_register)
17385 (i386_store_inferior_register): Change prototype to take a
17386 regcache. Adjust.
17387 * win32-low.c (child_fetch_inferior_registers)
17388 (child_store_inferior_registers): Change prototype to take a
17389 regcache. Adjust.
17390 (win32_wait): Adjust.
17391 (win32_fetch_inferior_registers): Change prototype to take a
17392 regcache. Adjust.
17393 (win32_store_inferior_registers): Adjust.
17394 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
17395 store_inferior_register>: Change prototype to take a regcache.
17396
60c3d7b0
DE
173972010-01-20 Doug Evans <dje@google.com>
17398
17399 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
17400 #ifdef.
17401 (linux_wait_for_event1, linux_init_signals): Ditto.
ec8ebe72 17402 (W_STOPCODE): Provide definition if missing.
60c3d7b0 17403
dc146f7c
VP
174042010-01-13 Vladimir Prus <vladimir@codesourcery.com>
17405
17406 * linux-low.c (linux_core_of_thread): New.
17407 (compare_ints, show_process, list_threads): New.
17408 (linux_qxfer_osdata): Report threads and cores.
17409 (linux_target_op): Register linux_core_of_thread.
17410 * remote-utils.c (prepare_resume_reply): Report the core.
17411 (buffer_xml_printf): Support %d specifier.
17412 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
17413 New.
17414 (handle_query): Handle qXfer:threads. Announce availability
17415 thereof.
17416 * target.h (struct target_ops): New field core_of_thread.
17417
7803799a
UW
174182010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
17419
17420 * Makefile.in (clean): Remove new generated files.
17421 (reg-s390.o, reg-s390.c): Remove rules.
17422 (reg-s390x.o, reg-s390x.c): Likewise.
17423 (s390-linux32.o, s390-linux32.c): Add rules.
17424 (s390-linux64.o, s390-linux64.c): Likewise.
17425 (s390x-linux64.o, s390x-linux64.c): Likewise.
17426 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
17427 * linux-s390-low.c: Include <elf.h>.
17428 (HWCAP_S390_HIGH_GPRS): Define if undefined.
17429 (init_registers_s390): Remove prototype.
17430 (init_registers_s390x): Likewise.
17431 (init_registers_s390_linux32): Add prototype.
17432 (init_registers_s390_linux64): Likewise.
17433 (init_registers_s390x_linux64): Likewise.
17434 (s390_num_regs_3264): New define.
17435 (s390_regmap_3264): New global variable.
17436 (s390_cannot_fetch_register): Remove obsolete check.
17437 (s390_cannot_store_register): Likewise.
17438 (s390_collect_ptrace_register): Handle upper/lower register halves.
17439 (s390_supply_ptrace_register): Likewise.
17440 (s390_fill_gregset): Update to register number changes.
17441 (s390_get_hwcap): New routine.
17442 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
17443 Install appropriate regmap and register set.
17444
6e7ffa39
JB
174452010-01-01 Joel Brobecker <brobecker@adacore.com>
17446
17447 * server.c (gdbserver_version): Update copyright year to 2010.
17448 * gdbreplay.c (gdbreplay_version): Likewise.
17449
957f3f49
DE
174502009-12-28 Doug Evans <dje@google.com>
17451
17452 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
17453 elf/external.h. Include <elf.h> instead but only if necessary.
17454
ca5c370d
PA
174552009-12-28 Pedro Alves <pedro@codesourcery.com>
17456
17457 * linux-low.c (linux_remove_process): Remove `detaching'
17458 parameter. Don't release/detach from thread_db here.
17459 (linux_kill): Release/detach from thread_db here, ...
17460 (linux_detach): ... and here, before actually detaching.
17461 (linux_wait_1): ... and here, when a process exits.
17462 * thread-db.c (any_thread_of): New.
17463 (thread_db_free): Switch the current inferior to a thread of the
17464 passed in process.
17465
4ee62156
DE
174662009-12-21 Doug Evans <dje@google.com>
17467
d90e6a88
DE
17468 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
17469
c5f62d5f
DE
17470 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
17471 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
17472 warning ifndef __NR_tkill. Move setting of errno there too.
17473 Delete unnecessary resetting of errno after syscall.
17474 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
17475
10e86dd7
DE
17476 * configure.ac: Check for dladdr.
17477 * config.in: Regenerate.
17478 * configure: Regenerate.
17479 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
17480 (try_thread_db_load): Update.
17481
4ee62156
DE
17482 * linux-low.c (my_waitpid): Delete unnecessary prototype.
17483
00f515da
DE
174842009-12-18 Doug Evans <dje@google.com>
17485
e9464885
DE
17486 * event-loop.c: Include unistd.h if it exists.
17487
07d4f67e
DE
17488 * linux-low.c (my_waitpid): Move definition away from being in
17489 between linux_tracefork_child/linux_test_for_tracefork.
17490
00f515da
DE
17491 * gdb_proc_service.h (psaddr_t): Fix type.
17492 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
17493 signature to match glibc.
17494
1de1badb
DE
174952009-12-16 Doug Evans <dje@google.com>
17496
17497 * linux-low.c (linux_read_memory): Fix argument to read.
17498
aeeb81d1
PA
174992009-11-26 Pedro Alves <pedro@codesourcery.com>
17500
17501 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
17502 events, don't leave current_inferior pointing at null.
17503
10357975
PA
175042009-11-26 Pedro Alves <pedro@codesourcery.com>
17505
17506 * win32-low.c (LOG): Delete.
17507 (OUTMSG): Output to stderr.
17508 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
17509 on compile time LOG macro.
17510 (win32_wait): Fix debug output.
17511
cf6e3471
PA
175122009-11-26 Pedro Alves <pedro@codesourcery.com>
17513
17514 * win32-low.c (win32_add_one_solib): If the dll name is
17515 "ntdll.dll", prepend the system directory to the dll path.
17516
0c85e18e
MK
175172009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
17518
17519 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
17520
9ac544ce 175212009-11-17 Nathan Sidwell <nathan@codesourcery.com>
889bf7c5 17522 Vladimir Prus <vladimir@codesourcery.com>
9ac544ce
MK
17523
17524 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
17525 * configure.ac: Check for __mcoldfire__ and set
17526 gdb_cv_m68k_is_coldfire.
17527 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
17528 reg-cf.o and reg-m68k.o.
17529 * configure: Regenerated.
17530
fd7dd3e6
PA
175312009-11-16 Pedro Alves <pedro@codesourcery.com>
17532
17533 * linux-low.c (linux_remove_process): Add `detaching' parameter.
17534 Pass it to thread_db_free.
17535 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
17536 proper `detaching' argument to linux_remove_process.
17537 * linux-low.h (thread_db_free): Add `detaching' parameter.
17538 * thread-db.c (thread_db_init): Pass false as `detaching' argument
17539 to thread_db_free.
17540 (thread_db_free): Add `detaching' parameter. Only
17541 call td_ta_clear_event if detaching from process.
17542
75aa492e
MK
175432009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
17544
17545 * thread-db.c (thread_db_free): Fix typo.
17546
21e1bee4
PP
175472009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
17548
17549 PR gdb/10838
17550 * thread-db.c (thread_db_free): Call td_ta_clear_event.
17551
8838b45e
NS
175522009-11-03 Nathan Sidwell <nathan@codesourcery.com>
17553
17554 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
17555 with an i686 compiler.
17556 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
17557 needed.
17558 * configure: Rebuilt.
17559
8a35fb51
SL
175602009-10-29 Sandra Loosemore <sandra@codesourcery.com>
17561
17562 PR gdb/10783
17563
17564 * server.c (handle_search_memory_1): Correct read_addr initialization
17565 in loop for searching subsequent chunks.
17566
96f15937
PP
175672009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
17568
17569 * configure.ac: New --with-libthread-db option.
17570 * thread-db.c: Allow direct dependence on libthread_db.
17571 (thread_db_free): Adjust.
17572 * config.in: Regenerate.
17573 * configure: Likewise.
889bf7c5 17574
5f7d1694
PP
175752009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
17576
17577 PR gdb/10757
17578 * thread-db.c (attach_thread): New function.
17579 (maybe_attach_thread): Return success/failure.
17580 (find_new_threads_callback): Adjust.
889bf7c5
PA
17581 (thread_db_find_new_threads): Loop until no new threads.
17582
88e3b899
PA
175832009-10-13 Pedro Alves <pedro@codesourcery.com>
17584
17585 * proc-service.c (ps_lgetregs): Formatting.
17586
cdbfd419
PP
175872009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
17588
17589 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
17590 * configure.ac: Adjust.
17591 * linux-low.h (struct process_info_private): Move members to struct
17592 thread_db.
17593 (thread_db_free, thread_db_handle_monitor_command): New prototype.
17594 * linux-low.c (linux_remove_process): Adjust.
17595 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
17596 * server.c (handle_query): Move code ...
17597 (handle_monitor_command): ... here. New function.
17598 * target.h (struct target_ops): New member.
17599 * thread-db.c (struct thread_db): New.
17600 (libthread_db_search_path): New variable.
17601 (thread_db_create_event, thread_db_enable_reporting)
17602 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
17603 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
17604 (try_thread_db_load_1, dladdr_to_soname): New functions.
17605 (try_thread_db_load, thread_db_load_search): New functions.
17606 (thread_db_init): Search for libthread_db.
17607 (thread_db_free): New function.
17608 (thread_db_handle_monitor_command): Likewise.
17609 * config.in: Regenerate.
17610 * configure: Regenerate.
889bf7c5 17611
4168d2d6
UW
176122009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
17613
17614 * spu-low.c (spu_kill): Wait for inferior to terminate.
17615 Call clear_inferiors.
17616 (spu_detach): Call clear_inferiors.
17617
81ecdfbb
RW
176182009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17619
17620 * aclocal.m4: Regenerate.
17621 * config.in: Likewise.
17622 * configure: Likewise.
17623
0b9ff2c0
UW
176242009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
17625
17626 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
17627 (parse_spufs_run): New function.
17628 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
17629 (ppc_breakpoint_at): Handle SPU breakpoints.
17630
efcbbd14
UW
176312009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
17632
17633 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
17634 (SPUFS_MAGIC): Define.
17635 (spu_enumerate_spu_ids): New function.
17636 (linux_qxfer_spu): New function.
17637 (linux_target_ops): Install linux_qxfer_spu.
17638
f4d9bade
UW
176392009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
17640
17641 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
17642 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
17643 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
17644 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
17645 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
17646 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
17647 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
17648 (init_registers_powerpc_cell32l): Add prototype.
17649 (init_registers_powerpc_cell64l): Likewise.
17650 (ppc_arch_setup): Detect Cell/B.E. architecture.
17651
96e946ca
RW
176522009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17653
17654 * Makefile.in (datarootdir): New variable.
17655
58d6951d
DJ
176562009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
17657
17658 * linux-low.c (linux_write_memory): Update debugging output.
17659 * Makefile.in (clean): Add new descriptions.
17660 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
17661 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
17662 * configure.srv: Add new files for arm*-*-linux*.
17663 * linux-arm-low.c: Add new declarations.
17664 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
17665 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
17666 (HWCAP_VFPv3D16): New.
17667 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
17668 instead of __IWMMXT__.
17669 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
17670 (arm_arch_setup): New.
17671 (target_regsets): Remove #ifdef. Add VFP regset.
17672 (the_low_target): Use arm_arch_setup.
17673
12b42a12
DJ
176742009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
17675
17676 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
17677 the main thread again.
17678
ac8c974e
AR
176792009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
17680
17681 Adding Neutrino gdbserver.
17682 * configure: Regenerated.
17683 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
17684 * configure.srv (i[34567]86-*-nto*): New target.
17685 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
17686 * remote-utils.c [__QNX__]: Include sys/iomgr.h
17687 (nto_comctrl) [__QNX__]: New function.
17688 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
17689
4424e0c3 176902009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
7437790a
PA
17691
17692 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
17693 srv_tgtobj.
17694
912cf4ba
PA
176952009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
17696 Pedro Alves <pedro@codesourcery.com>
17697
17698 * win32-i386-low.c (i386_get_thread_context): Handle systems that
17699 don't support CONTEXT_EXTENDED_REGISTERS.
17700 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
17701 (the_low_target): Install them.
17702 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
17703 failing with ERROR_PIPE_NOT_CONNECTED.
17704
aa5ca48f
DE
177052009-06-30 Doug Evans <dje@google.com>
17706 Pierre Muller <muller@ics.u-strasbg.fr>
17707
17708 Add h/w watchpoint support to x86-linux, win32-i386.
17709 * Makefile.in (SFILES): Add i386-low.c
17710 (i386_low_h): Define.
17711 (i386-low.o): Add dependencies.
17712 (linux-x86-low.o): Add i386-low.h dependency.
17713 (win32-i386-low.o): Ditto.
17714 * i386-low.c: New file.
17715 * i386-low.h: New file.
17716 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
17717 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
17718 * linux-low.c (linux_add_process): Initialize arch_private.
17719 (linux_remove_process): Free arch_private.
17720 (add_lwp): Initialize arch_private.
17721 (delete_lwp): Free arch_private.
17722 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
17723 provided.
17724 * linux-low.h (process_info_private): New member arch_private.
17725 (lwp_info): New member arch_private.
17726 (linux_target_ops): New members new_process, new_thread,
17727 prepare_to_resume.
17728 (ptid_of): New macro.
17729 * linux-x86-low.c: Include stddef.h, i386-low.h.
17730 (arch_process_info): New struct.
17731 (arch_lwp_info): New struct.
17732 (x86_linux_dr_get, x86_linux_dr_set): New functions.
17733 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
17734 (i386_dr_low_get_status): New function.
17735 (x86_insert_point, x86_remove_point): New functions.
17736 (x86_stopped_by_watchpoint): New function.
17737 (x86_stopped_data_address): New function.
17738 (x86_linux_new_process, x86_linux_new_thread): New functions.
17739 (x86_linux_prepare_to_resume): New function.
17740 (the_low_target): Add entries for insert_point, remove_point,
17741 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
17742 prepare_to_resume.
17743 * server.c (debug_hw_points): New global.
17744 (monitor_show_help): Document set debug-hw-points.
17745 (handle_query): Process "set debug-hw-points".
17746 * server.h (debug_hw_points): Declare.
17747 (paddress): Declare.
17748 * utils.c (NUMCELLS, CELLSIZE): New macros.
17749 (get_sell, xsnprintf, paddress): New functions.
17750 * win32-arm-low.c (the_low_target): Add entries for insert_point,
17751 remove_point, stopped_by_watchpoint, stopped_data_address.
17752 * win32-i386-low.c: Include i386-low.h.
17753 (debug_reg_state): Replaces dr.
17754 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
17755 (i386_dr_low_get_status): New function.
17756 (i386_insert_point, i386_remove_point): New functions.
17757 (i386_stopped_by_watchpoint): New function.
17758 (i386_stopped_data_address): New function.
17759 (i386_initial_stuff): Update.
17760 (get_thread_context,set_thread_context,i386_thread_added): Update.
17761 (the_low_target): Add entries for insert_point,
17762 remove_point, stopped_by_watchpoint, stopped_data_address.
17763 * win32-low.c (win32_insert_watchpoint): New function.
17764 (win32_remove_watchpoint): New function.
17765 (win32_stopped_by_watchpoint): New function.
17766 (win32_stopped_data_address): New function.
17767 (win32_target_ops): Add entries for insert_watchpoint,
17768 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
17769 * win32-low.h (win32_target_ops): New members insert_point,
17770 remove_point, stopped_by_watchpoint, stopped_data_address.
17771
d993e290
PA
177722009-06-25 Pedro Alves <pedro@codesourcery.com>
17773
17774 * server.c (process_serial_event): Re-return unsupported, not
17775 error, if the type isn't recognized. Re-allow supporting only
17776 insert or remove packets. Also call require_running for
17777 breakpoints. Add missing break statement to default case. Tidy.
17778 * target.h (struct target_ops): Rename insert_watchpoint to
17779 insert_point, and remove_watchpoint to remove_point.
17780
17781 * linux-low.h (struct linux_target_ops): Likewise.
17782 * linux-low.c (linux_insert_watchpoint): Rename to ...
17783 (linux_insert_point): ... this. Adjust.
17784 (linux_remove_watchpoint): Rename to ...
17785 (linux_remove_point): ... this. Adjust.
17786 (linux_target_ops): Adjust.
17787 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
17788 (cris_insert_point): ... this.
17789 (cris_remove_watchpoint): Rename to ...
17790 (cris_remove_point): ... this.
17791 (the_low_target): Adjust.
17792
0f54c268
PM
177932009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
17794
17795 * server.c (handle_v_kill): Pass signal_pid to
17796 kill_inferior if multi_process is zero.
17797
c6314022
AR
177982009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
17799
17800 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
17801 * target.h (target_ops): Comment for *_watchpoint to make it clear
17802 the functions can get types '0' and '1'.
17803
4463ce24
AR
178042009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
17805
17806 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
17807 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
17808 * regcache.c (get_regcache): Likewise.
17809 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
17810 * win32-low.c (child_fetch_inferior_registers): Remove check for
17811 regno 0.
17812
cf8fd78b
PA
178132009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
17814 Pedro Alves <pedro@codesourcery.com>
17815
17816 * target.h (struct target_ops) <supports_multi_process>: New
17817 callback.
17818 (target_supports_multi_process): New.
17819 * server.c (handle_query): Even if GDB reports support, only
17820 enable multi-process if the target also supports it. Report
17821 multi-process support only if the target backend supports it.
17822 * linux-low.c (linux_supports_multi_process): New function.
17823 (linux_target_ops): Install it as target_supports_multi_process
17824 callback.
17825
47c0c975
DE
178262009-05-24 Doug Evans <dje@google.com>
17827
e09875d4
DE
17828 Global renaming of find_thread_pid to find_thread_ptid.
17829 * server.h (find_thread_ptid): Renamed from find_thread_pid.
17830 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
17831 All callers updated.
17832
e27d73f6
DE
17833 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
17834 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
17835 directly.
17836
47c0c975
DE
17837 * linux-low.c (get_stop_pc): Print pc if debug_threads.
17838 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
17839 (linux_resume_one_lwp): Ditto.
17840
2acc282a
DE
178412009-05-23 Doug Evans <dje@google.com>
17842
17843 * linux-low.c (linux_resume_one_lwp): Change type of first arg
17844 from struct inferior_list_entry * to struct lwp_info *.
17845 All callers updated.
17846
9f1036c1
DE
178472009-05-13 Doug Evans <dje@google.com>
17848
17849 * linux-x86-low.c: Don't include assert.h.
17850 (x86_siginfo_fixup): Use fatal, not assert.
17851 (x86_arch_setup): Fix comment.
17852
d0722149
DE
178532009-05-12 Doug Evans <dje@google.com>
17854
17855 Biarch support for i386/amd64 gdbserver.
17856 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
17857 Add linux-x86-low.c.
17858 (linux-i386-low.o, linux-x86-64-low.o): Delete.
17859 (linux-x86-low.o): Add.
17860 * linux-x86-64-low.c: Delete.
17861 * linux-i386-low.c: Delete.
17862 * linux-x86-low.c: New file.
17863 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
17864 linux-x86-low.o.
17865 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
17866 linux-x86-low.o.
17867 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
17868 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
17869 (linux_child_pid_to_exec_file): New function.
17870 (elf_64_header_p, elf_64_file_p): New functions.
17871 (siginfo_fixup): New function.
17872 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
17873 give target a chance to convert layout.
17874 * linux-low.h (linux_target_ops): New member siginfo_fixup.
17875 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
17876
fdeb2a12
DE
178772009-05-07 Doug Evans <dje@google.com>
17878
17879 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
17880 (regsets_store_inferior_registers): Ditto.
17881
a6dbe5df
PA
178822009-05-06 Pedro Alves <pedro@codesourcery.com>
17883
17884 PR server/10048
17885
17886 * linux-low.c (must_set_ptrace_flags): Delete.
17887 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
17888 of the global.
17889 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
17890 `lwp->must_set_ptrace_flags' instead.
ba42693b 17891 (linux_wait_for_event_1): Set ptrace options here.
a6dbe5df
PA
17892 (linux_wait_1): ... not here.
17893
5091eb23
DE
178942009-04-30 Doug Evans <dje@google.com>
17895
9f767825
DE
17896 * inferiors.c (started_inferior_callback): New function.
17897 (attached_inferior_callback): New function.
17898 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
17899 * server.c (print_started_pid, print_attached_pid): New functions.
17900 (detach_or_kill_for_exit): New function.
17901 (main): Call it instead of for_each_inferior (kill_inferior_callback).
17902 * server.h (have_started_inferiors_p): Declare.
17903 (have_attached_inferiors_p): Declare.
17904
5091eb23
DE
17905 * inferiors.c (remove_process): Fix memory leak, free process.
17906 * linux-low.c (linux_remove_process): New function.
17907 (linux_kill): Call it instead of remove_process.
17908 (linux_detach, linux_wait_1): Ditto.
17909
155c8968
PA
179102009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
17911
17912 * configure.srv: Add x86 Windows CE target.
17913
7fe519cb
UW
179142009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
17915
17916 * inferiors.c (get_thread_process): Make global.
17917 * server.h (get_thread_process): Add prototype.
17918 * thread-db.c (find_one_thread): Use get_thread_process
17919 instead of current_process.
17920 (thread_db_get_tls_address): Do not crash if called when
17921 thread layer is not yet initialized.
17922
5472f405
UW
179232009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
17924
17925 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
17926 * spu-low.c (current_tid): Rename to ...
17927 (current_ptid): ... this.
17928 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
17929 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
17930 ptid_get_lwp (current_ptid) instead of current_tid.
17931 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
17932 instead of current_tid. Use find_process_pid to verify pid
17933 argument is valid. Pass proper argument to remove_process.
17934 (spu_thread_alive): Compare current_ptid instead of current_tid.
17935 (spu_resume): Likewise.
17936
55ac2b99
PA
179372009-04-02 Pedro Alves <pedro@codesourcery.com>
17938
17939 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
17940 variable.
17941
95954743
PA
179422009-04-01 Pedro Alves <pedro@codesourcery.com>
17943
17944 Implement the multiprocess extensions, and add linux multiprocess
17945 support.
17946
17947 * server.h (ULONGEST): Declare.
17948 (struct ptid, ptid_t): New.
17949 (minus_one_ptid, null_ptid): Declare.
17950 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
17951 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
17952 (struct inferior_list_entry): Change `id' type from unsigned from
17953 to ptid_t.
17954 (struct sym_cache, struct breakpoint, struct
17955 process_info_private): Forward declare.
17956 (struct process_info): Declare.
17957 (current_process): Declare.
17958 (all_processes): Declare.
17959 (initialize_inferiors): Declare.
17960 (add_thread): Adjust to use ptid_t.
17961 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
17962 (add_process, remove_process, find_thread_pid): Declare.
17963 (find_inferior_id): Adjust to use ptid_t.
17964 (cont_thread, general_thread, step_thread): Change type to ptid_t.
17965 (multi_process): Declare.
17966 (push_event): Adjust to use ptid_t.
17967 (read_ptid, write_ptid): Declare.
17968 (prepare_resume_reply): Adjust to use ptid_t.
17969 (clear_symbol_cache): Declare.
17970 * inferiors.c (all_processes): New.
17971 (null_ptid, minus_one_ptid): New.
17972 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
17973 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
17974 (add_thread): Change unsigned long to ptid. Remove gdb_id
17975 parameter. Adjust.
17976 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
17977 (gdb_id_to_thread): Rename to ...
17978 (find_thread_pid): ... this. Change unsigned long to ptid.
17979 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
17980 (loaded_dll, pull_pid_from_list): Adjust.
17981 (add_process, remove_process, find_process_pid)
17982 (get_thread_process, current_process, initialize_inferiors): New.
17983 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
17984 (struct target_waitstatus) <related_pid>: Ditto.
17985 (struct target_ops) <kill, detach>: Add `pid' argument. Change
17986 return type to int.
17987 (struct target_ops) <join>: Add `pid' argument.
17988 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
17989 (struct target_ops) <wait>: Add `ptid' field. Change return type
17990 to ptid.
17991 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
17992 (mywait): Add `ptid' argument. Change return type to ptid_t.
17993 (target_pid_to_str): Declare.
17994 * target.c (set_desired_inferior): Adjust to use ptids.
17995 (mywait): Add new `ptid' argument. Adjust.
17996 (target_pid_to_str): New.
17997 * mem-break.h (free_all_breakpoints): Declare.
17998 * mem-break.c (breakpoints): Delelete.
17999 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
18000 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
18001 to use per-process breakpoint list.
18002 (free_all_breakpoints): New.
18003 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
18004 (symbol_cache, all_symbols_looked_up): Delete.
18005 (hexchars): New.
18006 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
18007 read_ptid): New.
18008 (prepare_resume_reply): Change ptid argument's type from unsigned
18009 long to ptid_t. Adjust. Implement W;process and X;process.
18010 (free_sym_cache, clear_symbol_cache): New.
18011 (look_up_one_symbol): Adjust to per-process symbol cache. *
18012 * server.c (cont_thread, general_thread, step_thread): Change type
18013 to ptid_t.
18014 (attached): Delete.
18015 (multi_process): New.
18016 (last_ptid): Change type to ptid_t.
18017 (struct vstop_notif) <ptid>: Change type to ptid_t.
18018 (queue_stop_reply, push_event): Change `ptid' argument's type to
18019 ptid_t.
18020 (discard_queued_stop_replies): Add `pid' argument.
18021 (start_inferior): Adjust to use ptids. Adjust to mywait interface
18022 changes. Don't reference the `attached' global.
18023 (attach_inferior): Adjust to mywait interface changes.
18024 (handle_query): Adjust to use ptids. Parse GDB's qSupported
18025 features. Handle and report "multiprocess+". Handle
18026 "qAttached:PID".
18027 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
18028 changes.
18029 (handle_v_kill): New.
18030 (handle_v_stopped): Adjust to use target_pid_to_str.
18031 (handle_v_requests): Allow multiple attaches and runs when
18032 multiprocess extensions are in effect. Handle "vKill".
18033 (myresume): Adjust to use ptids.
18034 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
18035 (handle_status): Adjust to discard_queued_stop_replies interface
18036 change.
18037 (first_thread_of, kill_inferior_callback)
18038 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
18039 (main): Call initialize_inferiors. Adjust to use ptids, killing
18040 and detaching from all inferiors. Handle multiprocess packet
18041 variants.
18042 * linux-low.h: Include gdb_proc_service.h.
18043 (struct process_info_private): New.
18044 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
18045 <lwpid_of>: Use ptid_get_lwp.
18046 (get_lwp_thread): Adjust.
18047 (struct lwp_info): Add `dead' member.
18048 (find_lwp_pid): Declare.
18049 * linux-low.c (thread_db_active): Delete.
18050 (new_inferior): Adjust comment.
18051 (inferior_pid): Delete.
18052 (linux_add_process): New.
18053 (handle_extended_wait): Adjust.
18054 (add_lwp): Change unsigned long to ptid.
18055 (linux_create_inferior): Add process to processes table. Adjust
18056 to use ptids. Don't set new_inferior here.
18057 (linux_attach_lwp): Rename to ...
18058 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
18059 it. Adjust to use ptids.
18060 (linux_attach_lwp): New.
18061 (linux_attach): Add process to processes table. Don't set
18062 new_inferior here.
18063 (struct counter): New.
18064 (second_thread_of_pid_p, last_thread_of_process_p): New.
18065 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
18066 multiple processes.
18067 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
18068 processes. Remove process from process table.
18069 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
18070 to multiple processes.
18071 (any_thread_of): New.
18072 (linux_detach): Add `pid' argument, and handle it. Remove process
18073 from processes table.
18074 (linux_join): Add `pid' argument. Handle it.
18075 (linux_thread_alive): Change unsighed long argument to ptid_t.
18076 Consider dead lwps as not being alive.
18077 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
18078 threads we're not interested in.
18079 (same_lwp, find_lwp_pid): New.
18080 (linux_wait_for_lwp): Change `pid' argument's type from int to
18081 ptid_t. Adjust.
18082 (linux_wait_for_event): Rename to ...
18083 (linux_wait_for_event_1): ... this. Change `pid' argument's type
18084 from int to ptid_t. Adjust.
18085 (linux_wait_for_event): New.
18086 (linux_wait_1): Add `ptid' argument. Change return type to
18087 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
18088 that exit from the process table.
18089 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
18090 Adjust.
18091 (mark_lwp_dead): New.
18092 (wait_for_sigstop): Adjust to use ptids. If a process exits while
18093 stopping all threads, mark its main lwp as dead.
18094 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
18095 ptids.
18096 (fetch_register, usr_store_inferior_registers)
18097 (regsets_fetch_inferior_registers)
18098 (regsets_store_inferior_registers, linux_read_memory)
18099 (linux_write_memory): Inline `inferior_pid'.
18100 (linux_look_up_symbols): Adjust to use per-process
18101 `thread_db_active'.
18102 (linux_request_interrupt): Adjust to use ptids.
18103 (linux_read_auxv): Inline `inferior_pid'.
18104 (initialize_low): Don't reference thread_db_active.
18105 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
18106 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
18107 (ps_getpid): Return the pid of the current inferior.
18108 * thread-db.c (proc_handle, thread_agent): Delete.
18109 (thread_db_create_event, thread_db_enable_reporting): Adjust to
18110 per-process data.
18111 (find_one_thread): Change argument type to ptid_t. Adjust to
18112 per-process data.
18113 (maybe_attach_thread): Adjust to per-process data and ptids.
18114 (thread_db_find_new_threads): Ditto.
18115 (thread_db_init): Ditto.
18116 * spu-low.c (spu_create_inferior, spu_attach): Add process to
18117 processes table. Adjust to use ptids.
18118 (spu_kill, spu_detach): Adjust interface. Remove process from
18119 processes table.
18120 (spu_join, spu_thread_alive): Adjust interface.
18121 (spu_wait): Adjust interface. Remove process from processes
18122 table. Adjust to use ptids.
18123 * win32-low.c (current_inferior_tid): Delete.
18124 (current_inferior_ptid): New.
18125 (debug_event_ptid): New.
18126 (thread_rec): Take a ptid. Adjust.
18127 (child_add_thread): Add `pid' argument. Adjust to use ptids.
18128 (child_delete_thread): Ditto.
18129 (do_initial_child_stuff): Add `attached' argument. Add process to
18130 processes table.
18131 (child_fetch_inferior_registers, child_store_inferior_registers):
18132 Adjust.
18133 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
18134 (win32_attach): Pass 1 to do_initial_child_stuff.
18135 (win32_kill): Adjust interface. Remove process from processes
18136 table.
18137 (win32_detach): Ditto.
18138 (win32_join): Adjust interface.
18139 (win32_thread_alive): Take a ptid.
18140 (win32_resume): Adjust to use ptids.
18141 (get_child_debug_event): Ditto.
18142 (win32_wait): Adjust interface. Remove exiting process from
18143 processes table.
18144
bd99dc85
PA
181452009-04-01 Pedro Alves <pedro@codesourcery.com>
18146
18147 Non-stop mode support.
18148
18149 * server.h (non_stop): Declare.
18150 (gdb_client_data, handler_func): Declare.
18151 (delete_file_handler, add_file_handler, start_event_loop):
18152 Declare.
18153 (handle_serial_event, handle_target_event, push_event)
18154 (putpkt_notif): Declare.
18155 * target.h (enum resume_kind): New.
18156 (struct thread_resume): Replace `step' field by `kind' field.
18157 (TARGET_WNOHANG): Define.
18158 (struct target_ops) <wait>: Add `options' argument.
18159 <supports_non_stop, async, start_non_stop>: New fields.
18160 (target_supports_non_stop, target_async): New.
18161 (start_non_stop): Declare.
18162 (mywait): Add `options' argument.
18163 * target.c (mywait): Add `options' argument. Print child exit
18164 notifications here.
18165 (start_non_stop): New.
18166 * server.c (non_stop, own_buf, mem_buf): New globals.
18167 (struct vstop_notif): New.
18168 (notif_queue): New global.
18169 (queue_stop_reply, push_event, discard_queued_stop_replies)
18170 (send_next_stop_reply): New.
18171 (start_inferior): Adjust to use resume_kind. Adjust to mywait
18172 interface changes.
18173 (attach_inferior): In non-stop mode, don't wait for the target
18174 here.
18175 (handle_general_set): Handle QNonStop.
18176 (handle_query): When handling qC, return the current general
18177 thread, instead of the first thread of the list.
18178 (handle_query): If the backend supports non-stop mode, include
18179 QNonStop+ in the qSupported query response.
18180 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
18181 and non-stop mode.
18182 (handle_v_attach, handle_v_run): Handle non-stop mode.
18183 (handle_v_stopped): New.
18184 (handle_v_requests): Report support for vCont;t. Handle vStopped.
18185 (myresume): Adjust to use resume_kind. Handle non-stop.
18186 (queue_stop_reply_callback): New.
18187 (handle_status): Handle non-stop mode.
18188 (main): Clear non_stop flag on reconnection. Use the event-loop.
18189 Refactor serial protocol handling from here ...
18190 (process_serial_event): ... to this new function. When GDB
18191 selects any thread, select one here. In non-stop mode, wait until
18192 GDB acks all pending events before exiting.
18193 (handle_serial_event, handle_target_event): New.
18194 * remote-utils.c (remote_open): Install remote_desc in the event
18195 loop.
18196 (remote_close): Remove remote_desc from the event loop.
18197 (putpkt_binary): Rename to...
18198 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
18199 (putpkt_binary): New as wrapper around putpkt_binary_1.
18200 (putpkt_notif): New.
18201 (prepare_resume_reply): In non-stop mode, don't change the
18202 general_thread.
18203 * event-loop.c: New.
18204 * Makefile.in (OBJ): Add event-loop.o.
18205 (event-loop.o): New rule.
18206
18207 * linux-low.h (pid_of): Moved here.
18208 (lwpid_of): New.
18209 (get_lwp_thread): Use lwpid_of.
18210 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
18211 * linux-low.c (pid_of): Delete.
18212 (inferior_pid): Use lwpid_of.
18213 (linux_event_pipe): New.
18214 (target_is_async_p): New.
18215 (delete_lwp): New.
18216 (handle_extended_wait): Use lwpid_of.
18217 (add_lwp): Don't set lwpid field.
18218 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
18219 (linux_kill_one_lwp): If killing a running lwp, stop it first.
18220 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
18221 (linux_detach_one_lwp): If detaching from a running lwp, stop it
18222 first. Adjust to linux_wait_for_event interface changes. Use
18223 lwpid_of.
18224 (linux_detach): Don't delete the main lwp here.
18225 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
18226 (status_pending_p): Don't consider explicitly suspended lwps.
18227 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
18228 pointer. Add OPTIONS argument. Change return type to int. Use
18229 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
18230 (linux_wait_for_event): Take an integer pid instead of a lwp_info
18231 pointer. Add status pointer argument. Return a pid instead of a
18232 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
18233 changes. In non-stop mode, don't switch to a random thread.
18234 (linux_wait): Rename to...
18235 (linux_wait_1): ... this. Add target_options argument, and handle
18236 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
18237 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
18238 clean exit and signal exit code. Don't stop all threads in
18239 non-stop mode. In all-stop mode, only stop all threads when
18240 reporting a stop to GDB. Handle explicit thread stop requests.
18241 (async_file_flush, async_file_mark): New.
18242 (linux_wait): New.
18243 (send_sigstop): Use lwpid_of.
18244 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
18245 interface changes. In non-stop mode, don't switch to a random
18246 thread.
18247 (linux_resume_one_lwp): Use lwpid_of.
18248 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
18249 (linux_resume_one_thread): ... this. Handle resume_stop. In
18250 non-stop mode, don't look for pending flag in all threads.
18251 (resume_status_pending_p): Don't consider explicitly suspended
18252 threads.
18253 (my_waitpid): Reimplement. Emulate __WALL.
18254 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
18255 Use lwpid_of.
18256 (sigchld_handler, linux_supports_non_stop, linux_async)
18257 (linux_start_non_stop): New.
18258 (linux_target_ops): Register linux_supports_non_stop, linux_async
18259 and linux_start_non_stop.
18260 (initialize_low): Install SIGCHLD handler.
18261 * thread-db.c (thread_db_create_event, find_one_thread)
18262 (thread_db_get_tls_address): Use lwpid_of.
18263 * win32-low.c (win32_detach): Adjust to use resume_kind.
18264 (win32_wait): Add `options' argument.
18265 * spu-low.c (spu_resume): Adjust to use resume_kind.
18266 (spu_wait): Add `options' argument.
18267
5b1c542e
PA
182682009-04-01 Pedro Alves <pedro@codesourcery.com>
18269
18270 Decouple target code from remote protocol.
18271
18272 * target.h (enum target_waitkind): New.
18273 (struct target_waitstatus): New.
18274 (struct target_ops) <wait>: Return an unsigned long. Take a
18275 target_waitstatus pointer instead of a char pointer.
18276 (mywait): Likewise.
18277 * target.c (mywait): Change prototype to return an unsigned long.
18278 Take a target_waitstatus pointer instead of a char pointer. Adjust.
18279 * server.h (thread_from_wait, old_thread_from_wait): Delete
18280 declarations.
18281 (prepare_resume_reply): Change prototype to take a
18282 target_waitstatus.
18283 * server.c (thread_from_wait, old_thread_from_wait): Delete.
18284 (last_status, last_ptid): New.
18285 (start_inferior): Remove "statusptr" argument. Adjust. Return a
18286 pid instead of a signal.
18287 (attach_inferior): Remove "status" and "signal" parameters.
18288 Adjust.
18289 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
18290 not as an address.
18291 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
18292 (handle_v_requests, myresume): Remove "status" and "signal"
18293 parameters. Adjust.
18294 (handle_status): New.
18295 (main): Delete local `status'. Adjust.
18296 * remote-utils.c: Include target.h.
18297 (prepare_resume_reply): Change prototype to take a
18298 target_waitstatus. Adjust.
18299
18300 * linux-low.c (linux_wait): Adjust to new target_ops->wait
18301 interface.
18302 * spu-low.c (spu_wait): Adjust.
18303 * win32-low.c (enum target_waitkind, struct target_waitstatus):
18304 Delete.
18305 (win32_wait): Adjust.
18306
2bd7c093
PA
183072009-04-01 Pedro Alves <pedro@codesourcery.com>
18308
18309 * target.h (struct thread_resume): Delete leave_stopped member.
18310 (struct target_ops): Add a `n' argument to the `resume' callback.
18311 * server.c (start_inferior): Adjust.
18312 (handle_v_cont, myresume): Adjust.
18313 * linux-low.c (check_removed_breakpoint): Adjust to resume
18314 interface change, and to removed leave_stopped field.
18315 (resume_ptr): Delete.
18316 (struct thread_resume_array): New.
18317 (linux_set_resume_request): Add new `arg' parameter. Adjust to
18318 resume interface change.
18319 (linux_continue_one_thread, linux_queue_one_thread)
18320 (resume_status_pending_p): Check if the resume field is NULL
18321 instead of checking the leave_stopped member.
18322 (linux_resume): Adjust to the target resume interface change.
18323 * spu-low.c (spu_resume): Adjust to the target resume interface
18324 change.
18325 * win32-low.c (win32_detach, win32_resume): Ditto.
18326
c35fafde
PA
183272009-04-01 Pedro Alves <pedro@codesourcery.com>
18328
18329 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
18330 flag.
18331 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
18332 pending.
18333 (linux_continue_one_thread): Only preserve the stepping flag if
18334 there's a pending breakpoint.
18335
0a59d50b
PA
183362009-03-31 Pedro Alves <pedro@codesourcery.com>
18337
18338 * server.c (main): After the inferior having exited, call
18339 remote_close before exiting gdbserver.
18340
f04c6d38
TJB
183412009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
18342
18343 Fix size of FPSCR in Power 7 processors.
18344 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
18345 (PPC_FEATURE_HAS_DFP): New #define.
18346 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
18347 size of the FPSCR.
18348
78e5cee6
PA
183492009-03-23 Pedro Alves <pedro@codesourcery.com>
18350
18351 * server.c (handle_query) Whitespace and formatting.
18352
1b3f6016
PA
183532009-03-22 Pedro Alves <pedro@codesourcery.com>
18354
18355 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
18356 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
18357 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
18358 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
18359 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
18360 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
18361 Makefile.in, configure.ac: Fix whitespace throughout.
18362 * configure: Regenerate.
18363
a07b2135
PA
183642009-03-22 Pedro Alves <pedro@codesourcery.com>
18365
18366 * inferiors.c (find_inferior): Make it safe for the callback
18367 function to delete the currently iterated inferior.
18368
67cc2626
PA
183692009-03-22 Pedro Alves <pedro@codesourcery.com>
18370
18371 * Makefile.in (linuw_low_h): Move higher.
18372 (thread-db.o): Depend on $(linux_low_h).
18373
54a0b537
PA
183742009-03-17 Pedro Alves <pedro@codesourcery.com>
18375
18376 Rename "process" to "lwp" throughout.
18377
18378 * linux-low.c (all_processes): Rename to...
18379 (all_lwps): ... this.
18380 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
18381 (add_process): Rename to ...
18382 (add_lwp): ... this. Adjust.
18383 (linux_create_inferior): Adjust.
18384 (linux_attach_lwp): Adjust.
18385 (linux_attach): Adjust.
18386 (linux_kill_one_process): Rename to ...
18387 (linux_kill_one_lwp): ... this. Adjust.
18388 (linux_kill): Adjust.
18389 (linux_detach_one_process): Rename to ...
18390 (linux_detach_one_lwp): ... this. Adjust.
18391 (linux_detach): Adjust.
18392 (check_removed_breakpoint): Adjust.
18393 (status_pending_p): Adjust.
18394 (linux_wait_for_process): Rename to ...
18395 (linux_wait_for_lwp): ... this. Adjust.
18396 (linux_wait_for_event): Adjust.
18397 (send_sigstop): Adjust.
18398 (wait_for_sigstop): Adjust.
18399 (stop_all_processes): Rename to ...
18400 (stop_all_lwps): ... this.
18401 (linux_resume_one_process): Rename to ...
18402 (linux_resume_one_lwp): ... this. Adjust.
18403 (linux_set_resume_request, linux_continue_one_thread)
18404 (linux_queue_one_thread, resume_status_pending_p)
18405 (usr_store_inferior_registers, regsets_store_inferior_registers)
18406 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
18407 Adjust.
18408 * linux-low.h (get_process): Rename to ...
18409 (get_lwp): ... this. Adjust.
18410 (get_thread_process): Rename to ...
18411 (get_thread_lwp): ... this. Adjust.
18412 (get_process_thread): Rename to ...
18413 (get_lwp_thread): ... this. Adjust.
18414 (struct process_info): Rename to ...
18415 (struct lwp_info): ... this.
18416 (all_processes): Rename to ...
18417 (all_lwps): ... this.
18418 * proc-service.c (ps_lgetregs): Adjust.
18419 * thread-db.c (thread_db_create_event, find_one_thread)
18420 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
18421
0b16c5cf
PA
184222009-03-14 Pedro Alves <pedro@codesourcery.com>
18423
18424 * server.c (handle_query): Handle "qAttached".
18425
32de4b9d
NS
184262009-03-13 Nathan Sidwell <nathan@codesourcery.com>
18427
18428 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
18429 GPLv3, update license URL.
18430
2aecd87f
DE
184312009-03-01 Doug Evans <dje@google.com>
18432
93efd302 18433 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
2aecd87f
DE
18434 (server_h): Add gdb_signals.h.
18435 (signals.o): Update.
18436 * server.h (target_signal_from_host,target_signal_to_host_p)
18437 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
18438
86b1f9c5
PM
184392009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
18440
18441 * remote-utils.c (getpkt): Also generate remote-debug
18442 information if noack_mode is set.
18443
4aa995e1
PA
184442009-02-06 Pedro Alves <pedro@codesourcery.com>
18445
18446 * server.c (handle_query): Report qXfer:siginfo:read and
18447 qXfer:siginfo:write as supported and handle them.
18448 * target.h (struct target_ops) <qxfer_siginfo>: New field.
18449 * linux-low.c (linux_xfer_siginfo): New.
18450 (linux_target_ops): Set it.
18451
62709adf
PA
184522009-01-26 Pedro Alves <pedro@codesourcery.com>
18453
18454 * server.c (gdbserver_usage): Mention --remote-debug.
18455 (main): Accept '--remote-debug' switch.
18456
aef93bd7
DE
184572009-01-18 Doug Evans <dje@google.com>
18458
18459 * regcache.c (new_register_cache): No need to check result of xcalloc.
18460 * server.c (handle_search_memory): Back out calls to xmalloc,
18461 result is checked and error is returned to user upon failure.
18462 (handle_query): Ditto. Add more checks for result of malloc.
18463 (handle_v_cont): Check result of malloc, report error back to
18464 user upon failure.
18465 (handle_v_run): Ditto. Call freeargv.
18466 * server.h (freeargv): Declare.
18467 * utils.c (freeargv): New fn.
18468
54363045
DE
184692009-01-15 Doug Evans <dje@google.com>
18470
f626972c
DE
18471 * gdbreplay.c (perror_with_name): Make arg const char *.
18472 * server.h (target_signal_to_name): Make return type const char *.
0842e787 18473 * thread-db.c (thread_db_err_str): Make return type const char *.
f626972c 18474 * utils.c (perror_with_name): Make arg const char *.
54363045 18475
18aae699
PA
184762009-01-14 Pedro Alves <pedro@codesourcery.com>
18477
18478 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
18479 when handling a EXIT_PROCESS_DEBUG_EVENT.
18480
ff703abe
JB
184812009-01-06 Joel Brobecker <brobecker@adacore.com>
18482
18483 * gdbreplay.c (gdbreplay_version): Update copyright year.
18484 * server.c (gdbserver_version): Likewise.
18485
f21cc1a2 184862009-01-05 Doug Evans <dje@google.com>
0e21c1ec
DE
18487
18488 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
f21cc1a2 18489 (handle_extended_wait): Improve comment.
0e21c1ec 18490
bca929d3
DE
184912008-12-13 Doug Evans <dje@google.com>
18492
18493 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
18494 * server.h (ATTR_MALLOC): New macro.
18495 (xmalloc,xcalloc,xstrdup): Declare.
18496 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
18497 * inferiors.c: Ditto.
18498 * linux-low.c: Ditto.
18499 * mem-break.c: Ditto.
18500 * regcache.c: Ditto.
18501 * remote-utils.c: Ditto.
18502 * server.c: Ditto.
18503 * target.c: Ditto.
18504 * win32-low.c: Ditto.
18505
97438e3f
DE
185062008-12-12 Doug Evans <dje@google.com>
18507
896c7fbb
DE
18508 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
18509 in debugging printf.
18510
97438e3f
DE
18511 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
18512
e3b886f8
DE
185132008-12-09 Doug Evans <dje@google.com>
18514
18515 * linux-low.h (struct process_info): Delete member tid, unused.
18516 * thread-db.c (find_one_thread): Update.
18517 (maybe_attach_thread): Update.
18518
07e059b5
VP
185192008-12-02 Pedro Alves <pedro@codesourcery.com>
18520
889bf7c5
PA
18521 * target.h (struct target_ops): Add qxfer_osdata member.
18522 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
18523 and dirent.h.
18524 (linux_qxfer_osdata): New functions.
18525 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
18526 callback.
18527 * server.c (handle_query): Handle "qXfer:osdata:read:".
18528 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
18529 (buffer_xml_printf): New functions.
18530 * server.h (struct buffer): New.
18531 (buffer_grow_str, buffer_grow_str0): New macros.
18532 (buffer_grow, buffer_free, buffer_init, buffer_finish)
18533 (buffer_xml_printf): Declare.
07e059b5 18534
4cab47ab
DE
185352008-11-24 Doug Evans <dje@google.com>
18536
18537 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
18538
f142445f
DJ
185392008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
18540
18541 * server.c (handle_v_run): Always use the supplied argument list.
18542
d0107bb6 185432008-11-19 Bob Wilson <bob.wilson@acm.org>
889bf7c5 18544
d0107bb6
BW
18545 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
18546 (xtensa_regmap_table): Add entry for scompare1.
889bf7c5 18547
2c4ad781
TJB
185482008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
18549
18550 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
18551 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
18552 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
18553 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
18554 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
18555 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
18556 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
18557 XML target descriptions.
18558 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
18559 when inferior is running on an ISA 2.05 or later processor. Add
18560 special case to return offset for full 64-bit slot of FPSCR when
18561 in 32-bits.
18562
dfb64f85
DJ
185632008-11-14 Daniel Gutson <dgutson@codesourcery.com>
18564
18565 * Makefile.in (SFILES, clean): Added sparc64 files.
18566 (reg-sparc64.o, reg-sparc64.c): New.
18567 * configure.srv (sparc*-*-linux*): New configuration.
18568 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
18569 syscall arguments for SPARC.
18570 (regsets_store_inferior_registers): Likewise.
18571 * linux-sparc-low.c: New file.
18572
66b6e1dd
DE
185732008-10-21 Doug Evans <dje@google.com>
18574
18575 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
18576 (READLINE_DIR,READLINE_DEP): Delete.
18577 (INTERNAL_CFLAGS): Update.
18578 (LINTFLAGS): Update.
18579
9b710a42
PA
185802008-10-10 Pedro Alves <pedro@codesourcery.com>
18581
18582 * server.c (handle_v_run): If GDB didn't specify an argv, use the
18583 whole argv from the last run, not just argv[0].
18584
5822d809
PA
185852008-09-08 Pedro Alves <pedro@codesourcery.com>
18586
18587 * regcache.c (new_register_cache): Return NULL if the register
18588 cache size isn't known yet.
18589 (free_register_cache): Avoid dereferencing a NULL regcache.
18590
74aac56f
DJ
185912008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
18592
18593 * configure.srv: Merge MIPS and MIPS64.
18594
400b20f5
MR
185952008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
18596
18597 * Makefile.in (uninstall): Apply $(EXEEXT) too.
18598
677c5bb1
LM
185992008-08-18 Luis Machado <luisgpm@br.ibm.com>
18600
18601 * Makefile.in: Add required vsx dependencies.
18602
18603 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
18604 Declare init_registers_powerpc_vsx32l.
18605 Declare init_registers_powerpc_vsx64l.
18606 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
18607 (ppc_arch_setup): Check for VSX in hwcap.
18608 (ppc_fill_vsxregset): New function.
18609 (ppc_store_vsxregset): New function.
18610 Add new VSX entry in regset_info target_regsets.
18611
18612 * configure.srv: Add new VSX dependencies.
18613
a6f3e723
SL
186142008-08-12 Pedro Alves <pedro@codesourcery.com>
18615
18616 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
18617 (remote_open): Set or clear transport_is_reliable.
18618 (putpkt_binary): Don't expect acks in noack mode.
18619 (getpkt): Don't send ack/nac in noack mode.
18620 * server.c (handle_general_set): Handle QStartNoAckMode.
18621 (handle_query): If connected by tcp pass QStartNoAckMode+ in
18622 qSupported.
18623 (main): Reset noack_mode on every connection.
18624 * server.h (noack_mode): Declare.
18625
a417dc56
RW
186262008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18627
18628 * Makefile.in (GDBREPLAY_OBS): New variable.
18629 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
18630
3221518c
UW
186312008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
18632 Daniel Jacobowitz <dan@codesourcery.com>
18633
18634 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
18635 (usr_store_inferior_registers): Likewise.
18636 (regsets_store_inferior_registers): Likewise.
18637
ec56be1b
PA
186382008-07-31 Rolf Jansen <rj@surtec.com>
18639 Pedro Alves <pedro@codesourcery.com>
18640
18641 * configure.ac: Check for memmem declaration.
18642 * server.c [HAVE_MALLOC_H]: Include malloc.h.
18643 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
18644 (disable_packet_qfThreadInfo): Unconditionally compile.
18645 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
18646 * configure, config.in: Regenerate.
18647
2fe5e3ff
DE
186482008-07-28 Doug Kwan <dougkwan@google.com>
18649
18650 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
18651 (linux_write_memory): Remove declaration of errno.
18652
836acd6d
UW
186532008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
18654
18655 * linux-low.c (handle_extended_wait): Do not use "status"
18656 variable uninitialized.
18657
aeba519e
PA
186582008-07-07 Pedro Alves <pedro@codesourcery.com>
18659
18660 * server.c (handle_v_attach): Inhibit reporting dll changes.
18661
db42f210
PA
186622008-06-27 Pedro Alves <pedro@codesourcery.com>
18663
18664 * remote-utils.c (prepare_resume_reply): If requested, don't
18665 output "thread:TID" in the T stop reply.
18666
18667 * server.c (disable_packet_vCont, disable_packet_Tthread)
18668 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
18669 (handle_query): If requested, disable support for qC, qfThreadInfo
18670 and qsThreadInfo.
18671 (handle_v_requests): If requested, disable support for vCont.
18672 (gdbserver_show_disableable): New.
18673 (main): Handle --disable-packet and --disable-packet=LIST.
18674
18675 * server.h (disable_packet_vCont, disable_packet_Tthread)
18676 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
18677
8e4c5421
CD
186782008-06-20 Carlos O'Donell <carlos@codesourcery.com>
18679
18680 * server.c (gdbserver_usage): Mention --version.
18681
6e23a804
DJ
186822008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
18683
18684 * Makefile.in (gdbreplay.o): New rule.
18685
90aa6a40
JM
186862008-06-06 Joseph Myers <joseph@codesourcery.com>
18687
18688 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
18689 message, not gdbserver.
18690
c16158bc 186912008-06-05 Vladimir Prus <vladimir@codesourcery.com>
889bf7c5
PA
18692 Nathan Sidwell <nathan@codesourcery.com>
18693 Joseph Myers <joseph@codesourcery.com>
c16158bc
JM
18694
18695 * acinclude.m4: Include ../../config/acx.m4.
18696 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
18697 * configure, config.in: Regenerate.
18698 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
18699 * server.c (gdbserver_version): Print PKGVERSION.
18700 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
18701 (main): Adjust gdbserver_usage calls.
18702 * gdbreplay.c (version, host_name): Add declarations.
18703 (gdbreplay_version, gdbreplay_usage): New.
18704 (main): Accept --version and --help options.
18705
aeb75bf5
DJ
187062008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
18707
18708 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
18709 (arm_breakpoint_at): Handle Thumb.
18710 (the_low_target): Add comment.
18711
76b233dd
UW
187122008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
18713
18714 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
18715
08388c79
DE
187162008-05-09 Doug Evans <dje@google.com>
18717
a3c83fae
DE
18718 * server.h (decode_search_memory_packet): Declare.
18719 * remote-utils.c (decode_search_memory_packet): New fn.
18720 * server.c (handle_search_memory_1): New fn.
08388c79
DE
18721 (handle_search_memory): New fn.
18722 (handle_query): Process qSearch:memory packets.
18723
bb9c3d36
UW
187242008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
18725
18726 * regcache.c (registers_length): Remove.
18727 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
18728 full register packet.
18729 * regcache.h (registers_length): Remove prototype.
18730 * server.h (PBUFSIZ): Define to 16384.
18731
7284e1be
UW
187322008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
18733
18734 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
18735 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
18736 powerpc-64l.o, and powerpc-altivec64l.o.
18737 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
18738 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
18739 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
18740 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
18741 rs6000/power-linux.xml, and rs6000/power64-linux.xml
18742 to srv_xmlfiles.
18743
18744 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
18745 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
18746 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
18747 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
18748 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
18749 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
18750 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
18751 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
18752 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
18753 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
18754 (clean): Update.
18755
18756 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
18757 (init_registers_powerpc_32l): ... this new prototype.
18758 (init_registers_powerpc_32): Remove, replace by ...
18759 (init_registers_powerpc_altivec32l): ... this new prototype.
18760 (init_registers_powerpc_e500): Remove, replace by ...
18761 (init_registers_powerpc_e500l): ... this new prototype.
18762 (init_registers_ppc64): Remove, replace by ...
18763 (init_registers_powerpc_64l): ... this new prototype.
18764 (init_registers_powerpc_64): Remove, replace by ...
18765 (init_registers_powerpc_altivec64l): ... this new prototype.
18766 (ppc_num_regs): Set to 73.
18767 (PT_ORIG_R3, PT_TRAP): Define if necessary.
18768 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
18769 (ppc_cannot_store_register): Handle orig_r3 and trap.
18770 (ppc_arch_setup): Update init_registers_... calls.
18771 (ppc_fill_gregset): Handle orig_r3 and trap.
18772
18773 * inferiors.c (clear_inferiors): Reset current_inferior.
18774
fdc59709
PB
187752008-04-23 Paolo Bonzini <bonzini@gnu.org>
18776
889bf7c5
PA
18777 * acinclude.m4: Add override.m4.
18778 * configure: Regenerate.
fdc59709 18779
c9b2f845
UW
187802008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
18781
18782 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
18783 initial call to init_register_ppc64.
18784
550512b8
UW
187852008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
18786
43aaf8b6
PA
18787 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
18788 single powerpc*-*-linux* case.
550512b8
UW
18789 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
18790
b6430ec3
UW
187912008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
18792
18793 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
889bf7c5 18794 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
b6430ec3
UW
18795 from reg_xmlfiles.
18796 * linux-ppc-low.c: Include <elf.h>.
18797 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
18798 (ppc_hwcap): New global variable.
18799 (ppc_regmap): Remove __SPE__ #ifdef sections.
18800 (ppc_regmap_e500): New global variable.
18801 (ppc_cannot_store_register): Update __SPE__ special case.
18802 (ppc_get_hwcap): New function.
18803 (ppc_arch_setup): Use it to determine whether inferior supports
18804 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
18805 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
18806 Do not access registers if target does not support AltiVec.
18807 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
18808 Do not access registers if target does not support SPE.
18809 (target_regsets): Unconditionally include AltiVec and SPE regsets.
18810
52fa2412
UW
188112008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
18812
18813 * linux-low.c (disabled_regsets, num_regsets): New.
18814 (use_regsets_p): Delete.
18815 (linux_wait_for_process): Clear disabled_regsets.
18816 (regsets_fetch_inferior_registers): Check and set it.
18817 (regsets_store_inferior_registers): Likewise.
18818 (linux_fetch_registers, linux_store_registers): Do not use
18819 use_regsets_p.
18820 (initialize_low): Allocate disabled_regsets.
18821
e28b3332
DJ
188222008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
18823
18824 * Makefile.in (LIBOBJS): New.
18825 (OBS): Use LIBOBJS.
18826 (memmem.o): New rule.
18827 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
18828 * configure: Regenerated.
18829
4536995d
UW
188302008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
18831
18832 * server.c (handle_query): Never return "unsupported" for
18833 qXfer:features:read queries.
18834
221c031f
UW
188352008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
18836
18837 * server.c (get_features_xml): Fix inverted condition.
18838 (handle_query): Always support qXfer:feature:read.
18839
ccd213ac
DJ
188402008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
18841
18842 * server.c (wrapper_argv): New.
18843 (start_inferior): Handle wrapper_argv. If set, expect an extra
18844 trap.
18845 (gdbserver_usage): Document --wrapper.
18846 (main): Parse --wrapper.
18847
6fe305f7
UW
188482008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
18849
18850 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
18851 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
18852 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
18853 (ppc_set_pc): Likewise.
18854 (ppc_arch_setup): New function.
18855 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
18856 of collect_register.
889bf7c5 18857 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
6fe305f7 18858
5b0a002e
UW
188592008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
18860
18861 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
18862 instead of linux-ppc64-low.o.
18863 * linux-ppc64-low.c: Remove file.
18864 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
18865 (linux-ppc64-low.o): Remove rule.
18866
18867 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
18868 (init_registers_powerpc_64): Likewise.
18869 (ppc_regmap): Conditionally define depending on __powerpc64__.
18870 (ppc_cannot_store_register): Do not special-case "fpscr" when
18871 compiled on __powerpc64__.
18872 (ppc_collect_ptrace_register): New function.
18873 (ppc_supply_ptrace_register): New function.
18874 (ppc_breakpoint): Change type to "unsigned int".
18875 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
18876 (the_low_target): Conditionally provide initializers for the
889bf7c5 18877 arch_setup member depending on __powerpc64__. Install
5b0a002e
UW
18878 collect_ptrace_register and supply_ptrace_register members.
18879
9b4b61c8
UW
188802008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
18881
18882 * regcache.h (gdbserver_xmltarget): Add extern declaration.
18883 * server.c (gdbserver_xmltarget): Define.
18884 (get_features_xml): Use it to replace "target.xml" and arch_string.
18885
18886 * configure.srv: Remove srv_xmltarget. Add XML files that were
18887 mentioned there to srv_xmlfiles instead. Remove conditional tests
18888 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
18889 srv_xmlfiles and srv_regobj to include all possible choices.
18890 * configure.ac (srv_xmltarget): Remove.
18891 (srv_xmlfiles): Do not add "target.xml".
18892 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
18893 checks for supplementary target information.
18894 * configure: Regenerate.
18895 * Makefile.in (XML_TARGET): Remove.
18896 (target.xml): Remove rule.
18897 (clean): Do not clean up target.xml.
18898 (.PRECIOUS): Do not mention target.xml.
18899
18900 * target.h (struct target_ops): Remove arch_string member.
18901 * linux-low.c (linux_arch_string): Remove.
18902 (linux_target_ops): Remove arch_string initializer.
18903 * linux-low.h (struct linux_target_ops): Remove arch_string member.
18904 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
18905 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
18906 * spu-low.c (spu_arch_string): Remove.
18907 (spu_target_ops): Remove arch_string initializer.
18908 * win32-low.c (win32_arch_string): Remove.
18909 (win32_target_ops): Remove arch_string initializer.
18910 * win32-low.h (struct win32_target_ops): Remove arch_string member.
18911 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
18912 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
18913
ee1a7ae4
UW
189142008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
18915
18916 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
18917 by collect_ptrace_register and supply_ptrace_register hooks.
18918 * linux-low.c (fetch_register): Use supply_ptrace_register callback
18919 instead of checking for the_low_target.left_pad_xfer.
18920 (usr_store_inferior_registers): Use collect_ptrace_register callback
18921 instead of checking for the_low_target.left_pad_xfer.
18922
18923 * linux-s390-low.c (s390_collect_ptrace_register): New function.
18924 (s390_supply_ptrace_register): Likewise.
18925 (s390_fill_gregset): Call s390_collect_ptrace_register.
18926 (the_low_target): Update.
18927
18928 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
18929 (ppc_supply_ptrace_register): Likewise.
18930 (the_low_target): Update.
18931
18932 * linux-i386-low.c (the_low_target): Update.
18933 * linux-x86-64-low.c (the_low_target): Update.
18934
d61ddec4
UW
189352008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
18936
18937 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
18938 reg-s390.o and reg-s390x.o.
18939
18940 * linux-low.c (new_inferior): New global variable.
18941 (linux_create_inferior, linux_attach): Set it.
18942 (linux_wait_for_process): Call the_low_target.arch_setup after the
18943 target has stopped for the first time.
18944 (initialize_low): Do not call the_low_target.arch_setup.
18945
18946 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
18947 (s390_set_pc): Likewise.
18948 (s390_arch_setup): New function.
18949 (the_low_target): Use s390_arch_setup as arch_setup routine.
18950
18951 * regcache.c (realloc_register_cache): New function.
18952 (set_register_cache): Call it for each existing regcache.
18953
d05b4ac3
UW
189542008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
18955
18956 * server.h (init_registers): Remove prototype.
18957
18958 * linux-low.h (struct linux_target_ops): Add arch_setup field.
18959 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
18960 instead of init_registers ().
18961 * linux-arm-low.c (init_registers_arm): Add prototype.
18962 (init_registers_arm_with_iwmmxt): Likewise.
18963 (the_low_target): Add initializer for arch_setup field.
18964 * linux-cris-low.c (init_registers_cris): Add prototype.
18965 (the_low_target): Add initializer for arch_setup field.
18966 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
18967 (the_low_target): Add initializer for arch_setup field.
18968 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
18969 (the_low_target): Add initializer for arch_setup field.
18970 * linux-ia64-low.c (init_registers_ia64): Add prototype.
18971 (the_low_target): Add initializer for arch_setup field.
18972 * linux-m32r-low.c (init_registers_m32r): Add prototype.
18973 (the_low_target): Add initializer for arch_setup field.
18974 * linux-m68k-low.c (init_registers_m68k): Add prototype.
18975 (the_low_target): Add initializer for arch_setup field.
18976 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
18977 (init_registers_mips64_linux): Likewise.
18978 (the_low_target): Add initializer for arch_setup field.
18979 * linux-ppc-low.c (init_registers_ppc): Add prototype.
18980 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
18981 (the_low_target): Add initializer for arch_setup field.
18982 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
18983 (init_registers_powerpc_64): Likewise.
18984 (the_low_target): Add initializer for arch_setup field.
18985 * linux-s390-low.c (init_registers_s390): Add prototype.
18986 (init_registers_s390x): Likewise.
18987 (the_low_target): Add initializer for arch_setup field.
18988 * linux-sh-low.c (init_registers_sh): Add prototype.
18989 (the_low_target): Add initializer for arch_setup field.
18990 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
18991 (the_low_target): Add initializer for arch_setup field.
18992 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
18993 (the_low_target): Add initializer for arch_setup field.
18994
18995 * win32-low.h (struct win32_target_ops): Add arch_setup field.
18996 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
18997 instead of init_registers ().
18998 * win32-arm-low.c (init_registers_arm): Add prototype.
18999 (the_low_target): Add initializer for arch_setup field.
19000 * win32-i386-low.c (init_registers_i386): Add prototype.
19001 (the_low_target): Add initializer for arch_setup field.
19002
19003 * spu-low.c (init_registers_spu): Add prototype.
19004 (initialize_low): Call initialie_registers_spu () instead of
19005 initialize_registers ().
19006
fd96d250
PA
190072008-02-19 Pedro Alves <pedro@codesourcery.com>
19008
19009 * server.c (handle_v_requests): When handling the vRun and vAttach
19010 packets, if already debugging a process, don't kill it. Return an
19011 error instead.
19012
d41b6bb4
DJ
190132008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
19014
19015 * server.c (handle_query): Correct length check.
19016
5ac588cf
PA
190172008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
19018
19019 * win32-low.c (do_initial_child_stuff): Add process handle
19020 parameter. Set current_process_handle and current_process_id from the
19021 parameters. Clear globals.
19022 (win32_create_inferior): Don't set current_process_handle and
19023 current_process_id here. Instead pass them on the call to
19024 do_initial_child_stuff.
19025 (win32_attach): Likewise.
19026 (win32_clear_inferiors): New.
19027 (win32_kill): Don't close the current process handle or the
19028 current thread handle here. Instead call win32_clear_inferiors.
19029 (win32_detach): Don't open a new handle to the process. Call
19030 win32_clear_inferiors.
19031 (win32_join): Don't rely on current_process_handle; open a new
19032 handle using the process id.
19033 (win32_wait): Call win32_clear_inferiors when the inferior process
19034 has exited.
19035
ecd7ecbc
DJ
190362008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
19037
19038 * server.c (monitor_show_help): Add "exit".
19039
1525d545
MG
190402008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
19041
ecd7ecbc 19042 * Makefile.in (SFILES): Add linux-xtensa-low.c.
1525d545
MG
19043 (clean): Add reg-xtensa.c.
19044 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
ecd7ecbc
DJ
19045 * configure.srv (xtensa*-*-linux*) New target.
19046 * linux-xtensa-low.c: New.
19047 * xtensa-xtregs.c: New.
1525d545 19048
59a016f0
PA
190492008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
19050
19051 * hostio.c: Don't include errno.h.
19052 (errno_to_fileio_errno): Move to hostio-errno.
19053 * hostio.c: (hostio_error): Remove the error parameter. Defer the
19054 error number outputting to the target->hostio_last_error callback.
19055 (hostio_packet_error): Use FILEIO_EINVAL directly.
19056 (handle_open, handle_pread, hostio_error, handle_unlink): Update
19057 calls to hostio_error.
19058 * hostio-errno.c: New.
19059 * server.h (hostio_last_error_from_errno): Declare.
19060 * target.h (target_ops): Add hostio_last_error member.
19061 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
19062 as hostio_last_error handler.
889bf7c5 19063 * spu-low.c (spu_target_ops): Likewise.
59a016f0
PA
19064 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
19065 (wince_hostio_last_error): New functions.
19066 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
19067 as hostio_last_error handler.
19068 (win32_target_ops) [!_WIN32_WCE]: Register
19069 hostio_last_error_from_errno as hostio_last_error handler.
19070 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
19071 (hostio-errno.o): New rule.
19072 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
19073 * configure.srv (srv_hostio_err_objs): New variable. Default to
19074 hostio-errno.o.
19075 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
19076 * configure: Regenerate.
19077
2d717e4f
DJ
190782008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
19079
19080 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
19081 (linux_kill, linux_detach): Clean up the process list.
19082 * remote-utils.c (remote_open): Improve port number parsing.
19083 (putpkt_binary, input_interrupt): Only send interrupts if the target
19084 is running.
19085 * server.c (extended_protocol): Make static.
19086 (attached): Define earlier.
19087 (exit_requested, response_needed, program_argv): New variables.
19088 (target_running): New.
19089 (start_inferior): Clear attached here.
19090 (attach_inferior): Set attached here.
19091 (require_running): Define.
19092 (handle_query): Use require_running and target_running. Implement
19093 "monitor exit".
19094 (handle_v_attach, handle_v_run): New.
19095 (handle_v_requests): Use require_running. Handle vAttach and vRun.
19096 (gdbserver_usage): Update.
19097 (main): Redo argument parsing. Handle --debug and --multi. Handle
19098 --attach along with other options or after the port. Save
19099 program_argv. Support no initial program. Resynchronize
19100 communication with GDB after an error. Handle "monitor exit".
19101 Use require_running and target_running. Always allow the extended
19102 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
19103 restart in extended mode.
19104 * README: Refer to the GDB manual. Update --attach usage.
19105
7407e2de
AS
191062007-12-20 Andreas Schwab <schwab@suse.de>
19107
19108 * linux-low.c (STACK_SIZE): Define.
19109 (linux_tracefork_child): Use it. Use __clone2 on ia64.
19110 (linux_test_for_tracefork): Likewise.
19111
b65d95c5
DJ
191122007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
19113
19114 * linux-low.c (linux_wait_for_event): Update messages. Do not
19115 reinsert auto-delete breakpoints.
19116 * mem-break.c (struct breakpoint): Change return type of handler to
19117 int.
19118 (set_breakpoint_at): Update handler type.
19119 (reinsert_breakpoint_handler): Return 1 instead of calling
19120 delete_breakpoint.
19121 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
19122 setting a new one.
19123 (check_breakpoints): Delete auto-delete breakpoints and return 2.
19124 * mem-break.h (set_breakpoint_at): Update handler type.
19125 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
19126 * win32-low.c (auto_delete_breakpoint): New.
19127 (get_child_debug_event): Use it.
19128
4e799345
DJ
191292007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
19130
19131 * configure.ac: Check for pread and pwrite.
19132 * hostio.c (handle_pread): Fall back to lseek and read.
19133 (handle_pwrite): Fall back to lseek and write.
19134 * config.in, configure: Regenerated.
19135
27524b67
DJ
191362007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
19137
19138 * server.c (myresume): Add own_buf argument.
19139 (main): Update calls.
19140
a20d5e98
DJ
191412007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
19142
19143 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
19144 * remote-utils.c (remote_open): Do not call disable_async_io.
19145 (block_async_io): Delete.
19146 (unblock_async_io): Make static.
19147 (initialize_async_io): New.
19148 * server.c (handle_v_cont): Handle async I/O here.
19149 (myresume): Likewise. Move other common resume tasks here...
19150 (main): ... from here. Call initialize_async_io. Disable async
19151 I/O before the main loop.
19152 * server.h (initialize_async_io): Declare.
19153 (block_async_io, unblock_async_io): Delete prototypes.
19154 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
19155
b79d787e
DJ
191562007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
19157
19158 * remote-utils.c (readchar): Allow binary data in received messages.
19159
d97903b2
PA
191602007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
19161
19162 * win32-low.c (attaching): New global.
19163 (win32_create_inferior): Clear the `attaching' global.
19164 (win32_attach): Set the `attaching' global.
19165 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
19166 attaching. Only set a breakpoint at the entry point if not
19167 attaching.
19168
311de423
PA
191692007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
19170
19171 * server.c (main): Don't report dll events on the initial
19172 connection on attaches.
19173
6c2d16d2
PA
191742007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
19175
19176 * server.c (main): Relax numerical bases supported for the pid of
19177 the --attach command line argument.
19178
5ca906e6
PA
191792007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
19180
19181 * win32-low.c (win32_attach): Call OpenProcess before
19182 DebugActiveProcess, not after. Add last error output to error
19183 call.
19184
9c6c8194
PA
191852007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
19186
19187 * win32-low.c (win32_get_thread_context)
19188 (win32_set_thread_context): New functions.
19189 (thread_rec): Use win32_get_thread_context.
19190 (continue_one_thread, win32_resume): Use win32_set_thread_context.
19191 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
19192 field.
19193
4d5d1aaa
PA
191942007-12-03 Leo Zayas
19195 Pedro Alves <pedro_alves@portugalmail.pt>
19196
19197 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
19198 global variables.
19199 (child_add_thread): Minor cleanup.
19200 (child_continue): Resume artificially suspended threads before
19201 calling ContinueDebugEvent.
19202 (suspend_one_thread): New.
19203 (fake_breakpoint_event): New.
19204 (get_child_debug_event): Change return type to int. Check here if
19205 gdb sent an interrupt request. If a soft interrupt was requested,
19206 fake a breakpoint event. Return 0 if there is no event to handle,
19207 and 1 otherwise.
19208 (win32_wait): Don't check here if gdb sent an interrupt request.
19209 Ensure there is a valid event to handle.
19210 (win32_request_interrupt): Add soft interruption method as last
19211 resort.
19212
c436e841
PA
192132007-12-03 Leo Zayas
19214 Pedro Alves <pedro_alves@portugalmail.pt>
19215
19216 * win32-low.h (win32_thread_info): Add descriptions to the
19217 structure members. Replace `suspend_count' counter by a
19218 `suspended' flag.
19219 * win32-low.c (thread_rec): Update condition of when to get the
19220 context from the inferior. Rely on ContextFlags being set if it
19221 has already been retrieved. Only suspend the inferior thread if
19222 we haven't already. Warn if that fails.
19223 (continue_one_thread): s/suspend_count/suspended/. Only call
19224 ResumeThread once. Warn if that fails.
19225
e7b5fa67
PA
192262007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
19227
19228 * win32-low.c (win32_wait): Don't read from the inferior when it
19229 has already exited.
19230
a385171d
PA
192312007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
19232
19233 * Makefile.in (win32_low_h): New variable.
19234 (win32-low.o): Add dependency on $(win32_low_h).
19235 (win32-arm-low.o, win32-i386-low.o): New rules.
19236
f80c84b3
DJ
192372007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
19238
19239 * hostio.c: Correct copyright year.
19240
a6b151f1
DJ
192412007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
19242
19243 * Makefile.in (OBS): Add hostio.o.
19244 (hostio.o): New rule.
19245 * server.h (handle_vFile): Declare.
19246 * hostio.c: New file.
19247 * server.c (handle_v_requests): Take packet_len and new_packet_len
19248 for binary packets. Call handle_vFile.
19249 (main): Update call to handle_v_requests.
19250
f9387fc3
DJ
192512007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
19252
19253 * linux-low.c: Include <sched.h>.
19254
51c2684e
DJ
192552007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
19256
19257 * linux-low.c (linux_tracefork_grandchild): New.
19258 (linux_tracefork_child): Use clone.
19259 (linux_test_for_tracefork): Use clone; allocate and free a stack.
19260
75f83163
JB
192612007-10-31 Joel Brobecker <brobecker@adacore.com>
19262
19263 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
19264
da5898ce
DJ
192652007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
19266
19267 * linux-low.c (handle_extended_wait): Handle unexpected signals.
19268
24a09b5f
DJ
192692007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
19270
19271 * inferiors.c (change_inferior_id): Delete.
19272 (add_pid_to_list, pull_pid_from_list): New.
19273 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
19274 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
19275 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
19276 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
19277 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
19278 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
19279 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
19280 (using_threads): Always set to 1.
19281 (handle_extended_wait): New.
19282 (add_process): Do not set TID.
19283 (linux_create_inferior): Set must_set_ptrace_flags.
19284 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
19285 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
19286 (linux_thread_alive): Rename TID argument to LWPID.
19287 (linux_wait_for_process): Handle unknown processes. Do not use TID.
19288 (linux_wait_for_event): Do not use TID or check using_threads. Update
19289 call to dead_thread_notify. Call handle_extended_wait.
19290 (linux_create_inferior): Use PTRACE_SETOPTIONS.
19291 (send_sigstop): Delete sigstop_sent.
19292 (wait_for_sigstop): Avoid TID.
19293 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
19294 (linux_test_for_tracefork): New.
19295 (linux_lookup_signals): Use thread_db_active and
19296 linux_supports_tracefork_flag.
19297 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
19298 * linux-low.h (get_process_thread): Avoid TID.
19299 (struct process_ifo): Move thread_known and tid to the end. Remove
19300 sigstop_sent.
19301 (linux_attach_lwp, thread_db_init): Update prototypes.
19302 * server.h (change_inferior_id): Delete prototype.
19303 (add_pid_to_list, pull_pid_from_list): New prototypes.
19304 * thread-db.c (thread_db_use_events): New.
19305 (find_first_thread): Rename to...
19306 (find_one_thread): ...this. Update callers and messages. Do not
19307 call fatal. Check thread_db_use_events. Do not call
19308 change_inferior_id or new_thread_notify.
19309 (maybe_attach_thread): Update. Do not call new_thread_notify.
19310 (thread_db_init): Set thread_db_use_events. Check use_events.
19311 * utils.c (fatal, warning): Correct message prefix.
19312
30ed0a8f
DJ
193132007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
19314
19315 * Makefile.in (clean): Remove new files.
19316 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
19317 (powerpc-64.o, powerpc-64.c): New rules.
19318 * configure.srv: Use alternate register sets for powerpc64-*-linux*
19319 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
19320 with SPE.
19321 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
19322 SPE targets.
19323 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
19324 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
19325 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
19326 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
19327 (target_regsets): Add AltiVec and SPE register sets.
19328 * configure.ac: Check for AltiVec and SPE.
19329 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
19330 (ppc_fill_vrregset, ppc_store_vrregset): New.
19331 (target_regsets): Add AltiVec register set.
19332 * configure: Regenerated.
19333
fd462a61
DJ
193342007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
19335
19336 * linux-low.c (O_LARGEFILE): Define.
19337 (linux_read_memory): Use /proc/PID/mem.
19338 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
19339 * configure, config.in: Regenerated.
19340
69f223ed
DJ
193412007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
19342
19343 * linux-low.c (linux_wait_for_event): Do not pass signals while
19344 single-stepping.
19345
aec18585
PA
193462007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
19347
19348 * win32-low.c (create_process): New.
19349 (win32_create_inferior): Use create_process instead of
19350 CreateProcess. If create_process failed retry appending an ".exe"
19351 suffix. Store the GetLastError result immediatelly after
19352 create_process calls and use it on the call to error.
19353
34d86ddd
PA
193542007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
19355
19356 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
19357
5a0e3bd0
JB
193582007-08-23 Joel Brobecker <brobecker@adacore.com>
19359
19360 * configure.ac: Switch license to GPLv3.
19361
f88c79e6
MS
193622007-08-01 Michael Snyder <msnyder@access-company.com>
19363
19364 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
19365
6b3d9b83
PA
193662007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
19367
19368 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
19369 typedef.
19370 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
19371 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
19372 CloseToolhelp32Snapshot.
19373 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
19374 CloseToolhelp32Snapshot.
19375
c588c53c
MS
193762007-07-27 Michael Snyder <michael.snyder@access-company.com>
19377
19378 * server.c (main): Check for inferior exit before main loop.
19379
aa0403d9
PA
193802007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
19381
19382 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
19383 instead of on tmp_desc.
19384
255e7678
DJ
193852007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
19386 Daniel Jacobowitz <dan@codesourcery.com>
19387
19388 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
19389 (add_thread): Minor cleanups.
19390 (clear_inferiors): Move lower in the file. Clear the DLL
19391 list.
19392 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
19393 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
19394 (xml_escape_text): New.
19395 * server.c (handle_query): Handle qXfer:libraries:read. Report it
19396 for qSupported.
19397 (handle_v_cont): Report errors.
19398 (gdbserver_version): Update.
19399 (main): Correct size of own_buf. Do not report initial DLL events.
19400 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
19401 (unloaded_dll, xml_escape_text): New.
19402 * win32-low.c (enum target_waitkind): Update comments.
19403 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
19404 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
19405 (win32_EnumProcessModules, win32_GetModuleInformation)
19406 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
19407 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
19408 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
19409 (win32_Module32First, win32_Module32Next, load_toolhelp)
19410 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
19411 (get_child_debug_event): Handle DLL events.
19412 (win32_wait): Likewise.
19413
0d37add9
DJ
194142007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
19415
19416 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
19417 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
19418
45e2715e
PA
194192007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
19420
19421 * win32-low.c (handle_output_debug_string): Ignore event if not
19422 waiting.
19423
c5674cf1
PA
194242007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
19425
19426 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
19427
2bbe3cc1
DJ
194282007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
19429
19430 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
19431
ae13219e
DJ
194322007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
19433
19434 * inferiors.c (change_inferior_id): Add comment.
19435 * linux-low.c (check_removed_breakpoint): Add an early
19436 prototype. Improve debug output.
19437 (linux_attach): Doc update.
19438 (linux_detach_one_process, linux_detach): Clean up before releasing
19439 each process.
19440 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
19441 * linux-low.h (struct process_info): Doc improvement.
19442 * mem-break.c (delete_all_breakpoints): New.
19443 * mem-break.h (delete_all_breakpoints): New prototype.
19444 * thread-db.c (find_first_thread): New.
19445 (thread_db_create_event): Call it instead of
19446 thread_db_find_new_threads. Clean up unused variables.
19447 (maybe_attach_thread): Remove first thread handling.
19448 (thread_db_find_new_threads): Use find_first_thread.
19449 (thread_db_get_tls_address): Likewise.
19450
4105de34
DJ
194512007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
19452
19453 * thread-db.c (thread_db_find_new_threads): Add prototype.
19454 (thread_db_create_event): Check for the main thread before adding
19455 a new thread.
19456 (maybe_attach_thread): Only enable event reporting if TID == 0.
19457 (thread_db_get_tls_address): Check for new threads.
19458
2b876972
DJ
194592007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
19460
19461 * linux-low.c (linux_create_inferior): Try execv before execvp.
19462 * spu-low.c (spu_create_inferior): Likewise.
19463
7a245884
DJ
194642007-06-13 Mike Frysinger <vapier@gentoo.org>
19465
19466 * linux-low.c (linux_create_inferior): Change execv to execvp.
19467 * spu-low.c (spu_create_inferior): Likewies.
19468
117ce543
DJ
194692007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
19470
19471 * Makefile.in (clean): Clean new files instead of deleted ones.
19472 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
19473 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
19474 rules.
19475 * configure.srv: Specify XML files and new regformats for MIPS and
19476 MIPS64 GNU/Linux.
19477 * linux-mips-low.c (mips_num_regs): Set to only used registers.
19478 (mips_regmap): Do not fetch $0. Remove unused registers. Add
19479 an entry for the restart register.
19480 (mips_cannot_fetch_register, mips_cannot_store_register)
19481 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
19482 register names to match the XML descriptions.
19483 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
19484 restart register instead of $0.
19485
0e7f50da
UW
194862007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
19487 Markus Deuling <deuling@de.ibm.com>
19488
19489 * remote-utils.c (decode_xfer_write): New function.
19490 * server.h (decode_xfer_write): Add prototype.
19491 * server.c (handle_query): Add PACKET_LEN argument. Support
19492 qXfer:spu:read and qXfer:spu:write packets.
19493 (main): Pass packet_len to handle_query.
19494 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
19495 * target.h (target_ops): Add qxfer_spu.
19496
374c1d38
UW
194972007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
19498
19499 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
19500 accessing non-seekable spufs files.
19501
bb63802a
UW
195022007-05-16 Markus Deuling <deuling@de.ibm.com>
19503
889bf7c5 19504 * server.c (handle_query): Add reply for qC packet.
bb63802a 19505
7390519e
PA
195062007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
19507 Leo Zayas <lerele@champenstudios@com>
19508
19509 * server.h (check_remote_input_interrupt_request): New function.
19510 * remote_utils.c (INVALID_DESCRIPTOR): New define.
19511 (remote_desc): Initialize with INVALID_DESCRIPTOR.
19512 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
19513 (check_remote_input_interrupt_request): New function.
19514 * server.h (check_remote_input_interrupt_request): Declare.
3ecf0694 19515 * win32-low.c (winapi_DebugBreakProcess,
7390519e
PA
19516 winapi_GenerateConsoleCtrlEvent): New typedefs.
19517 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
19518 to 250 ms.
19519 (win32_wait): Check for remote interrupt request
19520 with check_remote_input_interrupt_request.
19521 (win32_request_interrupt): New function.
19522 (win32_target_op): Set request_interrupt to win32_request_interrupt.
19523
34b34921
PA
195242007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
19525
19526 * win32-low.c (debug_registers_changed,
19527 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
19528 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
19529 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
19530 (thread_rec): Get context using the low target.
19531 (child_add_thread): Call thread_added on the low target,
19532 which does the same thing.
19533 (regptr): Delete.
19534 (do_initial_child_stuff): Remove debug registers references.
19535 Set context using the low target. Resume threads after
19536 setting the contexts.
19537 (child_continue): Remove dead variable. Remove debug
19538 registers references.
19539 (child_fetch_inferior_registers): Go through the low target.
19540 (do_child_store_inferior_registers): Remove.
19541 (child_store_inferior_registers): Go through the low target.
19542 (win32_resume): Remove debug registers references.
19543 Set context using the low target.
19544 (handle_exception): Change return type to void. Don't record
19545 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
19546 first chance exception.
889bf7c5 19547 (get_child_debug_event): Change return type to void. Remove
34b34921
PA
19548 goto loop. Always return after waiting for debug event.
19549 (win32_wait): Convert to switch statement. Handle spurious
19550 events.
19551
19552 * win32-i386-low.c (debug_registers_changed,
19553 debug_registers_used): New.
19554 (initial_stuff): Rename to ...
19555 (i386_initial_stuff): ... this. Clear debug registers
19556 state variables.
19557 (store_debug_registers): Delete.
19558 (i386_get_thread_context): New.
19559 (load_debug_registers): Delete.
19560 (i386_set_thread_context): New.
19561 (i386_thread_added): New.
19562 (single_step): Rename to ...
19563 (i386_single_step): ... this.
19564 (do_fetch_inferior_registers): Rename to ...
19565 (i386_fetch_inferior_register): ... this.
19566 (i386_store_inferior_register): New.
19567 (the_low_target): Adapt to new interface.
19568
19569 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
19570 (arm_get_thread_context): New.
19571 (arm_set_thread_context): New.
19572 (regptr): New.
19573 (do_fetch_inferior_registers): Rename to ...
19574 (arm_fetch_inferior_register): ... this.
19575 (arm_store_inferior_register): New.
19576 (arm_wince_breakpoint): Reimplement as unsigned long.
19577 (arm_wince_breakpoint_len): Define.
19578 (the_low_target): Adapt to new interface.
19579
19580 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
19581 load_debug_registers. Add get_thread_context, set_thread_context,
19582 thread_added and store_inferior_register. Rename
19583 fetch_inferior_registers to fetch_inferior_register.
19584 (regptr): Remove declaration.
19585
dd6953e1
PA
195862007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
19587
19588 * linux-low.c (linux_detach): Change return type to int. Return 0.
19589 * spu-low.c (spu_detach): Likewise.
19590
444d6139
PA
195912007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
19592
19593 * target.h (target_ops): Change return type of detach to int.
19594 Add join.
19595 (join_inferior): New.
19596 * server.c (main): Don't skip detach support on mingw32.
19597 If the inferior doesn't support detaching return error.
19598 Call join_inferior instead of using waitpid.
19599 * linux-low.c (linux_join): New.
19600 (linux_target_op): Add linux_join.
19601 * spu-low.c (spu_join): New.
19602 (spu_target_ops): Add spu_join.
19603 * win32-low.c (win32_detach): Adapt to new interface.
19604 Reopen current_process_handle before detaching. Issue a child
19605 resume before detaching.
19606 (win32_join): New.
19607 (win32_target_op): Add win32_join.
19608
1d5315fe
PA
196092007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
19610
19611 * win32-low.c (win32-attach): Fix return value.
19612 * target.h (target_ops): Describe ATTACH return values.
19613
bf914831
PA
196142007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
19615
19616 * win32-low.c (GETPROCADDRESS): Define.
19617 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
19618 (winapi_DebugSetProcessKillOnExit): Likewise.
19619 (win32_create_inferior): Force usage of ansi CreateProcessA.
19620 (win32_attach): Use GETPROCADDRESS.
19621 (win32_detach): Likewise.
19622
f72f3e60
PA
196232007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
19624
19625 * win32-low.c (win32_wait): Don't use WSTOPSIG.
19626
ed50f18f
PA
196272007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
19628
19629 * win32-low.c: Commit leftover changes from 2007-03-29.
19630
0c2ead7e
DJ
196312007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
19632
19633 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
19634 fields short instead of int. Add explicit padding.
19635 (i387_cache_to_fsave): Remove unnecessary casts.
19636 (i387_fsave_to_cache): Doc fix.
19637 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
19638
73725ff3
DJ
196392007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
19640
19641 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
19642 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
19643
d99f33d8
PA
196442007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
19645
19646 * configure.srv (arm*-*-mingw32ce*): Move near the other
19647 arm targets.
19648
68070c10
PA
196492007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
19650
2482afc6 19651 * configure.ac: Add errno checking.
68070c10
PA
19652 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
19653 sys/file.h and malloc.h.
19654 (AC_CHECK_DECLS): Add perror.
19655 (srv_mingwce): Handle.
2482afc6 19656 * configure.srv (i[34567]86-*-cygwin*): Add
68070c10
PA
19657 win32-i386-low.o to srv_tgtobj.
19658 (i[34567]86-*-mingw*): Likewise.
19659 (arm*-*-mingw32ce*): Add case.
19660 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
19661 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
19662 [__MINGW32CE__] (strerror): New function.
19663 [__MINGW32CE__] (errno): Define to GetLastError.
19664 [__MINGW32CE__] (COUNTOF): New macro.
19665 (remote_open): Remove extra close call.
19666 * mem-break.c (delete_breakpoint_at): New function.
19667 * mem-break.h (delete_breakpoint_at): Declare.
19668 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
19669 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
19670 [USE_WIN32API] (read, write): Add char* casts.
19671 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
19672 * server.h: Include wincecompat.h on Windows CE.
19673 [HAVE_ERRNO_H]: Check.
19674 (perror): Declare if not declared.
19675 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
19676 (perror_with_name): Remove errno declaration.
19677 * wincecompat.h: New.
19678 * wincecompat.c: New.
19679 * win32-low.h: New.
19680 * win32-arm-low.c: New.
19681 * win32-i386-low.c: New.
19682 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
19683 (OUTMSG2): Make it safe.
19684 (_T): New macro.
19685 (COUNTOF): New macro.
19686 (NUM_REGS): Get it from the low target.
19687 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
19688 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
19689 (thread_rec): Let low target handle debug registers.
19690 (child_add_thread): Likewise.
19691 (child_init_thread_list): Likewise.
19692 (continue_one_thread): Likewise.
19693 (regptr): New.
19694 (do_child_fetch_inferior_registers): Move to ...
19695 * win32-i386-low.c: ... here, and rename to ...
19696 (do_fetch_inferior_registers): ... this.
889bf7c5 19697 * win32-low.c (child_fetch_inferior_registers):
68070c10
PA
19698 Go through the low target.
19699 (do_child_store_inferior_registers): Use regptr.
19700 (strwinerror): New function.
19701 (win32_create_inferior): Handle Windows CE.
19702 Use strwinerror instead of strerror on Windows error
19703 codes. Add program to the error output.
19704 Don't close the main thread handle on Windows CE.
19705 (win32_attach): Use coredll.dll on Windows CE.
19706 (win32_kill): Close current process and current
19707 thread handles.
19708 (win32_detach): Use coredll.dll on Windows CE.
19709 (win32_resume): Let low target handle debug registers, and
19710 step request.
19711 (handle_exception): Add/Remove initial breakpoint. Avoid
19712 non-existant WSTOPSIG on Windows CE.
19713 (win32_read_inferior_memory): Cast to remove warning.
19714 (win32_arch_string): Go through the low target.
19715 (initialize_low): Call set_breakpoint_data with the low
19716 target's breakpoint.
19717 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
19718 FOP_REGNUM, mappings): Move to ...
19719 * win32-i386-low.c: ... here.
19720 * win32-low.c (win32_thread_info): Move to ...
19721 * win32-low.h: ... here.
19722 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
19723 win32-arm-low.c and wincecompat.c.
19724 (all:): Add $EXEEXT.
19725 (install-only:): Likewise.
19726 (gdbserver:): Likewise.
19727 (gdbreplay:): Likewise.
19728 * config.in: Regenerate.
19729 * configure: Regenerate.
19730
41093d81
PA
197312007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
19732
19733 * win32-low.c: Rename typedef thread_info to
19734 win32_thread_info throughout.
19735
544afa54
PA
197362007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
19737
19738 * win32-i386-low.c: Rename to ...
19739 * win32-low.c: ... this.
19740 * configure.srv: Replace win32-i386-low.o with win32-low.o.
19741 * Makefile.in: Likewise.
19742
bce7165d
PA
197432007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
19744
19745 * remote-utils.c (monitor_output): Constify msg parameter.
19746 * server.h (monitor_output): Likewise.
19747 * win32-i386-low.c (handle_output_debug_string): New.
19748 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
19749 handle_output_debug_string.
19750 (get_child_debug_event): Likewise.
19751
506c7aa0
DJ
197522007-03-27 Mat Hostetter <mat@lcs.mit.edu>
19753
19754 * server.c (main): Correct strtoul check.
19755
42c81e2a
DJ
197562007-03-27 Jon Ringle <jon@ringle.org>
19757
19758 * linux-low.c: Check __ARCH_HAS_MMU__ also.
19759
9453113a
DJ
197602007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
19761
19762 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
19763
64a69107
DJ
197642007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
19765
19766 * terminal.h: Check HAVE_SGTTY_H.
19767
197682007-02-27 Mat Hostetter <mat@lcs.mit.edu>
6f8486da
DJ
19769
19770 * remote-utils.c (remote_open): Print out the assigned port number.
19771
c74d0ad8
DJ
197722007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
19773
19774 * remote-utils.c (monitor_output): New function.
19775 * server.c (debug_threads): Define here.
19776 (monitor_show_help): New function.
19777 (handle_query): Handle qRcmd.
19778 (main): Do not handle 'd' packet.
19779 * server.h (debug_threads, remote_debug, monitor_output): Declare.
19780 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
19781 of debug_threads.
19782
de7c3b4a
PA
197832007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
19784
19785 * Makefile.in (EXEEXT): New.
19786 (clean): Use $(EXEEXT).
19787
ef57601b
PA
197882007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
19789
19790 * target.h (target_ops): Rename send_signal to request_interrupt,
19791 and remove enum target_signal parameter.
19792 * linux-low.c (linux_request_interrupt): Rename from
19793 linux_send_signal, and always send SIGINT.
19794 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
19795 and always send SIGINT.
19796 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
19797 of send_signal.
19798 (input_interrupt): Likewise.
19799
820f2bda
PA
198002007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
19801
19802 * server.c (get_features_xml): Check if target implemented
19803 arch_string.
19804 * win32-i386-low.c (win32_arch_string): New.
19805 (win32_target_ops): Add win32_arch_string as arch_string member.
19806
ab39bf24
UW
198072007-02-22 Markus Deuling <deuling@de.ibm.com>
19808
19809 * spu-low.c (spu_arch_string): New.
19810 (spu_target_ops): Add spu_arch_string.
19811
61ff6e04
DJ
198122007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
19813
19814 * remote-utils.c: Remove HAVE_TERMINAL_H check.
19815 * configure.ac: Do not check for terminal.h.
19816 * configure, config.in: Regenerated.
19817
fb1e4ffc
DJ
198182007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
19819
19820 * Makefile.in (OBS): Add $(XML_BUILTIN).
19821 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
19822 (clean): Update.
19823 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
19824 (arm-with-iwmmxt.c): New.
19825 * config.in, configure: Regenerate.
19826 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
19827 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
19828 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
19829 (arm*-*-linux*): Add iWMMXt and regset support.
19830 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
19831 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
19832 (arm_store_wmmxregset, target_regsets): New.
19833 * server.c (get_features_xml): Take annex argument. Check builtin
19834 XML documents.
19835 (handle_query): Handle multiple annexes.
19836
0f48aa01
DJ
198372007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
19838
19839 * remote-utils.c [USE_WIN32API] (read, write): Define.
19840 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
19841 write.
19842
23181151
DJ
198432007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
19844
19845 * linux-i386-low.c (the_low_target): Set arch_string.
19846 * linux-x86-64-low.c (the_low_target): Likewise.
19847 * linux-low.c (linux_arch_string): New.
19848 (linux_target_ops): Add it.
19849 * linux-low.h (struct linux_target_ops): Add arch_string.
19850 * server.c (write_qxfer_response): Use const void * for DATA.
19851 (get_features_xml): New.
19852 (handle_query): Handle qXfer:features:read. Report it for qSupported.
19853 * target.h (struct target_ops): Add arch_string method.
19854
9d606399
DJ
198552007-01-03 Denis Pilat <denis.pilat@st.com>
19856 Daniel Jacobowitz <dan@codesourcery.com>
19857
19858 * linux-low.c (linux_kill): Handle being called with no threads.
19859 * win32-i386-low.c (win32_kill): Likewise.
19860 (get_child_debug_event): Clear current_process_handle.
19861
198622006-12-30 Denis PILAT <denis.pilat@st.com>
8264bb58
DJ
19863 Daniel Jacobowitz <dan@codesourcery.com>
19864
19865 * remote-utils.c (remote_open): Check the type of specified
19866 serial port devices before opening them.
19867 * server.c (main): Kill the inferior if an error occurs during
19868 the first remote_open.
19869
a5e13d24
DJ
198702006-12-05 Markus Deuling <deuling@de.ibm.com>
19871
19872 * README: Update supported targets.
19873
186947f7
DJ
198742006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
19875
19876 * Makefile.in (clean): Remove reg-mips64.c.
19877 (reg-mips64.c, reg-mips64.o): New rules.
19878 * configure.srv: Handle mips64. Include regset support for mips.
19879 * linux-mips-low.c (union mips_register): New.
19880 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
19881 (mips_breakpoint, mips_breakpoint_at): Use int.
19882 (mips_collect_register, mips_supply_register)
19883 (mips_collect_register_32bit, mips_supply_register_32bit)
19884 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
19885 (mips_store_fpregset, target_regsets): New.
19886 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
19887
a13e2c95
UW
198882006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
19889
19890 * configure.srv: Add target "spu*-*-*".
19891 * Makefile.in (clean): Remove reg-spu.c.
19892 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
19893 * spu-low.c: New file.
19894
cb7283db
DJ
198952006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
19896
19897 * configure.ac: Correct td_thr_tls_get_addr test.
19898 * configure: Regenerated.
19899
89be2091
DJ
199002006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
19901
19902 * linux-low.c (linux_wait_for_event): Reformat. Use the
19903 pass_signals array.
19904 * remote-utils.c (decode_address_to_semicolon): New.
19905 * server.c (pass_signals, handle_general_set): New.
19906 (handle_query): Mention QPassSignals for qSupported.
19907 (main): Call handle_general_set.
19908 * server.h (pass_signals, decode_address_to_semicolon): New.
19909
000ef4f0
DJ
199102006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
19911
19912 * server.c (handle_query): Correct error handling for read_auxv.
19913
b7149293
UW
199142005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
19915
19916 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
19917 and srv_linux_thread_db to yes.
19918 * linux-s390-low.c (s390_fill_gregset): New function.
19919 (target_regsets): Define data structure.
19920
dae5f5cf
DJ
199212006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
19922
19923 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
19924 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
19925 * config.in, configure: Regenerated.
19926 * inferiors.c (gdb_id_to_thread): New function.
19927 (gdb_id_to_thread_id): Use it.
19928 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
19929 * linux-low.h (struct process_info): Add th member.
19930 (thread_db_get_tls_address): New prototype.
19931 * remote-utils.c (decode_address): Make non-static.
19932 * server.c (handle_query): Handle qGetTLSAddr.
19933 * server.h (gdb_id_to_thread, decode_address): New prototypes.
19934 * target.h (struct target_ops): Add get_tls_address.
19935 * thread-db.c (maybe_attach_thread): Save the thread handle.
19936 (thread_db_get_tls_address): New.
19937
32ca6d61
DJ
199382006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
19939
19940 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
19941 (linux_resume_one_process): Take a siginfo_t *. Update all
19942 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
19943 (struct pending_signals): Add a siginfo_t.
19944 (linux_wait_for_process): Always set last_status.
19945 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
19946 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
19947 * linux-low.h (struct process_info): Add last_status.
19948
5ffff7c1
DJ
199492006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
19950
19951 * remote-utils.c (try_rle): New function.
19952 (putpkt_binary): Use it.
19953
8695c747
DJ
199542006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
19955
19956 * Makefile.in (clean): Clean reg-x86-64-linux.c.
19957 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
19958 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
19959 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
19960 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
19961 point registers.
19962
290fadea
RS
199632006-08-08 Richard Sandiford <richard@codesourcery.com>
19964
19965 * server.c (terminal_fd): New variable.
19966 (old_foreground_pgrp): Likewise.
19967 (restore_old_foreground_pgrp): New function.
19968 (start_inferior): Record the terminal file descriptor in terminal_fd
19969 and its original foreground group in old_foreground_pgrp. Register
19970 restore_old_foreground_pgrp with atexit().
19971
9f2e1e63
DJ
199722006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
19973
19974 * server.c (handle_query): Correct qPart to qXfer.
19975
b80864fb
DJ
199762006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
19977
19978 * configure.ac: Check for more headers which are missing on
19979 Windows. Automatically supply -lwsock32 and USE_WIN32API.
19980 * configure.srv: Add Cygwin and mingw32.
19981 * remote-utils.c: Don't include headers unconditionally which
19982 are missing on mingw32. Include <winsock.h> for mingw32.
19983 (remote_open): Adjust for mingw32 support. Flush
19984 standard error after writing to it.
19985 (remote_close, putpkt_binary, input_interrupt, block_async_io)
19986 (unblock_async_io, enable_async_io, disable_async_io)
19987 (readchar, getpkt): Update for Winsock support.
19988 (prepare_resume_reply): Expect a protocol signal number.
19989 * server.c: Disable <sys/wait.h> on mingw32.
19990 (start_inferior): Adjust for mingw32 support. Flush
19991 standard error after writing to it.
19992 (attach_inferior): Likewise. Use protocol signal
19993 numbers.
19994 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
19995 and names.
19996 * win32-i386-low.c: New file.
19997 * Makefile.in (XM_CLIBS): Set.
19998 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
19999 (win32-i386-low.o): New dependency rule.
20000 * linux-low.c (linux_wait): Use target signal numbers.
20001 * target.h (struct target_ops): Doc fix.
20002 * server.h (target_signal_to_name): New prototype.
20003 * gdbreplay.c: Don't include headers unconditionally which
20004 are missing on mingw32. Include <winsock.h> for mingw32.
20005 (remote_close, remote_open): Adjust for Winsock support.
20006 * configure, config.in: Regenerated.
20007
0876f84a
DJ
200082006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20009
20010 * server.c (decode_xfer_read, write_qxfer_response): New.
20011 (handle_query): Take a packet length argument. Handle
20012 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
20013 the qSupported response.
20014 (main): Update call to handle_query.
20015
01f9e8fa
DJ
200162006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
20017
20018 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
20019 (putpkt_binary): Renamed from putpkt and adjusted for binary
20020 data.
20021 (putpkt): New wrapper for putpkt_binary.
20022 (readchar): Don't mask off the high bit.
20023 (decode_X_packet): New function.
20024 * server.c (main): Call putpkt_binary if a handler sets the packet
20025 length. Save the length of the incoming packet. Handle 'X'.
20026 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
20027
be2a5f71
DJ
200282006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
20029
20030 * server.c (handle_query): Handle qSupported.
20031
ea025f5f
DJ
200322006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
20033
20034 * remote-utils.c (all_symbols_looked_up): New variable.
20035 (look_up_one_symbol): Check it.
20036 * server.h (look_up_one_symbol): New declaration.
20037 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
20038
9308fc88
DJ
200392006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
20040
20041 * Makefile.in (linux-arm-low.o): Update dependencies.
66f338c7 20042 * linux-arm-low.c: Include "gdb_proc_service.h".
9308fc88
DJ
20043 (PTRACE_GET_THREAD_AREA): Define.
20044 (ps_get_thread_area): New function.
20045
52fb6437
NS
200462006-05-09 Nathan Sidwell <nathan@codesourcery.com>
20047
20048 * configure.srv (m68k*-*-uclinux*): New target.
20049 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
20050 (linux_resume_one_process): Remove extraneous cast.
20051 (linux_read_offsets): New.
20052 (linux_target_op): Add linux_read_offsets on mmuless systems.
20053 * server.c (handle_query): Add qOffsets logic.
20054 * target.h (struct target_ops): Add read_offsets.
20055
21b0f40c
DJ
200562006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
20057
20058 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
20059 (PTRACE_GET_THREAD_AREA): Define.
20060 (ps_get_thread_area): New function.
20061 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
20062 (linux-x86-64-low.o): Update.
20063
0050a760
DJ
200642006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
20065
20066 * configure.ac: Remove checks for prfpregset_t.
20067 * gdb_proc_service.h: New file.
20068 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
20069 new "gdb_proc_service.h".
20070 * proc-service.c: Likewise.
20071 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
20072 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
20073 * Makefile.in (gdb_proc_service_h): Updated.
20074 * configure, config.in: Regenerated.
20075
b92a518e
DJ
200762006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
20077
20078 * remote-utils.c (prepare_resume_reply): Move declaration
20079 of gdb_id_from_wait to the top of the block.
20080
545587ee
DJ
200812006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
20082
20083 * linux-low.c (regsets_store_inferior_registers): Read the regset
20084 from the target before filling it.
20085
9db87ebd
DJ
200862006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
20087
20088 * server.c (attach_inferior): Return SIGTRAP for a successful
20089 attach.
20090
dd24457d
DJ
200912006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
20092
20093 * Makefile.in (OBS): Add version.o.
20094 (STAGESTUFF): Delete.
20095 (version.o): Add dependencies.
20096 (version.c): Replace rule.
20097 (clean): Remove version.c.
20098 * server.c (gdbserver_version): New.
20099 (gdbserver_usage): Use printf.
20100 (main): Handle --version and --help.
20101 * server.h (version, host_name): Add declarations.
20102
6f0f660e
EZ
201032005-12-23 Eli Zaretskii <eliz@gnu.org>
20104
889bf7c5
PA
20105 * linux-arm-low.c:
20106 * linux-arm-low.c:
20107 * inferiors.c:
20108 * i387-fp.h:
20109 * i387-fp.c:
20110 * gdbreplay.c:
20111 * regcache.c:
20112 * proc-service.c:
20113 * mem-break.h:
20114 * mem-break.c:
20115 * linux-x86-64-low.c:
20116 * linux-sh-low.c:
20117 * linux-s390-low.c:
20118 * linux-ppc64-low.c:
20119 * linux-ppc-low.c:
20120 * linux-mips-low.c:
20121 * linux-m68k-low.c:
20122 * linux-m32r-low.c:
20123 * linux-low.h:
20124 * linux-low.c:
20125 * linux-ia64-low.c:
20126 * linux-i386-low.c:
20127 * linux-crisv32-low.c:
20128 * thread-db.c:
20129 * terminal.h:
20130 * target.h:
20131 * target.c:
20132 * server.h:
20133 * server.c:
20134 * remote-utils.c:
20135 * regcache.h:
20136 * utils.c:
20137 * Makefile.in:
20138 * configure.ac:
6f0f660e
EZ
20139 * gdbserver.1: Add (C) after Copyright. Update the FSF
20140 address.
20141
9d1fb177
DJ
201422005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
20143
20144 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
20145 (arm_breakpoint_at): Recognize both breakpoints.
20146 (the_low_target): Use the correct breakpoint instruction.
20147
011a70c2
DJ
201482005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
20149
20150 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
20151 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
20152 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
20153 (the_low_target): Update.
20154
7fb85e41
AS
201552005-10-25 Andreas Schwab <schwab@suse.de>
20156
20157 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
20158
20159 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
20160 (ia64_num_regs): Reduce to 462.
20161
3db0444b
DJ
201622005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
20163
20164 * acinclude.m4: Correct quoting.
20165 * aclocal.m4: Regenerated.
20166
20167 Suggested by SZOKOVACS Robert <szo@ies.hu>:
20168 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
20169 (thread_db_init): Call thread_db_err_str.
20170 * configure.ac: Check for TD_VERSION.
20171 * config.in, configure: Regenerated.
20172
bee0189a
DJ
201732005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20174
20175 * server.h (error, fatal, warning): Add ATTR_FORMAT.
20176
e9d25b98
DJ
201772005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
20178
20179 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
20180 is not available. Define HAVE_PTRACE_GETREGS if it is.
20181 * config.in, configure: Regenerated.
20182 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
20183 * linux-i386-low.c, linux-m68k-low.c: Update to use
20184 HAVE_PTRACE_GETREGS.
20185 * linux-low.c (regsets_fetch_inferior_registers)
20186 (regsets_store_inferior_registers): Only return 0 if we processed
20187 GENERAL_REGS.
20188 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
20189 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
20190
a06660f7
DJ
201912005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
20192
20193 * inferiors.c (struct thread_info): Add gdb_id.
20194 (add_thread): Add gdb_id argument.
20195 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
20196 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
20197 calls to add_thread.
20198 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
20199 * server.c (handle_query): Use thread_to_gdb_id.
20200 (handle_v_cont, main): Use gdb_id_to_thread_id.
20201 * server.h (add_thread): Update prototype.
20202 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
20203 prototypes.
20204
5a1f5858
DJ
202052005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
20206
20207 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
20208 left-padded registers.
20209 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
20210 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
20211
e122f1f5
SE
202122005-07-01 Steve Ellcey <sje@cup.hp.com>
20213
20214 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
20215 * configure: Regenerate.
20216 * config.in: Regenerate.
20217 * server.h (NEED_DECLARATION_STRERROR):
20218 Replace with !HAVE_DECL_STRERROR.
20219
d592fa2f
DJ
202202005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
20221
20222 * linux-low.c (linux_wait, linux_send_signal): Don't test
20223 an unsigned long variable for > 0 if it could be MAX_ULONG.
20224 * server.c (myresume): Likewise.
20225 * target.c (set_desired_inferior): Likewise.
20226
ccbd4912
MK
202272005-06-13 Mark Kettenis <kettenis@gnu.org>
20228
20229 * configure.ac: Simplify and improve check for socklen_t.
20230 * configure, config.in: Regenerate.
20231
f450004a
DJ
202322005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
20233
20234 * acconfig.h: Remove.
20235 * configure.ac: Add a test for socklen_t. Use three-argument
20236 AC_DEFINE throughout.
20237 * config.in: Regenerated using autoheader 2.59.
20238 * configure: Regenerated.
20239
20240 * gdbreplay.c (socklen_t): Provide a default.
20241 (remote_open): Use socklen_t.
20242 * remote-utils.c (socklen_t): Provide a default.
20243 (remote_open): Use socklen_t.
20244 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
20245 unsigned char.
20246
20247 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
20248 char for buffers.
20249 * linux-low.c (linux_read_memory, linux_write_memory)
20250 (linux_read_auxv): Likewise.
20251 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
20252 (check_mem_write): Likewise.
20253 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
20254 Likewise.
20255 * regcache.c (struct inferior_rgcache_data, registers_to_string)
20256 (registers_from_string, register_data): Likewise.
20257 * server.c (handle_query, main): Likewise.
20258 * server.h (convert_ascii_to_int, convert_int_to_ascii)
20259 (decode_M_packet): Likewise.
20260 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
20261 * target.h (struct target_ops): Update read_memory, write_memory,
20262 and read_auxv.
20263 (read_inferior_memory, write_inferior_memory): Update.
20264 * linux-low.h (struct linux_target_ops): Change type of breakpoint
20265 to unsigned char *.
20266 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
20267 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
20268 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
20269 linux-s390-low.c, linux-sh-low.c: Update for changes in
20270 read_inferior_memory and the_low_target->breakpoint.
20271
eee84df1
DJ
202722005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
20273
20274 * Makefile.in (SFILES): Add linux-ppc64-low.c.
20275 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
20276 * configure.srv: Add powerpc64-*-linux*.
20277 * linux-ppc64-low.c: New file.
20278
45b134e5
OF
202792005-05-23 Orjan Friberg <orjanf@axis.com>
20280
20281 * linux-cris-low.c: New file with support for CRIS.
20282 * linux-crisv32-low.c: Ditto for CRISv32.
20283 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
20284 (clean): Add reg-cris.c and reg-crisv32.c.
889bf7c5 20285 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
45b134e5
OF
20286 reg-crisv32.o, and reg-crisv32.c to make rules.
20287 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
20288 recognized targets.
20289
48d93c75
UW
202902005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
20291
20292 * linux-low.c (fetch_register): Ensure buffer size is a multiple
20293 of sizeof (PTRACE_XFER_TYPE).
20294 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
20295
e013ee27
OF
202962005-05-12 Orjan Friberg <orjanf@axis.com>
20297
889bf7c5 20298 * target.h (struct target_ops): Add insert_watchpoint,
e013ee27
OF
20299 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
20300 pointers for hardware watchpoint support.
20301 * linux-low.h (struct linux_target_ops): Ditto.
20302 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
20303 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
20304 to linux_target_ops.
20305 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
20306 reply packet.
20307 * server.c (main): Recognize 'Z' and 'z' packets.
20308
b0ded00b
UW
203092005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
20310
20311 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
20312 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
20313 (the_low_target): Add new members.
20314
8643e2ad
DJ
203152005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
20316
20317 * proc-service.c (ps_lgetregs): Search all_processes instead of
20318 all_threads.
20319
fc620387
DJ
203202005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
20321
20322 * server.c (start_inferior): Change return type to int.
20323 (attach_inferior): Change sigptr to int *.
20324 (handle_v_cont, handle_v_requests): Change signal to int *.
20325 (main): Change signal to int.
20326
203272005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
7cfbc4a0
KI
20328
20329 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
20330 * configure.srv: Add m32r*-*-linux*.
20331 * linux-m32r-low.c: New file.
20332
e0e76420
DJ
203332005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
20334
20335 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
20336
a1928bad
DJ
203372005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
20338
20339 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
20340 Take unsigned long arguments for PIDs.
20341 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
20342 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
20343 (wait_for_sigstop, linux_resume_one_process)
20344 (regsets_fetch_inferior_registers, linux_send_signal)
20345 (linux_read_auxv): Likewise. Update the types of variables holding
20346 PIDs. Update format string specifiers.
20347 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
20348 * remote-utils.c (prepare_resume_reply): Likewise.
20349 * server.c (cont_thread, general_thread, step_thread)
20350 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
20351 unsigned long.
20352 (handle_query): Update format specifiers.
20353 (handle_v_cont, main): Use strtoul for thread IDs.
20354 * server.h (struct inferior_list_entry): Use unsigned long for ID.
20355 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
20356 (general_thread, step_thread, thread_from_wait)
20357 (old_thread_from_wait): Update.
20358 * target.h (struct thread_resume): Use unsigned long for THREAD.
20359 (struct target_ops): Use unsigned long for arguments to attach and
20360 thread_alive.
20361
dcdb98d2
DJ
203622005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
20363
20364 * acinclude.m4: Include bfd/bfd.m4 directly.
20365 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
20366 <agriffis@toolchain.org>.
20367 * aclocal.m4, configure: Regenerated.
20368
bec39cab
AC
203692005-01-07 Andrew Cagney <cagney@gnu.org>
20370
20371 * configure.ac: Rename configure.in, require autoconf 2.59.
20372 * configure: Re-generate.
20373
434c4c77
DJ
203742004-12-08 Daniel Jacobowitz <dan@debian.org>
20375
20376 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
20377 LIBS when finished.
20378 * aclocal.m4: Regenerated.
20379 * configure: Regenerated.
20380
db1d3e1b
AS
203812004-11-21 Andreas Schwab <schwab@suse.de>
20382
20383 * linux-m68k-low.c (m68k_num_gregs): Define.
20384 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
20385 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
20386 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
20387 (m68k_breakpoint_at): New. Add to the_low_target.
20388
20389 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
20390 srv_linux_thread_db to yes.
20391
43360365
JB
203922004-10-20 Joel Brobecker <brobecker@gnat.com>
20393
20394 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
20395 (ARCH_SET_FS): Likewise.
20396 (ARCH_GET_FS): Likewise.
20397 (ARCH_GET_GS): Likewise.
20398
fd500816
DJ
203992004-10-16 Daniel Jacobowitz <dan@debian.org>
20400
20401 * linux-i386-low.c (ps_get_thread_area): New.
20402 * linux-x86-64-low.c (ps_get_thread_area): New.
20403 * linux-low.c: Include <sys/syscall.h>.
20404 (linux_kill_one_process): Don't kill the first thread here.
20405 (linux_kill): Kill the first thread here.
20406 (kill_lwp): New function.
20407 (send_sigstop, linux_send_signal): Use it.
20408 * proc-service.c: Clean up #ifdefs.
20409 (fpregset_info): Delete.
20410 (ps_lgetregs): Update and enable implementation.
20411 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
20412 implementations.
20413 * remote-utils.c (struct sym_cache, symbol_cache): New.
20414 (input_interrupt): Print a clearer message.
20415 (async_io_enabled): New variable.
20416 (enable_async_io, disable_async_io): Use it. Update comments.
20417 (look_up_one_symbol): Use the symbol cache.
20418 * thread-db.c (thread_db_look_up_symbols): New function.
20419 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
20420
f6de3c42
DJ
204212004-10-16 Daniel Jacobowitz <dan@debian.org>
20422
20423 * configure.in: Test for -rdynamic.
20424 * configure: Regenerated.
20425 * Makefile (INTERNAL_LDFLAGS): New.
20426 (gdbserver, gdbreplay): Use it.
20427
2c0fc042
AC
204282004-09-02 Andrew Cagney <cagney@gnu.org>
20429
20430 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
20431
075b3282
DJ
204322004-03-23 Daniel Jacobowitz <drow@mvista.com>
20433
20434 * linux-low.c (linux_wait): Clear all_processes list also.
20435
fa6a77dc
DJ
204362004-03-12 Daniel Jacobowitz <drow@mvista.com>
20437
20438 * linux-low.c: Include <errno.h>. Remove extern declaration of
20439 errno.
20440
6d782a97
DJ
204412004-03-12 Daniel Jacobowitz <drow@mvista.com>
20442
20443 * gdbreplay.c, server.h, utils.c: Update copyright years.
20444
3a7fb99b
DJ
204452004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
20446
20447 * server.c (main): Print child status or termination signal from
20448 variable 'signal', not 'sig'.
20449
c3e735a6
DJ
204502004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
20451
20452 * linux-low.c (linux_read_memory): Change return type to
20453 int. Check for and return error from ptrace().
20454 * target.c (read_inferior_memory): Change return type to int. Pass
20455 back return status from the_target->read_memory().
20456 * target.h (struct target_ops): Adapt *read_memory() prototype.
20457 Update comment.
20458 (read_inferior_memory): Adapt prototype.
20459 * server.c (main): Return an error packet if
20460 read_inferior_memory() returns an error.
20461
a59d1c82
DJ
204622004-03-04 Daniel Jacobowitz <drow@mvista.com>
20463
20464 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
20465 Unify with other clean targets.
20466
dc3f8883
DJ
204672004-02-29 Daniel Jacobowitz <drow@mvista.com>
20468
20469 * server.c (handle_v_cont): Call set_desired_inferior.
20470
89a208da
DJ
204712004-02-29 Daniel Jacobowitz <drow@mvista.com>
20472
20473 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
20474
62ea82f5
DJ
204752004-02-29 Daniel Jacobowitz <drow@mvista.com>
20476
20477 * linux-low.c (linux_wait): Unblock async I/O.
20478 (linux_resume): Block and enable async I/O.
20479 * remote-utils.c (block_async_io, unblock_async_io): New functions.
20480 * server.h (block_async_io, unblock_async_io): Add prototypes.
20481
6910d122
DJ
204822004-02-29 Daniel Jacobowitz <drow@mvista.com>
20483
20484 * remote-utils.c (remote_open): Print a status notice after
20485 opening a TCP port.
20486 * server.c (attach_inferior): Print a status notice after
20487 attaching.
20488
204892004-02-29 Daniel Jacobowitz <drow@mvista.com>
d677d77d
DJ
20490
20491 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
20492
c89dc5d4
DJ
204932004-02-26 Daniel Jacobowitz <drow@mvista.com>
20494
20495 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
20496 error packet.
20497 * server.c, target.h: Update copyright years.
20498
4b8dad4a
RM
204992004-02-25 Roland McGrath <roland@redhat.com>
20500
20501 * target.h (struct target_ops): New member `read_auxv'.
20502 * server.c (handle_query): Handle qPart:auxv:read: query using that.
20503 * linux-low.c (linux_read_auxv): New function.
20504 (linux_target_ops): Initialize `read_auxv' member to that.
20505
d7446758
JB
205062004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20507
20508 Committed by Jim Blandy <jimb@redhat.com>.
20509
20510 * linux-s390-low.c (s390_num_regs): Update.
4b8dad4a 20511 (s390_regmap): Remove control registers. Use __s390x__ predefine
d7446758
JB
20512 instead of GPR_SIZE to distiguish s390 and s390x targets.
20513
5544ad89
DJ
205142004-01-31 Daniel Jacobowitz <drow@mvista.com>
20515
20516 * linux-low.c: Update copyright year.
20517 (check_removed_breakpoint): Clear pending_is_breakpoint.
20518 (linux_set_resume_request, linux_queue_one_thread)
20519 (resume_status_pending_p): New functions.
20520 (linux_continue_one_thread): Use process->resume.
20521 (linux_resume): Only resume threads if there are no pending events.
20522 * linux-low.h (struct process_info): Add resume request
20523 pointer.
20524
2a68b70e
DJ
205252004-01-30 Daniel Jacobowitz <drow@mvista.com>
20526
20527 * regcache.c (new_register_cache): Clear the allocated register
20528 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
20529
64386c31
DJ
205302003-10-13 Daniel Jacobowitz <drow@mvista.com>
20531
20532 * linux-low.c (linux_resume): Take a struct thread_resume *
20533 argument.
20534 (linux_wait): Update call.
20535 (resume_ptr): New static variable.
20536 (linux_continue_one_thread): Renamed from
20537 linux_continue_one_process. Use resume_ptr.
20538 (linux_resume): Use linux_continue_one_thread.
20539 * server.c (handle_v_cont, handle_v_requests): New functions.
20540 (myresume): New function.
20541 (main): Handle 'v' case.
20542 * target.h (struct thread_resume): New type.
20543 (struct target_ops): Change argument of "resume" to struct
20544 thread_resume *.
20545 (myresume): Delete macro.
20546
c938e9b0
L
205472003-08-08 H.J. Lu <hongjiu.lu@intel.com>
20548
20549 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
20550 (uninstall): Support DESTDIR.
20551
7f313d07
BC
20552Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
20553
20554 * configure.srv: Add xscale*linux copy of arm*linux entry.
20555
3b2fc2ea
DJ
205562003-07-24 Daniel Jacobowitz <drow@mvista.com>
20557
20558 * linux-arm-low.c (arm_reinsert_addr): New function.
20559 (the_low_target): Add arm_reinsert_addr.
20560
1c0a559e
MK
205612003-07-08 Mark Kettenis <kettenis@gnu.org>
20562
20563 * mem-break.c: Remove whitespace at end of file.
20564
43d5792c
DJ
205652003-06-28 Daniel Jacobowitz <drow@mvista.com>
20566
20567 * configure.in: Check whether we need to prototype strerror.
20568 * server.h: Optionally prototype strerror.
20569 * gdbreplay.c (perror_with_name): Use strerror.
20570 * linux-low.c (linux_attach_lwp): Use strerror.
20571 * utils.c (perror_with_name): Use strerror.
20572 * config.in, configure: Regenerated.
20573
c8a86edf
DJ
205742003-06-28 Daniel Jacobowitz <drow@mvista.com>
20575
20576 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
20577 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
20578
73d37363
DJ
205792003-06-20 Daniel Jacobowitz <drow@mvista.com>
20580
20581 * Makefile.in (SFILES): Update.
20582 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
20583 low-sun3.c: Remove files.
20584
6ad8ae5c
DJ
205852003-06-17 Daniel Jacobowitz <drow@mvista.com>
20586
20587 * linux-low.c: Move comment to linux_thread_alive where it belonged.
20588 (linux_detach_one_process, linux_detach): New functions.
20589 (linux_target_ops): Add linux_detach.
20590 * server.c (main): Handle 'D' packet.
20591 * target.h (struct target_ops): Add "detach" member.
20592 (detach_inferior): Define.
20593
1581182a
MK
205942003-06-13 Mark Kettenis <kettenis@gnu.org>
20595
20596 From Kelley Cook <kelleycook@wideopenwest.com>:
20597 * configure.srv: Accept i[34567]86 variants.
20598
e5379b03
DJ
205992003-06-05 Daniel Jacobowitz <drow@mvista.com>
20600
20601 * linux-low.c (linux_wait_for_event): Correct comment typos.
20602 (linux_resume_one_process): Call check_removed_breakpoint.
20603 (linux_send_signal): New function.
20604 (linux_target_ops): Add linux_send_signal.
20605 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
20606 of kill.
20607 * target.h (struct target_ops): Add send_signal.
20608
2ff29de4
JB
206092003-05-29 Jim Blandy <jimb@redhat.com>
20610
20611 * linux-low.c (usr_store_inferior_registers): Transfer buf in
20612 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
20613 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
20614 away part of the register's value.
20615
254787d4
DJ
206162003-03-26 Daniel Jacobowitz <drow@mvista.com>
20617
20618 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
20619 (linux_wait_for_event, linux_init_signals): Likewise.
20620
94e10508
DJ
206212003-03-17 Daniel Jacobowitz <drow@mvista.com>
20622
20623 * configure.in: Check for stdlib.h.
20624 * configure: Regenerated.
20625 * config.in: Regenerated.
20626
4c0711e0
DJ
206272003-01-04 Andreas Schwab <schwab@suse.de>
20628
20629 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
20630
ef66e766
AC
206312003-01-02 Andrew Cagney <ac131313@redhat.com>
20632
20633 * Makefile.in: Remove obsolete code.
20634
a1358604
DJ
206352002-11-20 Daniel Jacobowitz <drow@mvista.com>
20636
20637 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
20638 defined(PT_FPR0_HI).
20639
23ce3b1c
DJ
206402002-11-17 Stuart Hughes <seh@zee2.com>
20641
20642 * linux-arm-low.c (arm_num_regs): Increase.
20643 (arm_regmap): Include status register.
20644
206452002-11-17 Daniel Jacobowitz <drow@mvista.com>
20646
20647 * linux-low.c (register_addr): Remove incorrect -1 check.
20648
a9fa9f7d
DJ
206492002-08-29 Daniel Jacobowitz <drow@mvista.com>
20650
20651 * linux-low.c (linux_create_inferior): Call setpgid. Return
20652 the new PID.
20653 (unstopped_p, linux_signal_pid): Remove.
20654 (linux_target_ops): Remove linux_signal_pid.
20655 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
20656 global instead of target method.
20657 * target.h (struct target_ops): Remove signal_pid. Update comment
20658 for create_inferior.
20659 * server.c (signal_pid): New variable.
20660 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
4b8dad4a 20661 gdbserver. Set the child to be the foreground process group.
a9fa9f7d
DJ
20662 (attach_inferior): Set signal_pid.
20663
17574093
DJ
206642002-08-23 Daniel Jacobowitz <drow@mvista.com>
20665
20666 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
20667
206682002-08-20 Jim Blandy <jimb@redhat.com>
20669
20670 * Makefile.in (LDFLAGS): Allow the configure script to establish a
20671 default for this.
20672
206732002-08-01 Andrew Cagney <cagney@redhat.com>
20674
20675 * Makefile.in: Make chill references obsolete.
20676
206772002-07-24 Kevin Buettner <kevinb@redhat.com>
20678
20679 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
20680 * configure: Regenerate.
20681 * config.in: Regenerate.
20682
206832002-07-09 David O'Brien <obrien@FreeBSD.org>
20684
20685 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
20686 (perror_with_name, remote_close, remote_open, expect, play): Static.
20687
206882002-07-04 Michal Ludvig <mludvig@suse.cz>
20689
4b8dad4a 20690 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
17574093
DJ
20691 byte offsets instead of an array of indexes.
20692 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
20693
206942002-06-13 Daniel Jacobowitz <drow@mvista.com>
20695
20696 * regcache.c: Add comment.
20697
206982002-06-11 Daniel Jacobowitz <drow@mvista.com>
20699
20700 * thread-db.c: New file.
20701 * proc-service.c: New file.
20702 * acinclude.m4: New file.
20703 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
20704 proc-service.o, and thread-db.o.
20705 (linux-low.o): Add USE_THREAD_DB.
20706 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
20707 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
20708 * aclocal.m4: Regenerated.
20709 * config.in: Regenerated.
20710 * configure: Regenerated.
20711 * configure.in: Check for proc_service.h, sys/procfs.h,
20712 thread_db.h, and linux/elf.h headrs.
20713 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
20714 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
20715 Check for -lthread_db and thread support.
20716 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
20717 PowerPC, and SuperH.
20718 * i387-fp.c: Constify arguments.
20719 * i387-fp.h: Likewise.
20720 * inferiors.c: (struct thread_info): Renamed from
20721 `struct inferior_info'. Remove PID member. Use generic inferior
20722 list header. All uses updated.
20723 (inferiors, signal_pid): Removed.
20724 (all_threads): New variable.
20725 (get_thread): Define.
20726 (add_inferior_to_list): New function.
20727 (for_each_inferior): New function.
20728 (change_inferior_id): New function.
20729 (add_inferior): Removed.
20730 (remove_inferior): New function.
20731 (add_thread): New function.
20732 (free_one_thread): New function.
20733 (remove_thread): New function.
20734 (clear_inferiors): Use for_each_inferior and free_one_thread.
20735 (find_inferior): New function.
20736 (find_inferior_id): New function.
20737 (inferior_target_data): Update argument type.
20738 (set_inferior_target_data): Likewise.
20739 (inferior_regcache_data): Likewise.
20740 (set_inferior_regcache_data): Likewise.
20741 * linux-low.c (linux_bp_reinsert): Remove.
20742 (all_processes, stopping_threads, using_thrads)
20743 (struct pending_signals, debug_threads, pid_of): New.
20744 (inferior_pid): Replace with macro.
20745 (struct inferior_linux_data): Remove.
20746 (get_stop_pc, add_process): New functions.
20747 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
20748 Use add_process and add_thread.
20749 (linux_attach_lwp): New function, based on old linux_attach. Use
20750 add_process and add_thread. Set stop_expected for new threads.
20751 (linux_attach): New function.
20752 (linux_kill_one_process): New function.
20753 (linux_kill): Kill all LWPs.
20754 (linux_thread_alive): Use find_inferior_id.
20755 (check_removed_breakpoints, status_pending_p): New functions.
20756 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
20757 Update. Use WNOHANG. Wait for cloned processes also. Update process
20758 struct for the found process.
20759 (linux_wait_for_event): New function.
20760 (linux_wait): Use it. Support LWPs.
20761 (send_sigstop, wait_for_sigstop, stop_all_processes)
20762 (linux_resume_one_process, linux_continue_one_process): New functions.
20763 (linux_resume): Support LWPs.
20764 (REGISTER_RAW_SIZE): Remove.
20765 (fetch_register): Use register_size instead. Call supply_register.
20766 (usr_store_inferior_registers): Likewise. Call collect_register.
20767 Fix recursive case.
20768 (regsets_fetch_inferior_registers): Improve error message.
20769 (regsets_store_inferior_registers): Add debugging.
20770 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
20771 (unstopped_p, linux_signal_pid): New functions.
20772 (linux_target_ops): Add linux_signal_pid.
20773 (linux_init_signals): New function.
20774 (initialize_low): Call it. Initialize using_threads.
20775 * regcache.c (inferior_regcache_data): Add valid
20776 flag.
20777 (get_regcache): Fetch registers lazily. Add fetch argument
20778 and update all callers.
20779 (regcache_invalidate_one, regcache_invalidate): New
20780 functions.
20781 (new_register_cache): Renamed from create_register_cache.
20782 Return the new regcache.
20783 (free_register_cache): Change argument to a void *.
20784 (registers_to_string, registers_from_string): Call get_regcache
20785 with fetch flag set.
20786 (register_data): Make static. Pass fetch flag to get_regcache.
20787 (supply_register): Call get_regcache with fetch flag clear.
20788 (collect_register): Call get_regcache with fetch flag set.
20789 (collect_register_as_string): New function.
20790 * regcache.h: Update.
20791 * remote-utils.c (putpkt): Flush after debug output and use
20792 stderr.
20793 Handle input interrupts while waiting for an ACK.
20794 (input_interrupt): Use signal_pid method.
20795 (getpkt): Flush after debug output and use stderr.
20796 (outreg): Use collect_register_as_string.
20797 (new_thread_notify, dead_thread_notify): New functions.
20798 (prepare_resume_reply): Check using_threads. Set thread_from_wait
20799 and general_thread.
20800 (look_up_one_symbol): Flush after debug output.
20801 * server.c (step_thread, server_waiting): New variables.
20802 (start_inferior): Don't use signal_pid. Update call to mywait.
20803 (attach_inferior): Update call to mywait.
20804 (handle_query): Handle qfThreadInfo and qsThreadInfo.
20805 (main): Don't fetch/store registers explicitly. Use
20806 set_desired_inferior. Support proposed ``Hs'' packet. Update
20807 calls to mywait.
20808 * server.h: Update.
20809 (struct inferior_list, struct_inferior_list_entry): New.
20810 * target.c (set_desired_inferior): New.
20811 (write_inferior_memory): Constify.
20812 (mywait): New function.
20813 * target.h: Update.
20814 (struct target_ops): New signal_pid method.
20815 (mywait): Removed macro, added prototype.
20816
20817 * linux-low.h (regset_func): Removed.
20818 (regset_fill_func, regset_store_func): New.
20819 (enum regset_type): New.
20820 (struct regset_info): Add type field. Use new operation types.
20821 (struct linux_target_ops): stop_pc renamed to get_pc.
20822 Add decr_pc_after_break and breakpoint_at.
20823 (get_process, get_thread_proess, get_process_thread)
20824 (strut process_info, all_processes, linux_attach_lwp)
20825 (thread_db_init): New.
20826
20827 * linux-arm-low.c (arm_get_pc, arm_set_pc,
20828 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
20829 (the_low_target): Add new members.
20830 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
20831 (i386_store_fpxregset): Constify.
20832 (target_regsets): Add new kind identifier.
20833 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
20834 (i386_set_pc): Add debugging.
20835 (i386_breakpoint_at): New function.
20836 (the_low_target): Add new members.
20837 * linux-mips-low.c (mips_get_pc, mips_set_pc)
20838 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
20839 (mips_breakpoint_at): New.
20840 (the_low_target): Add new members.
20841 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
20842 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
20843 (the_low_target): Add new members.
20844 * linux-sh-low.c (sh_get_pc, sh_set_pc)
20845 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
20846 (the_low_target): Add new members.
20847 * linux-x86-64-low.c (target_regsets): Add new kind
20848 identifier.
20849
208502002-05-15 Daniel Jacobowitz <drow@mvista.com>
20851
20852 From Martin Pool <mbp@samba.org>:
20853 * server.c (gdbserver_usage): New function.
20854 (main): Call it.
20855
208562002-05-14 Daniel Jacobowitz <drow@mvista.com>
20857
20858 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
20859 stop_at -> stop_pc.
20860
208612002-05-04 Andrew Cagney <ac131313@redhat.com>
20862
20863 * Makefile.in: Remove obsolete code.
20864
208652002-04-24 Michal Ludvig <mludvig@suse.cz>
20866
20867 * linux-low.c (regsets_fetch_inferior_registers),
20868 (regsets_store_inferior_registers): Removed cast to int from
20869 ptrace() calls.
20870 * regcache.h: Added declaration of struct inferior_info.
20871
208722002-04-20 Daniel Jacobowitz <drow@mvista.com>
20873
20874 * inferiors.c (struct inferior_info): Add regcache_data.
20875 (add_inferior): Call create_register_cache.
20876 (clear_inferiors): Call free_register_cache.
20877 (inferior_regcache_data, set_inferior_regcache_data): New functions.
20878 * regcache.c (struct inferior_regcache_data): New.
20879 (registers): Remove.
20880 (get_regcache): New function.
20881 (create_register_cache, free_register_cache): New functions.
20882 (set_register_cache): Don't initialize the register cache here.
20883 (registers_to_string, registers_from_string, register_data): Call
20884 get_regcache.
20885 * regcache.h: Add prototypes.
20886 * server.h: Likewise.
20887
208882002-04-20 Daniel Jacobowitz <drow@mvista.com>
20889
20890 * mem-break.c: New file.
20891 * mem-break.h: New file.
20892 * Makefile.in: Add mem-break.o rule; update server.h
20893 dependencies.
20894 * inferiors.c (struct inferior_info): Add target_data
20895 member.
20896 (clear_inferiors): Free target_data member if set.
20897 (inferior_target_data, set_inferior_target_data): New functions.
20898 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
20899 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
20900 * linux-low.c (linux_bp_reinsert): New variable.
20901 (struct inferior_linux_data): New.
20902 (linux_create_inferior): Use set_inferior_target_data.
20903 (linux_attach): Likewise. Call add_inferior.
20904 (linux_wait_for_one_inferior): New function.
20905 (linux_wait): Call it.
20906 (linux_write_memory): Add const.
20907 (initialize_low): Call set_breakpoint_data.
20908 * linux-low.h (struct linux_target_ops): Add breakpoint
20909 handling members.
20910 * server.c (attach_inferior): Remove extra add_inferior
20911 call.
20912 * server.h: Include mem-break.h. Update inferior.c
20913 prototypes.
20914 * target.c (read_inferior_memory)
20915 (write_inferior_memory): New functions.
20916 * target.h (read_inferior_memory)
20917 (write_inferior_memory): Change macros to prototypes.
20918 (struct target_ops): Update comments. Add const to write_memory
20919 definition.
20920
209212002-04-11 Daniel Jacobowitz <drow@mvista.com>
20922
20923 * linux-low.c (usr_store_inferior_registers): Support
20924 registers which are allowed to fail to store.
20925 * linux-low.h (linux_target_ops): Likewise.
20926 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
20927 (ppc_cannot_store_register): FPSCR may not be storable.
20928
209292002-04-09 Daniel Jacobowitz <drow@mvista.com>
20930
20931 * server.h: Include <string.h> if HAVE_STRING_H.
20932 * ChangeLog: Correct paths in last ChangeLog entry.
20933
209342002-04-09 Daniel Jacobowitz <drow@mvista.com>
20935
20936 * linux-low.h: Remove obsolete prototypes.
20937 (struct linux_target_ops): New.
20938 (extern the_low_target): New.
20939 * linux-low.c (num_regs, regmap): Remove declarations.
20940 (register_addr): Use the_low_target explicitly.
20941 (fetch_register): Likewise.
20942 (usr_fetch_inferior_registers): Likewise.
20943 (usr_store_inferior_registers): Likewise.
20944 * linux-arm-low.c (num_regs): Remove.
20945 (arm_num_regs): Define.
20946 (arm_regmap): Renamed from regmap, made static.
20947 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
20948 made static.
20949 (arm_cannot_store_register): Renamed from cannot_store_register,
20950 made static.
20951 (the_low_target): New.
20952 * linux-i386-low.c (num_regs): Remove.
20953 (i386_num_regs): Define.
20954 (i386_regmap): Renamed from regmap, made static.
20955 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
20956 made static.
20957 (i386_cannot_store_register): Renamed from cannot_store_register,
20958 made static.
20959 (the_low_target): New.
20960 * linux-ia64-low.c (num_regs): Remove.
20961 (ia64_num_regs): Define.
20962 (ia64_regmap): Renamed from regmap, made static.
20963 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
20964 made static.
20965 (ia64_cannot_store_register): Renamed from cannot_store_register,
20966 made static.
20967 (the_low_target): New.
20968 * linux-m68k-low.c (num_regs): Remove.
20969 (m68k_num_regs): Define.
20970 (m68k_regmap): Renamed from regmap, made static.
20971 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
20972 made static.
20973 (m68k_cannot_store_register): Renamed from cannot_store_register,
20974 made static.
20975 (the_low_target): New.
20976 * linux-mips-low.c (num_regs): Remove.
20977 (mips_num_regs): Define.
20978 (mips_regmap): Renamed from regmap, made static.
20979 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
20980 made static.
20981 (mips_cannot_store_register): Renamed from cannot_store_register,
20982 made static.
20983 (the_low_target): New.
20984 * linux-ppc-low.c (num_regs): Remove.
20985 (ppc_num_regs): Define.
20986 (ppc_regmap): Renamed from regmap, made static.
20987 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
20988 made static.
20989 (ppc_cannot_store_register): Renamed from cannot_store_register,
20990 made static.
20991 (the_low_target): New.
20992 * linux-s390-low.c (num_regs): Remove.
20993 (s390_num_regs): Define.
20994 (s390_regmap): Renamed from regmap, made static.
20995 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
20996 made static.
20997 (s390_cannot_store_register): Renamed from cannot_store_register,
20998 made static.
20999 (the_low_target): New.
21000 * linux-sh-low.c (num_regs): Remove.
21001 (sh_num_regs): Define.
21002 (sh_regmap): Renamed from regmap, made static.
21003 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
21004 made static.
21005 (sh_cannot_store_register): Renamed from cannot_store_register,
21006 made static.
21007 (the_low_target): New.
21008 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
21009 (the_low_target): New.
21010
210112002-04-09 Daniel Jacobowitz <drow@mvista.com>
21012
21013 * Makefile.in: Add stamp-h target.
21014 * configure.in: Create stamp-h.
21015 * configure: Regenerated.
21016
210172002-04-09 Daniel Jacobowitz <drow@mvista.com>
21018
21019 * inferiors.c: New file.
21020 * target.c: New file.
21021 * target.h: New file.
21022 * Makefile.in: Add target.o and inferiors.o. Update
21023 dependencies.
21024 * linux-low.c (inferior_pid): New static variable,
21025 moved from server.c.
21026 (linux_create_inferior): Renamed from create_inferior.
21027 Call add_inferior. Return 0 on success instead of a PID.
21028 (linux_attach): Renamed from myattach.
21029 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
21030 (linux_thread_alive): Renamed from mythread_alive.
21031 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
21032 child dies.
21033 (linux_resume): Renamed from myresume. Add missing ``return 0''.
21034 (regsets_store_inferior_registers): Correct error message.
21035 Add missing ``return 0''.
21036 (linux_fetch_registers): Renamed from fetch_inferior_registers.
21037 (linux_store_registers): Renamed from store_inferior_registers.
21038 (linux_read_memory): Renamed from read_inferior_memory.
21039 (linux_write_memory): Renamed from write_inferior_memory.
21040 (linux_target_ops): New structure.
21041 (initialize_low): Call set_target_ops ().
21042 * remote-utils.c (unhexify): New function.
21043 (hexify): New function.
21044 (input_interrupt): Send signals to ``signal_pid''.
21045 * server.c (inferior_pid): Remove.
21046 (start_inferior): Update create_inferior call.
21047 (attach_inferior): Call add_inferior.
21048 (handle_query): New function.
21049 (main): Call handle_query for `q' packets.
21050 * server.h: Include "target.h". Remove obsolete prototypes.
21051 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
21052
210532002-04-09 Daniel Jacobowitz <drow@mvista.com>
21054
21055 * Makefile.in: Add WARN_CFLAGS. Update configury
21056 dependencies.
21057 * configure.in: Check for <string.h>
21058 * configure: Regenerate.
21059 * config.in: Regenerate.
21060 * gdbreplay.c: Include needed system headers.
21061 (remote_open): Remove strchr prototype.
21062 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
21063 * regcache.c (supply_register): Change buf argument to const void *.
21064 (supply_register_by_name): Likewise.
21065 (collect_register): Change buf argument to void *.
21066 (collect_register_by_name): Likewise.
21067 * regcache.h: Add missing prototypes.
21068 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
21069 * server.c (handle_query): New function.
21070 (attached): New static variable, moved out of main.
21071 (main): Quiet longjmp clobber warnings.
21072 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
21073 * utils.c (error): Remove NORETURN.
21074 (fatal): Likewise.
This page took 3.41431 seconds and 4 git commands to generate.