]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdbserver/ChangeLog
gdbserver: turn target ops 'supports_{fork,vfork,exec}_events' into methods
[thirdparty/binutils-gdb.git] / gdbserver / ChangeLog
CommitLineData
9690a72a
TBA
12020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2
3 Turn process_stratum_target's supports_fork_events,
4 supports_vfork_events, and supports_exec_events ops into methods
5 of process_target.
6
7 * target.h (struct process_stratum_target): Remove the target ops.
8 (class process_target): Add the target ops.
9 (target_supports_fork_events): Update the macro.
10 (target_supports_vfork_events): Update the macro.
11 (target_supports_exec_events): Update the macro.
12 * target.cc (process_target::supports_fork_events): Define.
13 (process_target::supports_vfork_events): Define.
14 (process_target::supports_exec_events): Define.
15
16 Update the derived classes and callers below.
17
18 * linux-low.cc (linux_target_ops): Update.
19 (linux_supports_fork_events): Turn into ...
20 (linux_process_target::supports_fork_events): ... this.
21 (linux_supports_vfork_events): Turn into ...
22 (linux_process_target::supports_vfork_events): ... this.
23 (linux_supports_exec_events): Turn into ...
24 (linux_process_target::supports_exec_events): ... this.
25 * linux-low.h (class linux_process_target): Update.
26 * lynx-low.cc (lynx_target_ops): Update.
27 * nto-low.cc (nto_target_ops): Update.
28 * win32-low.cc (win32_target_ops): Update.
29
652aef77
TBA
302020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
31
32 Turn process_stratum_target's supports_multi_process op into a
33 method of process_target.
34
35 * target.h (struct process_stratum_target): Remove the target op.
36 (class process_target): Add the target op.
37 * target.cc (process_target::supports_multi_process): Define.
38 (target_supports_multi_process): Update.
39
40 Update the derived classes and callers below.
41
42 * linux-low.cc (linux_target_ops): Update.
43 (linux_supports_multi_process): Turn into ...
44 (linux_process_target::supports_multi_process): ... this.
45 * linux-low.h (class linux_process_target): Update.
46 * lynx-low.cc (lynx_target_ops): Update.
47 * nto-low.cc (nto_target_ops): Update.
48 * win32-low.cc (win32_target_ops): Update.
49
0dc587d4
TBA
502020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
51
52 Turn process_stratum_target's supports_non_stop, async, and
53 start_non_stop ops into methods of process_target.
54
55 * target.h (struct process_stratum_target): Remove the target ops.
56 (class process_target): Add the target ops.
57 (target_supports_non_stop): Update the macro.
58 (target_async): Update the macro.
59 (start_non_stop): Remove declaration.
60 * target.cc (process_target::supports_non_stop): Define.
61 (process_target::async): Define.
62 (process_target::start_non_stop): Define.
63 (start_non_stop): Remove.
64
65 Update the derived classes and callers below.
66
67 * server.cc (handle_qxfer_siginfo): Update.
68 (handle_query): Update.
69 * linux-low.cc (linux_target_ops): Update.
70 (linux_supports_non_stop): Turn into ...
71 (linux_process_target::supports_non_stop): ... this.
72 (linux_async): Turn into ...
73 (linux_process_target::async): ... this.
74 (linux_start_non_stop): Turn into ...
75 (linux_process_target::start_non_stop): ... this.
76 * linux-low.h (class linux_process_target): Update.
77 * lynx-low.cc (lynx_target_ops): Update.
78 * nto-low.cc (nto_target_ops): Update.
79 (nto_supports_non_stop): Remove; rely on the default behavior
80 instead.
81 * win32-low.cc (win32_target_ops): Update.
82
d7abedf7
TBA
832020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
84
85 Turn process_stratum_target's qxfer_siginfo op into a method of
86 process_target.
87
88 * target.h (struct process_stratum_target): Remove the target op.
89 (class process_target): Add the target op. Also add
90 'supports_qxfer_siginfo'.
91 * target.cc (process_target::qxfer_siginfo): Define.
92 (process_target::supports_qxfer_siginfo): Define.
93
94 Update the derived classes and callers below.
95
96 * server.cc (handle_qxfer_siginfo): Update.
97 (handle_query): Update.
98 * linux-low.cc (linux_target_ops): Update.
99 (linux_process_target::supports_qxfer_siginfo): Define.
100 (linux_xfer_siginfo): Turn into ...
101 (linux_process_target::qxfer_siginfo): ... this.
102 * linux-low.h (class linux_process_target): Update.
103 * lynx-low.cc (lynx_target_ops): Update.
104 * nto-low.cc (nto_target_ops): Update.
105 * win32-low.cc (win32_target_ops): Update.
106
2d0795ee
TBA
1072020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
108
109 Turn process_stratum_target's qxfer_osdata op into a method of
110 process_target.
111
112 * target.h (struct process_stratum_target): Remove the target op.
113 (class process_target): Add the target op. Also add
114 'supports_qxfer_osdata'.
115 * target.cc (process_target::qxfer_osdata): Define.
116 (process_target::supports_qxfer_osdata): Define.
117
118 Update the derived classes and callers below.
119
120 * server.cc (handle_qxfer_osdata): Update.
121 (handle_query): Update.
122 * linux-low.cc (linux_target_ops): Update.
123 (linux_process_target::supports_qxfer_osdata): Define.
124 (linux_qxfer_osdata): Turn into ...
125 (linux_process_target::qxfer_osdata): ... this.
126 * linux-low.h (class linux_process_target): Update.
127 * lynx-low.cc (lynx_target_ops): Update.
128 * nto-low.cc (nto_target_ops): Update.
129 * win32-low.cc (win32_target_ops): Update.
130
ea06bbaa
TBA
1312020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
132
133 Turn process_stratum_target's hostio_last_error op into a
134 method of process_target.
135
136 * target.h (struct process_stratum_target): Remove the target op.
137 (class process_target): Add the target op.
138 * target.cc: Add "hostio.h" to includes.
139 (process_target::hostio_last_error): Define.
140
141 Update the derived classes and callers below.
142
143 * hostio.cc (hostio_error): Update.
144 * linux-low.cc: Remove "hostio.h" from includes.
145 (linux_target_ops): Update.
146 * lynx-low.cc (lynx_target_ops): Update.
147 * nto-low.cc (nto_target_ops): Update.
148 * win32-low.h (class win32_process_target): Update.
149 * win32-low.cc (win32_target_ops): Update.
150 (wince_hostio_last_error): Turn into ...
151 (win32_process_target::hostio_last_error): ... this.
152
6e3fd7e9
TBA
1532020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
154
155 Turn process_stratum_target's get_tls_address op into a method of
156 process_target.
157
158 * target.h (struct process_stratum_target): Remove the target op.
159 (class process_target): Add the target op. Also add
160 'supports_get_tls_address'.
161 * target.cc (process_target::get_tls_address): Define.
162 (process_target::supports_get_tls_address): Define.
163
164 Update the derived classes and callers below.
165
166 * server.cc (handle_query): Update.
167 * linux-low.cc (linux_target_ops): Update.
168 (linux_process_target::supports_get_tls_address): Define.
169 (linux_process_target::get_tls_address): Define.
170 * linux-low.h (class linux_process_target): Update.
171 * lynx-low.cc (lynx_target_ops): Update.
172 * nto-low.cc (nto_target_ops): Update.
173 * win32-low.cc (win32_target_ops): Update.
174
5203ae1e
TBA
1752020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
176
177 Turn process_stratum_target's read_offsets op into a method of
178 process_target.
179
180 * target.h (struct process_stratum_target): Remove the target op.
181 (class process_target): Add the target op. Also add
182 'supports_read_offsets'.
183 * target.cc (process_target::read_offsets): Define.
184 (process_target::supports_read_offsets): Define.
185
186 Update the derived classes and callers below.
187
188 * server.cc (handle_query): Update.
189 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
190 (linux_target_ops): Update.
191 (linux_process_target::supports_read_offsets): Define.
192 (linux_read_offsets): Turn into ...
193 (linux_process_target::read_offsets): ... this.
194 * linux-low.h (class linux_process_target): Update.
195 * lynx-low.cc (lynx_target_ops): Update.
196 * nto-low.cc (nto_target_ops): Update.
197 * win32-low.cc (win32_target_ops): Update.
198
6eeb5c55
TBA
1992020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
200
201 Turn process_stratum_target's stopped_by_watchpoint and
202 stopped_data_address ops into methods of process_target.
203
204 * target.h (struct process_stratum_target): Remove the target ops.
205 (class process_target): Add the target ops.
206 * target.cc (process_target::stopped_by_watchpoint): Define.
207 (process_target::stopped_data_address): Define.
208
209 Update the derived classes and callers below.
210
211 * remote-utils.cc (prepare_resume_reply): Update.
212 * linux-low.cc (linux_target_ops): Update.
213 (linux_stopped_by_watchpoint): Turn into ...
214 (linux_process_target::stopped_by_watchpoint): ... this.
215 (linux_stopped_data_address): Turn into ...
216 (linux_process_target::stopped_data_address): ... this.
217 * linux-low.h (class linux_process_target): Update.
218 * lynx-low.cc (lynx_target_ops): Update.
219 * nto-low.cc (nto_target_ops): Update.
220 (nto_stopped_by_watchpoint): Turn into ...
221 (nto_process_target::stopped_by_watchpoint): ... this.
222 (nto_stopped_data_address): Turn into ...
223 (nto_process_target::stopped_data_address): ... this.
224 * nto-low.h (class nto_process_target): Update.
225 * win32-low.cc (win32_target_ops): Update.
226 (win32_stopped_by_watchpoint): Turn into ...
227 (win32_process_target::stopped_by_watchpoint): ... this.
228 (win32_stopped_data_address): Turn into ...
229 (win32_process_target::stopped_data_address): ... this.
230 * win32-low.h (class win32_process_target): Update.
231
22aa6223
TBA
2322020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
233
234 Turn process_stratum_target's supports_hardware_single_step op into
235 a method of process_target.
236
237 * target.h (struct process_stratum_target): Remove the target op.
238 (class process_target): Add the target op.
239 (target_supports_hardware_single_step): Update the macro.
240 (target_can_do_hardware_single_step): Remove declaration.
241 * target.cc (process_target::supports_hardware_single_step): Define.
242 (target_can_do_hardware_single_step): Remove.
243
244 Update the derived classes and callers below.
245
246 * linux-low.h (class linux_process_target): Update.
247 * linux-low.cc (linux_target_ops): Update.
248 (linux_supports_hardware_single_step): Turn into ...
249 (linux_process_target::supports_hardware_single_step): ... this.
250 * lynx-low.h (class lynx_process_target): Update.
251 * lynx-low.cc (lynx_target_ops): Update.
252 (lynx_process_target::supports_hardware_single_step): Define.
253 * nto-low.h (class nto_process_target): Update.
254 * nto-low.cc (nto_target_ops): Update.
255 (nto_process_target::supports_hardware_single_step): Define.
256 * win32-low.h (class win32_process_target): Update.
257 * win32-low.cc (win32_target_ops): Update.
258 (win32_process_target::supports_hardware_single_step): Define.
259
93fe88b2
TBA
2602020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
261
262 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
263 ops into methods of process_target.
264
265 * target.h (struct process_stratum_target): Remove the target ops.
266 (class process_target): Add the target ops.
267 (target_stopped_by_hw_breakpoint): Update the macro.
268 (target_supports_stopped_by_hw_breakpoint): Update the macro.
269 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
270 (process_target::supports_stopped_by_hw_breakpoint): Define.
271
272 Update the derived classes and callers below.
273
274 * linux-low.cc (linux_target_ops): Update.
275 (linux_stopped_by_hw_breakpoint): Turn into ...
276 (linux_process_target::stopped_by_hw_breakpoint): ... this.
277 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
278 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
279 * linux-low.h (class linux_process_target): Update.
280 * lynx-low.cc (lynx_target_ops): Update.
281 * nto-low.cc (nto_target_ops): Update.
282 * win32-low.cc (win32_target_ops): Update.
283
84320c4e
TBA
2842020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
285
286 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
287 ops into methods of process_target.
288
289 * target.h (struct process_stratum_target): Remove the target ops.
290 (class process_target): Add the target ops.
291 (target_stopped_by_sw_breakpoint): Update the macro.
292 (target_supports_stopped_by_sw_breakpoint): Update the macro.
293 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
294 (process_target::supports_stopped_by_sw_breakpoint): Define.
295
296 Update the derived classes and callers below.
297
298 * linux-low.cc (linux_target_ops): Update.
299 (linux_stopped_by_sw_breakpoint): Turn into ...
300 (linux_process_target::stopped_by_sw_breakpoint): ... this.
301 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
302 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
303 * linux-low.h (class linux_process_target): Update.
304 * lynx-low.cc (lynx_target_ops): Update.
305 * nto-low.cc (nto_target_ops): Update.
306 * win32-low.cc (win32_target_ops): Update.
307
7e0bde70
TBA
3082020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
309
310 Turn process_stratum_target's insert_point and remove_point ops
311 into methods of process_target.
312
313 * target.h (struct process_stratum_target): Remove the target ops.
314 (class process_target): Add the target ops.
315 * target.cc (process_target::insert_point): Define.
316 (process_target::remove_point): Define.
317
318 Update the derived classes and callers below.
319
320 * mem-break.cc (set_raw_breakpoint_at): Update.
321 (delete_raw_breakpoint): Update.
322 (uninsert_raw_breakpoint): Update.
323 (reinsert_raw_breakpoint): Update.
324 * linux-low.cc (linux_target_ops): Update.
325 (linux_insert_point): Turn into ...
326 (linux_process_target::insert_point): ... this.
327 (linux_remove_point): Turn into ...
328 (linux_process_target::remove_point): ... this.
329 * linux-low.h (class linux_process_target): Update.
330 * lynx-low.cc (lynx_target_ops): Update.
331 * nto-low.cc (nto_target_ops): Update.
332 (nto_insert_point): Turn into ...
333 (nto_process_target::insert_point): ... this.
334 (nto_remove_point): Turn into ...
335 (nto_process_target::remove_point): ... this.
336 * nto-low.h (class nto_process_target): Update.
337 * win32-low.cc (win32_target_ops): Update.
338 (win32_insert_point): Turn into ...
339 (win32_process_target::insert_point): ... this.
340 (win32_remove_point): Turn into ...
341 (win32_process_target::remove_point): ... this.
342 * win32-low.h (class win32_process_target): Update.
343
a2b2297a
TBA
3442020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
345
346 Turn process_stratum_target's supports_z_point_type op into a
347 method of process_target.
348
349 * target.h (struct process_stratum_target): Remove the target op.
350 (class process_target): Add the target op.
351 * target.cc (process_target::supports_z_point_type): Define.
352
353 Update the derived classes and callers below.
354
355 * mem-break.cc (z_type_supported): Update.
356 * linux-low.cc (linux_target_ops): Update.
357 (linux_supports_z_point_type): Turn into ...
358 (linux_process_target::supports_z_point_type): ... this.
359 * linux-low.h (class linux_process_target): Update.
360 * lynx-low.cc (lynx_target_ops): Update.
361 * nto-low.cc (nto_target_ops): Update.
362 (nto_supports_z_point_type): Turn into ...
363 (nto_process_target::supports_z_point_type): ... this.
364 * nto-low.h (class nto_process_target): Update.
365 * win32-low.cc (win32_target_ops): Update.
366 (win32_supports_z_point_type): Turn into ...
367 (win32_process_target::supports_z_point_type): ... this.
368 * win32-low.h (class win32_process_target): Update.
369
eac215cc
TBA
3702020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
371
372 Turn process_stratum_target's read_auxv op into a method of
373 process_target.
374
375 * target.h (class process_stratum_target): Remove the target op.
376 (struct process_target): Add the target op. Also add
377 'supports_read_auxv'.
378 * target.cc (process_target::read_auxv): Define.
379 (process_target::supports_read_auxv): Define.
380
381 Update the derived classes and callers below.
382
383 * server.cc (handle_qxfer_auxv): Update.
384 (handle_query): Update.
385 * linux-low.cc (linux_target_ops): Update.
386 (linux_process_target::supports_read_auxv): Define.
387 (linux_read_auxv): Turn into ...
388 (linux_process_target::read_auxv): ... this.
389 * linux-low.h (class linux_process_target): Update.
390 * lynx-low.cc (lynx_target_ops): Update.
391 * nto-low.cc (nto_target_ops): Update.
392 (nto_process_target::supports_read_auxv): Define.
393 (nto_read_auxv): Turn into ...
394 (nto_process_target::read_auxv): ... this.
395 * nto-low.h (class nto_process_target): Update.
396 * win32-low.cc (win32_target_ops): Update.
397
eb497a2a
TBA
3982020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
399
400 Turn process_stratum_target's request_interrupt op into a method of
401 process_target.
402
403 * target.h (struct process_stratum_target): Remove the target op.
404 (class process_target): Add the target op.
405
406 Update the derived classes and callers below.
407
408 * remote-utils.cc (putpkt_binary_1): Update.
409 (input_interrupt): Update.
410 (getpkt): Update.
411 * server.cc (handle_v_requests): Update.
412 * linux-low.cc (linux_target_ops): Update.
413 (linux_request_interrupt): Turn into ...
414 (linux_process_target::request_interrupt): ... this.
415 * linux-low.h (class linux_process_target): Update.
416 * lynx-low.cc (lynx_target_ops): Update.
417 (lynx_request_interrupt): Turn into ...
418 (lynx_process_target::request_interrupt): ... this.
419 * lynx-low.h (class lynx_process_target): Update.
420 * nto-low.cc (nto_target_ops): Update.
421 (nto_request_interrupt): Turn into ...
422 (nto_process_target::request_interrupt): ... this.
423 * nto-low.h (class nto_process_target): Update.
424 * win32-low.cc (win32_target_ops): Update.
425 (win32_request_interrupt): Turn into ...
426 (win32_process_target::request_interrupt): ... this.
427 * win32-low.h (class win32_process_target): Update.
428
2a31c7aa
TBA
4292020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
430
431 Turn process_stratum_target's look_up_symbols op into a method of
432 process_target.
433
434 * target.h (struct process_stratum_target): Remove the target op.
435 (class process_target): Add the target op.
436 * target.cc (process_target::look_up_symbols): Define.
437
438 Update the derived classes and callers below.
439
440 * server.cc (handle_query): Update.
441 * linux-low.cc (linux_target_ops): Update.
442 (linux_look_up_symbols): Turn into ...
443 (linux_process_target::look_up_symbols): ... this.
444 * linux-low.h (class linux_process_target): Update.
445 * lynx-low.cc (lynx_target_ops): Update.
446 * nto-low.cc (nto_target_ops): Update.
447 * win32-low.cc (win32_target_ops): Update.
448
e2558df3
TBA
4492020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
450
451 Turn process_stratum_target's read_memory and write_memory
452 ops into methods of process_target.
453
454 * target.h (struct process_stratum_target): Remove the target ops.
455 (class process_target): Add the target ops.
456
457 Update the derived classes and callers below.
458
459 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
460 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
461 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
462 (arm_get_syscall_trapinfo): Update.
463 * linux-cris-low.cc (cris_breakpoint_at): Update.
464 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
465 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
466 * linux-mips-low.cc (mips_breakpoint_at): Update.
467 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
468 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
469 * linux-sh-low.cc (sh_breakpoint_at): Update.
470 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
471 (sparc_store_gregset_from_stack): Update.
472 (sparc_breakpoint_at): Update.
473 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
474 * linux-tile-low.cc (tile_breakpoint_at): Update.
475 * linux-x86-low.cc (x86_breakpoint_at): Update.
476 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
477 * mem-brea.cc (insert_memory_breakpoint): Update.
478 (validate_inserted_breakpoint): Update.
479 * target.cc (read_inferior_memory): Update.
480 (target_write_memory): Update.
481 * linux-low.cc (linux_target_ops): Update.
482 (linux_read_memory): Make a wrapper around the read_memory target
483 op call.
484 (linux_process_target::read_memory): Rename from linux_read_memory.
485 (linux_write_memory): Turn into ...
486 (linux_process_target::write_memory): ... this.
487 * linux-low.h (class linux_process_target): Update.
488 * lynx-low.cc (lynx_target_ops): Update.
489 (lynx_read_memory): Turn into ...
490 (lynx_process_target::read_memory): ... this.
491 (lynx_write_memory): Turn into ...
492 (lynx_process_target::write_memory): ... this.
493 * lynx-low.h (class lynx_process_target): Update.
494 * nto-low.cc (nto_target_ops): Update.
495 (nto_read_memory): Turn into ...
496 (nto_process_target::read_memory): ... this.
497 (nto_write_memory): Turn into ...
498 (nto_process_target::write_memory): ... this.
499 * nto-low.h (class nto_process_target): Update.
500 * win32-low.cc (win32_target_ops): Update.
501 (win32_read_inferior_memory): Turn into ...
502 (win32_process_target::read_memory): ... this.
503 (win32_write_inferior_memory): Turn into ...
504 (win32_process_target::write_memory): ... this.
505 * win32-low.h (class win32_process_target): Update.
506
79b44087
TBA
5072020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
508
509 Turn process_stratum_target's prepare_to_access_memory and
510 done_accessing_memory ops into methods of process_target.
511
512 * target.h (struct process_stratum_target): Remove the target ops.
513 (class process_target): Add the target ops.
514 * target.cc (process_target::prepare_to_access_memory): Define.
515 (process_target::done_accessing_memory): Define.
516 (prepare_to_access_memory): Update.
517 (done_accessing_memory): Update.
518
519 Update the derived classes and callers below.
520
521 * linux-low.cc (linux_target_ops): Update.
522 (linux_prepare_to_access_memory): Turn into ...
523 (linux_process_target::prepare_to_access_memory): ... this.
524 (linux_done_accessing_memory): Turn into ...
525 (linux_process_target::done_accessing_memory): ... this.
526 * linux-low.h (class linux_process_target): Update.
527 * lynx-low.cc (lynx_target_ops): Update.
528 * nto-low.cc (nto_target_ops): Update.
529 * win32-low.cc (win32_target_ops): Update.
530
a5a4d4cd
TBA
5312020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
532
533 Turn process_stratum_target's fetch_registers and store_registers
534 ops into methods of process_target.
535
536 * target.h (struct process_stratum_target): Remove the target ops.
537 (class process_target): Add the target ops.
538 (fetch_inferior_registers): Update the macro.
539 (store_inferior_registers): Update the macro.
540
541 Update the derived classes and callers below.
542
543 * linux-low.cc (linux_target_ops): Update.
544 (linux_fetch_registers): Turn into ...
545 (linux_process_target::fetch_registers): ... this.
546 (linux_store_registers): Turn into ...
547 (linux_process_target::store_registers): ... this.
548 * linux-low.h (class linux_process_target): Update.
549 * lynx-low.cc (lynx_target_ops): Update.
550 (lynx_fetch_registers): Turn into ...
551 (lynx_process_target::fetch_registers): ... this.
552 (lynx_store_registers): Turn into ...
553 (lynx_process_target::store_registers): ... this.
554 * lynx-low.h (class lynx_process_target): Update.
555 * nto-low.cc (nto_target_ops): Update.
556 (nto_fetch_registers): Turn into ...
557 (nto_process_target::fetch_registers): ... this.
558 (nto_store_registers): Turn into ...
559 (nto_process_target::store_registers): ... this.
560 * nto-low.h (class nto_process_target): Update.
561 * win32-low.cc (win32_target_ops): Update.
562 (win32_fetch_inferior_registers): Turn into ...
563 (win32_process_target::fetch_registers): ... this.
564 (win32_store_inferior_registers): Turn into ...
565 (win32_process_target::store_registers): ... this.
566 * win32-low.h (class win32_process_target): Update.
567
6532e7e3
TBA
5682020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
569
570 Turn process_stratum_target's wait op into a method of
571 process_target.
572
573 * target.h (struct process_stratum_target): Remove the target op.
574 (class process_target): Add the target op.
575
576 Update the derived classes and callers below.
577
578 * target.cc (target_wait): Update.
579 * linux-low.cc (linux_target_ops): Update.
580 (linux_wait): Turn into ...
581 (linux_process_target::wait): ... this.
582 * linux-low.h (class linux_process_target): Update.
583 * lynx-low.cc (lynx_target_ops): Update.
584 (lynx_wait): Turn into ...
585 (lynx_process_target::wait): ... this.
586 * lynx-low.h (class lynx_process_target): Update.
587 * nto-low.cc (nto_target_ops): Update.
588 (nto_wait): Turn into ...
589 (nto_process_target::wait): ... this.
590 * nto-low.h (class nto_process_target): Update.
591 * win32-low.cc (win32_target_ops): Update.
592 (win32_wait): Turn into ...
593 (win32_process_target::wait): ... this.
594 (do_initial_child_stuff): Update.
595 * win32-low.h (class win32_process_target): Update.
596
0e4d7e35
TBA
5972020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
598
599 Turn process_stratum_target's resume op into a method of
600 process_target.
601
602 * target.h (struct process_stratum_target): Remove the target op.
603 (class process_target): Add the target op.
604
605 Update the derived classes and callers below.
606
607 * server.cc (resume): Update.
608 * target.cc (target_stop_and_wait): Update.
609 (target_continue_no_signal): Update.
610 (target_continue): Update.
611 * linux-low.cc (linux_target_ops): Update.
612 (linux_resume): Turn into ...
613 (linux_process_target::resume): ... this.
614 * linux-low.h (class linux_process_target): Update.
615 * lynx-low.cc (lynx_target_ops): Update.
616 (lynx_resume): Turn into ...
617 (lynx_process_target::resume): ... this.
618 * lynx-low.h (class lynx_process_target): Update.
619 * nto-low.cc (nto_target_ops): Update.
620 (nto_resume): Turn into ...
621 (nto_process_target::resume): ... this.
622 * nto-low.h (class nto_process_target): Update.
623 * win32-low.cc (win32_target_ops): Update.
624 (win32_resume): Turn into ...
625 (win32_process_target::resume): ... this.
626 (win32_process_target::detach): Update.
627 (do_initial_child_stuff): Update.
628 * win32-low.h (class win32_process_target): Update.
629
13d3d99b
TBA
6302020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
631
632 Turn process_stratum_target's thread_alive op into a method of
633 process_target.
634
635 * target.h (struct process_stratum_target): Remove the target op.
636 (class process_target): Add the target op.
637 (mythread_alive): Update the macro.
638
639 Update the derived classes and callers below.
640
641 * linux-low.cc (linux_target_ops): Update.
642 (linux_thread_alive): Turn into ...
643 (linux_process_target::thread_alive): ... this.
644 (wait_for_sigstop): Update.
645 * linux-low.h (class linux_process_target): Update.
646 * lynx-low.cc (lynx_target_ops): Update.
647 (lynx_thread_alive): Turn into ...
648 (lynx_process_target::thread_alive): ... this.
649 * lynx-low.h (class lynx_process_target): Update.
650 * nto-low.cc (nto_target_ops): Update.
651 (nto_thread_alive): Turn into ...
652 (nto_process_target::thread_alive): ... this.
653 * nto-low.h (class nto_process_target): Update.
654 * win32-low.cc (win32_target_ops): Update.
655 (win32_thread_alive): Turn into ...
656 (win32_process_target::thread_alive): ... this.
657 * win32-low.h (class win32_process_target): Update.
658
95a49a39
TBA
6592020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
660
661 Turn process_stratum_target's join op into a method of
662 process_target.
663
664 * target.h (struct process_stratum_target): Remove the target op.
665 (class process_target): Add the target op.
666 (join_inferior): Update the macro.
667
668 Update the derived classes and callers below.
669
670 * linux-low.cc (linux_target_ops): Update.
671 (linux_join): Turn into ...
672 (linux_process_target::join): ... this.
673 * linux-low.h (class linux_process_target): Update.
674 * lynx-low.cc (lynx_target_ops): Update.
675 (lynx_join): Turn into ...
676 (lynx_process_target::join): ... this.
677 * lynx-low.h (class lynx_process_target): Update.
678 * nto-low.cc (nto_target_ops): Update.
679 (nto_process_target::join): Define.
680 * nto-low.h (class nto_process_target): Update.
681 * win32-low.cc (win32_target_ops): Update.
682 (win32_join): Turn into ...
683 (win32_process_target::join): ... this.
684 * win32-low.h (class win32_process_target): Update.
685
8adb37b9
TBA
6862020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
687
688 Turn process_stratum_target's mourn op into a method of
689 process_target.
690
691 * target.h (struct process_stratum_target): Remove the target op.
692 (class process_target): Add the target op.
693
694 Update the derived classes and callers below.
695
696 * target.cc (target_mourn_inferior): Update.
697 * linux-low.cc (linux_target_ops): Update.
698 (linux_mourn): Turn into ...
699 (linux_process_target::mourn): ... this.
700 (handle_extended_wait): Update.
701 (linux_process_target::kill): Update.
702 (linux_process_target::detach): Update.
703 * linux-low.h (class linux_process_target): Update.
704 * lynx-low.cc (lynx_target_ops): Update.
705 (lynx_mourn): Turn into ...
706 (lynx_process_target::mourn): ... this.
707 * lynx-low.h (class lynx_process_target): Update.
708 * nto-low.cc (nto_target_ops): Update.
709 (nto_mourn): Turn into ...
710 (nto_process_target::mourn): ... this.
711 * nto-low.h (class nto_process_target): Update.
712 * win32-low.cc (win32_target_ops): Update.
713 (win32_mourn): Turn into ...
714 (win32_process_target::mourn): ... this.
715 * win32-low.h (class win32_process_target): Update.
716
9061c9cf
TBA
7172020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
718
719 Turn process_stratum_target's detach op into a method of
720 process_target.
721
722 * target.h (struct process_stratum_target): Remove the target op.
723 (class process_target): Add the target op.
724 (detach_inferior): Update the macro.
725
726 Update the derived classes and callers below.
727
728 * linux-low.cc (linux_target_ops): Update.
729 (linux_detach): Turn into ...
730 (linux_process_target::detach): ... this.
731 * linux-low.h (class linux_process_target): Update.
732 * lynx-low.cc (lynx_target_ops): Update.
733 (lynx_detach): Turn into ...
734 (lynx_process_target::detach): ... this.
735 * lynx-low.h (class lynx_process_target): Update.
736 * nto-low.cc (nto_target_ops): Update.
737 (nto_detach): Turn into ...
738 (nto_process_target::detach): ... this.
739 * nto-low.h (class nto_process_target): Update.
740 * win32-low.cc (win32_target_ops): Update.
741 (win32_detach): Turn into ...
742 (win32_process_target::detach): ... this.
743 * win32-low.h (class win32_process_target): Update.
744
c6885a57
TBA
7452020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
746
747 Turn process_stratum_target's kill op into a method of
748 process_target.
749
750 * target.h (struct process_stratum_target): Remove the target op.
751 (class process_target): Add the target op.
752
753 Update the derived classes and callers below.
754
755 * target.cc (kill_inferior): Update.
756 * linux-low.cc (linux_target_ops): Update.
757 (linux_kill): Turn into ...
758 (linux_process_target::kill): ... this.
759 * linux-low.h (class linux_process_target): Update.
760 * lynx-low.cc (lynx_target_ops): Update.
761 (lynx_kill): Turn into ...
762 (lynx_process_target::kill): ... this.
763 * lynx-low.h (class lynx_process_target): Update.
764 * nto-low.cc (nto_target_ops): Update.
765 (nto_kill): Turn into ...
766 (nto_process_target::kill): ... this.
767 * nto-low.h (class nto_process_target): Update.
768 * win32-low.cc (win32_target_ops): Update.
769 (win32_kill): Turn into ...
770 (win32_process_target::kill): ... this.
771 * win32-low.h (class win32_process_target): Update.
772
ef03dad8
TBA
7732020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
774
775 Turn process_stratum_target's attach op into a method of
776 process_target.
777
778 * target.h (struct process_stratum_target): Remove the target op.
779 (class process_target): Add the target op.
780 (myattach): Update the macro.
781
782 Update the derived classes and callers below.
783
784 * linux-low.cc (linux_target_ops): Update.
785 (linux_attach): Turn into ...
786 (linux_process_target::attach): ... this.
787 * linux-low.h (class linux_process_target): Update.
788 * lynx-low.cc (lynx_target_ops): Update.
789 (lynx_attach): Turn into ...
790 (lynx_process_target::attach): ... this.
791 * lynx-low.h (class lynx_process_target): Update.
792 * nto-low.cc (nto_target_ops): Update.
793 (nto_attach): Turn into ...
794 (nto_process_target::attach): ... this.
795 * nto-low.h (class nto_process_target): Update.
796 * win32-low.cc (win32_target_ops): Update.
797 (win32_attach): Turn into ...
798 (win32_process_target::attach): ... this.
799 * win32-low.h (class win32_process_target): Update.
800
6dee9afb
TBA
8012020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
802
803 Turn process_stratum_target's post_create_inferior op into a method
804 of process_target.
805
806 * target.h (struct process_stratum_target): Remove the target op.
807 (class process_target): Add the target op.
808 (target_post_create_inferior): Update the macro.
809 * target.cc (process_target::post_create_inferior): Define.
810
811 Update the derived classes and callers below.
812
813 * linux-low.cc (linux_target_ops): Update.
814 (linux_post_create_inferior): Turn into ...
815 (linux_process_target::post_create_inferior): ... this.
816 * linux-low.h (class linux_process_target): Update.
817 * lynx-low.cc (lynx_target_ops): Update.
818 * nto-low.cc (nto_target_ops): Update.
819 * win32-low.cc (win32_target_ops): Update.
820
15295543
TBA
8212020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
822
823 Turn process_stratum_target's create_inferior op into a method of
824 process_target.
825
826 * target.h (struct process_stratum_target): Remove the target op.
827 (class process_target): Add the target op.
828 (create_inferior): Rename the macro to ...
829 (target_create_inferior): ... this.
830
831 Update the derived classes and callers below.
832
833 * server.cc (handle_v_run): Update.
834 (captured_main): Update.
835 (process_serial_event): Update.
836 * linux-low.cc (linux_target_ops): Update.
837 (linux_create_inferior): Turn into ...
838 (linux_process_target::create_inferior): ... this.
839 * linux-low.h (class linux_process_target): Update.
840 * lynx-low.cc (lynx_target_ops): Update.
841 (lynx_create_inferior): Turn into ...
842 (lynx_process_target::create_inferior): ... this.
843 * lynx-low.h (class lynx_process_target): Update.
844 * nto-low.cc (nto_target_ops): Update.
845 (nto_create_inferior): Turn into ...
846 (nto_process_target::create_inferior): ... this.
847 * nto-low.h (class nto_process_target): Update.
848 * win32-low.cc (win32_target_ops): Update.
849 (win32_create_inferior): Turn into ...
850 (win32_process_target::create_inferior): ... this.
851 * win32-low.h (class win32_process_target): Update.
852
5ef9273d
TBA
8532020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
854
855 * target.h (class process_target): New class definition.
856 (struct process_stratum_target) <pt>: New field with type
857 'process_target*'.
858 * linux-low.h (class linux_process_target): Define as a derived
859 class of 'process_target'.
860 * linux-low.cc (linux_target_ops): Add a linux_process_target*
861 as the 'pt' field.
862 * lynx-low.h (class lynx_process_target): Define as a derived
863 class of 'process_target'.
864 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
865 as the 'pt' field.
866 * nto-low.h (class nto_process_target): Define as a derived
867 class of 'process_target'.
868 * nto-low.cc (nto_target_ops): Add an nto_process_target*
869 as the 'pt' field.
870 * win32-low.h (class win32_process_target): Define as a derived
871 class of 'process_target'.
872 * win32-low.cc (win32_target_ops): Add a win32_process_target*
873 as the 'pt' field.
874
9f1528a1
AB
8752020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
876
877 * configure: Regenerate.
878
bf84f706
MR
8792020-02-19 Maciej W. Rozycki <macro@wdc.com>
880 Andrew Burgess <andrew.burgess@embecosm.com>
881
882 * linux-riscv-low.cc: New file.
883 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
884 and nat/riscv-linux-tdesc.c.
885 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
886 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
887 Define.
888
1a627e7e
TT
8892020-02-14 Tom Tromey <tom@tromey.com>
890
891 * acinclude.m4: Don't include acx_configure_dir.m4.
892 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
893 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
894 (all, install-only, uninstall, clean-info, clean)
895 (maintainer-clean): Don't recurse.
896 (subdir_do, all-lib): Remove.
897 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
898 (GNULIB_H): Remove.
899 (generated_files): Update.
900 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
901 * configure: Rebuild.
902 * configure.ac: Don't configure gnulib or libiberty.
903 (GNULIB): Update.
904
a9b34532
EZ
9052020-02-14 Eli Zaretskii <eliz@gnu.org>
906
907 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
908 preparing the command line for CreateProcess.
909 (win32_create_inferior): Reflect the program name in debugging
910 output that shows the process and its command line.
911
feacfcac
SM
9122020-02-13 Simon Marchi <simon.marchi@efficios.com>
913
914 * Makefile.in: Rename source files from .c to .cc.
915 * %.c: Rename to %.cc.
916 * configure.ac: Rename server.c to server.cc.
917 * configure: Re-generate.
918
06b3c5bd
SM
9192020-02-13 Simon Marchi <simon.marchi@efficios.com>
920
921 * Makefile.in: Rename gdbsupport source files from .c to .cc.
922
052793ad
HD
9232020-02-12 Hannes Domani <ssbssa@yahoo.de>
924
925 * win32-low.c (win32_create_inferior): Set signal_pid.
926
f20e3e82
MR
9272020-02-12 Maciej W. Rozycki <macro@wdc.com>
928 Pedro Alves <palves@redhat.com>
929
930 Skip building gdbserver in a cross-configuration.
931 * configure.srv: Set $gdbserver_host depending on whether $target
932 is $host. Use $gdbserver_host instead of $host.
933
8ddd8e0e
SM
9342020-02-11 Simon Marchi <simon.marchi@efficios.com>
935
936 * configure: Re-generate.
937
898e7f60
SM
9382020-02-11 Simon Marchi <simon.marchi@efficios.com>
939
940 * configure: Re-generate.
941
58df732b
SM
9422020-02-11 Simon Marchi <simon.marchi@efficios.com>
943
944 * acinclude.m4: Update warning.m4 path.
945
7928d571
HD
9462020-02-09 Hannes Domani <ssbssa@yahoo.de>
947
948 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
949 (handle_exception): Set siginfo_er.
950 (win32_xfer_siginfo): New function.
951
919adfe8
TT
9522020-02-07 Tom Tromey <tom@tromey.com>
953 Pedro Alves <palves@redhat.com>
954
955 * README: Update build documentation.
956 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
957 host, not target.
958 * configure.ac: Update paths.
959 * configure: Rebuild.
960 * acinclude.m4: Update paths.
961 * Makefile.in: Update include paths.
962 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
963 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
964 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
965 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
966 (%-generated.c): Update paths.
967 * Move entire directory from ../gdb/gdbserver.
968
287c844a
MR
9692020-01-29 Maciej W. Rozycki <macro@wdc.com>
970
971 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
972
548a204f
PFC
9732020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
974
975 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
976 assignment instead of srv_linux_obj.
977
a2236a08
HD
9782020-01-28 Hannes Domani <ssbssa@yahoo.de>
979
980 * server.c (handle_qxfer_libraries): Write segment-address with
981 paddress.
982
bdaed379
HD
9832020-01-24 Hannes Domani <ssbssa@yahoo.de>
984
985 * Makefile.in (install-strip): New target.
986 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
987 * aclocal.m4: Regenerate.
988 * configure: Regenerate.
989 * configure.ac: Add AM_PROG_INSTALL_STRIP.
990
42cd72aa
MR
9912020-01-24 Maciej W. Rozycki <macro@wdc.com>
992
993 * Makefile.in (SFILES): Adjust paths to point to real files.
994 (OBS): Move waitstatus.o to target/waitstatus.o.
995 (TAGS): Transform paths appropriately.
996 (%.o): Rename to...
997 (nat/%.o): ... this pattern rule.
998 (%.o): Rename to...
999 (target/%.o): ... this pattern rule.
1000 * configure.srv: Adjust paths throughout to include nat/ prefix
1001 with the revant files.
1002 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
1003 * configure: Regenerate.
1004
42ba50ec
MR
10052020-01-24 Maciej W. Rozycki <macro@wdc.com>
1006
1007 * Makefile.in (TAGS): Remove config files from the recipe.
1008
05ea2a05
TT
10092020-01-14 Tom Tromey <tom@tromey.com>
1010
1011 * configure: Rebuild.
1012 * configure.ac: Remove any checks that were added to common.m4.
1013 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
1014 lib-link.m4.
1015
01027315
TT
10162020-01-14 Tom Tromey <tom@tromey.com>
1017
1018 * server.h: Include config.h.
1019 * gdbreplay.c: Include config.h.
1020 * configure: Rebuild.
1021 * configure.ac: Don't source common.host.
1022 * acinclude.m4: Update path.
1023 * Makefile.in (INCSUPPORT): New variable.
1024 (INCLUDE_CFLAGS): Add INCSUPPORT.
1025 (SFILES): Update paths.
1026 (version-generated.c): Update path to create-version.sh.
1027 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
1028
b2ceabe8
TT
10292020-01-14 Tom Tromey <tom@tromey.com>
1030
1031 * configure.ac (LIBS): Use WIN32APILIBS.
1032 (USE_WIN32API): Don't define.
1033 * configure: Rebuild.
1034
25c51f71
TT
10352020-01-14 Tom Tromey <tom@tromey.com>
1036
1037 * configure: Rebuild.
1038
c0bd321d
SM
10392020-01-13 Simon Marchi <simon.marchi@efficios.com>
1040
1041 * Makefile.in (%-generated.c): Remove rule for files from
1042 regformats/i386.
1043
bb564c58
SM
10442020-01-13 Simon Marchi <simon.marchi@efficios.com>
1045
1046 * configure: Re-generate.
1047
6e37c371
SM
10482020-01-13 Simon Marchi <simon.marchi@efficios.com>
1049
1050 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
1051 Define to static.
1052 * tracepoint.c (stop_tracing, flush_trace_buffer,
1053 about_to_request_buffer_space, get_trace_state_variable_value,
1054 set_trace_state_variable_value, gdb_collect): Add declaration.
1055
df4a0200
SM
10562020-01-13 Simon Marchi <simon.marchi@efficios.com>
1057
1058 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
1059 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
1060 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
1061 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
1062 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
1063 static.
1064
89e94ec9
SM
10652020-01-13 Simon Marchi <simon.marchi@efficios.com>
1066
1067 * inferiors.c: Include gdbsupport/common-inferior.h.
1068
2552728a
SM
10692020-01-13 Simon Marchi <simon.marchi@efficios.com>
1070
1071 * hostio-errno.c: Include hostio.h.
1072
4025fa09
SM
10732020-01-13 Simon Marchi <simon.marchi@efficios.com>
1074
1075 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
1076 prerequisite.
1077
c0b0a142
SM
10782020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
1079
1080 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
1081 * linux-arm-tdesc.h: Include arch/arm.h.
1082
bb1183e2
SM
10832020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
1084
1085 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
1086
f5df0b5f
SM
10872020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
1088
1089 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
1090 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
1091
5b6d1e4f
PA
10922020-01-10 Pedro Alves <palves@redhat.com>
1093
1094 * fork-child.c (post_fork_inferior): Pass target down to
1095 startup_inferior.
1096 * inferiors.c (switch_to_thread): Add process_stratum_target
1097 parameter.
1098 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
1099 * nto-low.c (nto_target_ops): Now a process_stratum_target.
1100 * linux-low.c (linux_target_ops): Now a process_stratum_target.
1101 * remote-utils.c (prepare_resume_reply): Pass the target to
1102 switch_to_thread.
1103 * target.c (the_target): Now a process_stratum_target.
1104 (done_accessing_memory): Pass the target to switch_to_thread.
1105 (set_target_ops): Ajust to use process_stratum_target.
1106 * target.h (struct target_ops): Rename to ...
1107 (struct process_stratum_target): ... this.
1108 (the_target, set_target_ops): Adjust.
1109 (prepare_to_access_memory): Adjust comment.
1110 * win32-low.c (child_xfer_memory): Adjust to use
1111 process_stratum_target.
1112 (win32_target_ops): Now a process_stratum_target.
1113
559e7e50
EZ
11142020-01-06 Eli Zaretskii <eliz@gnu.org>
1115 Pedro Alves <palves@redhat.com>
1116
1117 * win32-low.c (get_child_debug_event): Extract the fatal exception
1118 from the exit status and convert to the equivalent Posix signal
1119 number.
1120 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
1121 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
1122
48189bec
HD
11232020-01-01 Hannes Domani <ssbssa@yahoo.de>
1124
1125 * Makefile.in: Use INSTALL_PROGRAM_ENV.
1126
5dd8bf88
JB
11272020-01-01 Joel Brobecker <brobecker@adacore.com>
1128
1129 * server.c (gdbserver_version): Change copyright year to 2020.
1130 * gdbreplay.c (gdbreplay_version): Likewise.
1131
0ad6b8ee
CB
11322019-12-19 Christian Biesinger <cbiesinger@google.com>
1133
1134 * configure: Regenerate.
1135 * configure.ac: Quote variable arguments of test.
1136
1ee7b812
BE
11372019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
1138
1139 * Makefile.in: Fix build with GNU Make 3.81
1140
d9fa87f4
TT
11412019-12-16 Tom Tromey <tromey@adacore.com>
1142
1143 * server.c (get_exec_file): Constify result.
1144
ab7d13f0
CB
11452019-12-10 Christian Biesinger <cbiesinger@google.com>
1146
1147 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
1148 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
1149 * config.in: Regenerate.
1150 * configure: Regenerate.
1151 * configure.ac: Don't check for strerror.
1152 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
1153 Call safe_strerror instead of strerror.
1154 * server.h (strerror): Remove this now-unnecessary declaration.
1155 * tracepoint.c (init_named_socket): Call safe_strerror instead of
1156 strerror.
1157 (gdb_agent_helper_thread): Likewise.
1158 * utils.c (perror_with_name): Likewise.
1159
4da8c3a8
TT
11602019-11-26 Tom Tromey <tom@tromey.com>
1161
1162 * configure, config.in: Rebuild.
1163
21987b9c
TT
11642019-11-26 Tom Tromey <tom@tromey.com>
1165
1166 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
1167 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
1168 gdb_sigmask.
1169 * configure, config.in: Rebuild.
1170
5e030278
TT
11712019-11-26 Tom Tromey <tom@tromey.com>
1172
1173 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
1174 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
1175 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
1176 * acinclude.m4: Include ax_pthread.m4.
1177 * config.in, configure: Rebuild.
1178
6d91ce9a
CB
11792019-11-26 Christian Biesinger <cbiesinger@google.com>
1180
1181 * debug.c (debug_set_output): Call safe_strerror instead of
1182 strerror.
1183 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
1184 (linux_kill_one_lwp): Likewise.
1185 (linux_detach_one_lwp): Likewise.
1186 (linux_wait_for_event_filtered): Likewise.
1187 (store_register): Likewise.
1188 * lynx-low.c (lynx_attach): Likewise.
1189 * mem-break.c (insert_memory_breakpoint): Likewise.
1190 (remove_memory_breakpoint): Likewise.
1191 (delete_fast_tracepoint_jump): Likewise.
1192 (set_fast_tracepoint_jump): Likewise.
1193 (uninsert_fast_tracepoint_jumps_at): Likewise.
1194 (reinsert_fast_tracepoint_jumps_at): Likewise.
1195 * nto-low.c (nto_xfer_memory): Likewise.
1196 (nto_resume): Likewise.
1197
6cdd651f
LM
11982019-11-20 Luis Machado <luis.machado@linaro.org>
1199
1200 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
1201 instead of register count.
1202 * tdesc.c (tdesc_contains_feature): New function.
1203 * tdesc.h (tdesc_contains_feature): New prototype.
1204
cd850b40
CB
12052019-11-15 Christian Biesinger <cbiesinger@google.com>
1206
1207 * Makefile.in: Add safe-strerror.c.
1208 * configure: Regenerate.
1209 * configure.ac: Don't source common.host.
1210
5abebf3c
CB
12112019-11-15 Christian Biesinger <cbiesinger@google.com>
1212
1213 * config.in: Regenerate.
1214 * configure: Regenerate.
1215
e06f3d6e
AB
12162019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1217
1218 * ax.c (ax_printf): Handle size_t_arg.
1219
ca3a04f6
CB
12202019-11-06 Christian Biesinger <cbiesinger@google.com>
1221
1222 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
1223 * mi/mi-main.c (output_cores): Likewise.
1224 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
1225 (linux_xfer_osdata_modules): Likewise.
1226 * remote.c (register_remote_support_xml): Likewise.
1227 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
1228 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
1229
e48f6033
CB
12302019-11-01 Christian Biesinger <cbiesinger@google.com>
1231
1232 * configure: Regenerate.
1233 * configure.ac: Remove check for strerror_r.
1234
e7e97a2e
CB
12352019-10-31 Christian Biesinger <cbiesinger@google.com>
1236
1237 * config.in: Regenerate.
1238 * configure: Regenerate.
1239 * configure.ac: Also check for strerror_r.
1240
75cafaa6
CB
12412019-10-31 Christian Biesinger <cbiesinger@google.com>
1242
1243 * ax.h (debug_agent): Remove duplicate declaration.
1244
30baf67b
TV
12452019-10-26 Tom de Vries <tdevries@suse.de>
1246
1247 * linux-aarch64-low.c: Fix typos in comments.
1248 * linux-arm-low.c: Same.
1249 * linux-low.c: Same.
1250 * linux-ppc-low.c: Same.
1251 * proc-service.c: Same.
1252 * regcache.h: Same.
1253 * server.c: Same.
1254 * tracepoint.c: Same.
1255 * win32-low.c: Same.
1256
52c64cf7
TT
12572019-10-25 Tom Tromey <tromey@adacore.com>
1258
1259 * utils.c (xstrdup): Remove.
1260
c12d372d
TT
12612019-10-23 Tom Tromey <tom@tromey.com>
1262
1263 * configure, config.in: Rebuild.
1264
4d0b984b
TT
12652019-10-23 Tom Tromey <tom@tromey.com>
1266
1267 * configure: Rebuild.
1268 * acinclude.m4: Use m4_include, not sinclude.
1269
c5adaa19
TT
12702019-10-17 Tom Tromey <tromey@adacore.com>
1271
1272 * configure: Rebuild.
1273 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
1274 in AC_CONFIG_FILES invocation.
1275 * Makefile.in (stamp-h, Makefile): Use new-style config.status
1276 invocation.
1277
fec4e896
CB
12782019-10-16 Christian Biesinger <cbiesinger@google.com>
1279
1280 * server.c: Include xml-builtin.h.
1281 (get_xml_features): Don't declare xml_builtins here.
1282
00975ff6
AB
12832019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1284
1285 * Makefile.in: Remove references to vec-ipa.o.
1286
0dc32745
AB
12872019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1288
1289 * Makefile.in: Remove references to vec.c.
1290
3e6ec53a
CB
12912019-10-02 Christian Biesinger <cbiesinger@google.com>
1292
1293 * server.c (server_waiting): Change to bool.
1294 (extended_protocol): Likewise.
1295 (response_needed): Likewise.
1296 (exit_requested): Likewise.
1297 (run_once): Likewise.
1298 (report_no_resumed): Likewise.
1299 (non_stop): Likewise.
1300 (disable_packet_vCont): Likewise.
1301 (disable_packet_Tthread): Likewise.
1302 (disable_packet_qC): Likewise.
1303 (disable_packet_qfThreadInfo): Likewise.
1304 (handle_general_set): Update.
1305 (handle_detach): Update.
1306 (handle_monitor_command): Update.
1307 (handle_query): Update.
1308 (captured_main): Update.
1309 (process_serial_event): Update.
1310 * server.h (server_waiting): Change to bool.
1311 (disable_packet_vCont): Likewise.
1312 (disable_packet_Tthread): Likewise.
1313 (disable_packet_qC): Likewise.
1314 (disable_packet_qfThreadInfo): Likewise.
1315 (run_once): Likewise.
1316 (non_stop): Likewise.
1317 * target.c (target_stop_and_wait): Update.
1318
80fd2826
TT
13192019-10-02 Tom Tromey <tromey@adacore.com>
1320
1321 * Makefile.in (SFILES): Add common-inferior.c.
1322 (OBS): Add common-inferior.o.
1323 * server.c (startup_with_shell): Don't define.
1324
46f29a9a
AB
13252019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1326
1327 * linux-low.c (linux_low_read_btrace): Update for change to
1328 std::vector.
1329
f9d949fb
CB
13302019-09-20 Christian Biesinger <cbiesinger@google.com>
1331
1332 * debug.c (debug_threads): Remove comment in favor of the header.
1333 * debug.h (using_threads): Add declaration.
1334 (debug_threads): Add comment.
1335 * linux-aarch64-low.c: Include debug.h and remove declaration of
1336 debug_threads.
1337 * nto-low.c: Likewise.
1338 * remote-utils.c: Likewise.
1339 * thread-db.c: Likewise.
1340
abf516c6
UW
13412019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
1342
1343 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
1344 and powerpc-cell64l-ipa.o.
1345 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
1346 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
1347 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
1348 (spu*-*-*): Remove.
1349
1350 * spu-low.c: Remove file.
1351
1352 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
1353 (parse_spufs_run): Remove.
1354 (ppc_get_pc): Remove Cell/B.E. support.
1355 (ppc_set_pc): Likewise.
1356 (ppc_breakpoint_at): Likewise.
1357 (ppc_arch_setup): Likewise.
1358 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
1359 tdesc_powerpc_cell32l.
1360 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
1361 or init_registers_powerpc_cell32l.
1362 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
1363 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
1364 or init_registers_powerpc_cell32l.
1365 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
1366 (init_registers_powerpc_cell32l): Remove prototype.
1367 (init_registers_powerpc_cell64l): Likewise.
1368
1369 * target.h (struct target_ops): Remove qxfer_spu member.
1370 * server.c (handle_qxfer_spu): Remove.
1371 (qxfer_packets): Remove entry for "spu".
1372 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
1373 * linux-low.c (SPUFS_MAGIC): Remove.
1374 (spu_enumerate_spu_ids): Remove.
1375 (linux_qxfer_spu): Remove.
1376 (linux_target_ops): Remove qxfer_spu member.
1377 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
1378 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
1379 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
1380
2d41fa11
SDJ
13812019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
1382
1383 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
1384 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
1385 * config.in: Regenerate.
1386 * configure: Regenerate.
1387
d59b55f0
TT
13882019-08-15 Tom Tromey <tromey@adacore.com>
1389
1390 * target.c (target_write_memory): Use gdb::byte_vector.
1391
4196ab2a
TT
13922019-08-15 Tom Tromey <tromey@adacore.com>
1393
1394 * tracepoint.c (write_inferior_data_pointer)
1395 (write_inferior_integer, write_inferior_int8)
1396 (write_inferior_uinteger, m_tracepoint_action_download)
1397 (r_tracepoint_action_download, x_tracepoint_action_download)
1398 (l_tracepoint_action_download, clear_inferior_trace_buffer)
1399 (download_agent_expr, download_tracepoint_1)
1400 (download_trace_state_variables, upload_fast_traceframes): Update.
1401 * server.c (gdb_write_memory): Update.
1402 * remote-utils.c (relocate_instruction): Update.
1403 * proc-service.c (ps_pdwrite): Update.
1404 * mem-break.c (remove_memory_breakpoint)
1405 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
1406 (uninsert_fast_tracepoint_jumps_at)
1407 (reinsert_fast_tracepoint_jumps_at): Update.
1408 * linux-x86-low.c (append_insns)
1409 (i386_install_fast_tracepoint_jump_pad)
1410 (amd64_write_goto_address, i386_write_goto_address): Update.
1411 * linux-s390-low.c (append_insns, s390_write_goto_address):
1412 Update.
1413 * linux-ppc-low.c (ppc_relocate_instruction)
1414 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
1415 (ppc_write_goto_address): Update.
1416 * linux-aarch64-low.c (append_insns): Update.
1417 * target.h (struct target_ops): Update.
1418 (write_inferior_memory): Don't declare.
1419 * target.c (target_write_memory): Rename from
1420 write_inferior_memory. Remove old target_write_memory.
1421
c6778d00
TT
14222019-08-15 Tom Tromey <tromey@adacore.com>
1423
1424 * target.c (write_inferior_memory): Use std::vector.
1425
404f2902
FCE
14262019-08-06 Frank Ch. Eigler <fche@redhat.com>
1427
1428 PR build/24886
1429 * configure.ac: Drop enable-libmcheck support.
1430 * configure, config.in: Rebuild.
1431 * acinclude.m4: Don't include it.
1432
4c5aa8e0
AH
14332019-07-19 Alan Hayward <alan.hayward@arm.com>
1434
1435 * configure.srv: Remove Arm xml files.
1436
7cc17433
AH
14372019-07-19 Alan Hayward <alan.hayward@arm.com>
1438
1439 * configure.srv: Add new files. Remove xml generated files.
1440 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
1441 registers.
1442 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
1443 * linux-aarch32-tdesc.c: New file.
1444 * linux-aarch32-tdesc.h: New file.
1445 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
1446 * linux-arm-low.c (init_registers_arm, tdesc_arm)
1447 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
1448 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
1449 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
1450 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
1451 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
1452 (arm_read_description): Call arm_linux_read_description.
1453 (initialize_low_arch): Don't init registers.
1454 * linux-arm-tdesc.c: New file.
1455 * linux-arm-tdesc.h: New file.
1456
166a82be
AH
14572019-07-10 Alan Hayward <alan.hayward@arm.com>
1458
1459 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
1460 Move counter inside for.
1461 (arm_read_description): Check ptrace earlier.
1462 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
1463
268a13a5
TT
14642019-07-09 Tom Tromey <tom@tromey.com>
1465
1466 * configure: Rebuild.
1467 * configure.ac: Change common to gdbsupport.
1468 * acinclude.m4: Change common to gdbsupport.
1469 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
1470 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
1471 common to gdbsupport.
1472 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
1473 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
1474 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
1475 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
1476 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
1477 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
1478 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
1479 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
1480 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
1481 common to gdbsupport.
1482
350fab54
AH
14832019-07-04 Alan Hayward <alan.hayward@arm.com>
1484
1485 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
1486 defines.
1487 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
1488
2b40fda7
AH
14892019-07-04 Alan Hayward <alan.hayward@arm.com>
1490
1491 * configure.srv: Remove legacy xml.
1492 * linux-aarch64-low.c (initialize_low_arch): Remove
1493 initialize_low_tdesc call.
1494 * linux-aarch64-tdesc-selftest.c: Remove file.
1495 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
1496 * linux-x86-low.c (initialize_low_arch): Remove
1497 initialize_low_tdesc call.
1498 * linux-x86-tdesc-selftest.c: Remove file.
1499 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
1500
7d10623d
TV
15012019-06-20 Tom de Vries <tdevries@suse.de>
1502
1503 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
1504 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
1505
8d6a48df
TV
15062019-06-19 Tom de Vries <tdevries@suse.de>
1507
1508 * debug.h (debug_write): Change return type to ssize_t.
1509 * debug.c (debug_write): Same.
1510
73cc7272
TT
15112019-06-14 Tom Tromey <tom@tromey.com>
1512
1513 * configure.ac: Use new path to gnulib.
1514 * configure: Rebuild.
1515 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
1516 to gnulib.
1517
08f10e02
TT
15182019-06-11 Tom Tromey <tom@tromey.com>
1519
1520 * Makefile.in (SFILES): Add alloc.c.
1521 (OBS): Add alloc.o.
1522 (IPA_OBJS): Add alloc-ipa.o.
1523 (alloc-ipa.o): New target.
1524 (%.o: ../%.c): New pattern rule.
1525
422186a9
TT
15262019-06-10 Tom Tromey <tromey@adacore.com>
1527
1528 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
1529 end warning with a newline.
1530 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
1531 newline.
1532 * thread-db.c (attach_thread): Don't end warning with a newline.
1533 (thread_db_notice_clone): Likewise.
1534 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
1535 newline.
1536 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
1537 end warning with a newline.
1538
b02f78f9
PA
15392019-06-04 Pedro Alves <palves@redhat.com>
1540
1541 * server.c (captured_main): Use make_unique_xstrdup.
1542
88ed7edb
TT
15432019-06-02 Tom Tromey <tom@tromey.com>
1544
1545 * gdbreplay.c (fromhex): Remove.
1546 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
1547
33a6bc35
TT
15482019-05-29 Tom Tromey <tromey@adacore.com>
1549
1550 * configure: Rebuild.
1551
e90a813d
KB
15522019-05-06 Kevin Buettner <kevinb@redhat.com>
1553
1554 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
1555 sign extension code on 32-bit builds.
1556
353ea2d1
EZ
15572019-05-03 Eli Zaretskii <eliz@gnu.org>
1558
1559 * remote-utils.c:
1560 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
1561
b494cdff
TT
15622019-04-19 Tom Tromey <tom@tromey.com>
1563
1564 * server.c (struct vstop_notif): Derive from notif_event.
1565 <base>: Remove.
1566 (queue_stop_reply): Update.
1567 (remove_all_on_match_ptid): Change type. Rewrite.
1568 (discard_queued_stop_replies): Rewrite.
1569 (in_queued_stop_replies_ptid): Change type.
1570 (in_queued_stop_replies): Rewrite.
1571 (notif_stop): Update.
1572 (queue_stop_reply_callback): Update.
1573 (captured_main): Don't call initialize_notif.
1574 (push_stop_notification): Update.
1575 * notif.c (notif_write_event, handle_notif_ack)
1576 (notif_event_enque, notif_push): Update.
1577 (notif_event_xfree, initialize_notif): Remove.
1578 * notif.h (struct notif_event): Include <list>, not
1579 "common/queue.h".
1580 (struct notif_server) <queue>: Now a std::list.
1581 (notif_event_p): Remove typedef.
1582 (initialize_notif): Don't declare.
1583 (struct notif_event): Add virtual destructor.
1584
a7e559cc
AH
15852019-04-17 Alan Hayward <alan.hayward@arm.com>
1586
1587 * ax.c (ax_vdebug): Call debug_printf.
1588 * debug.c (debug_write): New function.
1589 * debug.h (debug_write): New declaration.
1590 * linux-low.c (sigchld_handler): Call debug_write.
1591
aeb2e706
AH
15922019-04-17 Alan Hayward <alan.hayward@arm.com>
1593
1594 * debug.c (debug_set_output): New function.
1595 (debug_vprintf): Send output to debug_file.
1596 (debug_flush): Likewise.
1597 * debug.h (debug_set_output): New declaration.
1598 * server.c (handle_monitor_command): Add debug-file option.
1599 (captured_main): Likewise.
1600
c1bc0935
AH
16012019-04-17 Alan Hayward <alan.hayward@arm.com>
1602
1603 * debug.c (remote_debug): Add definition.
1604 * debug.h (remote_debug): Add declaration.
1605 * hostio.c (remote_debug): Remove declaration.
1606 * remote-utils.c (struct ui_file): Likewise.
1607 (remote_debug): Likewise.
1608 * remote-utils.h (remote_debug): Likewise,
1609 * server.c (remote_debug): Remove definition.
1610
3f52fdbc
KB
16112019-04-10 Kevin Buettner <kevinb@redhat.com>
1612
1613 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
1614 when using a 64-bit gdbserver.
1615
b0319eaa
TT
16162019-04-09 Tom Tromey <tromey@adacore.com>
1617
1618 * linux-low.c (select_event_lwp): Use find_thread_in_random.
1619
eedc3f4f
TT
16202019-04-08 Tom Tromey <tom@tromey.com>
1621
1622 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
1623 throw.
1624 (linux_resume_one_lwp): Likewise.
1625
230d2906
TT
16262019-04-08 Tom Tromey <tom@tromey.com>
1627
1628 * gdbreplay.c: Update.
1629 * linux-low.c: Update.
1630 * server.c: Update.
1631
a70b8144
TT
16322019-04-08 Tom Tromey <tom@tromey.com>
1633
1634 * server.c: Use C++ exception handling.
1635 * linux-low.c: Use C++ exception handling.
1636 * gdbreplay.c: Use C++ exception handling.
1637
3d6e9d23
TT
16382019-04-08 Tom Tromey <tom@tromey.com>
1639
1640 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
1641 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
1642 (captured_main, main): Update.
1643 * gdbreplay.c (main): Update.
1644
0570503d
PFC
16452019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1646
1647 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
1648 value in argument pointer, return 1 if the entry is found and 0
1649 otherwise. Move comment.
1650 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
1651 * linux-low.h (linux_get_auxv): Declare.
1652 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
1653
227a9e65
TT
16542019-04-05 Tom Tromey <tromey@adacore.com>
1655
1656 * server.c (gdbserver_usage): Use upper-case for metasyntactic
1657 variables.
1658
69f4c9cc
AH
16592019-03-28 Alan Hayward <alan.hayward@arm.com>
1660
1661 * linux-low.c (AT_HWCAP2): Add define if not already included.
1662
974c89e0
AH
16632019-03-26 Alan Hayward <alan.hayward@arm.com>
1664
1665 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
1666 (aarch64_arch_setup): Call linux_get_hwcap.
1667 * linux-arm-low.c (arm_get_hwcap): Remove function.
1668 (arm_read_description): Call linux_get_hwcap.
1669 * linux-low.c (linux_get_auxv): New function.
1670 (linux_get_hwcap): Likewise.
1671 (linux_get_hwcap2): Likewise.
1672 * linux-low.h (linux_get_hwcap): New declaration.
1673 (linux_get_hwcap2): Likewise.
1674 * linux-ppc-low.c (ppc_get_auxv): Remove function.
1675 (ppc_arch_setup): Call linux_get_hwcap.
1676 * linux-s390-low.c (s390_get_hwcap): Remove function.
1677 (s390_arch_setup): Call linux_get_hwcap.
1678
1ef53e6b
AH
16792019-03-22 Alan Hayward <alan.hayward@arm.com>
1680 Jiong Wang <jiong.wang@arm.com>
1681
1682 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
1683 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
1684 to fail.
1685 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
1686
ee4fbcfa
AH
16872019-03-22 Alan Hayward <alan.hayward@arm.com>
1688 Jiong Wang <jiong.wang@arm.com>
1689
1690 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
1691 (aarch64_get_hwcap): New function.
1692 (aarch64_arch_setup): Read APIA hwcap.
1693
6dc0ebde
AH
16942019-03-22 Alan Hayward <alan.hayward@arm.com>
1695 Jiong Wang <jiong.wang@arm.com>
1696
1697 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
1698 (initialize_low_tracepoint): Likewise.
1699 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
1700 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
1701 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
1702 (aarch64_linux_read_description): Likewise.
1703 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
1704
1163a4b7
JB
17052019-03-12 John Baldwin <jhb@FreeBSD.org>
1706
1707 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
1708 i386_create_target_description for 'segments' parameter.
1709 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
1710 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
1711 * win32-i386-low.c (i386_arch_setup): Likewise.
1712
d3a70e03
TT
17132019-03-12 Tom Tromey <tromey@adacore.com>
1714
1715 * linux-low.c (iterate_over_lwps): Update.
1716
37991b4f
TT
17172019-03-06 Tom Tromey <tom@tromey.com>
1718
1719 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
1720 (captured_main): Use SCOPE_EXIT.
1721
45950eb6
SDJ
17222019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
1723
1724 * configure.srv: Use '$enable_unittest' instead of '$development'
1725 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
1726 case.
1727
43ac54fc
TT
17282019-02-27 Tom Tromey <tromey@adacore.com>
1729
1730 * gdbreplay.c (logchar): Handle \r\n.
1731
df0da8a2
AH
17322019-02-07 Alan Hayward <alan.hayward@arm.com>
1733
1734 * linux-low.c (linux_attach): Add process before lwp.
1735 * server.c (attach_inferior): Check if already attached.
1736
1a5c2598
TT
17372019-02-07 Tom Tromey <tom@tromey.com>
1738
1739 * x86-tdesc.h: Rename include guard.
1740 * x86-low.h: Add include guard.
1741 * wincecompat.h: Rename include guard.
1742 * win32-low.h: Add include guard.
1743 * utils.h: Rename include guard.
1744 * tracepoint.h: Rename include guard.
1745 * tdesc.h: Rename include guard.
1746 * target.h: Rename include guard.
1747 * server.h: Rename include guard.
1748 * remote-utils.h: Rename include guard.
1749 * regcache.h: Rename include guard.
1750 * nto-low.h: Rename include guard.
1751 * notif.h: Add include guard.
1752 * mem-break.h: Rename include guard.
1753 * lynx-low.h: Add include guard.
1754 * linux-x86-tdesc.h: Add include guard.
1755 * linux-s390-tdesc.h: Add include guard.
1756 * linux-ppc-tdesc-init.h: Add include guard.
1757 * linux-low.h: Add include guard.
1758 * linux-aarch64-tdesc.h: Add include guard.
1759 * linux-aarch32-low.h: Add include guard.
1760 * inferiors.h: Rename include guard.
1761 * i387-fp.h: Rename include guard.
1762 * hostio.h: Rename include guard.
1763 * gdbthread.h: Rename include guard.
1764 * gdb_proc_service.h: Rename include guard.
1765 * event-loop.h: Rename include guard.
1766 * dll.h: Rename include guard.
1767 * debug.h: Rename include guard.
1768 * ax.h: Rename include guard.
1769
956cc47c
SN
17702018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
1771
1772 PR gdb/23985
1773 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
1774 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
1775
a0707f3c
TT
17762019-01-25 Tom Tromey <tom@tromey.com>
1777
1778 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
1779
0747795c
TT
17802019-01-25 Tom Tromey <tom@tromey.com>
1781
1782 * win32-low.c: Fix common/ includes.
1783 * win32-i386-low.c: Fix common/ includes.
1784 * tracepoint.c: Fix common/ includes.
1785 * thread-db.c: Fix common/ includes.
1786 * target.h: Fix common/ includes.
1787 * symbol.c: Fix common/ includes.
1788 * spu-low.c: Fix common/ includes.
1789 * server.h: Fix common/ includes.
1790 * server.c: Fix common/ includes.
1791 * remote-utils.c: Fix common/ includes.
1792 * regcache.h: Fix common/ includes.
1793 * regcache.c: Fix common/ includes.
1794 * nto-x86-low.c: Fix common/ includes.
1795 * notif.h: Fix common/ includes.
1796 * mem-break.h: Fix common/ includes.
1797 * lynx-low.c: Fix common/ includes.
1798 * lynx-i386-low.c: Fix common/ includes.
1799 * linux-x86-tdesc-selftest.c: Fix common/ includes.
1800 * linux-x86-low.c: Fix common/ includes.
1801 * linux-low.c: Fix common/ includes.
1802 * inferiors.h: Fix common/ includes.
1803 * i387-fp.c: Fix common/ includes.
1804 * hostio.c: Fix common/ includes.
1805 * hostio-errno.c: Fix common/ includes.
1806 * gdbthread.h: Fix common/ includes.
1807 * gdbreplay.c: Fix common/ includes.
1808 * fork-child.c: Fix common/ includes.
1809 * event-loop.c: Fix common/ includes.
1810 * ax.c:
1811 (enum gdb_agent_op): Fix common/ includes.
1812
be6d4f74
TT
18132019-01-21 Tom Tromey <tom@tromey.com>
1814
1815 * tracepoint.c: Fix includes.
1816 * remote-utils.c: Fix includes.
1817 * linux-x86-low.c: Fix includes.
1818
66d91b39
JB
18192019-01-01 Joel Brobecker <brobecker@adacore.com>
1820
1821 * gdbreplay.c (gdbreplay_version): Update copyright year in
1822 version message.
1823 * server.c (gdbserver_version): Likewise.
1824
754e3168
AH
18252018-12-05 Alan Hayward <alan.hayward@arm.com>
1826
1827 * linux-low.c (add_lwp): Switch ordering.
1828
d105de22
TT
18292018-11-29 Tom Tromey <tom@tromey.com>
1830
1831 * win32-low.c (win32_join): Take pid, not process.
1832 * target.h (struct target_ops) <join>: Change argument type.
1833 (join_inferior): Change argument name.
1834 * spu-low.c (spu_join): Take pid, not process.
1835 * server.c (handle_detach): Preserve pid before destroying
1836 process.
1837 * lynx-low.c (lynx_join): Take pid, not process.
1838 * linux-low.c (linux_join): Take pid, not process.
1839
50138245
AH
18402018-11-23 Alan Hayward <alan.hayward@arm.com>
1841
1842 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
1843 (aarch64_cannot_fetch_register): Likewise.
1844 (struct linux_target_ops): Update references.
1845
64f57f3d
PFC
18462018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1847
1848 * linux-ppc-low.c: Include nat/linux-ptrace.h.
1849
8d619c01
EBM
18502018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1851
1852 * configure.srv (ipa_ppc_linux_regobj): Add
1853 powerpc-isa207-htm-vsx32l-ipa.o and
1854 powerpc-isa207-htm-vsx64l-ipa.o.
1855 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
1856 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
1857 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
1858 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
1859 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
1860 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
1861 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
1862 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
1863 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
1864 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
1865 (init_registers_powerpc_isa207_htm_vsx32l)
1866 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
1867 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
1868 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
1869 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
1870 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
1871 (ppc_store_tm_ctarregset): New functions.
1872 (ppc_regsets): Add entries for HTM regsets.
1873 (ppc_arch_setup): Set htm in features struct when needed. Set
1874 sizes for the HTM regsets.
1875 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
1876 (initialize_low_arch): Call
1877 init_registers_powerpc_isa207_htm_vsx32l and
1878 init_registers_powerpc_isa207_htm_vsx64l.
1879 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
1880 PPC_TDESC_ISA207_HTM_VSX.
1881 (initialize_low_tracepoint): Call
1882 init_registers_powerpc_isa207_htm_vsx32l and
1883 init_registers_powerpc_isa207_htm_vsx64l.
1884
232bfb86
EBM
18852018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1886
1887 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
1888 rs6000/power-linux-pmu.xml to srv_xmlfiles.
1889 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
1890 (ppc_store_pmuregset): New functions.
1891 (ppc_regsets): Add entries for ebb and pmu regsets.
1892 (ppc_arch_setup): Set isa207 in features struct if the ebb and
1893 pmu regsets are available. Set sizes for these regsets.
1894
f2cf6173
EBM
18952018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1896
1897 * configure.srv (ipa_ppc_linux_regobj): Add
1898 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
1899 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
1900 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
1901 rs6000/powerpc-isa207-vsx32l.xml, and
1902 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
1903 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
1904 <PPC_TDESC_ISA207_VSX>: New enum value.
1905 (init_registers_powerpc_isa207_vsx32l): Declare.
1906 (init_registers_powerpc_isa207_vsx64l): Declare.
1907 * linux-ppc-low.c (ppc_fill_tarregset): New function.
1908 (ppc_store_tarregset): New function.
1909 (ppc_regsets): Add entry for the TAR regset.
1910 (ppc_arch_setup): Set isa207 in features struct when needed. Set
1911 size for the TAR regsets.
1912 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
1913 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
1914 and init_registers_powerpc_isa207_vsx64l.
1915 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
1916 (initialize_low_tracepoint): Call
1917 init_registers_powerpc_isa207_vsx32l and
1918 init_registers_powerpc_isa207_vsx64l.
1919
7ca18ed6
EBM
19202018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1921 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1922
1923 * configure.srv (ipa_ppc_linux_regobj): Add
1924 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
1925 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
1926 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
1927 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
1928 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
1929 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
1930 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
1931 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
1932 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
1933 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
1934 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
1935 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
1936 (ppc_hwcap): Add comment.
1937 (ppc_hwcap2): New global.
1938 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
1939 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
1940 (ppc_regsets): Add entries for the DSCR and PPR regsets.
1941 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
1942 when needed. Set sizes for the the DSCR and PPR regsets.
1943 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
1944 (initialize_low_arch): Call
1945 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
1946 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
1947 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
1948 PPC_TDESC_ISA205_PPR_DSCR_VSX.
1949 (initialize_low_tracepoint): Call
1950 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
1951 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
1952
5c849b22
PFC
19532018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1954
1955 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
1956
8ecfd7bd
SDJ
19572018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
1958 Simon Marchi <simark@simark.ca>
1959
1960 * acinclude.m4: Include "../selftest.m4".
1961 * configure: Regenerate.
1962 * configure.ac: Use "GDB_AC_SELFTEST".
1963 * configure.srv: Use "$enable_unittests" instead of
1964 "$development" when checking whether unit tests have been
1965 enabled.
1966 * server.c (captured_main): Update message informing that
1967 selftests have been disabled.
1968
96643e35
TT
19692018-10-04 Tom Tromey <tom@tromey.com>
1970
1971 * configure: Rebuild.
1972
da4ae14a
TT
19732018-10-04 Tom Tromey <tom@tromey.com>
1974
1975 * server.c (handle_status): Rename inner "thread".
1976 (process_serial_event): Declare "res" in 'm' case.
1977 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
1978 (iterate_over_lwps): Rename inner "thread".
1979 (linux_qxfer_libraries_svr4): Rename inner "len".
1980 * gdbthread.h (find_thread_in_random): Rename inner "thread".
1981
7c619dbd
GB
19822018-10-01 Gary Benson <gbenson@redhat.com>
1983
1984 * gdb_proc_service.h: Moved common code to
1985 common/gdb_proc_service.h.
1986
3795e814
GB
19872018-10-01 Gary Benson <gbenson@redhat.com>
1988
1989 * gdb_proc_service.h: Synchronize comments and whitespace with
1990 GDB's version of this file.
1991
49b036f1
TT
19922018-09-25 Tom Tromey <tom@tromey.com>
1993
1994 * configure: Rebuild.
1995 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
1996
8ff03f0b
SM
19972018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
1998
1999 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
2000 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
2001 ($(IPA_LIB)): Sort IPA_OBJS.
2002
a1cd91dc
SM
20032018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
2004
2005 * Makefile.in: Remove references to $(ADD_DEPS).
2006
752312ba
TT
20072018-09-16 Tom Tromey <tom@tromey.com>
2008
2009 * remote-utils.c (remote_open): Use GNU style for metasyntactic
2010 variables.
2011 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
2012 variables.
2013
f1628857
TT
20142018-09-05 Tom Tromey <tom@tromey.com>
2015
2016 * configure: Rebuild.
2017
ad202fcc
SM
20182018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
2019
2020 PR build/23399
2021 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
2022
d3d8724a
TT
20232018-08-27 Tom Tromey <tom@tromey.com>
2024
2025 PR build/23087:
2026 * configure: Rebuild.
2027
b4f183d2
TT
20282018-08-27 Tom Tromey <tom@tromey.com>
2029
2030 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
2031 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
2032 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
2033 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
2034 (s390x_emit_stack_adjust): Add casts to unsigned char.
2035
4e2aa472
SM
20362018-08-22 Simon Marchi <simon.marchi@ericsson.com>
2037
2038 PR gdb/23374
2039 PR gdb/23375
2040 * server.h (struct client_state) <disable_randomization>:
2041 Initialize to 1.
2042
cf4088a9
SM
20432018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2044
2045 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
2046 variable.
2047 (mips_supply_ptrace_register): Likewise.
2048
a0de763e
TT
20492018-07-22 Tom Tromey <tom@tromey.com>
2050
2051 * configure: Rebuild.
2052
b0a7723d
TT
20532018-07-22 Tom Tromey <tom@tromey.com>
2054
2055 * win32-low.c (win32_create_inferior): Remove unused variables.
2056 * gdbreplay.c (remote_open): Remove unused variable.
2057 * remote-utils.c (remote_prepare): Remove unused variable.
2058 * x86-tdesc.h (X86_TDESC_H): Define.
2059 (amd64_expedite_regs): Define conditionally.
2060 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
2061 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
2062 * remote-utils.c (readchar): Remove unused variable.
2063
a780ef4f
PA
20642018-07-13 Pedro Alves <palves@redhat.com>
2065
2066 * linux-low.c (linux_kill): Change parameter to process_info
2067 pointer instead of pid. Adjust.
2068 * lynx-low.c (lynx_kill): Likewise.
2069 * nto-low.c (nto_kill): Likewise.
2070 * spu-low.c (spu_kill): Likewise.
2071 * win32-low.c (win32_kill): Likewise.
2072 * server.c (handle_v_kill, kill_inferior_callback)
2073 (detach_or_kill_for_exit): Adjust.
2074 * target.c (kill_inferior): Change parameter to process_info
2075 pointer instead of pid. Adjust.
2076 * target.h (struct target_ops) <kill>: Change parameter to
2077 process_info pointer instead of pid. Adjust all implementations
2078 and callers.
2079 (kill_inferior): Likewise.
2080
ef2ddb33
PA
20812018-07-13 Pedro Alves <palves@redhat.com>
2082
2083 * linux-low.c (linux_detach, linux_join): Change parameter to
2084 process_info pointer instead of pid. Adjust.
2085 * lynx-low.c (lynx_detach, lynx_join): Likewise.
2086 * nto-low.c (nto_detach): Likewise.
2087 * spu-low.c (spu_detach, spu_join): Likewise.
2088 * win32-low.c (win32_detach, win32_join): Likewise.
2089 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
2090 * target.h (struct target_ops) <detach, join>: Change parameter to
2091 process_info pointer instead of pid. Adjust all implementations
2092 and callers.
2093 (detach_inferior, join_inferior): Rename 'pid' parameter to
2094 'proc'.
2095
c7ab0aef
SDJ
20962018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
2097 Jan Kratochvil <jan.kratochvil@redhat.com>
2098 Paul Fertser <fercerpav@gmail.com>
2099 Tsutomu Seki <sekiriki@gmail.com>
2100
2101 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
2102 (OBS): Add 'common/netstuff.o'.
2103 (GDBREPLAY_OBS): Likewise.
2104 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
2105 (remote_open): Implement support for IPv6
2106 connections.
2107 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
2108 and 'wspiapi.h'.
2109 (handle_accept_event): Accept connections from IPv6 sources.
2110 (remote_prepare): Handle IPv6-style hostnames; implement
2111 support for IPv6 connections.
2112 (remote_open): Implement support for printing connections from
2113 IPv6 sources.
2114
31445d10
PA
21152018-07-11 Pedro Alves <palves@redhat.com>
2116
2117 PR gdb/23377
2118 * mem-break.c (any_persistent_commands): Add process_info
2119 parameter and use it instead of relying on the current process.
2120 Change return type to bool.
2121 * mem-break.h (any_persistent_commands): Add process_info
2122 parameter and change return type to bool.
2123 * server.c (handle_detach): Remove require_running_or_return call.
2124 Look up the process_info for the process we're about to detach.
2125 If not found, return back error to GDB. Adjust
2126 any_persistent_commands call to pass down a process pointer.
2127
cb197132
PA
21282018-07-11 Pedro Alves <palves@redhat.com>
2129
2130 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
2131 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
2132 instead of collect_register_by_name.
2133 * regcache.c (regcache_raw_get_unsigned_by_name): New.
2134 * regcache.h (regcache_raw_get_unsigned_by_name): New.
2135
1b919490
VB
21362018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
2137 Pedro Alves <palves@redhat.com>
2138
2139 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
2140
d7e15655
TT
21412018-07-03 Tom Tromey <tom@tromey.com>
2142
2143 * linux-low.c: Update.
2144 * lynx-low.c: Update.
2145 * mem-break.c: Update.
2146 * nto-low.c: Update.
2147 * remote-utils.c: Update.
2148 * server.c: Update.
2149 * spu-low.c: Update.
2150 * target.c: Update.
2151 * win32-low.c: Update.
2152
26a57c92
TT
21532018-07-03 Tom Tromey <tom@tromey.com>
2154
2155 * server.c: Update.
2156
0e998d96
TT
21572018-07-03 Tom Tromey <tom@tromey.com>
2158
2159 * linux-low.c: Update.
2160
cc6bcb54
TT
21612018-07-03 Tom Tromey <tom@tromey.com>
2162
2163 * target.c: Update.
2164
e38504b3
TT
21652018-07-03 Tom Tromey <tom@tromey.com>
2166
2167 * linux-low.c: Update.
2168 * linux-mips-low.c: Update.
2169 * lynx-low.c: Update.
2170 * nto-low.c: Update.
2171 * remote-utils.c: Update.
2172 * server.c: Update.
2173 * spu-low.c: Update.
2174 * target.c: Update.
2175 * thread-db.c: Update.
2176
e99b03dc
TT
21772018-07-03 Tom Tromey <tom@tromey.com>
2178
2179 * linux-low.c: Update.
2180 * linux-mips-low.c: Update.
2181 * lynx-low.c: Update.
2182 * mem-break.c: Update.
2183 * nto-low.c: Update.
2184 * remote-utils.c: Update.
2185 * server.c: Update.
2186 * spu-low.c: Update.
2187 * target.c: Update.
2188 * tracepoint.c: Update.
2189
f2907e49
TT
21902018-07-03 Tom Tromey <tom@tromey.com>
2191
2192 * linux-low.c: Update.
2193 * linux-ppc-low.c: Update.
2194 * linux-x86-low.c: Update.
2195 * proc-service.c: Update.
2196 * server.c: Update.
2197 * spu-low.c: Update.
2198 * thread-db.c: Update.
2199 * win32-low.c: Update.
2200
fd79271b
TT
22012018-07-03 Tom Tromey <tom@tromey.com>
2202
2203 * linux-low.c: Update.
2204 * lynx-low.c: Update.
2205 * nto-low.c: Update.
2206 * remote-utils.c: Update.
2207 * spu-low.c: Update.
2208 * thread-db.c: Update.
2209 * win32-low.c: Update.
2210
c0867626
SDJ
22112018-06-29 Joel Brobecker <brobecker@adacore.com>
2212
2213 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
2214 parameter in call to 'amd64_create_target_description'.
2215
2512d7ef
JK
22162018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2217
2218 * x86-tdesc.h: Remove executable permission flag.
2219
d0ac1c44
SM
22202018-06-19 Simon Marchi <simon.marchi@ericsson.com>
2221
2222 * configure.ac: Remove AC_PREREQ, add missing quoting.
2223 * configure: Re-generate.
2224 * config.in: Re-generate.
2225 * aclocal.m4: Re-generate.
2226
c4eb05ff
SM
22272018-06-18 Simon Marchi <simon.marchi@ericsson.com>
2228
2229 * tracepoint.h (current_traceframe): Remove declaration.
2230
02895270
AH
22312018-06-18 Alan Hayward <alan.hayward@arm.com>
2232
2233 * linux-aarch64-low.c (is_sve_tdesc): New function.
2234 (aarch64_sve_regs_copy_to_regcache): Likewise.
2235 (aarch64_sve_regs_copy_from_regcache): Likewise.
2236 (aarch64_regs_info): Add SVE checks.
2237 (initialize_low_arch): Initialize SVE.
2238
e9902bfc
AH
22392018-06-18 Alan Hayward <alan.hayward@arm.com>
2240
2241 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
2242
fefa175e
AH
22432018-06-11 Alan Hayward <alan.hayward@arm.com>
2244
2245 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
2246 (initialize_low_tracepoint): Likewise
2247 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
2248 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
2249 param.
2250 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
2251 checks.
2252 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
2253
b91ad3ff
AH
22542018-06-11 Alan Hayward <alan.hayward@arm.com>
2255
2256 * server.h (PBUFSIZ): Increase size
2257
f868386e
AH
22582018-06-11 Alan Hayward <alan.hayward@arm.com>
2259
2260 * regcache.c (regcache::raw_compare): New function.
2261 * regcache.h (regcache::raw_compare): New declaration.
2262
9c861883
AH
22632018-06-11 Alan Hayward <alan.hayward@arm.com>
2264
2265 * regcache.c (new_register_cache): Use new.
2266 (free_register_cache): Use delete.
2267 (register_data): Use const.
2268 (supply_register): Move body inside regcache.
2269 (regcache::raw_supply): New override function.
2270 (collect_register): Move body inside regcache.
2271 (regcache::raw_collect): New override function.
2272 (regcache::get_register_status): New override function.
2273 * regcache.h (struct regcache): Inherit from reg_buffer_common.
2274
40591844
TT
22752018-06-09 Tom Tromey <tom@tromey.com>
2276
2277 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
2278 declare queue.
2279 (event_queue): Use std::queue.
2280 (gdb_event_xfree): Remove.
2281 (initialize_event_loop, process_event, wait_for_event): Update.
2282
6341380d
SC
22832018-06-08 Stan Cox <scox@redhat.com>
2284
2285 * win32-low.c (win32_create_inferior): last_ptid and last_status
2286 moved to client_state.
2287
03349c93
PA
22882018-06-08 Pedro Alves <palves@redhat.com>
2289
2290 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
2291 common/common-exceptions.o, common/common-utils.o,
2292 common/errors.o, common/print-utils.o and utils.o.
2293 * gdbreplay.c: Include "common-defs.h" instead of the two
2294 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
2295 string.h or alloca.h.
2296 (perror_with_name): Delete.
2297 (remote_open): Use xstrdup instead of strdup.
2298 (main): Rename to ...
2299 (captured_main): ... this.
2300 (main): New.
2301
8dcc53b3
TT
23022018-06-08 Tom Tromey <tom@tromey.com>
2303
2304 * linux-low.c (linux_low_read_btrace): Update.
2305
c12a5089
SC
23062018-06-04 Stan Cox <scox@redhat.com>
2307
2308 * server.h (struct client_state): New.
2309 * server.c (cont_thread, general_thread, multi_process)
2310 (report_fork_events, report_vfork_events, report_exec_events)
2311 (report_thread_events, swbreak_feature, hwbreak_feature)
2312 (vCont_supported, disable_randomization, pass_signals)
2313 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
2314 Moved to client_state.
2315 * remote-utils.c (remote_debug, noack_mode)
2316 (transport_is_reliable): Moved to client_state.
2317 * tracepoint.c (current_traceframe): Moved to client_state.
2318
2319 Update all callers.
2320 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
2321 linux-low.c, remote-utils.h, target.c: Use client_state.
2322
122394f1
AH
23232018-05-31 Alan Hayward <alan.hayward@arm.com>
2324
2325 * configure.srv: Add new c/h file.
2326
95228a0d
AH
23272018-05-31 Alan Hayward <alan.hayward@arm.com>
2328
2329 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
2330 null VQ.
2331
d8dab6c3
MR
23322018-05-25 Maciej W. Rozycki <macro@mips.com>
2333
2334 * gdb.arch/mips-fpregset-core.exp: New test.
2335 * gdb.arch/mips-fpregset-core.c: New test source.
2336
81e25b7c
EK
23372018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
2338
2339 PR server/23198
2340 * hostio.c (require_int): Do not report overflow for integers
2341 between 0xfffffff and 0x7fffffff.
2342
7e947ad3
MR
23432018-05-22 Maciej W. Rozycki <macro@mips.com>
2344
2345 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
2346 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
2347 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
2348 functions.
2349 (the_low_target): Wire them.
2350
1d75a658
PFC
23512018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
2352
2353 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
2354 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
2355 mode. Call collect_register_by_name with vscr using
2356 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
2357 (ppc_store_vrregset): Add and set vscr_offset variable as in
2358 ppc_fill_vrregset. Call supply_register_by_name with vscr using
2359 vscr_offset.
2360
d078308a
PFC
23612018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
2362
2363 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
2364 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
2365 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
2366
7273b5fc
PFC
23672018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
2368
2369 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
2370 (ppc_store_vsxregset): Likewise.
2371 (ppc_fill_vrregset): Likewise.
2372 (ppc_store_vrregset): Likewise.
2373 (ppc_fill_evrregset): Likewise.
2374 (ppc_store_evrregset): Likewise.
2375 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
2376 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
2377 needed.
2378
2e077f5e
PFC
23792018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
2380
2381 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
2382 wordsize of the inferior. Call ppc_linux_target_wordsize.
2383
bd64614e
PFC
23842018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
2385
2386 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
2387 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
2388 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
2389 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
2390 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
2391 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
2392 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
2393 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
2394 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
2395 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
2396 (tdesc_powerpc_e500l): Remove.
2397 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
2398 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
2399 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
2400 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
2401 linux-ppc-tdesc.h.
2402 (ppc_arch_setup): Remove target description matching code. Fill a
2403 ppc_linux_features struct and call ppc_linux_match_description
2404 with it.
2405
75d74cca
MR
24062018-05-22 Maciej W. Rozycki <macro@mips.com>
2407
2408 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
2409 width of the requested register exceeds the width of the
2410 `ptrace' data type.
2411 (mips_cannot_store_register): Likewise.
2412
e4439e43
MR
24132018-05-21 Maciej W. Rozycki <macro@mips.com>
2414
2415 * linux-mips-low.c (mips_fetch_register): New function. Update
2416 preceding comment.
2417 (mips_store_gregset): Supply 0 rather than $restart for $zero.
2418 (the_low_target): Wire `mips_fetch_register'.
2419
55271bf9
JB
24202018-05-10 Joel Brobecker <brobecker@adacore.com>
2421
2422 * lynx-i386-low.c (LYNXOS_178): New macro.
2423 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
2424 the layout on LynxOS-178.
2425 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
2426 handle floating point registers that are not supported by
2427 LynxOS-178.
2428
1a34f210
TT
24292018-05-10 Tom Tromey <tom@tromey.com>
2430
2431 * configure: Rebuild.
2432
190852c8
JB
24332018-05-10 Joel Brobecker <brobecker@adacore.com>
2434
2435 PR server/23158:
2436 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
2437 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
2438 Use it to set the expedite_regs field in the given tdesc.
2439 * x86-tdesc.h: New file.
2440 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
2441 Adjust following the addition of the new expedite_regs parameter
2442 to init_target_desc.
2443 * linux-tic6x-low.c (tic6x_read_description): Likewise.
2444 * linux-x86-tdesc.c: #include "x86-tdesc.h".
2445 (i386_linux_read_description, amd64_linux_read_description):
2446 Adjust following the addition of the new expedite_regs parameter
2447 to init_target_desc.
2448 * lynx-i386-low.c: #include "x86-tdesc.h".
2449 (lynx_i386_arch_setup): Adjust following the addition of the new
2450 expedite_regs parameter to init_target_desc.
2451 * nto-x86-low.c: #include "x86-tdesc.h".
2452 (nto_x86_arch_setup): Adjust following the addition of the new
2453 expedite_regs parameter to init_target_desc.
2454 * win32-i386-low.c: #include "x86-tdesc.h".
2455 (i386_arch_setup): Adjust following the addition of the new
2456 expedite_regs parameter to init_target_desc.
2457
7dbac825
JB
24582018-05-10 Joel Brobecker <brobecker@adacore.com>
2459
2460 PR server/23158:
2461 * win32-low.c (win32_create_inferior): Add call to my_wait
2462 setting last_status global.
2463
906994d9
JB
24642018-05-10 Joel Brobecker <brobecker@adacore.com>
2465
2466 PR server/23158:
2467 * win32-low.c (create_process): Only call gdb_tilde_expand if
2468 inferior_cwd is not NULL.
2469
8ee22052
AB
24702018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
2471
2472 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
2473 registers to the cache if their values have changed.
2474 (i387_xsave_to_cache): Provide default values for x87 control
2475 registers when these features are available, but disabled.
2476 * regcache.c (supply_register_by_name_zeroed): New function.
2477 * regcache.h (supply_register_by_name_zeroed): Declare new
2478 function.
2479
aff689d3
TT
24802018-05-07 Tom Tromey <tom@tromey.com>
2481
2482 * configure: Rebuild.
2483
85e26832
TT
24842018-05-04 Tom Tromey <tom@tromey.com>
2485
2486 * configure: Rebuild.
2487
a3b60e45
JK
24882018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2489 Pedro Alves <palves@redhat.com>
2490
2491 * linux-aarch64-low.c (aarch64_stopped_data_address):
2492 Likewise.
2493
632e107b
TT
24942018-04-27 Tom Tromey <tom@tromey.com>
2495
2496 * configure: Rebuild.
2497
458412c3
TT
24982018-04-23 Tom Tromey <tom@tromey.com>
2499
2500 * configure: Rebuild.
2501
f31c089e
SM
25022018-04-19 Simon Marchi <simon.marchi@ericsson.com>
2503
2504 * Makefile.in (depcomp): Add "..".
2505 (all_deps_files): New and use it.
2506
b319b098
AH
25072018-04-18 Alan Hayward <alan.hayward@arm.com>
2508
2509 * configure.srv (aarch64*-*-linux*): Don't include xml.
2510 (i[34567]86-*-cygwin*): Likewise.
2511 (i[34567]86-*-linux*): Likewise.
2512 (i[34567]86-*-lynxos*): Likewise.
2513 (i[34567]86-*-mingw32ce*): Likewise.
2514 (i[34567]86-*-mingw*): Likewise.
2515 (i[34567]86-*-nto*): Likewise.
2516 (tic6x-*-uclinux): Likewise.
2517 (x86_64-*-linux*): Likewise.
2518 (x86_64-*-mingw*): Likewise.
2519 (x86_64-*-cygwin*): Likewise.
2520
3b74854b
AH
25212018-04-18 Alan Hayward <alan.hayward@arm.com>
2522
2523 * tdesc.c: Remove xml parameter.
2524
e98577a9
AH
25252018-04-18 Alan Hayward <alan.hayward@arm.com>
2526
2527 * server.c (get_features_xml): Remove cast.
2528 * tdesc.c (void target_desc::accept): Fill in function.
2529 (tdesc_get_features_xml): Remove old xml creation.
2530 (print_xml_feature::visit_pre): Add xml vistor.
2531 * tdesc.h (struct target_desc): Make xmltarget mutable.
2532 (tdesc_get_features_xml): Remove declaration.
2533
d278f585
AH
25342018-04-18 Alan Hayward <alan.hayward@arm.com>
2535
2536 * tdesc.c (tdesc_architecture_name): Add new function.
2537 (tdesc_osabi_name): Likewise.
2538 (tdesc_get_features_xml): Use new functions.
2539
eee8a18d
AH
25402018-04-18 Alan Hayward <alan.hayward@arm.com>
2541
2542 * tdesc.c (tdesc_create_flags): Remove.
2543 (tdesc_add_flag): Likewise.
2544 (tdesc_named_type): Likewise.
2545 (tdesc_create_union): Likewise.
2546 (tdesc_create_struct): Likewise.
2547 (tdesc_create_vector): Likewise.
2548 (tdesc_add_bitfield): Likewise.
2549 (tdesc_add_field): Likewise.
2550 (tdesc_set_struct_size): Likewise.
2551
82ec9bc7
AH
25522018-04-18 Alan Hayward <alan.hayward@arm.com>
2553
2554 * tdesc.c (~target_desc): Remove implictly deleted items.
2555 (init_target_desc): Iterate all features.
2556 (tdesc_get_features_xml): Use vector.
2557 (tdesc_create_feature): Create feature.
2558 * tdesc.h (tdesc_feature) Remove
2559 (target_desc): Add features.
2560
ea3e7d71
AH
25612018-04-18 Alan Hayward <alan.hayward@arm.com>
2562
2563 * Makefile.in: Add common/tdesc.c
2564 * tdesc.c (init_target_desc): init all reg_defs from register
2565 vector.
2566 (tdesc_create_reg): Create tdesc_reg.
2567 * tdesc.h (tdesc_feature): Add register vector.
2568
17d08cd4
SM
25692018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
2570
2571 * tdesc.h (struct target_desc) <features>: Change type to
2572 std::vector<std::string>.
2573 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
2574 changes.
2575 (tdesc_get_features_xml): Likewise.
2576 (tdesc_create_feature): Likewise.
2577
5cd3e386
AH
25782018-03-26 Alan Hayward <alan.hayward@arm.com>
2579
2580 * regcache.c (find_register_by_number): Return a ref.
2581 (find_regno): Use references.
2582 (register_size): Likewise.
2583 (register_data): Likewise.
2584 * tdesc.c (target_desc::~target_desc): Remove free calls.
2585 (target_desc::operator==): Use std::vector compare.
2586 (init_target_desc): Use reference.
2587 (tdesc_create_reg): Use reg constructors.
2588 * tdesc.h (struct target_desc): Replace pointer with object.
2589
dff7492c
AH
25902018-03-23 Alan Hayward <alan.hayward@arm.com>
2591
2592 * regcache.c (find_register_by_number): Make static.
2593 (find_regno): Use find_register_by_number
2594 * regcache.h (struct reg): Remove declaration.
2595
d80e5242
AH
25962018-03-23 Alan Hayward <alan.hayward@arm.com>
2597
2598 * tdesc.c (target_desc::~target_desc): Move to here.
2599 (target_desc::operator==): Likewise.
2600 * tdesc.h (target_desc::~target_desc): Move from here.
2601 (target_desc::operator==): Likewise.
2602
f69c5afb
AA
26032018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
2604
2605 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
2606
ce29f843
AA
26072018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2608
2609 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
2610 S390_TDESC_GS.
2611 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
2612 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
2613 and init_registers_s390_gs_linux64.
2614
c49bd90b
AA
26152018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2616
2617 * linux-s390-low.c (s390_fill_gs): Remove function.
2618 (s390_fill_gsbc): Remove function.
2619 (s390_regsets): Set fill functions for the guarded storage regsets
2620 to NULL.
2621
7edb9bd3
AA
26222018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2623
2624 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
2625 the word size. Add comment.
2626 (s390_get_wordsize): New function.
2627 (s390_arch_setup): No longer select a temporary tdesc to fetch the
2628 pswm with it. Instead, use s390_get_wordsize to determine the
2629 word size first and derive the correct tdesc from that directly.
2630
39be3c7e
SM
26312018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
2632
2633 * Makefile.in: Include silent-rules.mk.
2634 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
2635 (COMPILE): Add ECHO_CXX.
2636 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
2637 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
2638 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
2639 (version-generated.c): Add ECHO_GEN.
2640 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
2641 (IPAGENT_COMPILE): Add ECHO_CXX.
2642 (%-generated.c): Add ECHO_REGDAT.
2643
3ae9ce5d
TT
26442018-03-14 Tom Tromey <tom@tromey.com>
2645
2646 PR cli/14977:
2647 * ax.c (ax_printf): Special case for NULL.
2648
e6a58aa8
SM
26492018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
2650
2651 * linux-low.c (linux_qxfer_libraries_svr4): Use
2652 xml_escape_text_append.
2653
f6e8a41e
SM
26542018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
2655
2656 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
2657
b9671caf
SM
26582018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
2659
2660 * server.c (handle_general_set): Remove unnecessary xstrdup.
2661
e80aaf61
SM
26622018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
2663
2664 * server.c (parse_debug_format_options): Adjust to
2665 delim_string_to_char_ptr_vec changes.
2666 * thread-db.c (thread_db_load_search): Adjust to
2667 dirnames_to_char_ptr_vec changes.
2668
b1223e78
MM
26692018-03-01 Markus Metzger <markus.t.metzger@intel.com>
2670
2671 * target.h (target_enable_btrace, target_disable_btrace)
2672 (target_read_btrace, target_read_btrace_conf): Turn macro into
2673 inline function. Throw error if target method is not defined.
2674 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
2675 check for btrace target method. Be prepared to handle exceptions
2676 from btrace target methods.
2677
81561546
SDJ
26782018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
2679
2680 * server.c (captured_main): Change order of error message printed
2681 when the current working directory cannot be found.
2682
25e3c82c
SDJ
26832018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
2684
2685 * server.c: Include "filenames.h" and "pathstuff.h".
2686 (program_name): Delete variable.
2687 (program_path): New anonymous class.
2688 (get_exec_wrapper): Use "program_path" instead of
2689 "program_name".
2690 (handle_v_run): Likewise.
2691 (captured_main): Likewise.
2692 (process_serial_event): Likewise.
2693
b4987c95
SDJ
26942018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
2695
2696 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
2697 (OBJS): Add "pathstuff.o".
2698 * server.c (current_directory): New global variable.
2699 (captured_main): Initialize "current_directory".
2700
f46cd62a
AH
27012018-02-26 Alan Hayward <alan.hayward@arm.com>
2702
2703 * tdesc.c: Use common/tdesc.h.
2704 * tdesc.h: Likewise.
2705
a543c5ca
AH
27062018-02-20 Alan Hayward <alan.hayward@arm.com>
2707 Simon Marchi <simon.marchi@ericsson.com>
2708
2709 * Makefile.in: Switch order of make rules.
2710
b5884fa7
AH
27112018-02-19 Alan Hayward <alan.hayward@arm.com>
2712
2713 * Makefile.in: Add common directory in build.
2714 * configure.ac: Add common reference.
2715 * configure: Regenerate.
2716
de6242d3
MM
27172018-02-09 Markus Metzger <markus.t.metzger@intel.com>
2718
2719 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
2720 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
2721 * spu-low.c (spu_target_ops): Likewise.
2722 * win32-low.c (win32_target_ops): Likewise.
2723 * server.c (supported_btrace_packets): Report packets unconditionally.
2724 * target.h (target_ops) <supports_btrace>: Remove.
2725 (target_supports_btrace): Remove.
2726
9ee23a85
MM
27272018-02-09 Markus Metzger <markus.t.metzger@intel.com>
2728
2729 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
2730 (handle_btrace_disable): Change return type to void. Use exceptions
2731 to report errors.
2732 (handle_btrace_general_set): Catch exception and copy message to
2733 return message.
2734
8ce47547
TT
27352018-02-08 Tom Tromey <tom@tromey.com>
2736
2737 * linux-low.c (install_software_single_step_breakpoints): Use
2738 make_scoped_restore.
2739 * inferiors.c (make_cleanup_restore_current_thread): Remove.
2740 (do_restore_current_thread_cleanup): Remove.
2741 * gdbthread.h (make_cleanup_restore_current_thread): Don't
2742 declare.
2743
45dd3607
TT
27442018-02-08 Tom Tromey <tom@tromey.com>
2745
2746 * mem-break.c (set_raw_breakpoint_at): Use
2747 gdb::unique_xmalloc_ptr.
2748
e671cd59
PA
27492018-01-30 Pedro Alves <palves@redhat.com>
2750
2751 PR gdb/13211
2752 * target.c (target_terminal::terminal_state): Rename to ...
2753 (target_terminal::m_terminal_state): ... this.
2754
a0aad537
JC
27552018-01-19 James Clarke <jrtc27@jrtc27.com>
2756
2757 * linux-low.c (handle_extended_wait): Surround call to
2758 thread_db_notice_clone with #ifdef USE_THREAD_DB.
2759
4d9b86e1
SM
27602018-01-17 Simon Marchi <simon.marchi@ericsson.com>
2761
2762 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
2763 linux_ptrace_attach_fail_reason_string now returning an
2764 std::string.
2765 (linux_attach): Likewise.
2766 * thread-db.c (attach_thread): Likewise.
2767
f517c180
EA
27682018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
2769
2770 PR gdb/21559
2771 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
2772 checking for fs_base/gs_base fields in struct user_regs_struct.
2773 * configure: Regenerate.
2774
9a70f35c
YQ
27752018-01-16 Yao Qi <yao.qi@linaro.org>
2776
2777 PR gdb/18749
2778 * linux-low.c (fetch_register): Call supply_register instead of
2779 error.
2780
605fd3c6
YQ
27812018-01-08 Yao Qi <yao.qi@linaro.org>
2782 Simon Marchi <simon.marchi@ericsson.com>
2783
2784 * Makefile.in (OBS): Remove selftest.o.
2785 * configure.ac: Set srv_selftest_objs if $development is true.
2786 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
2787 * configure: Re-generated.
2788 * server.c (captured_main): Wrap variable selftest_filter with
2789 GDB_SELF_TEST.
2790
2cc05030
SM
27912018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
2792
2793 * server.c (parse_debug_format_options): Return std::string.
2794 (handle_monitor_command, captured_main): Adjust.
2795
e379cee6
PA
27962018-01-05 Pedro Alves <palves@redhat.com>
2797
2798 PR gdb/18653
2799 * server.c (captured_main): Pass quiet=false to
2800 save_original_signals_state.
2801
82e1e79a
JB
28022018-01-01 Joel Brobecker <brobecker@adacore.com>
2803
2804 * gdbreplay.c (gdbreplay_version): Update copyright year in
2805 version message.
2806 * server.c (gdbserver_version): Likewise.
2807
8e481c3b
TT
28082017-12-08 Tom Tromey <tom@tromey.com>
2809
2810 * ax.c (ax_printf): Update.
2811
a8806230
YQ
28122017-12-07 Yao Qi <yao.qi@linaro.org>
2813
2814 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
2815 aarch64_linux_read_description.
2816 * linux-amd64-ipa.c (idx2mask): New array.
2817 (get_ipa_tdesc): Move idx2mask out.
2818 (initialize_low_tracepoint): Initialize target descriptions.
2819 * linux-i386-ipa.c (idx2mask): New array.
2820 (get_ipa_tdesc): Move idx2mask out.
2821 (initialize_low_tracepoint): Initialize target descriptions.
2822
d4a0e8b5
SM
28232017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
2824
2825 * tdesc.c (struct tdesc_type): Change return type.
2826 (tdesc_add_flag): Change parameter type.
2827 (tdesc_add_bitfield): Likewise.
2828 (tdesc_add_field): Likewise.
2829 (tdesc_set_struct_size): Likewise.
2830
798a7429
SM
28312017-12-05 Simon Marchi <simon.marchi@ericsson.com>
2832
2833 * regcache.c (registers_to_string): Remove unused variable.
2834
c0e15c9b
SM
28352017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2836
2837 * inferiors.c (for_each_inferior_with_data): Remove.
2838 * inferiors.h (for_each_inferior_with_data): Remove.
2839 * server.c (handle_qxfer_threads_worker): Change parameter type.
2840 (handle_qxfer_threads_proper): Use for_each_thread.
2841
f0045347
SM
28422017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2843
2844 * inferiors.c (for_each_inferior): Remove.
2845 (clear_inferiors): Use for_each_thread.
2846 * inferiors.h (for_each_inferior): Remove.
2847 * linux-low.c (linux_wait_for_event_filtered): Use
2848 for_each_thread.
2849 (linux_stabilize_threads): Likewise.
2850 * regcache.c (regcache_release): Likewise.
2851 * server.c (gdb_wants_all_threads_stopped): Likewise.
2852 (clear_pending_status_callback): Remove.
2853 (handle_status): Use for_each_thread.
2854 (captured_main): Likewise.
2855 * win32-low.c (child_init_thread_list): Likewise.
2856 (win32_clear_inferiors): Likewise.
2857 (fake_breakpoint_event): Likewise.
2858
9521758b
SM
28592017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2860
2861 * inferiors.h (find_inferior): Remove.
2862 * inferiors.c (find_inferior): Remove.
2863
8f86d7aa
SM
28642017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2865
2866 * linux-low.c (resume_status_pending_p): Update comment.
2867 (need_step_over_p): Update comment.
2868
e2b44075
SM
28692017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2870
2871 * linux-low.c (proceed_one_lwp): Return void, change parameter
2872 type.
2873 (unsuspend_and_proceed_one_lwp): Likewise.
2874 (proceed_all_lwps): Use for_each_thread.
2875 (unstop_all_lwps): Likewise.
2876
c80825ff
SM
28772017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2878
2879 * linux-low.c (linux_resume_one_thread): Return void, take
2880 parameter directly.
2881 (linux_resume): Use for_each_thread.
2882
df3e4dbe
SM
28832017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2884
2885 * linux-low.c (send_sigstop_callback): Return void, change
2886 parameter type. Rename to...
2887 (send_sigstop): ... this.
2888 (suspend_and_send_sigstop_callback): Return void, change parameter
2889 type. Rename to...
2890 (suspend_and_send_sigstop): ... this.
2891 (stop_all_lwps): Use for_each_thread.
2892
5a6b0a41
SM
28932017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2894
2895 * linux-low.c (lwp_running): Return bool, remove unused
2896 argument.
2897 (linux_stabilize_threads): Use find_thread.
2898
39a64da5
SM
28992017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2900
2901 * linux-low.c (select_singlestep_lwp_callback): Remove.
2902 (count_events_callback): Remove.
2903 (select_event_lwp_callback): Remove.
2904 (select_event_lwp): Use find_thread/for_each_thread.
2905
a1385b7b
SM
29062017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2907
2908 * linux-low.c (not_stopped_callback): Return bool, take filter
2909 argument directly.
2910 (linux_wait_for_event_filtered): Use find_thread.
2911 (linux_wait_1): Likewise.
2912
454296a2
SM
29132017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2914
2915 * linux-low.c (same_lwp): Remove.
2916 (find_lwp_pid): Use find_thread.
2917
6b2a85da
SM
29182017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2919
2920 * linux-low.c (delete_lwp_callback): Remove.
2921 (linux_mourn): Use for_each_thread.
2922
798a38e8
SM
29232017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2924
2925 * linux-low.c (linux_detach_lwp_callback): Return void, remove
2926 args parameter, don't check for pid.
2927 (linux_detach): Use for_each_thread.
2928
e4eb0dec
SM
29292017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2930
2931 * linux-low.c (struct counter): Remove.
2932 (second_thread_of_pid_p): Remove.
2933 (last_thread_of_process_p): Use find_thread.
2934
83e1b6c1
SM
29352017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2936
2937 * inferiors.c (find_inferior_in_random): Remove.
2938 * inferiors.h (find_inferior_in_random): Remove.
2939 * linux-low.c (status_pending_p_callback): Return bool, accept
2940 parameter ptid directly.
2941 (linux_wait_for_event_filtered): Use find_thread_in_random.
2942 (linux_wait_1): Likewise.
2943
8dc7b443
SM
29442017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2945
2946 * inferiors.c (find_inferior_id): Remove.
2947 (find_thread_ptid): Move implemention from find_inferior_id to
2948 here.
2949 * inferiors.h (find_inferior_id): Remove.
2950 * server.c (handle_status): Use find_thread_ptid.
2951 (process_serial_event): Likewise.
2952 * thread-db.c (find_one_thread): Likewise.
2953 (thread_db_thread_handle): Likewise.
2954 * win32-low.c (thread_rec): Likewise.
2955 (child_delete_thread): Likewise.
2956 (win32_thread_alive): Likewise.
2957 (get_child_debug_event): Likewise.
2958
da25033c
SM
29592017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2960
2961 * linux-mips-low.c (update_watch_registers_callback): Return
2962 void, remove pid_p parameter, don't check for pid.
2963 (mips_insert_point, mips_remove_point): Use for_each_thread.
2964
c91bb56b
SM
29652017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2966
2967 * lynx.low (lynx_delete_thread_callback): Remove.
2968 (lynx_mourn): Use for_each_thread.
2969
634a3254
SM
29702017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2971
2972 * regcache.c (regcache_invalidate_one): Remove.
2973 (regcache_invalidate_pid): use for_each_thread.
2974
41272101
TT
29752017-11-26 Tom Tromey <tom@tromey.com>
2976
2977 * linux-low.c (linux_create_inferior): Update.
2978
f5291a6f
UW
29792017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
2980
2981 * spu-low.c (spu_create_inferior): Fix typo in argument name.
2982
6654d750
AH
29832017-11-24 Alan Hayward <alan.hayward@arm.com>
2984
2985 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
2986 * linux-aarch64-low.c (initialize_low_arch): Call init func.
2987 * linux-aarch64-tdesc-selftest.c: New file.
2988 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
2989
29902017-11-24 Alan Hayward <alan.hayward@arm.com>
2991
2992 * configure.srv: Add new file.
2993 * linux-aarch64-low.c (initialize_low_arch): Call init func.
2994 * linux-aarch64-tdesc-selftest.c: New file.
2995 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
2996
49bdb7ee
AH
29972017-11-24 Alan Hayward <alan.hayward@arm.com>
2998
2999 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
3000 * linux-aarch64-low.c (initialize_low_arch): Remove init.
3001 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
3002
d6d7ce56
AH
30032017-11-24 Alan Hayward <alan.hayward@arm.com>
3004
3005 * configure.srv: Add new files.
3006 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
3007 aarch64_linux_read_description.
3008 * linux-aarch64-low.c (aarch64_linux_read_description):
3009 Merge with aarch64_arch_setup.
3010 (aarch64_arch_setup): Call aarch64_linux_read_description.
3011 * linux-aarch64-tdesc.c: New file.
3012 * linux-aarch64-tdesc.h: New file.
3013
506fe5f4
YQ
30142017-11-24 Yao Qi <yao.qi@linaro.org>
3015
3016 * configure.srv: Set $srv_regobj for tic6x-linux.
3017 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
3018 (tic6x_read_description): Move some code to tic6x_arch_setup.
3019 (tic6x_tdesc_test): New function.
3020 (initialize_low_arch): Call selftests::register_test.
3021
29f9a567
YQ
30222017-11-22 Yao Qi <yao.qi@linaro.org>
3023
3024 * remote-utils.c (prepare_resume_reply): Use memcpy.
3025
578290ec
SM
30262017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3027
3028 * linux-low.c (kill_one_lwp_callback): Return void, take
3029 argument directly, don't filter on pid.
3030 (linux_kill): Use for_each_thread.
3031
eca55aec
SM
30322017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3033
3034 * linux-low.c (need_step_over_p): Return bool, remove dummy
3035 argument.
3036 (linux_resume, proceed_all_lwps): Use find_thread.
3037
25c28b4d
SM
30382017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3039
3040 * linux-low.c (resume_status_pending_p): Return bool, remove
3041 flag_p argument.
3042 (linux_resume): Use find_thread.
3043
5fdda392
SM
30442017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3045
3046 * linux-low.c (struct thread_resume_array): Remove.
3047 (linux_set_resume_request): Return void, take arguments
3048 directly.
3049 (linux_resume): Use for_each_thread.
3050
fcb056a5
SM
30512017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3052
3053 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
3054 return bool, remove data argument.
3055 (linux_stabilize_threads): Use find_thread.
3056
139720c5
SM
30572017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3058
3059 * linux-low.c (unsuspend_one_lwp): Remove.
3060 (unsuspend_all_lwps): Use for_each_thread, inline code from
3061 unsuspend_one_lwp.
3062
6d1e5673
SM
30632017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3064
3065 * gdbthread.h (find_thread): Add overload with ptid_t filter.
3066 * linux-low.c (struct iterate_over_lwps_args): Remove.
3067 (iterate_over_lwps_filter): Remove.
3068 (iterate_over_lwps): Use find_thread.
3069
bbf550d5
SM
30702017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3071
3072 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
3073 (linux_handle_new_gdb_connection): Use for_each_thread, inline
3074 code from reset_lwp_ptrace_options_callback.
3075
00192f77
SM
30762017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3077
3078 * linux-arm-low.c (struct update_registers_data): Remove.
3079 (update_registers_callback): Return void, take arguments
3080 directly, don't check thread's pid.
3081 (arm_insert_point, arm_remove_point): Use for_each_thread.
3082
2bee2b6c
SM
30832017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3084
3085 * win32-low.c (continue_one_thread): Return void, take argument
3086 directly.
3087 (child_continue): Use for_each_thread.
3088
0b360f19
SM
30892017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3090
3091 * win32-i386-low.c (update_debug_registers_callback): Rename
3092 to ...
3093 (update_debug_registers): ... this, return void, remove pid_p arg.
3094 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
3095
f27866ba
SM
30962017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
3097
3098 * inferiors.h (struct process_info): Add constructor, initialize
3099 fields..
3100 <syscalls_to_catch>: Change type to std::vector<int>.
3101 * inferiors.c (add_process): Allocate process_info with new.
3102 (remove_process): Free process_info with delete.
3103 * linux-low.c (handle_extended_wait): Adjust.
3104 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
3105 * server.c (handle_general_set): Adjust.
3106
e849ea89
PA
31072017-11-16 Pedro Alves <palves@redhat.com>
3108
3109 * remote-utils.c (remote_close): Block SIGIO signals instead of
3110 uninstalling the SIGIO handler.
3111
1d0aa65c
AH
31122017-11-16 Alan Hayward <alan.hayward@arm.com>
3113
3114 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
3115
3491a34c
YQ
31162017-11-16 Yao Qi <yao.qi@linaro.org>
3117
3118 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
3119 (tic6x_store_gregset): Likewise.
3120 (tic6x_usrregs_info): Move it up.
3121
a602f924
AH
31222017-11-15 Alan Hayward <alan.hayward@arm.com>
3123
3124 * Makefile.in: Update arch rules.
3125 * configure.srv: Explicitly mark arch/ files.
3126
5616b6c3
AS
31272017-11-13 Andreas Schwab <schwab@suse.de>
3128
3129 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
3130 function.
3131 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
3132
d1928160
PA
31332017-11-06 Pedro Alves <palves@redhat.com>
3134
3135 * config.in, configure: Regenerate.
3136
bac608e7
SM
31372017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3138
3139 * target.c (struct thread_search): Remove.
3140 (thread_search_callback): Remove.
3141 (prepare_to_access_memory): Use for_each_thread instead of
3142 find_inferior. Inline code from thread_search_callback.
3143
eaddb425
SM
31442017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3145
3146 * server.c (struct visit_actioned_threads_data): Remove.
3147 (visit_actioned_threads): Change prototype to take arguments
3148 directly.
3149 (resume): Use find_thread instead of find_inferior.
3150
99078d34
SM
31512017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3152
3153 * server.c (queue_stop_reply_callback): Change prototype, return
3154 void.
3155 (find_status_pending_thread_callback): Remove.
3156 (handle_status): Replace find_inferior with find_thread and
3157 for_each_thread.
3158
cc628f3d
AH
31592017-10-25 Alan Hayward <alan.hayward@arm.com>
3160
3161 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
3162 with REGNO.
3163 (aarch64_store_gregset): Likewise.
3164 (aarch64_fill_fpregset): Likewise.
3165 (aarch64_store_fpregset): Likewise.
3166
4d3bb80e
SM
31672017-10-21 Simon Marchi <simon.marchi@ericsson.com>
3168
3169 * gdbthread.h (find_thread, for_each_thread): New functions.
3170 * inferiors.c (thread_of_pid): Remove.
3171 (find_any_thread_of_pid): Use find_thread.
3172 * linux-low.c (num_lwps): Use for_each_thread.
3173
7a7cdfa0
YQ
31742017-10-17 Yao Qi <yao.qi@linaro.org>
3175
3176 * Makefile.in: Remove one rule.
3177 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
3178
e675d170
YQ
31792017-10-17 Yao Qi <yao.qi@linaro.org>
3180
3181 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
3182 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
3183
7eb4e0f9
YQ
31842017-10-17 Yao Qi <yao.qi@linaro.org>
3185
3186 * configure.srv: Rename arm.o with arch/arm.o.
3187
60d6cfc9
YQ
31882017-10-17 Yao Qi <yao.qi@linaro.org>
3189
3190 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
3191 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
3192 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
3193 (arch-i386.o, arch-amd64.o): Remove rules.
3194 (arch/%.o): New rule.
3195 Update POSTCOMPILE and COMPILE.pre.
3196 * configure.ac: Invoke AC_CONFIG_COMMANDS.
3197 * configure: Re-generated.
3198 * configure.srv: Replace arch-i386.o with arch/i386.o.
3199 Replace arch-amd64.o with arch/amd64.o.
3200
5bfda255
YQ
32012017-10-16 Yao Qi <yao.qi@linaro.org>
3202
3203 * configure: Regenerated.
3204
9c80ecd6
SM
32052017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
3206
3207 * inferiors.h: (struct inferior_list): Remove.
3208 (struct inferior_list_entry); Remove.
3209 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
3210 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
3211 get_first_inferior): Remove.
3212 (for_each_inferior, for_each_inferior_with_data, find_inferior,
3213 find_inferior_id, find_inferior_in_random): Change signature.
3214 * inferiors.c (all_threads): Change type to
3215 std::list<thread_info *>.
3216 (get_thread): Remove macro.
3217 (find_inferior, find_inferior_id): Change signature, implement
3218 using find_thread.
3219 (find_inferior_in_random): Change signature, implement using
3220 find_thread_in_random.
3221 (for_each_inferior, for_each_inferior_with_data): Change
3222 signature, implement using for_each_thread.
3223 (add_inferior_to_list, remove_inferior): Remove.
3224 (add_thread, get_first_thread, thread_of_pid,
3225 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
3226 (get_first_inferior, one_inferior_p, clear_inferior_list):
3227 Remove.
3228 (clear_inferiors, get_thread_process): Update.
3229 * gdbthread.h: Include <list>.
3230 (struct thread_info) <entry>: Remove field.
3231 <id>: New field.
3232 (all_threads): Change type to std::list<thread_info *>.
3233 (get_first_inferior): Add doc.
3234 (find_thread, for_each_thread, find_thread_in_random): New
3235 functions.
3236 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
3237 * linux-arm-low.c (update_registers_callback): Update.
3238 * linux-low.c (second_thread_of_pid_p): Update.
3239 (kill_one_lwp_callback, linux_detach_lwp_callback,
3240 delete_lwp_callback, status_pending_p_callback, same_lwp,
3241 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
3242 iterate_over_lwps, not_stopped_callback,
3243 resume_stopped_resumed_lwps, count_events_callback,
3244 select_singlestep_lwp_callback, select_event_lwp_callback,
3245 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
3246 suspend_and_send_sigstop_callback, wait_for_sigstop,
3247 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
3248 lwp_running, linux_set_resume_request, resume_status_pending_p,
3249 need_step_over_p, start_step_over, linux_resume_one_thread,
3250 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
3251 reset_lwp_ptrace_options_callback): Update.
3252 * linux-mips-low.c (update_watch_registers_callback): Update.
3253 * regcache.c (regcache_invalidate_one, regcache_invalidate):
3254 Update.
3255 (free_register_cache_thread_one): Remove.
3256 (regcache_release): Update.
3257 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
3258 handle_qxfer_threads_worker): Update.
3259 (handle_query): Update, use list iterator.
3260 (visit_actioned_threads, handle_pending_status,
3261 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
3262 clear_pending_status_callback, set_pending_status_callback,
3263 find_status_pending_thread_callback, handle_status,
3264 process_serial_event): Update.
3265 * target.c (thread_search_callback): Update.
3266 * thread-db.c (thread_db_get_tls_address): Update.
3267 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
3268 Update.
3269 * win32-i386-low.c (update_debug_registers_callback): Update.
3270 * win32-low.c (delete_thread_info, child_delete_thread,
3271 continue_one_thread, suspend_one_thread,
3272 get_child_debug_event): Adjust.
3273
9179355e
SM
32742017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
3275
3276 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
3277 * inferiors.h: Include <list>.
3278 (struct process_info) <entry>: Remove field.
3279 <pid>: New field.
3280 (pid_of): Change macro to function.
3281 (ptid_of, lwpid_of): Remove macro.
3282 (all_processes): Change type to std::list<process_info *>.
3283 (ALL_PROCESSES): Remove macro.
3284 (for_each_process, find_process): New function.
3285 * inferiors.c (all_processes): Change type to
3286 std::list<process_info *>.
3287 (find_thread_process): Adjust.
3288 (add_process): Likewise.
3289 (remove_process): Likewise.
3290 (find_process_pid): Likewise.
3291 (get_first_process): Likewise.
3292 (started_inferior_callback): Remove.
3293 (have_started_inferiors_p): Adjust.
3294 (attached_inferior_callback): Remove.
3295 (have_attached_inferiors_p): Adjust.
3296 * linux-low.c (check_zombie_leaders): Likewise.
3297 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
3298 (x86_linux_update_xmltarget): Adjust.
3299 * server.c (handle_query): Likewise.
3300 (gdb_reattached_process): Remove.
3301 (handle_status): Adjust.
3302 (kill_inferior_callback): Likewise.
3303 (detach_or_kill_inferior): Remove.
3304 (print_started_pid): Likewise.
3305 (print_attached_pid): Likewise.
3306 (detach_or_kill_for_exit): Update.
3307 (process_serial_event): Likewise.
3308 * linux-arm-low.c (arm_new_fork): Likewise.
3309
c9cb8905
SM
33102017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
3311
3312 * dll.h: Include <list>.
3313 (struct dll_info): Add constructor.
3314 <entry>: Remove field.
3315 (all_dlls): Change type to std::list<dll_info>.
3316 * dll.c: Include <algorithm>.
3317 (get_dll): Remove macro.
3318 (all_dlls): Change type to std::list<dll_info *>.
3319 (free_one_dll): Remove.
3320 (match_dll): Likewise.
3321 (loaded_dll): Adjust.
3322 (unloaded_dll): Adjust to all_dlls type change, use
3323 std::find_if. Inline code from match_dll.
3324 (clear_dlls): Adjust to all_dlls type change.
3325 * server.c (emit_dll_description): Remove.
3326 (handle_qxfer_libraries): Adjust to all_dlls type change,
3327 integrate emit_dll_description's functionality.
3328
04ec7890
SM
33292017-10-12 Simon Marchi <simon.marchi@ericsson.com>
3330
3331 * linux-low.h (struct linux_target_ops) <delete_process>: New
3332 field.
3333 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
3334 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
3335 (struct linux_target_ops): Add delete_process callback.
3336 * linux-arm-low.c (arm_delete_process): New.
3337 (struct linux_target_ops): Add delete_process callback.
3338 * linux-bfin-low.c (struct linux_target_ops): Likewise.
3339 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
3340 * linux-m32r-low.c (struct linux_target_ops): Likewise.
3341 * linux-mips-low.c (mips_linux_delete_process): New.
3342 (struct linux_target_ops): Add delete_process callback.
3343 * linux-ppc-low.c (struct linux_target_ops): Likewise.
3344 * linux-s390-low.c (struct linux_target_ops): Likewise.
3345 * linux-sh-low.c (struct linux_target_ops): Likewise.
3346 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
3347 * linux-tile-low.c (struct linux_target_ops): Likewise.
3348 * linux-x86-low.c (x86_linux_delete_process): New.
3349 (struct linux_target_ops): Add delete_process callback.
3350 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
3351
466eecee
SM
33522017-10-12 Simon Marchi <simon.marchi@ericsson.com>
3353
3354 * linux-aarch64-low.c (the_low_target): Add thread delete
3355 callback.
3356 * linux-arm-low.c (arm_delete_thread): New function.
3357 (the_low_target): Add thread delete callback.
3358 * linux-bfin-low.c (the_low_target): Likewise.
3359 * linux-crisv32-low.c (the_low_target): Likewise.
3360 * linux-low.c (delete_lwp): Invoke delete_thread callback if
3361 set.
3362 * linux-low.h (struct linux_target_ops) <delete_thread>: New
3363 field.
3364 * linux-m32r-low.c (the_low_target): Add thread delete callback.
3365 * linux-mips-low.c (mips_linux_delete_thread): New function.
3366 (the_low_target): Add thread delete callback.
3367 * linux-ppc-low.c (the_low_target): Likewise.
3368 * linux-s390-low.c (the_low_target): Likewise.
3369 * linux-sh-low.c (the_low_target): Likewise.
3370 * linux-tic6x-low.c (the_low_target): Likewise.
3371 * linux-tile-low.c (the_low_target): Likewise.
3372 * linux-x86-low.c (the_low_target): Likewise.
3373 * linux-xtensa-low.c (the_low_target): Likewise.
3374
b79f7801
YZ
33752017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
3376
3377 * win32-low.c: Include "common-inferior.h".
3378
bc3b087d
SDJ
33792017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
3380
3381 * inferiors.c (set_inferior_cwd): New function.
3382 * server.c (handle_general_set): Handle QSetWorkingDir packet.
3383 (handle_query): Inform that QSetWorkingDir is supported.
3384 * win32-low.c (create_process): Pass the inferior's cwd to
3385 CreateProcess.
3386
d092c5a2
SDJ
33872017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
3388
3389 * inferiors.c (current_inferior_cwd): New global variable.
3390 (get_inferior_cwd): New function.
3391 * inferiors.h (struct process_info) <cwd>: New field.
3392
7da0a886
SDJ
33932017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
3394
3395 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
3396 (OBS): Add gdb_tilde_expand.o.
3397
289a6840
SM
33982017-10-02 Simon Marchi <simon.marchi@ericsson.com>
3399
3400 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
3401 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
3402
256642e8
PA
34032017-09-29 Pedro Alves <palves@redhat.com>
3404
3405 * ax.c (gdb_parse_agent_expr): Constify.
3406 * ax.h (gdb_parse_agent_expr): Constify.
3407 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
3408 Constify.
3409 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
3410 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
3411 * remote-utils.h (read_ptid): Constify.
3412 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
3413 (process_point_options, process_serial_event): Constify.
3414 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
3415 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
3416 (cmd_qtbuffer): Constify.
3417
5b9ca4d4
PA
34182017-09-29 Pedro Alves <palves@redhat.com>
3419
3420 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
3421 fails.
3422
94c207e0
PA
34232017-09-29 Pedro Alves <palves@redhat.com>
3424
3425 * linux-low.c (handle_extended_wait): Pass parent thread instead
3426 of process to thread_db_notice_clone.
3427 * linux-low.h (thread_db_notice_clone): Replace parent process
3428 parameter with parent thread parameter.
3429 * thread-db.c (find_one_thread): Add comment.
3430 (thread_db_notice_clone): Replace parent process parameter with
3431 parent thread parameter. Temporarily switch to the parent thread.
3432
75352e28
SDJ
34332017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
3434
3435 * gdbthread.h: Include "common-gdbthread.h".
3436 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
3437 "if" when validating the ptid.
3438 * remote-utils.c: Include "gdbthread.h".
3439 (prepare_resume_reply): Use "switch_to_thread".
3440 * target.c (done_accessing_memory): Likewise.
3441
ad339634
AA
34422017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
3443
3444 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
3445 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
3446 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
3447 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
3448 s390x-gs-linux64-ipa.o to ipa_obj.
3449 * linux-s390-low.c (HWCAP_S390_GS): New define.
3450 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
3451 New functions.
3452 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
3453 (s390_arch_setup): Check for guarded-storage support and choose
3454 appropriate tdesc.
3455 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
3456 init_registers_s390x_gs_linux64.
3457 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
3458 enum value.
3459 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
3460 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
3461
cc4d742f
SM
34622017-09-22 Simon Marchi <simon.marchi@ericsson.com>
3463
3464 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
3465
f6327dcb
KB
34662017-09-21 Kevin Buettner <kevinb@redhat.com>
3467
3468 * linux-low.h (struct lwp_info): Add new field, thread_handle.
3469 (thread_db_thread_handle): Declare.
3470 * linux-low.c (linux_target_ops): Initialize thread_handle.
3471 * server.c (handle_qxfer_threads_worker): Add support for
3472 "handle" attribute.
3473 * target.h (struct target_ops): Add new function pointer,
3474 thread_handle.
3475 (target_thread_handle): Define.
3476 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
3477 field in lwp.
3478 (thread_db_thread_handle): New function.
3479
86299109
KB
34802017-09-21 Kevin Buettner <kevinb@redhat.com>
3481
3482 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
3483 * linux-low.h (thread_db_notice_clone): Declare.
3484 * thread-db.c (thread_db_notice_clone): New function.
3485
f557a88a
PA
34862017-09-21 Pedro Alves <palves@redhat.com>
3487
3488 * server.c (gdb_read_memory, handle_status, process_serial_event)
3489 (handle_serial_event, handle_target_event): Adjust to
3490 set_desired_thread prototype change.
3491 * target.c (set_desired_thread): Remove 'use_general' parameter
3492 and adjust.
3493 * target.h (set_desired_thread): Remove 'use_general' parameter.
3494
223ffa71
TT
34952017-09-20 Tom Tromey <tom@tromey.com>
3496
3497 * target.c (target_terminal::terminal_state): Define.
3498 (target_terminal::init): Rename from target_terminal_init.
3499 (target_terminal::inferior): Rename from
3500 target_terminal_inferior.
3501 (target_terminal::ours): Rename from target_terminal_ours.
3502 (target_terminal::ours_for_output, target_terminal::info): New.
3503
04fd3ba9
SM
35042017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3505
3506 * server.c (accumulate_file_name_length): Remove.
3507 (emit_dll_description): Adjust to std::string change.
3508 (handle_qxfer_libraries): Use std::string to hold document.
3509
5e187554
SM
35102017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3511
3512 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
3513 return type of xml_escape_text.
3514 * server.c (emit_dll_description): Likewise.
3515
1526853e
SM
35162017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3517
3518 * server.c (captured_main): Accept argument for --selftest.
3519 Update run_tests call.
3520 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
3521 when registering selftests.
3522
c4dfafab
SDJ
35232017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3524
3525 * regcache.c (get_thread_regcache): Update code to use "std::vector"
3526 instead of "VEC" for "target_desc.reg_defs".
3527 (regcache_cpy): Likewise.
3528 (registers_to_string): Likewise.
3529 (registers_from_string): Likewise.
3530 (find_regno): Likewise.
3531 (supply_regblock): Likewise.
3532 (regcache_raw_read_unsigned): Likewise.
3533 * tdesc.c (init_target_desc): Likewise.
3534 (tdesc_create_reg): Likewise.
3535 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
3536 (struct target_desc) <reg_defs>: Convert to "std::vector".
3537 (target_desc): Do not initialize "reg_defs".
3538 (~target_desc): Update code to use "std::vector" instead of "VEC"
3539 for "target_desc.reg_defs".
3540 (operator==): Likewise.
3541
124aceb4
SM
35422017-09-15 Simon Marchi <simon.marchi@ericsson.com>
3543
3544 * inferiors.h (thread_to_gdb_id): Remove.
3545 * inferiors.c (thread_to_gdb_id): Remove.
3546 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
3547 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
3548 lynx_store_registers, lynx_read_memory, lynx_write_memory):
3549 Likewise.
3550 * nto-low.c (nto_fetch_registers, nto_store_registers,
3551 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
3552
96cde54f
SM
35532017-09-15 Simon Marchi <simon.marchi@ericsson.com>
3554
3555 * inferiors.h (gdb_id_to_thread_id): Remove.
3556 * inferiors.c (gdb_id_to_thread_id): Remove.
3557 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
3558 removal. Move pid declaration closer to where it's used.
3559
e8ca139e
SM
35602017-09-15 Simon Marchi <simon.marchi@ericsson.com>
3561
3562 * server.c (handle_detach): New function.
3563 (process_serial_event): Move code out, call handle_detach.
3564
f8a4e119
SM
35652017-09-15 Simon Marchi <simon.marchi@ericsson.com>
3566
3567 * server.c (require_running): Rename to ...
3568 (require_running_or_return): ... this ...
3569 (require_running_or_break): ... and this.
3570 (handle_query, process_serial_event): Adjust.
3571
0eb0a407
SM
35722017-09-15 Simon Marchi <simon.marchi@ericsson.com>
3573
3574 * linux-low.c (linux_set_resume_request): Remove unused
3575 variables.
3576
785922a5
SM
35772017-09-15 Simon Marchi <simon.marchi@ericsson.com>
3578
3579 * server.c (first_thread_of): Remove.
3580 (process_serial_event): Replace usage of first_thread_of with
3581 find_any_thread_of_pid.
3582 * tracepoint.c (same_process_p): Remove.
3583 (gdb_agent_about_to_close): Replace usage of same_process_p with
3584 find_any_thread_of_pid.
3585 * linux-x86-low.c (same_process_callback): Remove.
3586 (x86_arch_setup_process_callback): Replace usage of
3587 same_process_callback with find_any_thread_of_pid.
3588 * thread-db.c (any_thread_of): Remove.
3589 (switch_to_process): Replace usage of any_thread_of with
3590 find_any_thread_of_pid.
3591 * inferiors.c (thread_pid_matches_callback): Remove.
3592 (find_thread_process): Adjust to use find_any_thread_of_pid.
3593
a059f00c
SDJ
35942017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
3595
3596 * regcache.c (get_thread_regcache): Guard calls to "memset"
e79be6e5 3597 with "!VEC_empty".
a059f00c 3598
cc397f3a
SDJ
35992017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
3600
3601 * linux-low.c (handle_extended_wait): Use
3602 "allocate_target_description" instead of "XNEW".
3603 * linux-x86-low.c (initialize_low_arch): Likewise.
3604
22916b07
YQ
36052017-09-05 Yao Qi <yao.qi@linaro.org>
3606
3607 * configure.srv (srv_i386_regobj): Remove.
3608 (srv_amd64_regobj): Remove.
3609 (srv_regobj): Set it to "" for x86 non-linux targets.
3610 * linux-x86-tdesc.c (i386_linux_read_description):
3611 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
3612 (init_registers_i386): Remove the declaration.
3613 (tdesc_i386): Remove the declaration.
3614 (lynx_i386_arch_setup): Call i386_create_target_description.
3615 * nto-x86-low.c: Likewise.
3616 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
3617 [!__x86_64__]: include arch/i386.h.
3618 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
3619
38602d55
YQ
36202017-09-05 Yao Qi <yao.qi@linaro.org>
3621
3622 * configure.srv (srv_amd64_linux_xmlfiles): Remove
3623 i386/amd64-XXX-linux from it.
3624
44b886ff
YQ
36252017-09-05 Yao Qi <yao.qi@linaro.org>
3626
3627 * configure.srv: Empty srv_amd64_linux_regobj if $development is
3628 false.
3629 (ipa_amd64_linux_regobj): Remove.
3630 (ipa_x32_linux_regobj): Remove.
3631
b4570e4b
YQ
36322017-09-05 Yao Qi <yao.qi@linaro.org>
3633
3634 * Makefile.in (arch-amd64.o): New rule.
3635 * configure.srv: Append arch-amd64.o.
3636 * linux-amd64-ipa.c: Include common/x86-xstate.h.
3637 (get_ipa_tdesc): Call amd64_linux_read_description.
3638 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
3639 and init_registers_amd64_XXX.
3640 * linux-x86-low.c (x86_linux_read_description): Call
3641 amd64_linux_read_description.
3642 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
3643 (initialize_low_arch): Don't call init_registers_x32_XXX and
3644 init_registers_amd64_XXX.
3645 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
3646 and tdesc_amd64_XXX.
3647 [__x86_64__] (amd64_tdesc_test): New function.
3648 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
3649 and init_registers_amd64_XXX.
3650 * linux-x86-tdesc.c: Include arch/amd64.h.
3651 (xcr0_to_tdesc_idx): New function.
3652 (i386_linux_read_description): New function.
3653 (amd64_get_ipa_tdesc_idx): New function.
3654 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
3655 (amd64_get_ipa_tdesc): Declare.
3656
d1f28ea2
YQ
36572017-09-05 Yao Qi <yao.qi@linaro.org>
3658
3659 * configure.srv (srv_i386_linux_xmlfiles): Remove
3660 i386/i386-XXX-linux.xml from it.
3661
25a93583
YQ
36622017-09-05 Yao Qi <yao.qi@linaro.org>
3663
3664 * configure.srv: Set srv_i386_linux_regobj empty if $development
3665 is false.
3666 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
3667 initialize_low_tdesc.
3668 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
3669 with #if initialize_low_tdesc.
3670 * linux-x86-tdesc-selftest.c: New file.
3671 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
3672
5f035c07
YQ
36732017-09-05 Yao Qi <yao.qi@linaro.org>
3674
3675 * Makefile.in (arch-i386.o): New rule.
3676 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
3677 (x86_64-*-linux*): Likewise.
3678 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
3679 include arch/i386.h.
3680 (i386_linux_read_description): Remove code and call
3681 i386_create_target_description.
3682 * tdesc.c (allocate_target_description): New function.
3683 * tdesc.h (set_tdesc_architecture): Remove declaration.
3684 (set_tdesc_osabi): Likewise.
3685
0abe8a89
YQ
36862017-09-05 Yao Qi <yao.qi@linaro.org>
3687
3688 * linux-x86-tdesc.c: Don't include <inttypes.h>.
3689 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
3690 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
3691 .xmltarget.
3692 * server.c (get_features_xml): Call tdesc_get_features_xml.
3693 * tdesc.c (set_tdesc_architecture): New function.
3694 (set_tdesc_osabi): New function.
3695 (tdesc_get_features_xml): New function.
3696 (tdesc_create_feature): Add an argument.
3697 * tdesc.h (struct target_desc) <features>: New field.
3698 <arch, osabi>: New field.
3699 (~target_desc): xfree features, arch, and osabi.
3700 (target_desc::oerator==): Don't compare .xmltarget.
3701 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
3702 (set_tdesc_osabi): Likewise.
3703 (tdesc_get_features_xml): Likewise.
3704
0a188386
YQ
37052017-09-05 Yao Qi <yao.qi@linaro.org>
3706
3707 * linux-x86-tdesc.c: Include selftest.h.
3708 (i386_tdesc_test): New function.
3709 (initialize_low_tdesc): Call selftests::register_test.
3710 * tdesc.h: Include regdef.h.
3711 (target_desc): Override operator == and !=.
3712
f49ff000
YQ
37132017-09-05 Yao Qi <yao.qi@linaro.org>
3714
3715 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
3716 (ipa_obj): Likewise.
3717 * linux-i386-ipa.c: Include common/x86-xstate.h
3718 (get_ipa_tdesc): Call i386_linux_read_description.
3719 (initialize_low_tracepoint): Don't call init_registers_XXX
3720 functions, call initialize_low_tdesc instead.
3721 * linux-x86-low.c (x86_linux_read_description): Call
3722 i386_linux_read_description.
3723 (initialize_low_arch): Don't call init_registers_i386_XXX
3724 functions, call initialize_low_tdesc.
3725 * linux-x86-tdesc.c: New file.
3726 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
3727 (i386_get_ipa_tdesc_idx): Declare.
3728 (i386_get_ipa_tdesc): Declare.
3729 (initialize_low_tdesc): Declare.
3730
2b68ef2f
YQ
37312017-09-05 Yao Qi <yao.qi@linaro.org>
3732
3733 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
3734 instead of 0.
3735
f7000548
YQ
37362017-09-05 Yao Qi <yao.qi@linaro.org>
3737
3738 * Makefile.in (IPA_OBJS): Add vec-ipa.o
3739 * regcache.c (get_thread_regcache): Use VEC_length.
3740 (init_register_cache): Likewise.
3741 (regcache_cpy): Likewise.
3742 (registers_to_string): Iterate reg_defs via VEC_iterate.
3743 (find_regno): Likewise.
3744 (find_register_by_number): Use VEC_index.
3745 (register_size): Call find_register_by_number.
3746 (register_data): Call find_register_by_number.
3747 (supply_regblock): Use VEC_length.
3748 (regcache_raw_read_unsigned): Likewise.
3749 * tdesc.c (init_target_desc): Iterate reg_defs via
3750 VEC_iterate.
3751 (default_description): Update initializer.
3752 (copy_target_description): Don't update field num_registers.
3753 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
3754 <num_registers>: Remove.
3755
50a421ac
SM
37562017-09-04 Simon Marchi <simon.marchi@ericsson.com>
3757
3758 * Makefile.in (.SECONDARY): Define target.
3759
23fdd69e
SM
37602017-09-03 Simon Marchi <simon.marchi@ericsson.com>
3761
3762 * linux-low.c (linux_wait_1): Adjust.
3763 * server.c (queue_stop_reply_callback): Adjust.
3764
0a2dde4a
SDJ
37652017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
3766
3767 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
3768 QEnvironmentUnset and QEnvironmentReset packets.
3769 (handle_query): Inform remote that QEnvironmentHexEncoded,
3770 QEnvironmentUnset and QEnvironmentReset are supported.
3771
6afd337d
SM
37722017-08-25 Simon Marchi <simon.marchi@ericsson.com>
3773
3774 * inferiors.h (inferior_target_data): Rename to ...
3775 (thread_target_data): ... this.
3776 (inferior_regcache_data): Rename to ...
3777 (thread_regcache_data): ... this.
3778 (set_inferior_regcache_data): Rename to ...
3779 (set_thread_regcache_data): ... this.
3780 * inferiors.c (inferior_target_data): Rename to ...
3781 (thread_target_data): ... this.
3782 (inferior_regcache_data): Rename to ...
3783 (thread_regcache_data): ... this.
3784 (set_inferior_regcache_data): Rename to ...
3785 (set_thread_regcache_data): ... this.
3786 (free_one_thread): Update.
3787 * linux-low.h (get_thread_lwp): Update.
3788 * regcache.c (get_thread_regcache): Update.
3789 (regcache_invalidate_thread): Update.
3790 (free_register_cache_thread): Update.
3791 * win32-i386-low.c (update_debug_registers_callback): Update.
3792 (win32_get_current_dr): Update.
3793 * win32-low.c (thread_rec): Update.
3794 (delete_thread_info): Update.
3795 (continue_one_thread): Update.
3796 (suspend_one_thread): Update.
3797
a160cc46
SM
37982017-08-24 Simon Marchi <simon.marchi@ericsson.com>
3799
3800 * inferiors.c (set_inferior_target_data): Remove.
3801 * inferiors.h (set_inferior_target_data): Remove.
3802
6d580b63
YQ
38032017-08-18 Yao Qi <yao.qi@linaro.org>
3804
3805 * Makefile.in (OBS): Add selftest.o.
3806 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
3807 * configure, config.in: Re-generated.
3808 * server.c: Include common/sefltest.h.
3809 (captured_main): Handle option --selftest.
3810
f5a29eb0
YQ
38112017-08-09 Yao Qi <yao.qi@linaro.org>
3812
3813 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
3814 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
3815 i386-avx-mpx.o and i386-mmx.o.
3816 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
3817 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
3818 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
3819 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
3820 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
3821 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
3822 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
3823 i386/amd64-avx-mpx.xml.
3824
57757c2f
YQ
38252017-08-09 Yao Qi <yao.qi@linaro.org>
3826
3827 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
3828 and x32-avx-avx512.o.
3829 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
3830 i386/x32-avx-avx512.xml.
3831
229d26fc
SM
38322017-07-26 Simon Marchi <simon.marchi@ericsson.com>
3833
3834 * tracepoint.h (enum class fast_tpoint_collect_result): New
3835 enumeration.
3836 (fast_tracepoint_collecting): Change return type to
3837 fast_tpoint_collect_result.
3838 * tracepoint.c (fast_tracepoint_collecting): Likewise.
3839 * linux-low.h: Include tracepoint.h.
3840 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
3841 fast_tpoint_collect_result.
3842 * linux-low.c (handle_tracepoints): Adjust.
3843 (linux_fast_tracepoint_collecting): Change return type to
3844 fast_tpoint_collect_result.
3845 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
3846 linux_wait_1, stuck_in_jump_pad_callback,
3847 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
3848 proceed_one_lwp): Adjust to type change.
3849
2e1e43e1
YQ
38502017-07-10 Yao Qi <yao.qi@linaro.org>
3851
3852 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
3853
adc764e7
YQ
38542017-06-29 Yao Qi <yao.qi@linaro.org>
3855
3856 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
3857 Remove.
3858 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
3859
a206891a
SM
38602017-06-20 Simon Marchi <simon.marchi@ericsson.com>
3861
3862 * Makefile.in (IPA_OBJS): Sort and format one item per line.
3863
9a6c7d9c
SDJ
38642017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
3865
3866 * linux-low.c (linux_create_inferior): Adjust code to access the
3867 environment information via 'gdb_environ' class.
3868 * lynx-low.c (lynx_create_inferior): Likewise.
3869 * server.c (our_environ): Make it an instance of 'gdb_environ'.
3870 (get_environ): Return a pointer to 'our_environ'.
3871 (captured_main): Initialize 'our_environ'.
3872 * server.h (get_environ): Adjust prototype.
3873 * spu-low.c (spu_create_inferior): Adjust code to access the
3874 environment information via 'gdb_environ' class.
3875
ae3e2ccf
SM
38762017-06-17 Simon Marchi <simon.marchi@ericsson.com>
3877
3878 * linux-low.c (linux_read_memory, linux_write_memory): Remove
3879 usage of "register" keyword.
3880
3e019bdc
SM
38812017-06-17 Simon Marchi <simon.marchi@ericsson.com>
3882
3883 * configure: Re-generate.
3884
8465943a
SM
38852017-06-17 Simon Marchi <simon.marchi@ericsson.com>
3886
3887 * configure: Re-generate.
3888
cf0dd6f0
SM
38892017-06-17 Simon Marchi <simon.marchi@ericsson.com>
3890
3891 * Makefile.in (COMPILE.pre): Add "-x c++".
3892
9845682b
SDJ
38932017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
3894
3895 * fork-child.c: Conditionally include <signal.h>.
3896
aefd8b33
SDJ
38972017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
3898
3899 * server.c (handle_general_set): Handle new packet
3900 "QStartupWithShell".
3901 (handle_query): Add "QStartupWithShell" to the list of supported
3902 packets.
3903 (gdbserver_usage): Add help text explaining the
3904 new "--startup-with-shell" and "--no-startup-with-shell" CLI
3905 options.
3906 (captured_main): Recognize and act upon the presence of the new
3907 CLI options.
3908
2090129c
SDJ
39092017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
3910 Pedro Alves <palves@redhat.com>
3911
3912 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
3913 * configure: Regenerate.
3914 * configure.srv (srv_linux_obj): Add "fork-child.o" and
3915 "fork-inferior.o".
3916 (i[34567]86-*-lynxos*): Likewise.
3917 (spu*-*-*): Likewise.
3918 * fork-child.c: New file.
3919 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
3920 and "environ.h".
3921 (linux_ptrace_fun): New function.
3922 (linux_create_inferior): Adjust function prototype to reflect
3923 change on "target.h". Adjust function code to use
3924 "fork_inferior".
3925 (linux_request_interrupt): Delete "signal_pid".
3926 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
3927 (lynx_ptrace_fun): New function.
3928 (lynx_create_inferior): Adjust function prototype to reflect
3929 change on "target.h". Adjust function code to use
3930 "fork_inferior".
3931 * nto-low.c (nto_create_inferior): Adjust function prototype and
3932 code to reflect change on "target.h". Update comments.
3933 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
3934 "common-terminal.h" and "environ.h".
3935 (terminal_fd): Moved to fork-child.c.
3936 (old_foreground_pgrp): Likewise.
3937 (restore_old_foreground_pgrp): Likewise.
3938 (last_status): Make it global.
3939 (last_ptid): Likewise.
3940 (our_environ): New variable.
3941 (startup_with_shell): Likewise.
3942 (program_name): Likewise.
3943 (program_argv): Rename to...
3944 (program_args): ...this.
3945 (wrapper_argv): New variable.
3946 (start_inferior): Delete function.
3947 (get_exec_wrapper): New function.
3948 (get_exec_file): Likewise.
3949 (get_environ): Likewise.
3950 (prefork_hook): Likewise.
3951 (post_fork_inferior): Likewise.
3952 (postfork_hook): Likewise.
3953 (postfork_child_hook): Likewise.
3954 (handle_v_run): Update code to deal with arguments coming from the
3955 remote host. Update calls from "start_inferior" to
3956 "create_inferior".
3957 (captured_main): Likewise. Initialize environment variable. Call
3958 "have_job_control".
3959 * server.h (post_fork_inferior): New prototype.
3960 (get_environ): Likewise.
3961 (last_status): Declare.
3962 (last_ptid): Likewise.
3963 (signal_pid): Likewise.
3964 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
3965 (spu_ptrace_fun): New function.
3966 (spu_create_inferior): Adjust function prototype to reflect change
3967 on "target.h". Adjust function code to use "fork_inferior".
3968 * target.c (target_terminal_init): New function.
3969 (target_terminal_inferior): Likewise.
3970 (target_terminal_ours): Likewise.
3971 * target.h: Include <vector>.
3972 (struct target_ops) <create_inferior>: Update prototype.
3973 (create_inferior): Update macro.
3974 * utils.c (gdb_flush_out_err): New function.
3975 * win32-low.c (win32_create_inferior): Adjust function prototype
3976 and code to reflect change on "target.h".
3977
043a4934
SDJ
39782017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
3979
3980 * inferiors.c (switch_to_thread): New function.
3981
15652511
SDJ
39822017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
3983
3984 * Makefile.in (SFILE): Add "common/job-control.c".
3985 (OBS): Add "job-control.o".
3986
21ea5acd
SDJ
39872017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
3988
3989 * Makefile: Remove "@host_makefile_frag@".
3990
e13cb306
PA
39912017-05-05 Pedro Alves <palves@redhat.com>
3992
3993 * configure: Regenerate.
3994
c94fee56
SDJ
39952017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
3996
3997 * configure: Regenerate.
3998
a0ff9e1a
SM
39992017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
4000
4001 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
4002 software_single_step change of return type to
4003 std::vector<CORE_ADDR>.
4004 * linux-low.c (install_software_single_step_breakpoints):
4005 Likewise.
4006 * linux-low.h (install_software_single_step_breakpoints):
4007 Likewise.
4008
be628ab8
SDJ
40092017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
4010
4011 * remote-utils.c: Include "gdb_termios.h" instead of
4012 "terminal.h".
4013 * terminal.h: Delete file.
4014
7c5ded6a
SDJ
40152017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
4016
4017 * server.c: Include <vector>.
4018 <program_argv, wrapper_argv>: Convert to std::vector.
4019 (start_inferior): Rewrite function to use C++.
4020 (handle_v_run): Likewise. Update code that calculates the argv
4021 based on the vRun packet; use C++.
4022 (captured_main): Likewise.
4023
436252de
SM
40242017-04-06 Simon Marchi <simon.marchi@ericsson.com>
4025
4026 * server.c (handle_v_cont): Initialize thread_resume::thread
4027 with null_ptid.
4028
9bf2a700
PA
40292017-04-05 Pedro Alves <palves@redhat.com>
4030
4031 * configure: Regenerate.
4032
a121b7c1
PA
40332017-04-05 Pedro Alves <palves@redhat.com>
4034
4035 * gdbreplay.c (sync_error): Constify.
4036 * linux-x86-low.c (push_opcode): Constify.
4037
21c8a587
PA
40382017-04-05 Pedro Alves <palves@redhat.com>
4039
4040 * win32-low.c (get_child_debug_event)
4041 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
4042 Report TARGET_WAITKIND_SPURIOUS instead.
4043
fb32b4f7
PA
40442017-04-05 Pedro Alves <palves@redhat.com>
4045
e79be6e5
SM
4046 * remote-utils.c (remote_prepare, remote_open): Constify.
4047 * remote-utils.h (remote_prepare, remote_open): Constify.
4048 * server.c (captured_main): Constify 'port' handling.
fb32b4f7 4049
65dd1e59
SM
40502017-04-04 Simon Marchi <simon.marchi@ericsson.com>
4051
4052 * Makefile.in (clean): Clear .deps.
4053
8fa5b777
SM
40542017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
4055
4056 * .gitignore: Remove generated files, replace with wildcard.
4057 * (clean): Replace removal of generated files with wildcard.
4058 (version.c): Replace with...
4059 (version-generated.c): ...this.
4060 (xml-builtin.c): Replace with...
4061 (xml-builtin-generated.c): ...this.
4062 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
4063 (%.c: *regformats*): Replace with...
4064 (%-generated.c: *regformats*): ...this.
4065
a12e714b
MF
40662017-03-27 Max Filippov <jcmvbkbc@gmail.com>
4067
4068 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
4069 (xtensa_fill_gregset): Call collect_register_by_name for
4070 threadptr register.
4071 (xtensa_store_gregset): Call supply_register_by_name for
4072 threadptr register.
4073
1a09b50a
MF
40742017-03-27 Max Filippov <jcmvbkbc@gmail.com>
4075
4076 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
4077 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
4078 (xtensa_store_gregset): Call supply_register for all registers in
4079 a0_regnum..a0_regnum + C0_NREGS range.
4080
1a01e7c6
SM
40812017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4082
4083 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
4084 (ax-ipa.o: ax.c): Remove.
4085 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
4086 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
4087 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
4088 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
4089 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
4090
36bc18a8
SM
40912017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4092
4093 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
4094 (print-utils-ipa.o: ../common/print-utils.c): Remove.
4095 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
4096 (errors-ipa.o: ../common/errors.c): Remove.
4097 (format-ipa.o: ../common/format.c): Remove.
4098 (common-utils-ipa.o: ../common/common-utils.c): Remove.
4099
a8ebe3d5
SM
41002017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4101
4102 * Makefile.in (%-ipa.o: %.c): New rule.
4103 (tracepoint-ipa.o: tracepoint.c): Remove.
4104 (utils-ipa.o: utils.c): Remove.
4105 (remote-utils-ipa.o: remote-utils.c): Remove.
4106 (regcache-ipa.o: regcache.c): Remove.
4107 (i386-linux-ipa.o: i386-linux.c): Remove.
4108 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
4109 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
4110 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
4111 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
4112 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
4113 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
4114 (amd64-linux-ipa.o: amd64-linux.c): Remove.
4115 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
4116 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
4117 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
4118 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
4119 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
4120 (aarch64-ipa.o: aarch64.c): Remove.
4121 (s390-linux32-ipa.o: s390-linux32.c): Remove.
4122 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
4123 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
4124 (s390-linux64-ipa.o: s390-linux64.c): Remove.
4125 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
4126 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
4127 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
4128 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
4129 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
4130 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
4131 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
4132 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
4133 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
4134 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
4135 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
4136 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
4137 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
4138 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
4139 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
4140 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
4141 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
4142 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
4143 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
4144 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
4145 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
4146 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
4147 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
4148 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
4149 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
4150 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
4151 (tdesc-ipa.o: tdesc.c): Remove.
4152 (x32-linux-ipa.o: x32-linux.c): Remove.
4153 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
4154 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
4155
50cfacb7
SM
41562017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4157
4158 * Makefile.in (%.o: ../arch/%.c): New rule.
4159 (arm.o: ../arch/arm.c): Remove.
4160 (arm-linux.o: ../arch/arm-linux.c): Remove.
4161 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
4162 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
4163
c5a22423
SM
41642017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4165
4166 * Makefile.in (%.o: ../nat/%.c): New rule.
4167 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
4168 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
4169 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
4170 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
4171 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
4172 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
4173 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
4174 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
4175 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
4176 (linux-personality.o: ../nat/linux-personality.c): Remove.
4177 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
4178 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
4179 (x86-linux.o: ../nat/x86-linux.c): Remove.
4180 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
4181 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
4182
6bda016b
SM
41832017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4184
4185 * Makefile.in (%.o: ../common/%.c): New rule.
4186 (signals.o: ../common/signals.c): Remove.
4187 (print-utils.o: ../common/print-utils.c): Remove.
4188 (rsp-low.o: ../common/rsp-low.c): Remove.
4189 (common-utils.o: ../common/common-utils.c): Remove.
4190 (posix-strerror.o: ../common/posix-strerror.c): Remove.
4191 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
4192 (vec.o: ../common/vec.c): Remove.
4193 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
4194 (xml-utils.o: ../common/xml-utils.c): Remove.
4195 (ptid.o: ../common/ptid.c): Remove.
4196 (buffer.o: ../common/buffer.c): Remove.
4197 (format.o: ../common/format.c): Remove.
4198 (filestuff.o: ../common/filestuff.c): Remove.
4199 (agent.o: ../common/agent.c): Remove.
4200 (errors.o: ../common/errors.c): Remove.
4201 (environ.o: ../common/environ.c): Remove.
4202 (common-debug.o: ../common/common-debug.c): Remove.
4203 (cleanups.o: ../common/cleanups.c): Remove.
4204 (common-exceptions.o: ../common/common-exceptions.c): Remove.
4205 (fileio.o: ../common/fileio.c): Remove.
4206 (common-regcache.o: ../common/common-regcache.c): Remove.
4207 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
4208 (new-op.o: ../common/new-op.c): Remove.
4209 (btrace-common.o: ../common/btrace-common.c): Remove.
4210
21122961
SM
42112017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4212
4213 * Makefile.in (%.o: ../target/%.c): New rule.
4214 (waitstatus.o: ../target/waitstatus.c): Remove.
4215
c362e621
SM
42162017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4217
4218 * Makefile.in
4219 (%.c: ../regformats/%.dat,
4220 (%.c: ../regformats/arm/%.dat,
4221 (%.c: ../regformats/i386/%.dat,
4222 (%.c: ../regformats/rs6000/%.dat): New rules.
4223 (aarch64.c): Remove.
4224 (reg-arm.c): Remove.
4225 (arm-with-iwmmxt.c): Remove.
4226 (arm-with-vfpv2.c): Remove.
4227 (arm-with-vfpv3.c): Remove.
4228 (arm-with-neon.c): Remove.
4229 (reg-bfin.c): Remove.
4230 (reg-cris.c): Remove.
4231 (reg-crisv32.c): Remove.
4232 (i386.c): Remove.
4233 (i386-linux.c): Remove.
4234 (i386-avx.c): Remove.
4235 (i386-avx-linux.c): Remove.
4236 (i386-avx-avx512.c): Remove.
4237 (i386-avx-avx512-linux.c): Remove.
4238 (i386-mpx.c): Remove.
4239 (i386-mpx-linux.c): Remove.
4240 (i386-avx-mpx-avx512-pku.c): Remove.
4241 (i386-avx-mpx-avx512-pku-linux.c): Remove.
4242 (i386-avx-mpx.c): Remove.
4243 (i386-avx-mpx-linux.c): Remove.
4244 (i386-mmx.c): Remove.
4245 (i386-mmx-linux.c): Remove.
4246 (reg-ia64.c): Remove.
4247 (reg-m32r.c): Remove.
4248 (reg-m68k.c): Remove.
4249 (reg-cf.c): Remove.
4250 (mips-linux.c): Remove.
4251 (mips-dsp-linux.c): Remove.
4252 (mips64-linux.c): Remove.
4253 (mips64-dsp-linux.c): Remove.
4254 (nios2-linux.c): Remove.
4255 (powerpc-32.c): Remove.
4256 (powerpc-32l.c): Remove.
4257 (powerpc-altivec32l.c): Remove.
4258 (powerpc-cell32l.c): Remove.
4259 (powerpc-vsx32l.c): Remove.
4260 (powerpc-isa205-32l.c): Remove.
4261 (powerpc-isa205-altivec32l.c): Remove.
4262 (powerpc-isa205-vsx32l.c): Remove.
4263 (powerpc-e500l.c): Remove.
4264 (powerpc-64l.c): Remove.
4265 (powerpc-altivec64l.c): Remove.
4266 (powerpc-cell64l.c): Remove.
4267 (powerpc-vsx64l.c): Remove.
4268 (powerpc-isa205-64l.c): Remove.
4269 (powerpc-isa205-altivec64l.c): Remove.
4270 (powerpc-isa205-vsx64l.c): Remove.
4271 (s390-linux32.c): Remove.
4272 (s390-linux32v1.c): Remove.
4273 (s390-linux32v2.c): Remove.
4274 (s390-linux64.c): Remove.
4275 (s390-linux64v1.c): Remove.
4276 (s390-linux64v2.c): Remove.
4277 (s390-te-linux64.c): Remove.
4278 (s390-vx-linux64.c): Remove.
4279 (s390-tevx-linux64.c): Remove.
4280 (s390x-linux64.c): Remove.
4281 (s390x-linux64v1.c): Remove.
4282 (s390x-linux64v2.c): Remove.
4283 (s390x-te-linux64.c): Remove.
4284 (s390x-vx-linux64.c): Remove.
4285 (s390x-tevx-linux64.c): Remove.
4286 (tic6x-c64xp-linux.c): Remove.
4287 (tic6x-c64x-linux.c): Remove.
4288 (tic6x-c62x-linux.c): Remove.
4289 (reg-sh.c): Remove.
4290 (reg-sparc64.c): Remove.
4291 (reg-spu.c): Remove.
4292 (amd64.c): Remove.
4293 (amd64-linux.c): Remove.
4294 (amd64-avx.c): Remove.
4295 (amd64-avx-linux.c): Remove.
4296 (amd64-avx-avx512.c): Remove.
4297 (amd64-avx-avx512-linux.c): Remove.
4298 (amd64-mpx.c): Remove.
4299 (amd64-mpx-linux.c): Remove.
4300 (amd64-avx-mpx-avx512-pku.c): Remove.
4301 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
4302 (amd64-avx-mpx.c): Remove.
4303 (amd64-avx-mpx-linux.c): Remove.
4304 (x32.c): Remove.
4305 (x32-linux.c): Remove.
4306 (x32-avx.c): Remove.
4307 (x32-avx-linux.c): Remove.
4308 (x32-avx-avx512.c): Remove.
4309 (x32-avx-avx512-linux.c): Remove.
4310 (reg-xtensa.c): Remove.
4311 (reg-tilegx.c): Remove.
4312 (reg-tilegx32.c): Remove.
4313
1672e0d9
SDJ
43142017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
4315
4316 * Makefile.in (SFILES): Add "common/environ.c".
4317 (OBJS): Add "common/environ.h".
4318
239b6d10
WT
43192017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
4320
4321 * configure.ac: Check if the fs_base and gs_base members of
4322 `struct user_regs_struct' exist.
4323 * config.in: Regenerated.
4324 * configure: Likewise.
4325
694b382c
AT
43262017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
4327
4328 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
4329 target_read_memory.
4330 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
4331 (get_next_pcs_syscall_next_pc): Likewise.
4332
7dc53023
LM
43332016-12-23 Luis Machado <lgustavo@codesourcery.com>
4334
4335 * win32-i386-low.c: Fix incorrect reference to a couple source files.
4336 * nto-x86-low.c: Likewise.
4337
ad02e4fe
SM
43382016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
4339
4340 * Makefile.in: Include disable-implicit-rules.mk.
4341
dcb07cfa
PA
43422016-11-23 Pedro Alves <palves@redhat.com>
4343
4344 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
4345 (debug_vprintf): Use std::chrono::steady_clock instead of
4346 gettimeofday. Use '.' instead of ':'.
4347 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
4348 (get_timestamp): Use std::chrono::steady_clock instead of
4349 gettimeofday.
4350
8629c02c
SM
43512016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
4352
4353 * Makefile.in: Fix whitespace formatting.
4354
b593ecca
SM
43552016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
4356
4357 * Makefile.in (SFILES, OBS): Flatten list and order
4358 alphabetically.
4359
9986ba08
PA
43602016-11-23 Pedro Alves <palves@redhat.com>
4361
4362 * event-loop.c (handle_file_event): Use warning.
4363 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
4364 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
4365 Use warning.
4366
4eefa7bc
PA
43672016-11-23 Pedro Alves <palves@redhat.com>
4368
4369 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
4370 output.
4371 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
4372 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
4373 debug_printf and debug_flush for debug output.
4374 * server.c (handle_general_set): Likewise.
4375 * thread-db.c (try_thread_db_load): Use debug_printf for debug
4376 output.
4377
5443506e
SM
43782016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
4379
4380 * Makefile.in (.c.o): Replace rule with ...
4381 (%.o: %.c): ... this one.
4382
3b165252
SM
43832016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
4384
4385 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
4386 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
4387 make.
4388 * configure.ac: Remove checks for the make program.
4389 * configure: Re-generate.
4390
0bcda685
PA
43912016-10-28 Pedro Alves <palves@redhat.com>
4392
4393 * Makefile.in (CXX_DIALECT): Get from configure.
4394 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
4395 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
4396 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
4397 * config.in: Regenerate.
4398 * configure: Regenerate.
4399
c3805894
YQ
44002016-10-27 Yao Qi <yao.qi@linaro.org>
4401
4402 * linux-low.c (linux_supports_range_stepping): Return true if
4403 can_software_single_step return true.
4404
89342618
YQ
44052016-10-27 Yao Qi <yao.qi@linaro.org>
4406
4407 * inferiors.c (find_inferior_in_random): New function.
4408 * inferiors.h (find_inferior_in_random): Declare.
4409 * linux-low.c (linux_wait_for_event_filtered): Call
4410 find_inferior_in_random instead of find_inferior.
4411
e3652c84
YQ
44122016-10-27 Yao Qi <yao.qi@linaro.org>
4413
4414 * linux-low.c (linux_wait_1): If single-step breakpoints are
4415 inserted, remove them.
4416
5a04c4cf
PA
44172016-10-26 Pedro Alves <palves@redhat.com>
4418
4419 * linux-low.c (handle_extended_wait): Link parent/child fork
4420 threads.
4421 (linux_wait_1): Unlink them.
4422 (linux_set_resume_request): Ignore resume requests for
4423 already-resumed and unhandled fork child threads.
4424 * linux-low.h (struct lwp_info) <fork_relative>: New field.
4425 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
4426 New functions.
4427 (handle_v_requests) <vCont>: Don't call require_running.
4428 * server.h (in_queued_stop_replies): New declaration.
4429
cb93dc7f
YQ
44302016-10-24 Yao Qi <yao.qi@linaro.org>
4431
4432 PR server/20733
4433 * linux-aarch64-low.c (append_insns): Cast the return value to
4434 'uint32_t *'.
4435
a1078bea
YQ
44362016-10-10 Yao Qi <yao.qi@linaro.org>
4437
4438 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
4439
1fb77080
SDJ
44402016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
4441
4442 * target.c (target_supports_multi_process): New function, moved
4443 from...
4444 * target.h (target_supports_multi_process): ... here. Remove
4445 macro.
4446
39b5a3b9
TT
44472016-10-05 Tom Tromey <tom@tromey.com>
4448
4449 PR remote/20655:
4450 * tracepoint.c (handle_tracepoint_bkpts): Check
4451 ipa_error_tracepoint, not ipa_stopping_tracepoint.
4452
c1d0b70a
YQ
44532016-10-05 Yao Qi <yao.qi@linaro.org>
4454
4455 * configure.srv: Update the path of arm-*.xml files.
4456
0a69eedb
YQ
44572016-10-05 Terry Guo <terry.guo@arm.com>
4458 Yao Qi <yao.qi@linaro.org>
4459
4460 * Makefile.in: Adjust the path of rules.
4461 * configure.srv: Update the path of xml files.
4462 * regformats/arm-with-iwmmxt.dat: Regenerated.
4463 * regformats/arm-with-neon.dat: Likewise.
4464 * regformats/arm-with-vfpv2.dat: Likewise.
4465 * regformats/arm-with-vfpv3.dat Likewise.
4466
17e16485
YQ
44672016-09-30 Yao Qi <yao.qi@linaro.org>
4468
4469 PR gdbserver/20627
4470 * target.c (target_stop_and_wait): Don't call
4471 target_continue_no_signal, use resume_stop instead.
4472
edeeb602
YQ
44732016-09-26 Yao Qi <yao.qi@linaro.org>
4474
4475 * linux-low.c (linux_wait_1): Call debug_exit.
4476
503b1c39
PA
44772016-09-23 Pedro Alves <palves@redhat.com>
4478
4479 * Makefile.in (SFILES): Add common/new-op.c.
4480 (OBS): Add common/new-op.o.
4481 (new-op.o): New rule.
4482
74172ecf
SM
44832016-09-21 Simon Marchi <simon.marchi@ericsson.com>
4484
4485 * .gitinore: Ignore more files.
4486
fc6cda2e
YQ
44872016-09-21 Yao Qi <yao.qi@linaro.org>
4488
4489 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
4490 23.
4491
bc1e6c81
SDJ
44922016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
4493
4494 * server.c (start_inferior): Call target_mourn_inferior instead of
4495 mourn_inferior; pass ptid_t argument to it.
4496 (resume): Likewise.
4497 (handle_target_event): Likewise.
4498 * target.c (target_mourn_inferior): New function.
4499 * target.h (mourn_inferior): Delete macro.
4500
0e00e962
AA
45012016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
4502
4503 * linux-low.c (lwp_is_stepping): New function.
4504
1d8cb77d
CL
45052016-09-06 Carl Love <cel@us.ibm.com>
4506
4507 * server.c (start_inferior): Fixed comment, requested comment change
4508 didn't get updated correctly. Removed reference to ptrace () call as
4509 it is only true on Linux systems.
4510
7313bced
CL
45112016-09-06 Carl Love <cel@us.ibm.com>
4512
4513 * server.c (start_inferior): Do not call
4514 function target_post_create_inferior () if the
4515 inferior process has already exited.
4516
cf6de44d
PA
45172016-09-05 Pedro Alves <palves@redhat.com>
4518
4519 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
4520 (COMPILE.pre, CC_LD): Use CXX directly.
4521 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
4522 * acinclude.m4: Don't include build-with-cxx.m4.
4523 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
4524 * configure: Regenerate.
4525
c1da6748
AT
45262016-09-02 Akash Trehan <akash.trehan123@gmail.com>
4527
4528 PR gdb/19495
4529 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
4530 call writing data to own_buf.
4531
f2b9e3df
SDJ
45322016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
4533
4534 * target.c (mywait): Call target_wait instead of
4535 the_target->wait.
4536 (target_wait): New function.
4537
049a8570
SDJ
45382016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
4539
4540 * server.c (start_inferior): New variable 'ptid'. Replace calls
4541 to the_target->resume by target_continue{,_no_signal}, depending
4542 on the case.
4543 * target.c (target_stop_and_wait): Call target_continue_no_signal
4544 instead of the_target->resume.
4545 (target_continue): New function.
4546
3aa5cfa0
AT
45472016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
4548
4549 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
4550
754653a7
AZ
45512016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4552
4553 PR server/20491
4554 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
4555 ps_prochandle.
4556 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
4557 * linux-arm-low.c (ps_get_thread_area): Likewise.
4558 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
4559 * linux-m68k-low.c (ps_get_thread_area): Likewise.
4560 * linux-mips-low.c (ps_get_thread_area): Likewise.
4561 * linux-nios2-low.c (ps_get_thread_area): Likewise.
4562 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
4563 * linux-x86-low.c (ps_get_thread_area): Likewise.
4564 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
4565
ed036b40
PA
45662016-08-19 Pedro Alves <palves@redhat.com>
4567
4568 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
4569
c8ef42ee
PA
45702016-08-19 Pedro Alves <palves@redhat.com>
4571
4572 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
4573 comment. Use memcpy instead of casting through unsigned long.
4574
9c235a72
PA
45752016-08-19 Pedro Alves <palves@redhat.com>
4576
4577 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
4578 allocating around 0x80000000.
4579
201506da
PA
45802016-08-19 Pedro Alves <palves@redhat.com>
4581
4582 PR gdb/20415
4583 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
4584 (x32-avx512-linux-ipa.o): New rules.
4585 * configure.ac (x86_64-*-linux*): New x32 check.
4586 * configure.srv (ipa_x32_linux_regobj): New.
4587 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
4588 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
4589 descriptions.
4590 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
4591 descriptions.
4592 * configure: Regenerate.
4593
f348d89a
PA
45942016-08-09 Pedro Alves <palves@redhat.com>
4595
4596 PR gdb/18653
4597 * Makefile.in (OBS): Add signals-state-save-restore.o.
4598 (signals-state-save-restore.o): New rule.
4599 * config.in: Regenerate.
4600 * configure: Regenerate.
4601 * linux-low.c: Include "signals-state-save-restore.h".
4602 (linux_create_inferior): Call
4603 restore_original_signals_state.
4604 * server.c: Include "dispositions-save-restore.h".
4605 (captured_main): Call save_original_signals_state.
4606
1baf5149
PA
46072016-08-05 Pedro Alves <palves@redhat.com>
4608
4609 * configure: Regenerate.
4610
fcd4a73d
YQ
46112016-08-04 Yao Qi <yao.qi@linaro.org>
4612
4613 * linux-low.c (regsets_fetch_inferior_registers): Check
4614 errno is ESRCH or not.
4615
979659d0
YQ
46162016-08-02 Yao Qi <yao.qi@linaro.org>
4617
4618 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
4619 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
4620 (thread_db_load_search): Update.
4621 (try_thread_db_load_1): Don't look for td_ta_event_addr,
4622 td_ta_set_event and td_ta_event_getmsg.
4623
6598661d
PA
46242016-07-26 Pedro Alves <palves@redhat.com>
4625
4626 PR server/20414
4627 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
4628 of unsigned long for 64-bit registers and use uint32_t instead of
4629 unsigned int for 32-bit registers.
4630
9cf12d57
PA
46312016-07-26 Pedro Alves <palves@redhat.com>
4632
4633 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
4634 to 'ptrace'.
4635
305450ed
TT
46362016-07-21 Tom Tromey <tom@tromey.com>
4637
4638 * configure: Rebuild.
4639
2583da7c
YQ
46402016-07-21 Yao Qi <yao.qi@linaro.org>
4641
4642 * mem-break.c (find_gdb_breakpoint): Cast bp to
4643 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
4644
21536b36
YQ
46452016-07-21 Yao Qi <yao.qi@linaro.org>
4646
4647 * server.c (handle_v_requests): Support s and S actions
4648 if target_supports_software_single_step return true.
4649
8901d193
YQ
46502016-07-21 Yao Qi <yao.qi@linaro.org>
4651
4652 * linux-low.c (resume_stopped_resumed_lwps): If resume request
4653 is resume_step, call maybe_hw_step.
4654 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
4655 and unstop them.
4656 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
4657 breakpoints or not.
4658 (proceed_one_lwp): If resume request is resume_step, install
4659 reinsert breakpoints and call maybe_hw_step.
4660
0e9a339e
YQ
46612016-07-21 Yao Qi <yao.qi@linaro.org>
4662
4663 * linux-low.c (proceed_one_lwp): Declare.
4664 (linux_resume_one_thread): Remove local variable 'step'.
4665 Lift code enqueue signal. Call proceed_one_lwp instead of
4666 linux_resume_one_lwp.
4667
4281b351
YQ
46682016-07-21 Yao Qi <yao.qi@linaro.org>
4669
4670 * linux-low.c (linux_resume_one_thread): Call
4671 enqueue_pending_signal.
4672
984a2c04
YQ
46732016-07-21 Yao Qi <yao.qi@linaro.org>
4674
4675 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
4676 * inferiors.c (do_restore_current_thread_cleanup): New function.
4677 (make_cleanup_restore_current_thread): Likewise.
4678 * linux-low.c (install_software_single_step_breakpoints): Call
4679 make_cleanup_restore_current_thread. Switch current_thread to
4680 thread.
4681
bec903c9
YQ
46822016-07-21 Yao Qi <yao.qi@linaro.org>
4683
4684 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
4685 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
4686 (clone_one_breakpoint): Likewise.
4687 (delete_reinsert_breakpoints): Change parameter to thread.
4688 Callers updated.
4689 (has_reinsert_breakpoints): Likewise.
4690 (uninsert_reinsert_breakpoints): Likewise.
4691 (reinsert_reinsert_breakpoints): Likewise.
4692 * mem-break.h (set_reinsert_breakpoint): Update declaration.
4693 (delete_reinsert_breakpoints): Likewise.
4694 (reinsert_reinsert_breakpoints): Likewise.
4695 (uninsert_reinsert_breakpoints): Likewise.
4696 (has_reinsert_breakpoints): Likewise.
4697
63c40ec7
YQ
46982016-07-21 Yao Qi <yao.qi@linaro.org>
4699
4700 * inferiors.c (get_thread_process): Make parameter const.
4701 * inferiors.h (get_thread_process): Update declaration.
4702 * mem-break.c (clone_all_breakpoints): Remove all parameters.
4703 Add new parameters child_thread and parent_thread. Callers
4704 updated.
4705 * mem-break.h (clone_all_breakpoints): Update declaration.
4706
9aa76cd0
YQ
47072016-07-21 Yao Qi <yao.qi@linaro.org>
4708
4709 * mem-break.c (struct breakpoint) <cond_list>: Remove.
4710 <command_list, handler>: Remove.
4711 (struct gdb_breakpoint): New.
4712 (struct other_breakpoint): New.
4713 (struct reinsert_breakpoint): New.
4714 (is_gdb_breakpoint): New function.
4715 (any_persistent_commands): Update command_list if
4716 is_gdb_breakpoint returns true.
4717 (set_breakpoint): Create breakpoints according to their types.
4718 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
4719 (set_gdb_breakpoint_1): Likewise.
4720 (set_gdb_breakpoint): Likewise.
4721 (clear_breakpoint_conditions): Change parameter type to
4722 'struct gdb_breakpoint *'.
4723 (clear_breakpoint_commands): Likewise.
4724 (clear_breakpoint_conditions_and_commands): Likewise.
4725 (add_condition_to_breakpoint): Likewise.
4726 (add_breakpoint_condition): Likewise.
4727 (add_commands_to_breakpoint): Likewise.
4728 (check_breakpoints): Check other_breakpoint.
4729 (clone_one_breakpoint): Clone breakpopint according to its type.
4730 * mem-break.h (struct gdb_breakpoint): Declare.
4731 (set_gdb_breakpoint): Update declaration.
4732 (clear_breakpoint_conditions_and_commands): Likewise.
4733 (add_breakpoint_condition): Likewise.
4734 (add_breakpoint_commands): Likewise.
4735 * server.c (process_point_options): Change parameter type to
4736 'struct gdb_breakpoint *'.
4737
811f8301
YQ
47382016-07-21 Yao Qi <yao.qi@linaro.org>
4739
4740 * mem-break.c (set_breakpoint_at): Rename it to ...
4741 (set_breakpoint_type_at): ... it.
4742 (set_breakpoint_at): Call set_breakpoint_type_at.
4743 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
4744 * mem-break.h (set_breakpoint_at): Update comments.
4745
b1c51e36
CLT
47462016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
4747
4748 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
4749 to buf parameter.
4750 (nios2_store_gregset): Likewise.
4751
ced2dffb
PA
47522016-07-01 Pedro Alves <palves@redhat.com>
4753 Antoine Tremblay <antoine.tremblay@ericsson.com>
4754
4755 * linux-low.c: Change interface to take the target lwp_info
4756 pointer directly and return void. Handle detaching from a zombie
4757 thread.
4758 (linux_detach_lwp_callback): New function.
4759 (linux_detach): Detach from the leader thread after detaching from
4760 the clone threads.
4761
2ac09a5b
YQ
47622016-06-28 Yao Qi <yao.qi@linaro.org>
4763
4764 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
4765 for variable new_offset.
4766 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
4767 (aarch64_ftrace_insn_reloc_cb): Likewise.
4768 (aarch64_ftrace_insn_reloc_tb): Likewise.
4769 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
4770 PRIx64 instead of PRIx32.
4771
79e7fd4f
YQ
47722016-06-28 Yao Qi <yao.qi@linaro.org>
4773
4774 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
4775 (the_low_target): Install arm_get_syscall_trapinfo.
4776
061fc021
YQ
47772016-06-28 Yao Qi <yao.qi@linaro.org>
4778
4779 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
4780 function.
4781 (the_low_target): Install aarch64_get_syscall_trapinfo.
4782
4cc32bec
YQ
47832016-06-28 Yao Qi <yao.qi@linaro.org>
4784
4785 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
4786 Callers updated.
4787 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
4788 Remove parameter sysno.
4789 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
4790 sysret.
4791
782c1122
AA
47922016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4793
4794 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
4795 (s390_emit_ne_goto): Likewise.
4796 (s390_emit_lt_goto): Likewise.
4797 (s390_emit_le_goto): Likewise.
4798 (s390_emit_gt_goto): Likewise.
4799 (s390_emit_ge_goto): Likewise.
4800 (s390x_emit_eq_goto): Likewise.
4801 (s390x_emit_ne_goto): Likewise.
4802 (s390x_emit_lt_goto): Likewise.
4803 (s390x_emit_le_goto): Likewise.
4804 (s390x_emit_gt_goto): Likewise.
4805 (s390x_emit_ge_goto): Likewise.
4806 (s390_emit_ops_impl): Mark variable static.
4807 (s390x_emit_ops): Likewise.
4808
2e7b624b
YQ
48092016-06-17 Yao Qi <yao.qi@linaro.org>
4810
4811 * linux-low.c (handle_extended_wait): Call
4812 uninsert_reinsert_breakpoints for the parent process. Remove
4813 reinsert breakpoints from the child process. Reinsert them to
4814 the parent process when vfork is done.
4815 * mem-break.c (uninsert_reinsert_breakpoints): New function.
4816 (reinsert_reinsert_breakpoints): New function.
4817 * mem-break.h (uninsert_reinsert_breakpoints): Declare
4818 (reinsert_reinsert_breakpoints): Declare.
4819
8a81c5d7
YQ
48202016-06-17 Yao Qi <yao.qi@linaro.org>
4821
4822 * linux-low.c (handle_extended_wait): If the parent is doing
4823 step-over, remove the reinsert breakpoints from the forked child.
4824
f50bf8e5
YQ
48252016-06-17 Yao Qi <yao.qi@linaro.org>
4826
4827 * linux-low.c (unsuspend_all_lwps): Declare.
4828 (linux_low_filter_event): If thread exited, call finish_step_over.
4829 If step-over is finished, unsuspend other threads.
4830
8376a3cb
YQ
48312016-06-17 Yao Qi <yao.qi@linaro.org>
4832
4833 * linux-low.c (linux_resume_one_lwp_throw): Assert
4834 has_reinsert_breakpoints returns false.
4835 * mem-break.c (delete_disabled_breakpoints): Assert
4836 bp type isn't reinsert_breakpoint.
4837
f79b145d
YQ
48382016-06-17 Yao Qi <yao.qi@linaro.org>
4839
4840 * linux-low.c (maybe_hw_step): New function.
4841 (linux_resume_one_lwp_throw): Call maybe_hw_step.
4842 (finish_step_over): Switch current_thread to lwp temporarily,
4843 and assert has_reinsert_breakpoints returns true.
4844 (proceed_one_lwp): Call maybe_hw_step.
4845 * mem-break.c (has_reinsert_breakpoints): New function.
4846 * mem-break.h (has_reinsert_breakpoints): Declare.
4847
0ae534d2
JT
48482016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
4849
4850 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
4851
fcdad592
YQ
48522016-05-17 Yao Qi <yao.qi@linaro.org>
4853
4854 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
4855 instead of find_inferior.
4856
9e784964
YQ
48572016-05-05 Yao Qi <yao.qi@linaro.org>
4858
4859 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
4860 Initialize res to zero.
4861
cf2ebb6e
YQ
48622016-05-05 Yao Qi <yao.qi@linaro.org>
4863
4864 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
4865 to uint32_t.
4866
c1aebf87
UW
48672016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4868
4869 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
4870 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
4871 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
4872
35fd2deb 48732016-04-28 Par Olsson <par.olsson@windriver.com>
cbe14bcf 4874 Simon Marchi <simon.marchi@ericsson.com>
35fd2deb
PO
4875
4876 * tracepoint.c (write_inferior_int8): New function.
4877 (cmd_qtenable_disable): Write enable flag using
4878 write_inferior_int8.
4879
484b3c32
YQ
48802016-04-25 Yao Qi <yao.qi@linaro.org>
4881
4882 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
4883 (need_step_over_p): Return zero if the LWP has pending signals
4884 can be delivered on software single step target.
4885
85ba7d86
YQ
48862016-04-25 Yao Qi <yao.qi@linaro.org>
4887
4888 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
4889 return instead of error.
4890
3539aa13
YQ
48912016-04-22 Yao Qi <yao.qi@linaro.org>
4892
4893 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
4894 to 23.
4895
5b061e98
YQ
48962016-04-22 Yao Qi <yao.qi@linaro.org>
4897
4898 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
4899 signal when stepping over breakpoint with software single
4900 step.
4901
3451269c
PA
49022016-04-21 Pedro Alves <palves@redhat.com>
4903
4904 * linux-s390-low.c (s390_collect_ptrace_register)
4905 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
4906 add casts.
4907 (s390_check_regset): Use void * instead of gdb_byte *.
4908
a2358508
PA
49092016-04-20 Pedro Alves <palves@redhat.com>
4910
4911 * configure: Renegerate.
4912
6885166d
YQ
49132016-04-20 Yao Qi <yao.qi@linaro.org>
4914
4915 * linux-aarch32-low.c: Include "arch/arm-linux.h".
4916 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
4917 number 16.
4918 (arm_store_gregset): Likewise.
4919
2b863f51
WT
49202016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
4921
4922 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
4923 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
4924 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
4925 (amd64-avx-mpx-linux.c): New rules.
4926 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
4927 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
4928 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
4929 (srv_amd64_regobj): Add amd64-avx-mpx.o.
4930 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
4931 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
4932 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
4933 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
4934 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
4935 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
4936 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
4937 * linux-x86-low.c (x86_linux_read_description): Add case for
4938 X86_XSTATE_AVX_MPX_MASK.
4939 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
4940 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
4941 init_registers_i386_avx_mpx_linux.
4942 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
4943 (initialize_low_tracepoint): Call
4944 init_registers_i386_avx_mpx_linux.
4945 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
4946 (initialize_low_tracepoint): Call
4947 init_registers_amd64_avx_mpx_linux.
4948 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
4949 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
4950 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
4951 declarations.
4952
9b30624b
PA
49532016-04-18 Pedro Alves <palves@redhat.com>
4954
4955 * configure: Regenerate.
4956
45e3745e
AT
49572016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
4958
4959 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
4960 (aarch64_emit_sub): Likewise.
4961
2afc13ff
PA
49622016-04-12 Pedro Alves <palves@redhat.com>
4963
4964 * utils.c (prepare_to_throw_exception): Delete.
4965
6e774b13
SM
49662016-04-05 Simon Marchi <simon.marchi@ericsson.com>
4967
4968 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
4969
4dca19f8
MK
49702016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
4971
4972 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
4973
d0a9981f
MK
49742016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
4975
4976 * linux-aarch64-ipa.c: Add <elf.h> include.
4977 * linux-ppc-ipa.c: Add <elf.h> include.
4978 * linux-s390-ipa.c: Add <elf.h> include.
4979
252db07e
MK
49802016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
4981
4982 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
4983 (get_raw_reg_ptr): Likewise.
4984 (get_trace_state_variable_value_ptr): Likewise.
4985 (set_trace_state_variable_value_ptr): Likewise.
4986 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
4987 char *.
4988
14e2b6d9
MK
49892016-03-31 Wei-cheng Wang <cole945@gmail.com>
4990 Marcin Kościelnicki <koriakin@0x04.net>
4991
4992 PR/17221
4993 * linux-ppc-low.c (emit_insns): New function.
4994 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
4995 (ppc_emit_prologue): New function.
4996 (ppc_emit_epilogue): New function.
4997 (ppc_emit_add): New function.
4998 (ppc_emit_sub): New function.
4999 (ppc_emit_mul): New function.
5000 (ppc_emit_lsh): New function.
5001 (ppc_emit_rsh_signed): New function.
5002 (ppc_emit_rsh_unsigned): New function.
5003 (ppc_emit_ext): New function.
5004 (ppc_emit_zero_ext): New function.
5005 (ppc_emit_log_not): New function.
5006 (ppc_emit_bit_and): New function.
5007 (ppc_emit_bit_or): New function.
5008 (ppc_emit_bit_xor): New function.
5009 (ppc_emit_bit_not): New function.
5010 (ppc_emit_equal): New function.
5011 (ppc_emit_less_signed): New function.
5012 (ppc_emit_less_unsigned): New function.
5013 (ppc_emit_ref): New function.
5014 (ppc_emit_const): New function.
5015 (ppc_emit_reg): New function.
5016 (ppc_emit_pop): New function.
5017 (ppc_emit_stack_flush): New function.
5018 (ppc_emit_swap): New function.
5019 (ppc_emit_stack_adjust): New function.
5020 (ppc_emit_call): New function.
5021 (ppc_emit_int_call_1): New function.
5022 (ppc_emit_void_call_2): New function.
5023 (ppc_emit_if_goto): New function.
5024 (ppc_emit_goto): New function.
5025 (ppc_emit_eq_goto): New function.
5026 (ppc_emit_ne_goto): New function.
5027 (ppc_emit_lt_goto): New function.
5028 (ppc_emit_le_goto): New function.
5029 (ppc_emit_gt_goto): New function.
5030 (ppc_emit_ge_goto): New function.
5031 (ppc_write_goto_address): New function.
5032 (ppc_emit_ops_impl): New static variable.
5033 (ppc64v1_emit_prologue): New function.
5034 (ppc64v2_emit_prologue): New function.
5035 (ppc64_emit_epilogue): New function.
5036 (ppc64_emit_add): New function.
5037 (ppc64_emit_sub): New function.
5038 (ppc64_emit_mul): New function.
5039 (ppc64_emit_lsh): New function.
5040 (ppc64_emit_rsh_signed): New function.
5041 (ppc64_emit_rsh_unsigned): New function.
5042 (ppc64_emit_ext): New function.
5043 (ppc64_emit_zero_ext): New function.
5044 (ppc64_emit_log_not): New function.
5045 (ppc64_emit_bit_and): New function.
5046 (ppc64_emit_bit_or): New function.
5047 (ppc64_emit_bit_xor): New function.
5048 (ppc64_emit_bit_not): New function.
5049 (ppc64_emit_equal): New function.
5050 (ppc64_emit_less_signed): New function.
5051 (ppc64_emit_less_unsigned): New function.
5052 (ppc64_emit_ref): New function.
5053 (ppc64_emit_const): New function.
5054 (ppc64v1_emit_reg): New function.
5055 (ppc64v2_emit_reg): New function.
5056 (ppc64_emit_pop): New function.
5057 (ppc64_emit_stack_flush): New function.
5058 (ppc64_emit_swap): New function.
5059 (ppc64v1_emit_call): New function.
5060 (ppc64v2_emit_call): New function.
5061 (ppc64v1_emit_int_call_1): New function.
5062 (ppc64v2_emit_int_call_1): New function.
5063 (ppc64v1_emit_void_call_2): New function.
5064 (ppc64v2_emit_void_call_2): New function.
5065 (ppc64_emit_if_goto): New function.
5066 (ppc64_emit_eq_goto): New function.
5067 (ppc64_emit_ne_goto): New function.
5068 (ppc64_emit_lt_goto): New function.
5069 (ppc64_emit_le_goto): New function.
5070 (ppc64_emit_gt_goto): New function.
5071 (ppc64_emit_ge_goto): New function.
5072 (ppc64v1_emit_ops_impl): New static variable.
5073 (ppc64v2_emit_ops_impl): New static variable.
5074 (ppc_emit_ops): New function.
5075 (linux_low_target): Wire in ppc_emit_ops.
5076
a2174ba4
MK
50772016-03-31 Wei-cheng Wang <cole945@gmail.com>
5078 Marcin Kościelnicki <koriakin@0x04.net>
5079
5080 PR/17221
5081 * Makefile.in: Add powerpc-*-ipa.o
5082 * configure.srv: Add ipa_obj for powerpc*-linux.
5083 * linux-ppc-ipa.c: New file.
5084 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
5085 includes.
5086 (PPC_FIELD): New macro.
5087 (PPC_SEXT): New macro.
5088 (PPC_OP6): New macro.
5089 (PPC_BO): New macro.
5090 (PPC_LI): New macro.
5091 (PPC_BD): New macro.
5092 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
5093 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
5094 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
5095 (ppc_get_thread_area): New function.
5096 (is_elfv2_inferior): New function.
5097 (gen_ds_form): New function.
5098 (GEN_STD): New macro.
5099 (GEN_STDU): New macro.
5100 (GEN_LD): New macro.
5101 (GEN_LDU): New macro.
5102 (gen_d_form): New function.
5103 (GEN_ADDI): New macro.
5104 (GEN_ADDIS): New macro.
5105 (GEN_LI): New macro.
5106 (GEN_LIS): New macro.
5107 (GEN_ORI): New macro.
5108 (GEN_ORIS): New macro.
5109 (GEN_LWZ): New macro.
5110 (GEN_STW): New macro.
5111 (GEN_STWU): New macro.
5112 (gen_xfx_form): New function.
5113 (GEN_MFSPR): New macro.
5114 (GEN_MTSPR): New macro.
5115 (GEN_MFCR): New macro.
5116 (GEN_MTCR): New macro.
5117 (GEN_SYNC): New macro.
5118 (GEN_LWSYNC): New macro.
5119 (gen_x_form): New function.
5120 (GEN_OR): New macro.
5121 (GEN_MR): New macro.
5122 (GEN_LWARX): New macro.
5123 (GEN_STWCX): New macro.
5124 (GEN_CMPW): New macro.
5125 (gen_md_form): New function.
5126 (GEN_RLDICL): New macro.
5127 (GEN_RLDICR): New macro.
5128 (gen_i_form): New function.
5129 (GEN_B): New macro.
5130 (GEN_BL): New macro.
5131 (gen_b_form): New function.
5132 (GEN_BNE): New macro.
5133 (GEN_LOAD): New macro.
5134 (GEN_STORE): New macro.
5135 (gen_limm): New function.
5136 (gen_atomic_xchg): New function.
5137 (gen_call): New function.
5138 (ppc_relocate_instruction): New function.
5139 (ppc_install_fast_tracepoint_jump_pad): New function.
5140 (ppc_get_min_fast_tracepoint_insn_len): New function.
5141 (ppc_get_ipa_tdesc_idx): New function.
5142 (the_low_target): Wire in the new functions.
5143 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
5144 tdescs.
5145 * linux-ppc-tdesc.h: New file.
5146
a13c4696
MK
51472016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
5148
5149 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
5150 (alloc_jump_pad_buffer): New function.
5151 * linux-amd64-ipa.c: Add <sys/mman.h> include.
5152 (alloc_jump_pad_buffer): New function.
5153 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
5154 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
5155 (alloc_jump_pad_buffer): New function.
5156 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
5157 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
5158 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
5159 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
5160
1cda1512
MK
51612016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
5162
5163 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
5164 * linux-amd64-ipa.c: Likewise.
5165 * linux-i386-ipa.c: Likewise.
5166 * linux-s390-ipa.c: Likewise.
5167 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
5168 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
5169 set_trace_state_variable_value_ptr.
5170 (struct ipa_sym_addresses): Likewise.
5171 (symbol_list): Likewise.
5172 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
5173 accessing gdb_collect directly.
5174 (gdb_collect_ptr_type): New typedef.
5175 (get_raw_reg_ptr_type): New typedef.
5176 (get_trace_state_variable_value_ptr_type): New typedef.
5177 (set_trace_state_variable_value_ptr_type): New typedef.
5178 (gdb_collect_ptr): New global.
5179 (get_raw_reg_ptr): New global.
5180 (get_trace_state_variable_value_ptr): New global.
5181 (set_trace_state_variable_value_ptr): New global.
5182 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
5183 accessing get_raw_reg directly.
5184 (get_get_tsv_func_addr): Likewise for
5185 get_trace_state_variable_value_ptr.
5186 (get_set_tsv_func_addr): Likewise for
5187 set_trace_state_variable_value_ptr.
5188 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
5189
72fb5488
SM
51902016-03-30 Simon Marchi <simon.marchi@ericsson.com>
5191
5192 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
5193
28170b88
MK
51942016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
5195
5196 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
5197 packets.
5198 (relocate_instruction): Remove own_buf.
5199 * server.c (own_buf): Make global.
5200 (handle_v_requests): Make global.
5201 * server.h (own_buf): New declaration.
5202 (handle_v_requests): New prototype.
5203
f39e8743
MK
52042016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
5205
5206 PR 18377
5207 * linux-s390-low.c (add_insns): New function.
5208 (s390_emit_prologue): New function.
5209 (s390_emit_epilogue): New function.
5210 (s390_emit_add): New function.
5211 (s390_emit_sub): New function.
5212 (s390_emit_mul): New function.
5213 (s390_emit_lsh): New function.
5214 (s390_emit_rsh_signed): New function.
5215 (s390_emit_rsh_unsigned): New function.
5216 (s390_emit_ext): New function.
5217 (s390_emit_log_not): New function.
5218 (s390_emit_bit_and): New function.
5219 (s390_emit_bit_or): New function.
5220 (s390_emit_bit_xor): New function.
5221 (s390_emit_bit_not): New function.
5222 (s390_emit_equal): New function.
5223 (s390_emit_less_signed): New function.
5224 (s390_emit_less_unsigned): New function.
5225 (s390_emit_ref): New function.
5226 (s390_emit_if_goto): New function.
5227 (s390_emit_goto): New function.
5228 (s390_write_goto_address): New function.
5229 (s390_emit_litpool): New function.
5230 (s390_emit_const): New function.
5231 (s390_emit_call): New function.
5232 (s390_emit_reg): New function.
5233 (s390_emit_pop): New function.
5234 (s390_emit_stack_flush): New function.
5235 (s390_emit_zero_ext): New function.
5236 (s390_emit_swap): New function.
5237 (s390_emit_stack_adjust): New function.
5238 (s390_emit_set_r2): New function.
5239 (s390_emit_int_call_1): New function.
5240 (s390_emit_void_call_2): New function.
5241 (s390_emit_eq_goto): New function.
5242 (s390_emit_ne_goto): New function.
5243 (s390_emit_lt_goto): New function.
5244 (s390_emit_le_goto): New function.
5245 (s390_emit_gt_goto): New function.
5246 (s390_emit_ge_goto): New function.
5247 (s390x_emit_prologue): New function.
5248 (s390x_emit_epilogue): New function.
5249 (s390x_emit_add): New function.
5250 (s390x_emit_sub): New function.
5251 (s390x_emit_mul): New function.
5252 (s390x_emit_lsh): New function.
5253 (s390x_emit_rsh_signed): New function.
5254 (s390x_emit_rsh_unsigned): New function.
5255 (s390x_emit_ext): New function.
5256 (s390x_emit_log_not): New function.
5257 (s390x_emit_bit_and): New function.
5258 (s390x_emit_bit_or): New function.
5259 (s390x_emit_bit_xor): New function.
5260 (s390x_emit_bit_not): New function.
5261 (s390x_emit_equal): New function.
5262 (s390x_emit_less_signed): New function.
5263 (s390x_emit_less_unsigned): New function.
5264 (s390x_emit_ref): New function.
5265 (s390x_emit_if_goto): New function.
5266 (s390x_emit_const): New function.
5267 (s390x_emit_call): New function.
5268 (s390x_emit_reg): New function.
5269 (s390x_emit_pop): New function.
5270 (s390x_emit_stack_flush): New function.
5271 (s390x_emit_zero_ext): New function.
5272 (s390x_emit_swap): New function.
5273 (s390x_emit_stack_adjust): New function.
5274 (s390x_emit_int_call_1): New function.
5275 (s390x_emit_void_call_2): New function.
5276 (s390x_emit_eq_goto): New function.
5277 (s390x_emit_ne_goto): New function.
5278 (s390x_emit_lt_goto): New function.
5279 (s390x_emit_le_goto): New function.
5280 (s390x_emit_gt_goto): New function.
5281 (s390x_emit_ge_goto): New function.
5282 (s390_emit_ops): New function.
5283 (struct linux_target_ops): Fill in emit_ops hook.
5284
abd9baf9
MK
52852016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
5286
5287 PR 18377
5288 * Makefile.in: Add s390 IPA files.
5289 * configure.srv: Build IPA for s390.
5290 * linux-s390-ipa.c: New file.
5291 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
5292 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
5293 (tdesc_s390_linux32): Likewise.
5294 (init_registers_s390_linux32v1): Likewise.
5295 (tdesc_s390_linux32v1): Likewise.
5296 (init_registers_s390_linux32v2): Likewise.
5297 (tdesc_s390_linux32v2): Likewise.
5298 (init_registers_s390_linux64): Likewise.
5299 (tdesc_s390_linux64): Likewise.
5300 (init_registers_s390_linux64v1): Likewise.
5301 (tdesc_s390_linux64v1): Likewise.
5302 (init_registers_s390_linux64v2): Likewise.
5303 (tdesc_s390_linux64v2): Likewise.
5304 (init_registers_s390_te_linux64): Likewise.
5305 (tdesc_s390_te_linux64): Likewise.
5306 (init_registers_s390_vx_linux64): Likewise.
5307 (tdesc_s390_vx_linux64): Likewise.
5308 (init_registers_s390_tevx_linux64): Likewise.
5309 (tdesc_s390_tevx_linux64): Likewise.
5310 (init_registers_s390x_linux64): Likewise.
5311 (tdesc_s390x_linux64): Likewise.
5312 (init_registers_s390x_linux64v1): Likewise.
5313 (tdesc_s390x_linux64v1): Likewise.
5314 (init_registers_s390x_linux64v2): Likewise.
5315 (tdesc_s390x_linux64v2): Likewise.
5316 (init_registers_s390x_te_linux64): Likewise.
5317 (tdesc_s390x_te_linux64): Likewise.
5318 (init_registers_s390x_vx_linux64): Likewise.
5319 (tdesc_s390x_vx_linux64): Likewise.
5320 (init_registers_s390x_tevx_linux64): Likewise.
5321 (tdesc_s390x_tevx_linux64): Likewise.
5322 (have_hwcap_s390_vx): New static variable.
5323 (s390_arch_setup): Fill have_hwcap_s390_vx.
5324 (s390_get_thread_area): New function.
5325 (s390_ft_entry_gpr_esa): New const.
5326 (s390_ft_entry_gpr_zarch): New const.
5327 (s390_ft_entry_misc): New const.
5328 (s390_ft_entry_fr): New const.
5329 (s390_ft_entry_vr): New const.
5330 (s390_ft_main_31): New const.
5331 (s390_ft_main_64): New const.
5332 (s390_ft_exit_fr): New const.
5333 (s390_ft_exit_vr): New const.
5334 (s390_ft_exit_misc): New const.
5335 (s390_ft_exit_gpr_esa): New const.
5336 (s390_ft_exit_gpr_zarch): New const.
5337 (append_insns): New function.
5338 (s390_relocate_instruction): New function.
5339 (s390_install_fast_tracepoint_jump_pad): New function.
5340 (s390_get_min_fast_tracepoint_insn_len): New function.
5341 (s390_get_ipa_tdesc_idx): New function.
5342 (struct linux_target_ops): Wire in the above functions.
5343 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
5344 * linux-s390-tdesc.h: New file.
5345
a4105d04
MK
53462016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
5347
5348 * linux-s390-low.c (s390_supports_tracepoints): New function.
5349 (struct linux_target_ops): Fill supports_tracepoints hook.
5350
35ac8b3e
YQ
53512016-03-18 Yao Qi <yao.qi@linaro.org>
5352
5353 * linux-low.c (lwp_signal_can_be_delivered): New function.
5354 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
5355
94610ec4
YQ
53562016-03-18 Yao Qi <yao.qi@linaro.org>
5357
5358 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
5359 0 if signal is enqueued. Remove 'signal' from one debugging
5360 message. Move one debugging message to some lines below.
5361 Remove code setting 'signal' to 0.
5362
80aea927
YQ
53632016-03-18 Yao Qi <yao.qi@linaro.org>
5364
5365 * linux-low.c (linux_low_filter_event): Remove redundant
5366 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
5367
b04fd3be
MK
53682016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
5369
5370 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
5371 (struct linux_target_ops): Wire in the above.
5372
c40c8d4b
YQ
53732016-03-03 Yao Qi <yao.qi@linaro.org>
5374
5375 * linux-low.c: Update comments to start_step_over.
5376
0f8288ae
YQ
53772016-03-03 Yao Qi <yao.qi@linaro.org>
5378
5379 PR server/19736
5380 * linux-low.c (handle_extended_wait): Set child suspended
5381 if event_lwp->bp_reinsert isn't zero.
5382
fdbd04a8
YQ
53832016-03-02 Yao Qi <yao.qi@linaro.org>
5384
5385 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
5386 enqueue_pending_signal.
5387
6896a8fa
MK
53882016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
5389
5390 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
5391 is actually loaded.
5392
ab503087
MK
53932016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
5394
5395 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
5396 (s390_regmap_3264) [!__s390x__]: New global.
5397 (s390_collect_ptrace_register): Skip map entries containing -1.
5398 (s390_supply_ptrace_register): Ditto.
5399 (s390_fill_gprs_high): New function.
5400 (s390_store_gprs_high): New function.
5401 (s390_regsets): Add NT_S390_HIGH_GPRS.
5402 (s390_get_hwcap): Enable on 31-bit.
5403 (have_hwcap_s390_high_gprs): Enable on 31-bit.
5404 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
5405 Detect NT_S390_HIGH_GPRS.
5406 (s390_usrregs_info_3264): Enable on 31-bit.
5407 (s390_regs_info): Enable regs_info_3264 on 31-bit.
5408 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
5409
ae91f625
MK
54102016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
5411
5412 PR gdb/13808
5413 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
5414 * configure.srv: Ditto.
5415 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
5416 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
5417 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
5418 (init_registers_amd64_linux): Remove prototype.
5419 (tdesc_amd64_linux): Remove declaration.
5420 (get_ipa_tdesc): New function.
5421 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
5422 initialize remaining tdescs.
5423 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
5424 (init_registers_i386_linux): Remove prototype.
5425 (tdesc_i386_linux): Remove declaration.
5426 (get_ipa_tdesc): New function.
5427 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
5428 initialize remaining tdescs.
5429 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
5430 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
5431 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
5432 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
5433 (x86_get_ipa_tdesc_idx): New function.
5434 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
5435 * linux-x86-tdesc.h: New file.
5436 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
5437 (target_get_ipa_tdesc_idx): New macro.
5438 * tracepoint.c (ipa_tdesc_idx): New macro.
5439 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
5440 (symbol_list): Add ipa_tdesc_idx.
5441 (cmd_qtstart): Write ipa_tdesc_idx in the target.
5442 (ipa_tdesc): Remove.
5443 (ipa_tdesc_idx): New variable.
5444 (get_context_regcache): Use get_ipa_tdesc.
5445 (gdb_collect): Ditto.
5446 (gdb_probe): Ditto.
5447 * tracepoint.h (get_ipa_tdesc): New prototype.
5448 (ipa_tdesc): Remove.
5449
e7ad2f14
PA
54502016-02-24 Pedro Alves <palves@redhat.com>
5451
5452 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
5453 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
5454 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
5455 Factor out common code between the USE_SIGTRAP_SIGINFO and
5456 !USE_SIGTRAP_SIGINFO blocks.
5457 (linux_low_filter_event): Call save_stop_reason instead of
5458 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
5459 Update comments.
5460 (linux_wait_1): Update comments.
5461
657f9cde
WW
54622016-02-24 Wei-cheng Wang <cole945@gmail.com>
5463
5464 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
5465 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
5466 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
5467 ppc_insert_point, ppc_remove_point.
5468
b00b61e1
MK
54692016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
5470
5471 * linux-s390-low.c (s390_supports_z_point_type): New function.
5472 (struct linux_target_ops): Wire s390_supports_z_point_type in.
5473
553cb527
YQ
54742016-02-16 Yao Qi <yao.qi@linaro.org>
5475
5476 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
5477 PC. Get pc from regcache_read_pc.
5478
a5652c21
YQ
54792016-02-12 Yao Qi <yao.qi@linaro.org>
5480
5481 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
5482 or linux_get_pc_32bit.
5483 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
5484
ed443b61
YQ
54852016-02-12 Yao Qi <yao.qi@linaro.org>
5486
5487 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
5488 arm_linux_get_next_pcs_fixup.
5489
020ecd38
MK
54902016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
5491
5492 * tracepoint.c (x_tracepoint_action_download): Change
5493 write_inferior_data_ptr to write_inferior_data_pointer.
5494 (cmd_qtstart): Likewise.
5495 (write_inferior_data_ptr): Remove.
5496 (download_agent_expr): Change write_inferior_data_ptr to
5497 write_inferior_data_pointer.
5498 (download_tracepoint_1): Likewise.
5499 (download_tracepoint): Likewise.
5500 (download_trace_state_variables): Likewise.
5501
7cae9051
WW
55022016-02-11 Wei-cheng Wang <cole945@gmail.com>
5503 Marcin Kościelnicki <koriakin@0x04.net>
5504
5505 * tracepoint.c (struct tracepoint_action_ops): Remove.
5506 (struct tracepoint_action): Remove ops.
5507 (m_tracepoint_action_download, r_tracepoint_action_download)
5508 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
5509 size and offset accordingly.
5510 (m_tracepoint_action_ops, r_tracepoint_action_ops)
5511 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
5512 (tracepoint_action_send, tracepoint_action_download): New functions.
5513 Helpers for trace action handlers.
5514 (add_tracepoint_action): Remove setup actions ops.
5515 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
5516
9f6a71b4
YQ
55172016-02-10 Yao Qi <yao.qi@linaro.org>
5518
5519 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
5520
1e94266c
SM
55212016-02-09 Simon Marchi <simon.marchi@ericsson.com>
5522
5523 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
5524 to AC_OUTPUT.
5525 * configure: Regenerate.
5526
8adce034
SM
55272016-02-09 Simon Marchi <simon.marchi@ericsson.com>
5528
5529 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
5530 void * to gdb_byte *.
5531 * linux-low.c (siginfo_fixup): Likewise.
5532 (linux_xfer_siginfo): Likewise.
5533 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
5534 Likewise.
5535 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
5536
93813b37
WT
55372016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
5538
5539 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
5540 to srv_tgtobj.
5541 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
5542 to srv_tgtobj.
5543 * linux-x86-low.c [__x86_64__]: Include
5544 "nat/amd64-linux-siginfo.h".
5545 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
5546 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
5547 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
5548 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
5549 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
5550 (cpt_si_fd, si_timerid, si_overrun): Move from
5551 nat/amd64-linux-siginfo.c.
5552 * Makefile.in (amd64-linux-siginfo.o:): New rule.
5553
8424cc97
SM
55542016-01-28 Simon Marchi <simon.marchi@ericsson.com>
5555
5556 * server.c (skip_to_semicolon): Remove.
5557 (process_point_options): Use strchrnul instead of
5558 skip_to_semicolon.
5559
4d18591b
YQ
55602016-01-26 Yao Qi <yao.qi@linaro.org>
5561
5562 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
5563 * linux-low.c (install_software_single_step_breakpoints): Don't
5564 call regcache_read_pc.
5565 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
5566 argument pc.
5567
d8020970
YQ
55682016-01-26 Yao Qi <yao.qi@linaro.org>
5569
5570 * linux-low.c (install_software_single_step_breakpoints): Call
5571 regcache_read_pc instead of get_pc.
5572
8b207339
YQ
55732016-01-26 Yao Qi <yao.qi@linaro.org>
5574
5575 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
5576 (unblock_async_io): Rename to ...
5577 (block_unblock_async_io): ... it. New function.
5578 (enable_async_io): Don't install SIGIO handler. Unblock it
5579 instead.
5580 (disable_async_io): Don't ignore SIGIO. Block it instead.
5581 (initialize_async_io): Install SIGIO handler. Don't call
5582 unblock_async_io.
5583
18879fef
YQ
55842016-01-26 Yao Qi <yao.qi@linaro.org>
5585
5586 * remote-utils.c (getpkt): If the buffer isn't empty, and the
5587 first character is '\003', call *the_target->request_interrupt.
5588
a0f8e08a
YQ
55892016-01-25 Yao Qi <yao.qi@linaro.org>
5590
5591 * remote-utils.c (new_thread_notify): Remove.
5592 (dead_thread_notify): Likewise.
5593 * remote-utils.h (new_thread_notify): Remove declaration.
5594 (dead_thread_notify): Likewise.
5595
cc5fd9ab
MK
55962016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
5597
5598 * gdb.trace/pending.exp: Fix expected message on continue.
5599
99e8eb11
MK
56002016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
5601
5602 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
5603 it works properly on big-endian machines where sizeof (CORE_ADDR)
5604 != sizeof (void *).
5605
a994041d
PA
56062016-01-21 Pedro Alves <palves@redhat.com>
5607
5608 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
5609 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
5610 * configure: Regenerate.
5611
f7a6a40d
YQ
56122016-01-21 Yao Qi <yao.qi@linaro.org>
5613
5614 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
5615 is_thumb and set it according to CPSR saved on the stack.
5616 (get_next_pcs_syscall_next_pc): Pass is_thumb to
5617 arm_sigreturn_next_pc.
5618
6f69e520
YQ
56192016-01-18 Yao Qi <yao.qi@linaro.org>
5620
5621 * linux-low.c (linux_set_pc_64bit): New function.
5622 (linux_get_pc_64bit): New function.
5623 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
5624 Declare.
5625 * linux-sparc-low.c (debug_threads): Remove declaration.
5626 (sparc_get_pc): Remove.
5627 (the_low_target): Use linux_get_pc_64bit instead of
5628 sparc_get_pc.
5629 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
5630 (the_low_target): Use linux_get_pc_64bit and
5631 linux_set_pc_64bit.
5632
276d4552
YQ
56332016-01-18 Yao Qi <yao.qi@linaro.org>
5634
5635 * linux-arm-low.c (debug_threads): Remove declaration.
5636 (arm_get_pc, arm_set_pc): Remove.
5637 (the_low_target): Use linux_get_pc_32bit and
5638 linux_set_pc_32bit.
5639 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
5640 (the_low_target): Use linux_get_pc_32bit and
5641 linux_set_pc_32bit.
5642 * linux-cris-low.c (debug_threads): Remove declaration.
5643 (cris_get_pc, cris_set_pc,): Remove.
5644 (the_low_target): Use linux_get_pc_32bit and
5645 linux_set_pc_32bit.
5646 * linux-crisv32-low.c (debug_threads): Remove declaration.
5647 (cris_get_pc, cris_set_pc): Remove.
5648 (the_low_target): Use linux_get_pc_32bit and
5649 linux_set_pc_32bit.
5650 * linux-low.c: Include inttypes.h.
5651 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
5652 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
5653 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
5654 (the_low_target): Use linux_get_pc_32bit and
5655 linux_set_pc_32bit.
5656 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
5657 (the_low_target): Use linux_get_pc_32bit and
5658 linux_set_pc_32bit.
5659 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
5660 (the_low_target): Use linux_get_pc_32bit and
5661 linux_set_pc_32bit.
5662 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
5663 (the_low_target): Use linux_get_pc_32bit and
5664 linux_set_pc_32bit.
5665 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
5666 (the_low_target): Use linux_get_pc_32bit and
5667 linux_set_pc_32bit.
5668
eb0edac8
GB
56692016-01-18 Gary Benson <gbenson@redhat.com>
5670
5671 * configure.ac (AC_FUNC_FORK): New check.
5672 * config.in: Regenerate.
5673 * configure: Likewise.
5674
1b451dda
YQ
56752016-01-14 Yao Qi <yao.qi@linaro.org>
5676
5677 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
5678 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
5679 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
5680 arm_get_next_pcs_ctor.
5681
82075af2
JS
56822016-01-12 Josh Stone <jistone@redhat.com>
5683 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5684
5685 * inferiors.h: Include "gdb_vecs.h".
5686 (struct process_info): Add syscalls_to_catch.
5687 * inferiors.c (remove_process): Free syscalls_to_catch.
5688 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
5689 syscall_return stops.
5690 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
5691 * server.c (handle_general_set): Handle QCatchSyscalls.
5692 (handle_query): Report support for QCatchSyscalls.
5693 * target.h (struct target_ops): Add supports_catch_syscall.
5694 (target_supports_catch_syscall): New macro.
5695 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
5696 (struct lwp_info): Add syscall_state.
5697 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
5698 Maintain syscall_state and syscalls_to_catch across exec.
5699 (get_syscall_trapinfo): New function, proxy to the_low_target.
5700 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
5701 (linux_low_filter_event): Toggle syscall_state entry/return for
5702 syscall traps, and set it ignored for all others.
5703 (gdb_catching_syscalls_p): New function.
5704 (gdb_catch_this_syscall_p): New function.
5705 (linux_wait_1): Handle SYSCALL_SIGTRAP.
5706 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
5707 (linux_supports_catch_syscall): New function.
5708 (linux_target_ops): Install it.
5709 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
5710 (the_low_target): Install it.
5711
8f13a3ce
MF
57122016-01-12 Mike Frysinger <vapier@gentoo.org>
5713
5714 * acinclude.m4: Include new ../warning.m4 file.
5715 * configure: Regenerated.
5716 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
5717
5b3da067
MF
57182016-01-12 Mike Frysinger <vapier@gentoo.org>
5719
5720 * ax.c (is_goto_target): Mark static.
5721 * linux-low.c (register_addr): Likewise.
5722 (linux_fetch_registers, linux_store_registers): Likewise.
5723 * mem-break.c (any_persistent_commands): Fix old prototype.
5724 (add_commands_to_breakpoint): Mark static.
5725 * regcache.c (find_register_by_name): Delete unused func.
5726 * remote-utils.c (hex_or_minus_one): Mark static.
5727 * server.c (monitor_show_help): Mark static.
5728 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
5729 handle_v_requests): Likewise.
5730
bc504a31
PA
57312016-01-12 Pedro Alves <palves@redhat.com>
5732
5733 Remove use of the registered trademark symbol throughout.
5734
5a0dd67a
YQ
57352016-01-08 Yao Qi <yao.qi@linaro.org>
5736
5737 * remote-utils.c (getpkt): If c is '\003', call target hook
5738 request_interrupt.
5739
b2ca446f
YQ
57402016-01-06 Yao Qi <yao.qi@linaro.org>
5741
5742 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
5743 linux-aarch32-low.c.
5744 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
5745 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
5746 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
5747 (thumb2_breakpoint): Declare.
5748 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
5749 linux-aarch32-low.h.
5750 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
5751 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
5752 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
5753
edd88788
JB
57542016-01-01 Joel Brobecker <brobecker@adacore.com>
5755
5756 * gdbreplay.c (gdbreplay_version): Change copyright year in
5757 version message.
5758 * server.c (gdbserver_version): Likewise.
5759
65da7f14
PP
57602015-12-28 Patrick Palka <patrick@parcs.ath.cx>
5761
5762 * server.c (crc32_table): Delete.
5763 (crc32): Use libiberty's xcrc32 function.
5764
4abd5ed2
JB
57652015-12-22 Joel Brobecker <brobecker@adacore.com>
5766
5767 * lynx-low.c (lynx_delete_thread_callback): New function.
5768 (lynx_mourn): Properly delete our process and all of its
5769 threads. Remove call to clear_inferiors.
5770
0e50fe5c
JB
57712015-12-22 Joel Brobecker <brobecker@adacore.com>
5772
5773 * target.c (thread_search_callback): Add check that
5774 the thread_stopped target callback is not NULL before
5775 calling it.
5776
35adc03f
YQ
57772015-12-21 Yao Qi <yao.qi@linaro.org>
5778
5779 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
5780 arm breakpoint.
5781
bd2b2909
AT
57822015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
5783
5784 * server.c (handle_query): Call target_supports_software_single_step.
5785
7fe5e27e
AT
57862015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
5787
5788 * linux-low.c (single_step): New function.
5789 (linux_resume_one_lwp_throw): Call single_step.
5790 (start_step_over): Likewise.
5791
d9311bfa
AT
57922015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
5793
5794 * Makefile.in (SFILES): Append arch/arm-linux.c,
5795 arch/arm-get-next-pcs.c.
5796 (arm-linux.o): New rule.
5797 (arm-get-next-pcs.o): New rule.
5798 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
5799 arm-linux.o.
5800 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
5801 to linux-aarch32-low.c.
5802 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
5803 (arm_breakpoint_len, thumb_breakpoint): Likewise.
5804 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
5805 (thumb2_breakpoint_len): Likewise.
5806 (arm_is_thumb_mode): Make non-static.
5807 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
5808 from linux-aarch32-low.c.
5809 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
5810 (arm_breakpoint_len, thumb_breakpoint): Likewise.
5811 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
5812 (thumb2_breakpoint_len): Likewise.
5813 (arm_is_thumb_mode): New declaration.
5814 * linux-arm-low.c: Include arch/arm-linux.h
5815 aarch/arm-get-next-pcs.h, sys/syscall.h.
5816 (get_next_pcs_ops): New struct.
5817 (get_next_pcs_addr_bits_remove): New function.
5818 (get_next_pcs_is_thumb): New function.
5819 (get_next_pcs_read_memory_unsigned_integer): Likewise.
5820 (arm_sigreturn_next_pc): Likewise.
5821 (get_next_pcs_syscall_next_pc): Likewise.
5822 (arm_gdbserver_get_next_pcs): Likewise.
5823 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
5824 Initialize.
5825 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
5826 * server.h: Include gdb_vecs.h.
5827
68ce2059
AT
58282015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
5829
5830 * Makefile.in (SFILES): Append common/common-regcache.c.
5831 (OBS): Append common-regcache.o.
5832 (common-regcache.o): New rule.
5833 * regcache.c (init_register_cache): Initialize cache to
5834 REG_UNAVAILABLE.
5835 (regcache_raw_read_unsigned): New function.
5836 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
5837 register_status enum.
5838
fa5308bd
AT
58392015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
5840
5841 * linux-aarch64-low.c (the_low_targets): Rename
5842 breakpoint_reinsert_addr to get_next_pcs.
5843 * linux-arm-low.c (the_low_targets): Likewise.
5844 * linux-bfin-low.c (the_low_targets): Likewise.
5845 * linux-cris-low.c (the_low_targets): Likewise.
5846 * linux-crisv32-low.c (the_low_targets): Likewise.
5847 * linux-low.c (can_software_single_step): Likewise.
5848 (install_software_single_step_breakpoints): New function.
5849 (start_step_over): Use install_software_single_step_breakpoints.
5850 * linux-low.h: New CORE_ADDR vector.
5851 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
5852 get_next_pcs.
5853 * linux-mips-low.c (the_low_targets): Likewise.
5854 * linux-nios2-low.c (the_low_targets): Likewise.
5855 * linux-sparc-low.c (the_low_targets): Likewise.
5856
4a6ed09b
PA
58572015-12-17 Pedro Alves <palves@redhat.com>
5858
5859 * linux-low.c (linux_kill_one_lwp): Remove references to
5860 LinuxThreads.
5861 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
5862 to 'kill'.
5863 (linux_init_signals): Delete.
5864 (initialize_low): Adjust.
5865 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
5866
7544db95
PA
58672015-12-16 Pedro Alves <palves@redhat.com>
5868
5869 * configure.ac (compiler warning flags): When testing a
5870 -Wno-foo option, check whether -Wfoo works instead.
5871 * configure: Regenerate.
5872
8020350c
DB
58732015-12-11 Don Breazeal <donb@codesourcery.com>
5874
5875 * server.c (process_serial_event): Don't exit from gdbserver
5876 in remote mode if there are still active inferiors.
5877
db91f502
YQ
58782015-12-11 Yao Qi <yao.qi@linaro.org>
5879
5880 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
5881 arm_breakpoint_at if the process is 32-bit.
5882
b37a6290
YQ
58832015-12-11 Yao Qi <yao.qi@linaro.org>
5884
5885 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
5886 arm breakpoint.
5887
17b1509a
YQ
58882015-12-07 Yao Qi <yao.qi@linaro.org>
5889
5890 * configure.srv: Append arm.o to srv_tgtobj for
5891 aarch64*-*-linux* target.
5892 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
5893 from linux-arm-low.c.
5894 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
5895 (arm_breakpoint_len, thumb_breakpoint): Likewise.
5896 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
5897 (thumb2_breakpoint_len): Likewise.
5898 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
5899 (arm_breakpoint_kinds): Likewise.
5900 (arm_breakpoint_kind_from_pc): Likewise.
5901 (arm_sw_breakpoint_from_kind): Likewise.
5902 (arm_breakpoint_kind_from_current_state): Likewise.
5903 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
5904 (arm_sw_breakpoint_from_kind): Declare.
5905 (arm_breakpoint_kind_from_current_state): Declare.
5906 (arm_breakpoint_at): Declare.
5907 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
5908 arm_sw_breakpoint_from_kind if process is 32-bit.
5909 (aarch64_breakpoint_kind_from_pc): New function.
5910 (aarch64_breakpoint_kind_from_current_state): New function.
5911 (the_low_target): Initialize fields breakpoint_kind_from_pc
5912 and breakpoint_kind_from_current_state.
5913 * linux-arm-low.c (arm_breakpoint_kinds): Move to
5914 linux-aarch32-low.c.
5915 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
5916 (arm_breakpoint, arm_breakpoint_len): Likewise.
5917 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
5918 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
5919 (arm_is_thumb_mode): Likewise.
5920 (arm_breakpoint_at): Likewise.
5921 (arm_breakpoint_kind_from_pc): Likewise.
5922 (arm_sw_breakpoint_from_kind): Likewise.
5923 (arm_breakpoint_kind_from_current_state): Likewise.
5924
5925 Revert:
5926 2015-08-04 Yao Qi <yao.qi@linaro.org>
5927
5928 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
5929 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
5930 * server.c (extended_protocol): Remove "static".
5931 * server.h (extended_protocol): Declare it.
5932
ece66d65
JS
59332015-12-04 Josh Stone <jistone@redhat.com>
5934
5935 * target.h (struct target_ops) <arch_setup>: Rename to ...
5936 (struct target_ops) <post_create_inferior>: ... this.
5937 (target_arch_setup): Rename to ...
5938 (target_post_create_inferior): ... this, calling post_create_inferior.
5939 * server.c (start_inferior): Update target_arch_setup calls to
5940 target_post_create_inferior.
5941 * linux-low.c (linux_low_ptrace_options): Forward declare.
5942 (linux_arch_setup): Update its comment for general use.
5943 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
5944 (struct linux_target_ops): Use linux_post_create_inferior.
5945 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
5946 to post_create_inferior.
5947 * nto-low.c (struct nto_target_ops): Likewise.
5948 * spu-low.c (struct spu_target_ops): Likewise.
5949 * win32-low.c (struct win32_target_ops): Likewise.
5950
e58c48b4
AT
59512015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
5952
5953 * linux-arm-low.c: Remove duplicate arch/arm.h include.
5954
fbec8956
AT
59552015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
5956
5957 * linux-arm-low.c (arm_reinsert_addr): Remove function.
5958 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
5959 * linux-cris-low.c (cris_reinsert_addr> Remove function.
5960 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
5961 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
5962 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
5963 * linux-mips-low.c (mips_reinsert_addr): Remove function.
5964 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
5965 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
5966 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
5967 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
5968 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
5969
9b4c5f87
AT
59702015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
5971
5972 * linux-low.c (linux_look_up_symbols): Don't call
5973 linux_supports_traceclone.
5974 * linux-low.h (thread_db_init): Remove use_events argument.
5975 * thread-db.c (thread_db_use_event): Remove global variable.
5976 (struct thread_db) <td_thr_event_enable_p>: Remove field.
5977 (struct thread_db) <td_create_bp>: Remove field.
5978 (thread_db_create_event): Remove function.
5979 (thread_db_enable_reporting): Likewise.
5980 (find_one_thread): Don't check for thread_db_use_events.
5981 (attach_thread): Likewise.
5982 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
5983 (try_thread_db_load_1): Don't check for thread_db_use_events.
5984 (thread_db_init): Remove use_events argument and thread events
5985 handling.
5986 (remove_thread_event_breakpoints): Remove function.
5987 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
5988
7d00775e
AT
59892015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
5990
5991 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
5992 New function.
5993 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
5994 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
5995 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
5996 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
5997 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
5998 Initialize.
5999 * linux-crisv32-low.c (cris_supports_hardware_single_step):
6000 New function.
6001 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6002 * linux-low.c (can_hardware_single_step): Use
6003 supports_hardware_single_step.
6004 (can_software_single_step): New function.
6005 (start_step_over): Call can_software_single_step.
6006 (linux_supports_hardware_single_step): New function.
6007 (struct target_ops) <supports_software_single_step>: Initialize.
6008 * linux-low.h (struct linux_target_ops)
6009 <supports_hardware_single_step>: Initialize.
6010 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
6011 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6012 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
6013 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
6014 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
6015 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6016 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
6017 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6018 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
6019 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
6020 Initialize.
6021 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
6022 (struct linux_target_ops) <tile_supports_hardware_single_step>:
6023 Initialize.
6024 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
6025 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6026 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
6027 New function.
6028 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6029 * target.h (struct target_ops): <supports_software_single_step>:
6030 New field.
6031 (target_supports_software_single_step): New macro.
6032
2d97cd35
AT
60332015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
6034
6035 * linux-low.c (linux_wait_1): Fix pc advance condition.
6036 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
6037 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
6038
769ef81f
AT
60392015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
6040
6041 * linux-arm-low.c (arm_is_thumb_mode): New function.
6042 (arm_breakpoint_at): Use arm_is_thumb_mode.
6043 (arm_breakpoint_kind_from_current_state): New function.
6044 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
6045 Initialize.
6046 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
6047 (linux_breakpoint_kind_from_current_state): New function.
6048 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
6049 * linux-low.h (struct linux_target_ops)
6050 <breakpoint_kind_from_current_state>: New field.
6051 * target.h (struct target_ops): Likewise.
6052 (target_breakpoint_kind_from_current_state): New macro.
6053
1bebeeca
PA
60542015-11-30 Pedro Alves <palves@redhat.com>
6055
6056 * linux-low.c (linux_resume): Wake up the event loop before
6057 returning.
6058
a67a9fae
PA
60592015-11-30 Pedro Alves <palves@redhat.com>
6060
6061 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
6062 check.
6063 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
6064 to -1.
6065 * target.c (struct thread_search): New structure.
6066 (thread_search_callback): New function.
6067 (prev_general_thread): New global.
6068 (prepare_to_access_memory, done_accessing_memory): New functions.
6069 * target.h (prepare_to_access_memory, done_accessing_memory):
6070 Replace macros with function declarations.
6071
f2faf941
PA
60722015-11-30 Pedro Alves <palves@redhat.com>
6073
6074 PR 14618
6075 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
6076 report TARGET_WAITKIND_NO_RESUMED.
6077 * remote-utils.c (prepare_resume_reply): Handle
6078 TARGET_WAITKIND_NO_RESUMED.
6079 * server.c (report_no_resumed): New global.
6080 (handle_query) <qSupported>: Handle "no-resumed+". Report
6081 "no-resumed+" support.
6082 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
6083 return error if the client doesn't support no-resumed events.
6084 (push_stop_notification): New function.
6085 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
6086 events if the client supports them.
6087
a681f9c9
PA
60882015-11-30 Pedro Alves <palves@redhat.com>
6089
6090 * linux-low.c (thread_still_has_status_pending_p): Don't check
6091 vCont;t here.
6092 (lwp_resumed): New function.
6093 (status_pending_p_callback): Return early if the LWP is not
6094 supposed to be resumed.
6095
65706a29
PA
60962015-11-30 Pedro Alves <palves@redhat.com>
6097
6098 * linux-low.c (handle_extended_wait): Assert that the LWP's
6099 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
6100 thread create events, leave the new child's status pending.
6101 (linux_low_filter_event): If GDB wants to hear about thread exit
6102 events, leave the LWP marked dead and don't delete it.
6103 (linux_wait_for_event_filtered): Don't check for thread exit.
6104 (filter_exit_event): New function.
6105 (linux_wait_1): Use it, when returning an exit event.
6106 (linux_resume_one_lwp_throw): Assert that the LWP's
6107 waitstatus is TARGET_WAITKIND_IGNORE.
6108 * remote-utils.c (prepare_resume_reply): Handle
6109 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
6110 * server.c (report_thread_events): New global.
6111 (handle_general_set): Handle QThreadEvents.
6112 (handle_query) <qSupported>: Handle and report QThreadEvents+;
6113 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
6114 TARGET_WAITKIND_THREAD_EXITED.
6115 * server.h (report_thread_events): Declare.
6116
56cf4bed
PA
61172015-11-30 Pedro Alves <palves@redhat.com>
6118
6119 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
6120 the thread's last_resume_kind was resume_stop.
6121
500c1d85
PA
61222015-11-30 Pedro Alves <palves@redhat.com>
6123
6124 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
6125 before returning.
6126
de979965
PA
61272015-11-30 Pedro Alves <palves@redhat.com>
6128
6129 * server.c (handle_v_requests): Handle vCtrlC.
6130
34c65914
PA
61312015-11-30 Pedro Alves <palves@redhat.com>
6132
6133 * gdbthread.h (find_any_thread_of_pid): Declare.
6134 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
6135 functions.
6136 * server.c (handle_query): If current_thread is NULL, look for
6137 another thread of the selected process.
6138
79efa585 61392015-11-26 Daniel Colascione <dancol@dancol.org>
01a49af8 6140 Simon Marchi <simon.marchi@ericsson.com>
79efa585
SM
6141
6142 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
6143 * server.c (handle_qxfer_threads_worker): Refactor to include thread
6144 name in reply.
6145 * target.h (struct target_ops) <thread_name>: New field.
6146 (target_thread_name): New macro.
6147
80d82c19
JB
61482015-11-23 Joel Brobecker <brobecker@adacore.com>
6149
6150 * regcache.h (regcache_invalidate_pid): Add declaration.
6151 * regcache.c (regcache_invalidate_pid): New function, extracted
6152 from regcache_invalidate.
6153 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
6154 Add trivial documentation comment.
6155 * lynx-low.c: Use regcache_invalidate_pid instead of
6156 regcache_invalidate.
6157
64da5dd5
JB
61582015-11-23 Joel Brobecker <brobecker@adacore.com>
6159
6160 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
6161 and Elf64_auxv_t if the target is Android.
6162
37ce4055
DE
61632015-11-22 Doug Evans <xdje42@gmail.com>
6164
6165 * target.h: #include <sys/types.h>.
6166
06e03fff
PA
61672015-11-19 Pedro Alves <palves@redhat.com>
6168
6169 * linux-low.c (linux_process_qsupported): Change prototype.
6170 Adjust.
6171 * linux-low.h (struct linux_target_ops) <process_qsupported>:
6172 Change prototype.
6173 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
6174 and adjust to loop over all features.
6175 * server.c (handle_query) <qSupported>: Adjust to call
6176 target_process_qsupported once, passing it a vector of unprocessed
6177 features.
6178 * target.h (struct target_ops) <process_qsupported>: Change
6179 prototype.
6180 (target_process_qsupported): Adjust.
6181
9a084706
PA
61822015-11-19 Pedro Alves <palves@redhat.com>
6183
6184 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
6185 mode.
6186 * configure: Regenerate.
6187
dad44a1f
PA
61882015-11-19 Pedro Alves <palves@redhat.com>
6189
6190 * configure: Regenerate.
6191
231c0592
YQ
61922015-11-19 Yao Qi <yao.qi@linaro.org>
6193
6194 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
6195 type to uint32_t.
6196
6c1c9a8b
YQ
61972015-11-19 Yao Qi <yao.qi@linaro.org>
6198
6199 * linux-aarch64-low.c (enum aarch64_operand_type): New.
6200 (struct aarch64_operand): Move enum out.
6201
9caa3311
YQ
62022015-11-19 Yao Qi <yao.qi@linaro.org>
6203
6204 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
6205 struct user_fpsimd_state *.
6206 (aarch64_store_fpregset): Likewise.
6207
6a69a054
YQ
62082015-11-19 Yao Qi <yao.qi@linaro.org>
6209
6210 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
6211 struct user_pt_regs *.
6212 (aarch64_store_gregset): Likewise.
6213
1798301e
PA
62142015-11-18 Pedro Alves <palves@redhat.com>
6215
6216 * Makefile.in (all_object_files): Add $IPA_OBJS.
6217
ce7715e2
PA
62182015-11-17 Pedro Alves <palves@redhat.com>
6219
6220 * win32-low.c (win32_resume): Use gdb_signal_from_host,
6221 GDB_SIGNAL_0 and gdb_signal_to_string.
6222
c0879059
PA
62232015-11-17 Pedro Alves <palves@redhat.com>
6224
6225 * win32-low.c (handle_output_debug_string): Remove parameter.
6226 (win32_kill): Remove our_status local and adjust call to
6227 handle_output_debug_string.
6228 (get_child_debug_event): Adjust call to
6229 handle_output_debug_string.
6230
1996e237
SM
62312015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
6232
6233 * linux-mips-low.c (mips_fill_gregset): Add cast.
6234 (mips_store_gregset): Likewise.
6235 (mips_fill_fpregset): Likewise.
6236 (mips_store_fpregset): Likewise.
6237
cbec665b
SM
62382015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
6239
6240 * linux-mips-low.c (mips_add_watchpoint): Rename private to
6241 priv.
6242
eb3e3c67
SM
62432015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
6244
6245 * linux-mips-low.c (mips_linux_new_thread): Change type of
6246 watch_type to enum target_hw_bp_type.
6247
171de4b8
SM
62482015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
6249
6250 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
6251 Change return type to arm_hwbp_type.
6252
04248ead
SM
62532015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
6254
6255 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
6256 (arm_store_gregset): Likewise.
6257 * linux-arm-low.c (arm_get_hwcap): Likewise.
6258 (arm_read_description): Likewise.
6259
04b3479c
SM
62602015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
6261
6262 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
6263
2bc84e8a
SM
62642015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
6265
6266 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
6267 (ppc_fill_vsxregset): Likewise.
6268 (ppc_store_vsxregset): Likewise.
6269 (ppc_fill_vrregset): Likewise.
6270 (ppc_store_vrregset): Likewise.
6271 (ppc_fill_evrregset): Likewise.
6272 (ppc_store_evrregset): Likewise.
6273
e6c5bb05
SM
62742015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
6275
6276 * linux-ppc-low.c (ppc_usrregs_info): Remove
6277 forward-declaration.
6278 (ppc_arch_setup): Move lower in file.
6279
7ea45d72
SM
62802015-10-30 Simon Marchi <simon.marchi@ericsson.com>
6281
6282 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
6283 (ps_pdwrite): Likewise.
6284
69291610
HW
62852015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
6286
6287 * linux-arm-low.c (arm_new_thread): Move pointer dereference
6288 to after assert checks.
6289
b42945fd
SM
62902015-10-29 Simon Marchi <simon.marchi@ericsson.com>
6291
6292 * proc-service.c (ps_pdread): Add/adjust casts.
6293 (ps_pdwrite): Add/adjust casts.
6294
d6f85c84
SM
62952015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
6296
6297 * server.c (handle_search_memory_1): Cast return value of
6298 memmem.
6299
f98cd059
SM
63002015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
6301
6302 * server.c (write_qxfer_response): Change type of data to
6303 gdb_byte *.
6304
d2412fa5
PA
63052015-10-29 Pedro Alves <palves@redhat.com>
6306
6307 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
6308
c17414a2
PA
63092015-10-29 Pedro Alves <palves@redhat.com>
6310
6311 * tracepoint.c (clear_installed_tracepoints): Add casts.
6312
e053fbc4
PA
63132015-10-29 Pedro Alves <palves@redhat.com>
6314
6315 * server.c (handle_v_cont, process_serial_event): Add enum
6316 gdb_signal casts to signal parsing code.
6317
add67df8
PA
63182015-10-29 Pedro Alves <palves@redhat.com>
6319
6320 * linux-low.h (NULL_REGSET): Define.
6321 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
6322 * linux-arm-low.c (arm_regsets): Likewise.
6323 * linux-crisv32-low.c (cris_regsets): Likewise.
6324 * linux-m68k-low.c (m68k_regsets): Likewise.
6325 * linux-mips-low.c (mips_regsets): Likewise.
6326 * linux-nios2-low.c (nios2_regsets): Likewise.
6327 * linux-ppc-low.c (ppc_regsets): Likewise.
6328 * linux-s390-low.c (s390_regsets): Likewise.
6329 * linux-sh-low.c (sh_regsets): Likewise.
6330 * linux-sparc-low.c (sparc_regsets): Likewise.
6331 * linux-tic6x-low.c (tic6x_regsets): Likewise.
6332 * linux-tile-low.c (tile_regsets): Likewise.
6333 * linux-x86-low.c (x86_regsets): Likewise.
6334 * linux-xtensa-low.c (xtensa_regsets): Likewise.
6335
50bc912a
PA
63362015-10-29 Pedro Alves <palves@redhat.com>
6337
6338 * linux-low.h (NULL_REGSET): Define.
6339 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
6340 * linux-arm-low.c (arm_regsets): Likewise.
6341 * linux-crisv32-low.c (cris_regsets): Likewise.
6342 * linux-m68k-low.c (m68k_regsets): Likewise.
6343 * linux-mips-low.c (mips_regsets): Likewise.
6344 * linux-nios2-low.c (nios2_regsets): Likewise.
6345 * linux-ppc-low.c (ppc_regsets): Likewise.
6346 * linux-s390-low.c (s390_regsets): Likewise.
6347 * linux-sh-low.c (sh_regsets): Likewise.
6348 * linux-sparc-low.c (sparc_regsets): Likewise.
6349 * linux-tic6x-low.c (tic6x_regsets): Likewise.
6350 * linux-tile-low.c (tile_regsets): Likewise.
6351 * linux-x86-low.c (x86_regsets): Likewise.
6352 * linux-xtensa-low.c (xtensa_regsets): Likewise.
6353
682b2546
DE
63542015-10-26 Doug Evans <dje@google.com>
6355
6356 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
6357
963843d4
DE
63582015-10-26 Doug Evans <dje@google.com>
6359
6360 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
6361
d41401ac
DE
63622015-10-26 Doug Evans <dje@google.com>
6363
6364 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
6365 for debug_printf.
6366 (attach_thread, find_new_threads_callback): Ditto.
6367
3db28855
AT
63682015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
6369
6370 * mem-break.h (set_breakpoint_data): Remove.
6371
fb78e89c
AT
63722015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
6373
6374 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
6375 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
6376 (initialize_low): Remove set_breakpoint_data call.
6377 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
6378 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
6379 (initialize_low): Remove set_breakpoint_data call.
6380 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
6381 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
6382 (initialize_low): Remove set_breakpoint_data call.
6383
2e6ee069
AT
63842015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
6385
6386 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
6387 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
6388 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
6389 * target.h (target_breakpoint_kind_from_pc): New macro.
6390
1652a986
AT
63912015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
6392
6393 * linux-low.c (default_breakpoint_kind_from_pc): New function.
6394 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
6395 the default breakpoint kind.
6396
abeead09
AT
63972015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
6398
6399 * linux-arm-low.c (arm_supports_z_point_type): Add software
6400 breakpoint support.
6401
b0b4b501
AT
64022015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
6403
6404 * linux-arm-low.c: Refactor breakpoint definitions.
6405 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
6406 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
6407
8689682c
AT
64082015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
6409
6410 * Makefile.in: Add arm.c/o.
6411 * configure.srv: Likewise.
6412 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
6413 (arm_breakpoint_kind_from_pc): New function.
6414 (arm_sw_breakpoint_from_kind): Return proper kind.
6415 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
6416
27165294
AT
64172015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
6418
6419 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
6420 removal.
6421 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
6422 (struct raw_breakpoint) <size>: Remove.
6423 (struct raw_breakpoint) <kind>: Add.
6424 (bp_size): New function.
6425 (bp_opcode): Likewise.
6426 (find_raw_breakpoint_at): Adjust for kind.
6427 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
6428 (remove_memory_breakpoint): Adjust for kind call bp_size.
6429 (set_raw_breakpoint_at): Adjust for kind.
6430 (set_breakpoint): Likewise.
6431 (set_breakpoint_at): Call breakpoint_kind_from_pc.
6432 (delete_raw_breakpoint): Adjust for kind.
6433 (delete_breakpoint): Likewise.
6434 (find_gdb_breakpoint): Likewise.
6435 (set_gdb_breakpoint_1): Likewise.
6436 (set_gdb_breakpoint): Likewise.
6437 (delete_gdb_breakpoint_1): Likewise.
6438 (delete_gdb_breakpoint): Likewise.
6439 (uninsert_raw_breakpoint): Likewise.
6440 (reinsert_raw_breakpoint): Likewise.
6441 (set_breakpoint_data): Remove.
6442 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
6443 (check_mem_read): Adjust for kind call bp_size.
6444 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
6445 (clone_one_breakpoint): Adjust for kind.
6446 * mem-break.h (set_gdb_breakpoint): Likewise.
6447 (delete_gdb_breakpoint): Likewise.
6448 * server.c (process_serial_event): Likewise.
6449
dd373349
AT
64502015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
6451
6452 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
6453 (struct linux_target_ops) <breakpoint>: Remove.
6454 (struct linux_target_ops) <breakpoint_len>: Remove.
6455 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6456 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6457 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
6458 (arm_sw_breakpoint_from_kind): New function.
6459 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
6460 (struct linux_target_ops) <breakpoint>: Remove.
6461 (struct linux_target_ops) <breakpoint_len>: Remove.
6462 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6463 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6464 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
6465 (struct linux_target_ops) <breakpoint>: Remove.
6466 (struct linux_target_ops) <breakpoint_len>: Remove.
6467 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6468 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6469 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
6470 (struct linux_target_ops) <breakpoint>: Remove.
6471 (struct linux_target_ops) <breakpoint_len>: Remove.
6472 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6473 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6474 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
6475 and sw_breakpoint_from_kind to increment the pc.
6476 (linux_breakpoint_kind_from_pc): New function.
6477 (linux_sw_breakpoint_from_kind): New function.
6478 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
6479 (initialize_low): Call breakpoint_kind_from_pc and
6480 sw_breakpoint_from_kind to replace breakpoint_data/len.
6481 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
6482 New field.
6483 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
6484 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
6485 (struct linux_target_ops) <breakpoint>: Remove.
6486 (struct linux_target_ops) <breakpoint_len>: Remove.
6487 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6488 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6489 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
6490 (struct linux_target_ops) <breakpoint>: Remove.
6491 (struct linux_target_ops) <breakpoint_len>: Remove.
6492 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6493 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6494 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
6495 (struct linux_target_ops) <breakpoint>: Remove.
6496 (struct linux_target_ops) <breakpoint_len>: Remove.
6497 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6498 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6499 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
6500 (struct linux_target_ops) <breakpoint>: Remove.
6501 (struct linux_target_ops) <breakpoint_len>: Remove.
6502 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6503 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6504 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
6505 (struct linux_target_ops) <breakpoint>: Remove.
6506 (struct linux_target_ops) <breakpoint_len>: Remove.
6507 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6508 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6509 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
6510 (struct linux_target_ops) <breakpoint>: Remove.
6511 (struct linux_target_ops) <breakpoint_len>: Remove.
6512 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6513 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6514 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
6515 (struct linux_target_ops) <breakpoint>: Remove.
6516 (struct linux_target_ops) <breakpoint_len>: Remove.
6517 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6518 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6519 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
6520 (struct linux_target_ops) <breakpoint>: Remove.
6521 (struct linux_target_ops) <breakpoint_len>: Remove.
6522 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6523 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6524 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
6525 (struct linux_target_ops) <breakpoint>: Remove.
6526 (struct linux_target_ops) <breakpoint_len>: Remove.
6527 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6528 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6529 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
6530 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
6531 (struct linux_target_ops) <breakpoint>: Remove.
6532 (struct linux_target_ops) <breakpoint_len>: Remove.
6533 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6534 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6535 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
6536 (struct linux_target_ops) <breakpoint>: Remove.
6537 (struct linux_target_ops) <breakpoint_len>: Remove.
6538 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6539 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6540
4cd98a19
AT
65412015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
6542
6543 * linux-cris-low.c (cris_get_pc): Remove void arg.
6544
774ee6d2
AR
65452015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
6546
6547 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
6548 variable name.
6549
833dcd29
AR
65502015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
6551
6552 * inferiors.c (thread_pid_matches_callback): New function.
6553 (find_thread_process): New function.
6554 (remove_thread): Reset current_thread.
6555 (remove_process): Assert threads have been removed first.
6556
8d689ee5
YQ
65572015-10-15 Yao Qi <yao.qi@linaro.org>
6558
6559 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
6560 if it is 3.
6561 (aarch64_remove_point): Likewise.
6562 * regcache.c (regcache_register_size): New function.
6563
1c2e1515
YQ
65642015-10-12 Yao Qi <yao.qi@linaro.org>
6565
6566 * linux-aarch64-low.c: Update all callers as emit_load_store
6567 is renamed to aarch64_emit_load_store.
6568
e1c587c3
YQ
65692015-10-12 Yao Qi <yao.qi@linaro.org>
6570
6571 * linux-aarch64-low.c: Update all callers of function renaming
6572 from emit_insn to aarch64_emit_insn.
6573
b6542f81
YQ
65742015-10-12 Yao Qi <yao.qi@linaro.org>
6575
6576 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
6577 arch/aarch64-insn.h.
6578 (struct aarch64_memory_operand): Likewise.
6579 (ENCODE): Likewise.
6580 (emit_insn): Move to arch/aarch64-insn.c.
6581 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
6582 (emit_load_store): Move to arch/aarch64-insn.c.
6583 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
6584 (can_encode_int32): Remove.
6585
246994ce
YQ
65862015-10-12 Yao Qi <yao.qi@linaro.org>
6587
6588 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
6589 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
6590 (aarch64_relocate_instruction): Likewise.
6591 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
6592 (struct aarch64_insn_visitor): Likewise.
6593
0badd99f
YQ
65942015-10-12 Yao Qi <yao.qi@linaro.org>
6595
6596 * linux-aarch64-low.c (struct aarch64_insn_data): New.
6597 (struct aarch64_insn_visitor): New.
6598 (struct aarch64_insn_relocation_data): New.
6599 (aarch64_ftrace_insn_reloc_b): New function.
6600 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
6601 (aarch64_ftrace_insn_reloc_cb): Likewise.
6602 (aarch64_ftrace_insn_reloc_tb): Likewise.
6603 (aarch64_ftrace_insn_reloc_adr): Likewise.
6604 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
6605 (aarch64_ftrace_insn_reloc_others): Likewise.
6606 (visitor): New.
6607 (aarch64_relocate_instruction): Use visitor.
6608
dfaffe9d
YQ
66092015-10-12 Yao Qi <yao.qi@linaro.org>
6610
6611 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
6612 int. Add argument buf.
6613 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
6614 aarch64_relocate_instruction.
6615
70b439f0
YQ
66162015-10-12 Yao Qi <yao.qi@linaro.org>
6617
6618 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
6619 argument insn. Remove local variable insn. Don't call
6620 target_read_uint32.
6621 (aarch64_install_fast_tracepoint_jump_pad): Call
6622 target_read_uint32.
6623
7781c06f
YQ
66242015-09-30 Yao Qi <yao.qi@linaro.org>
6625
6626 * linux-aarch64-low.c (emit_movk): Shorten a long line.
6627 (emit_load_store_pair): Likewise.
6628
9a3c8263
SM
66292015-09-25 Simon Marchi <simon.marchi@ericsson.com>
6630
6631 * dll.c (match_dll): Add cast(s).
6632 (unloaded_dll): Likewise.
6633 * linux-low.c (second_thread_of_pid_p): Likewise.
6634 (delete_lwp_callback): Likewise.
6635 (count_events_callback): Likewise.
6636 (select_event_lwp_callback): Likewise.
6637 (linux_set_resume_request): Likewise.
6638 * server.c (accumulate_file_name_length): Likewise.
6639 (emit_dll_description): Likewise.
6640 (handle_qxfer_threads_worker): Likewise.
6641 (visit_actioned_threads): Likewise.
6642 * thread-db.c (any_thread_of): Likewise.
6643 * tracepoint.c (same_process_p): Likewise.
6644 (match_blocktype): Likewise.
6645 (build_traceframe_info_xml): Likewise.
6646
224c3ddb
SM
66472015-09-25 Simon Marchi <simon.marchi@ericsson.com>
6648
6649 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
6650 assignment.
6651 (gdb_unparse_agent_expr): Likewise.
6652 * hostio.c (require_data): Likewise.
6653 (handle_pread): Likewise.
6654 * linux-low.c (disable_regset): Likewise.
6655 (fetch_register): Likewise.
6656 (store_register): Likewise.
6657 (get_dynamic): Likewise.
6658 (linux_qxfer_libraries_svr4): Likewise.
6659 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
6660 (set_fast_tracepoint_jump): Likewise.
6661 (uninsert_fast_tracepoint_jumps_at): Likewise.
6662 (reinsert_fast_tracepoint_jumps_at): Likewise.
6663 (validate_inserted_breakpoint): Likewise.
6664 (clone_agent_expr): Likewise.
6665 * regcache.c (init_register_cache): Likewise.
6666 * remote-utils.c (putpkt_binary_1): Likewise.
6667 (decode_M_packet): Likewise.
6668 (decode_X_packet): Likewise.
6669 (look_up_one_symbol): Likewise.
6670 (relocate_instruction): Likewise.
6671 (monitor_output): Likewise.
6672 * server.c (handle_search_memory): Likewise.
6673 (handle_qxfer_exec_file): Likewise.
6674 (handle_qxfer_libraries): Likewise.
6675 (handle_qxfer): Likewise.
6676 (handle_query): Likewise.
6677 (handle_v_cont): Likewise.
6678 (handle_v_run): Likewise.
6679 (captured_main): Likewise.
6680 * target.c (write_inferior_memory): Likewise.
6681 * thread-db.c (try_thread_db_load_from_dir): Likewise.
6682 * tracepoint.c (init_trace_buffer): Likewise.
6683 (add_tracepoint_action): Likewise.
6684 (add_traceframe): Likewise.
6685 (add_traceframe_block): Likewise.
6686 (cmd_qtdpsrc): Likewise.
6687 (cmd_qtdv): Likewise.
6688 (cmd_qtstatus): Likewise.
6689 (response_source): Likewise.
6690 (response_tsv): Likewise.
6691 (cmd_qtnotes): Likewise.
6692 (gdb_collect): Likewise.
6693 (initialize_tracepoint): Likewise.
6694
afbe19f8
PL
66952015-09-21 Pierre Langlois <pierre.langlois@arm.com>
6696
6697 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
6698 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
6699 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
6700 <NOP>: New.
6701 (enum aarch64_condition_codes): New enum.
6702 (w0): New static global.
6703 (fp): Likewise.
6704 (lr): Likewise.
6705 (struct aarch64_memory_operand) <type>: New
6706 MEMORY_OPERAND_POSTINDEX type.
6707 (postindex_memory_operand): New helper function.
6708 (emit_ret): New function.
6709 (emit_load_store_pair): New function, factored out of emit_stp
6710 with support for MEMORY_OPERAND_POSTINDEX.
6711 (emit_stp): Rewrite using emit_load_store_pair.
6712 (emit_ldp): New function.
6713 (emit_load_store): Likewise.
6714 (emit_ldr): Mention post-index instruction in comment.
6715 (emit_ldrh): New function.
6716 (emit_ldrb): New function.
6717 (emit_ldrsw): Mention post-index instruction in comment.
6718 (emit_str): Likewise.
6719 (emit_subs): New function.
6720 (emit_cmp): Likewise.
6721 (emit_and): Likewise.
6722 (emit_orr): Likewise.
6723 (emit_orn): Likewise.
6724 (emit_eor): Likewise.
6725 (emit_mvn): Likewise.
6726 (emit_lslv): Likewise.
6727 (emit_lsrv): Likewise.
6728 (emit_asrv): Likewise.
6729 (emit_mul): Likewise.
6730 (emit_sbfm): Likewise.
6731 (emit_sbfx): Likewise.
6732 (emit_ubfm): Likewise.
6733 (emit_ubfx): Likewise.
6734 (emit_csinc): Likewise.
6735 (emit_cset): Likewise.
6736 (emit_nop): Likewise.
6737 (emit_ops_insns): New helper function.
6738 (emit_pop): Likewise.
6739 (emit_push): Likewise.
6740 (aarch64_emit_prologue): New function.
6741 (aarch64_emit_epilogue): Likewise.
6742 (aarch64_emit_add): Likewise.
6743 (aarch64_emit_sub): Likewise.
6744 (aarch64_emit_mul): Likewise.
6745 (aarch64_emit_lsh): Likewise.
6746 (aarch64_emit_rsh_signed): Likewise.
6747 (aarch64_emit_rsh_unsigned): Likewise.
6748 (aarch64_emit_ext): Likewise.
6749 (aarch64_emit_log_not): Likewise.
6750 (aarch64_emit_bit_and): Likewise.
6751 (aarch64_emit_bit_or): Likewise.
6752 (aarch64_emit_bit_xor): Likewise.
6753 (aarch64_emit_bit_not): Likewise.
6754 (aarch64_emit_equal): Likewise.
6755 (aarch64_emit_less_signed): Likewise.
6756 (aarch64_emit_less_unsigned): Likewise.
6757 (aarch64_emit_ref): Likewise.
6758 (aarch64_emit_if_goto): Likewise.
6759 (aarch64_emit_goto): Likewise.
6760 (aarch64_write_goto_address): Likewise.
6761 (aarch64_emit_const): Likewise.
6762 (aarch64_emit_call): Likewise.
6763 (aarch64_emit_reg): Likewise.
6764 (aarch64_emit_pop): Likewise.
6765 (aarch64_emit_stack_flush): Likewise.
6766 (aarch64_emit_zero_ext): Likewise.
6767 (aarch64_emit_swap): Likewise.
6768 (aarch64_emit_stack_adjust): Likewise.
6769 (aarch64_emit_int_call_1): Likewise.
6770 (aarch64_emit_void_call_2): Likewise.
6771 (aarch64_emit_eq_goto): Likewise.
6772 (aarch64_emit_ne_goto): Likewise.
6773 (aarch64_emit_lt_goto): Likewise.
6774 (aarch64_emit_le_goto): Likewise.
6775 (aarch64_emit_gt_goto): Likewise.
6776 (aarch64_emit_ge_got): Likewise.
6777 (aarch64_emit_ops_impl): New static global variable.
6778 (aarch64_emit_ops): New target function, return
6779 &aarch64_emit_ops_impl.
6780 (struct linux_target_ops): Install it.
6781
bb903df0
PL
67822015-09-21 Pierre Langlois <pierre.langlois@arm.com>
6783
6784 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
6785 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
6786 aarch64-ipa.o.
6787 * linux-aarch64-ipa.c: New file.
6788 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
6789 and endian.h.
6790 (aarch64_get_thread_area): New target method.
6791 (extract_signed_bitfield): New helper function.
6792 (aarch64_decode_ldr_literal): New function.
6793 (enum aarch64_opcodes): New enum.
6794 (struct aarch64_register): New struct.
6795 (struct aarch64_operand): New struct.
6796 (x0): New static global.
6797 (x1): Likewise.
6798 (x2): Likewise.
6799 (x3): Likewise.
6800 (x4): Likewise.
6801 (w2): Likewise.
6802 (ip0): Likewise.
6803 (sp): Likewise.
6804 (xzr): Likewise.
6805 (aarch64_register): New helper function.
6806 (register_operand): Likewise.
6807 (immediate_operand): Likewise.
6808 (struct aarch64_memory_operand): New struct.
6809 (offset_memory_operand): New helper function.
6810 (preindex_memory_operand): Likewise.
6811 (enum aarch64_system_control_registers): New enum.
6812 (ENCODE): New macro.
6813 (emit_insn): New helper function.
6814 (emit_b): New function.
6815 (emit_bcond): Likewise.
6816 (emit_cb): Likewise.
6817 (emit_tb): Likewise.
6818 (emit_blr): Likewise.
6819 (emit_stp): Likewise.
6820 (emit_ldp_q_offset): Likewise.
6821 (emit_stp_q_offset): Likewise.
6822 (emit_load_store): Likewise.
6823 (emit_ldr): Likewise.
6824 (emit_ldrsw): Likewise.
6825 (emit_str): Likewise.
6826 (emit_ldaxr): Likewise.
6827 (emit_stxr): Likewise.
6828 (emit_stlr): Likewise.
6829 (emit_data_processing_reg): Likewise.
6830 (emit_data_processing): Likewise.
6831 (emit_add): Likewise.
6832 (emit_sub): Likewise.
6833 (emit_mov): Likewise.
6834 (emit_movk): Likewise.
6835 (emit_mov_addr): Likewise.
6836 (emit_mrs): Likewise.
6837 (emit_msr): Likewise.
6838 (emit_sevl): Likewise.
6839 (emit_wfe): Likewise.
6840 (append_insns): Likewise.
6841 (can_encode_int32_in): New helper function.
6842 (aarch64_relocate_instruction): New function.
6843 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
6844 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
6845 (struct linux_target_ops): Install aarch64_get_thread_area,
6846 aarch64_install_fast_tracepoint_jump_pad and
6847 aarch64_get_min_fast_tracepoint_insn_len.
6848
787749ea
PL
68492015-09-21 Pierre Langlois <pierre.langlois@arm.com>
6850
6851 * Makefile.in (aarch64-insn.o): New rule.
6852 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
6853
9812b2e6
YQ
68542015-09-21 Yao Qi <yao.qi@linaro.org>
6855
6856 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
6857
18fe412b
YQ
68582015-09-21 Yao Qi <yao.qi@linaro.org>
6859
6860 * tracepoint.c (max_jump_pad_size): Remove.
6861
a0cc84cd
YQ
68622015-09-18 Yao Qi <yao.qi@linaro.org>
6863
6864 * linux-aarch64-low.c: Don't include sys/uio.h.
6865 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
6866
d78908cf
WW
68672015-09-16 Wei-cheng Wang <cole945@gmail.com>
6868
6869 * tracepoint.c (eval_result_type): Change prototype.
6870 (condition_true_at_tracepoint): Fix argument to compiled_cond.
6871
d57e0d50
PA
68722015-09-15 Pedro Alves <palves@redhat.com>
6873
6874 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
6875 Check whether to report exec events instead of checking whether
6876 multiprocess is enabled.
6877
5a676acc
PA
68782015-09-15 Pedro Alves <palves@redhat.com>
6879
6880 PR remote/18965
6881 * remote-utils.c (prepare_resume_reply): Merge
6882 TARGET_WAITKIND_VFORK_DONE switch case with the
6883 TARGET_WAITKIND_FORKED case.
6884
7c5d0fad
YQ
68852015-09-15 Yao Qi <yao.qi@linaro.org>
6886
6887 * server.c (handle_query): Check string comparison using
6888 "else if" instead of "if".
6889
750ce8d1
YQ
68902015-09-15 Yao Qi <yao.qi@linaro.org>
6891
6892 * server.c (vCont_supported): New global variable.
6893 (handle_query): Set vCont_supported to 1 if "vContSupported+"
6894 matches. Append ";vContSupported+" to own_buf.
6895 (handle_v_requests): Append ";s;S" to own_buf if target supports
6896 hardware single step or vCont_supported is false.
6897 (capture_main): Set vCont_supported to zero.
6898
70b90b91
YQ
68992015-09-15 Yao Qi <yao.qi@linaro.org>
6900
6901 * linux-low.c (linux_supports_conditional_breakpoints): Rename
6902 it to ...
6903 (linux_supports_hardware_single_step): ... New function.
6904 (linux_target_ops): Update.
6905 * lynx-low.c (lynx_target_ops): Set field
6906 supports_hardware_single_step to target_can_do_hardware_single_step.
6907 * nto-low.c (nto_target_ops): Likewise.
6908 * spu-low.c (spu_target_ops): Likewise.
6909 * win32-low.c (win32_target_ops): Likewise.
6910 * target.c (target_can_do_hardware_single_step): New function.
6911 * target.h (struct target_ops) <supports_conditional_breakpoints>:
6912 Remove. <supports_hardware_single_step>: New field.
6913 (target_supports_conditional_breakpoints): Remove.
6914 (target_supports_hardware_single_step): New macro.
6915 (target_can_do_hardware_single_step): Declare.
6916 * server.c (handle_query): Use target_supports_hardware_single_step
6917 instead of target_supports_conditional_breakpoints.
6918
ade90bde
YQ
69192015-09-15 Yao Qi <yao.qi@linaro.org>
6920
6921 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
6922 function.
6923 (struct linux_target_ops the_low_target): Install
6924 aarch64_linux_siginfo_fixup.
6925
94585166
DB
69262015-09-11 Don Breazeal <donb@codesourcery.com>
6927 Luis Machado <lgustavo@codesourcery.com>
6928
6929 * linux-low.c (linux_mourn): Static declaration.
6930 (linux_arch_setup): Move in front of
6931 handle_extended_wait.
6932 (linux_arch_setup_thread): New function.
6933 (handle_extended_wait): Handle exec events. Call
6934 linux_arch_setup_thread. Make event_lwp argument a
6935 pointer-to-a-pointer.
6936 (check_zombie_leaders): Do not check stopped threads.
6937 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
6938 (linux_low_filter_event): Add lwp and thread for exec'ing
6939 non-leader thread if leader thread has been deleted.
6940 Refactor code into linux_arch_setup_thread and call it.
6941 Pass child lwp pointer by reference to handle_extended_wait.
6942 (linux_wait_for_event_filtered): Update comment.
6943 (linux_wait_1): Prevent clobbering exec event status.
6944 (linux_supports_exec_events): New function.
6945 (linux_target_ops) <supports_exec_events>: Initialize new member.
6946 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
6947 new member.
6948 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
6949 * server.c (report_exec_events): New global variable.
6950 (handle_query): Handle qSupported query for exec-events feature.
6951 (captured_main): Initialize report_exec_events.
6952 * server.h (report_exec_events): Declare new global variable.
6953 * target.h (struct target_ops) <supports_exec_events>: New
6954 member.
6955 (target_supports_exec_events): New macro.
6956 * win32-low.c (win32_target_ops) <supports_exec_events>:
6957 Initialize new member.
6958
0568462b
MM
69592015-09-09 Markus Metzger <markus.t.metzger@intel.com>
6960
6961 * linux-low.c (linux_low_enable_btrace): Remove.
6962 (linux_target_ops): Replace linux_low_enable_btrace with
6963 linux_enable_btrace.
6964
39edd165
YQ
69652015-09-03 Yao Qi <yao.qi@linaro.org>
6966
6967 * linux-aarch64-low.c (aarch64_insert_point): Call
6968 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
6969 returns true.
6970
1db33b5a
UW
69712015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6972
6973 * linux-low.c (check_stopped_by_breakpoint): Use
6974 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
6975
ab290430
PA
69762015-08-27 Pedro Alves <palves@redhat.com>
6977
6978 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
6979
8d749320
SM
69802015-08-26 Simon Marchi <simon.marchi@ericsson.com>
6981
6711b7f8
SM
6982 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
6983 the XNEW-family equivalent.
8d749320
SM
6984 (compile_bytecodes): Likewise.
6985 * dll.c (loaded_dll): Likewise.
6986 * event-loop.c (append_callback_event): Likewise.
6987 (create_file_handler): Likewise.
6988 (create_file_event): Likewise.
6989 * hostio.c (handle_open): Likewise.
6990 * inferiors.c (add_thread): Likewise.
6991 (add_process): Likewise.
6992 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
6993 * linux-arm-low.c (arm_new_process): Likewise.
6994 (arm_new_thread): Likewise.
6995 * linux-low.c (add_to_pid_list): Likewise.
6996 (linux_add_process): Likewise.
6997 (handle_extended_wait): Likewise.
6998 (add_lwp): Likewise.
6999 (enqueue_one_deferred_signal): Likewise.
7000 (enqueue_pending_signal): Likewise.
7001 (linux_resume_one_lwp_throw): Likewise.
7002 (linux_resume_one_thread): Likewise.
7003 (linux_read_memory): Likewise.
7004 (linux_write_memory): Likewise.
7005 * linux-mips-low.c (mips_linux_new_process): Likewise.
7006 (mips_linux_new_thread): Likewise.
7007 (mips_add_watchpoint): Likewise.
7008 * linux-x86-low.c (initialize_low_arch): Likewise.
7009 * lynx-low.c (lynx_add_process): Likewise.
7010 * mem-break.c (set_raw_breakpoint_at): Likewise.
7011 (set_breakpoint): Likewise.
7012 (add_condition_to_breakpoint): Likewise.
7013 (add_commands_to_breakpoint): Likewise.
7014 (clone_agent_expr): Likewise.
7015 (clone_one_breakpoint): Likewise.
7016 * regcache.c (new_register_cache): Likewise.
7017 * remote-utils.c (look_up_one_symbol): Likewise.
7018 * server.c (queue_stop_reply): Likewise.
7019 (start_inferior): Likewise.
7020 (queue_stop_reply_callback): Likewise.
7021 (handle_target_event): Likewise.
7022 * spu-low.c (fetch_ppc_memory): Likewise.
7023 (store_ppc_memory): Likewise.
7024 * target.c (set_target_ops): Likewise.
7025 * thread-db.c (thread_db_load_search): Likewise.
7026 (try_thread_db_load_1): Likewise.
7027 * tracepoint.c (add_tracepoint): Likewise.
7028 (add_tracepoint_action): Likewise.
7029 (create_trace_state_variable): Likewise.
7030 (cmd_qtdpsrc): Likewise.
7031 (cmd_qtro): Likewise.
7032 (add_while_stepping_state): Likewise.
7033 * win32-low.c (child_add_thread): Likewise.
7034 (get_image_name): Likewise.
7035
ed8b7b42
YQ
70362015-08-25 Yao Qi <yao.qi@linaro.org>
7037
7038 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
7039
db3cb7cb
YQ
70402015-08-25 Yao Qi <yao.qi@linaro.org>
7041
7042 * Makefile.in (aarch64-linux.o): New rule.
7043 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
7044 srv_tgtobj.
7045 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
7046 (aarch64_init_debug_reg_state): Make it extern.
7047 (aarch64_linux_prepare_to_resume): Remove.
7048
f6011a1c
YQ
70492015-08-25 Yao Qi <yao.qi@linaro.org>
7050
7051 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
7052 lwp_arch_private_info and ptid_of_lwp.
7053
88e2cf7e
YQ
70542015-08-25 Yao Qi <yao.qi@linaro.org>
7055
7056 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
7057 Find proc_info by find_process_pid. All callers updated.
7058
5e35436e
YQ
70592015-08-25 Yao Qi <yao.qi@linaro.org>
7060
7061 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
7062 Remove.
7063 (debug_reg_change_callback): Remove.
7064 (aarch64_notify_debug_reg_change): Remove.
7065
4a8a7965
YQ
70662015-08-25 Yao Qi <yao.qi@linaro.org>
7067
7068 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
7069 Call current_lwp_ptid.
7070
32a271ee
YQ
70712015-08-25 Yao Qi <yao.qi@linaro.org>
7072
7073 * linux-aarch64-low.c (debug_reg_change_callback): Use
7074 debug_printf.
7075
0d51c8d7
YQ
70762015-08-25 Yao Qi <yao.qi@linaro.org>
7077
7078 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
7079
31a43dd5
YQ
70802015-08-25 Yao Qi <yao.qi@linaro.org>
7081
7082 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
7083
8ee52567
YQ
70842015-08-25 Yao Qi <yao.qi@linaro.org>
7085
7086 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
7087 the code.
7088
ff3f0f45
YQ
70892015-08-25 Yao Qi <yao.qi@linaro.org>
7090
7091 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
7092 Remove.
7093 (debug_reg_change_callback): Remove argument entry and add argument
7094 lwp. Remove local variable thread. Don't print thread id in the
7095 debugging output. Don't check whether pid of thread equals to pid.
7096 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
7097 iterate_over_lwps instead find_inferior.
7098
3d40fbb5
PA
70992015-08-24 Pedro Alves <palves@redhat.com>
7100
7101 * inferiors.c (get_first_process): New function.
7102 * inferiors.h (get_first_process): New declaration.
7103 * remote-utils.c (read_ptid): Default to the first process in the
7104 list, instead of to the current thread's process.
7105
438e1e42
PA
71062015-08-24 Pedro Alves <palves@redhat.com>
7107
7108 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
7109 * event-loop.c: Likewise.
7110 * remote-utils.c: Likewise.
7111 * tracepoint.c: Likewise.
7112
a8c6d4fc
PA
71132015-08-24 Pedro Alves <palves@redhat.com>
7114
7115 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
7116 ptid_get_lwp.
7117
99b0bb12
PA
71182015-08-21 Pedro Alves <palves@redhat.com>
7119
7120 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
7121 instead of literal 1.
7122
f8904751
PA
71232015-08-21 Pedro Alves <palves@redhat.com>
7124
7125 * tdesc.c (default_description): Explicitly zero-initialize.
7126
465a859e
PA
71272015-08-21 Pedro Alves <palves@redhat.com>
7128
7129 PR gdb/18749
7130 * inferiors.c (remove_thread): Discard any pending stop reply for
7131 this thread.
7132 * server.c (remove_all_on_match_pid): Rename to ...
7133 (remove_all_on_match_ptid): ... this. Work with a filter ptid
7134 instead of a pid.
7135 (discard_queued_stop_replies): Change parameter to a ptid. Now
7136 extern.
7137 (handle_v_kill, kill_inferior_callback, captured_main)
7138 (process_serial_event): Adjust.
7139 * server.h (discard_queued_stop_replies): Declare.
7140
f0db101d
PA
71412015-08-21 Pedro Alves <palves@redhat.com>
7142
7143 * linux-low.c (wait_for_sigstop): Always switch to no thread
7144 selected if the previously current thread dies.
7145 * lynx-low.c (lynx_request_interrupt): Use the first thread's
7146 process instead of the current thread's.
7147 * remote-utils.c (input_interrupt): Don't check if there's no
7148 current thread.
7149 * server.c (gdb_read_memory, gdb_write_memory): If setting the
7150 current thread to the general thread fails, error out.
7151 (handle_qxfer_auxv, handle_qxfer_libraries)
7152 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
7153 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
7154 (handle_query): Check if there's a thread selected instead of
7155 checking whether there's any thread in the thread list.
7156 (handle_qxfer_threads, handle_qxfer_btrace)
7157 (handle_qxfer_btrace_conf): Don't error out early if there's no
7158 thread in the thread list.
7159 (handle_v_cont, myresume): Don't set the current thread to the
7160 continue thread.
7161 (process_serial_event) <Hg handling>: Also set thread_id if the
7162 previous general thread is still alive.
7163 (process_serial_event) <g/G handling>: If setting the current
7164 thread to the general thread fails, error out.
7165 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
7166 thread's lwp instead of the current thread's.
7167 * target.c (set_desired_thread): If the desired thread was not
7168 found, leave the current thread pointing to NULL. Return an int
7169 (boolean) indicating success.
7170 * target.h (set_desired_thread): Change return type to int.
7171
40045d91
MF
71722015-08-20 Max Filippov <jcmvbkbc@gmail.com>
7173
7174 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
7175 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
7176 #includes.
7177 (ps_get_thread_area): New function.
7178
45face3b
GB
71792015-08-19 Gary Benson <gbenson@redhat.com>
7180
7181 * hostio.c (handle_pread): Do not attempt to read more data
7182 than hostio_reply_with_data can fit in a packet.
7183
16d5f642
JB
71842015-08-18 Joel Brobecker <brobecker@adacore.com>
7185
7186 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
7187
a738da3a
MF
71882015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
7189
7190 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
7191
33ebda9d
PA
71922015-08-06 Pedro Alves <palves@redhat.com>
7193
7194 * tracepoint.c (expr_eval_result): Now an int.
7195
a44892be
PA
71962015-08-06 Pedro Alves <palves@redhat.com>
7197
7198 * gdbthread.h (struct regcache): Forward declare.
7199 (struct thread_info) <regcache_data>: Now a struct regcache
7200 pointer.
7201 * inferiors.c (inferior_regcache_data)
7202 (set_inferior_regcache_data): Now work with struct regcache
7203 pointers.
7204 * inferiors.h (struct regcache): Forward declare.
7205 (inferior_regcache_data, set_inferior_regcache_data): Now work
7206 with struct regcache pointers.
7207 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
7208 (free_register_cache_thread): Remove struct regcache pointer
7209 casts.
7210
608a1e46
PA
72112015-08-06 Pedro Alves <palves@redhat.com>
7212
7213 * server.c (captured_main): On error, print the exception message
7214 to stderr, and if run_once is set, throw a quit.
7215
f0ce0d3a
PA
72162015-08-06 Pedro Alves <palves@redhat.com>
7217
7218 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
7219 the current thread.
7220
bf47e248
PA
72212015-08-06 Pedro Alves <palves@redhat.com>
7222
7223 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
7224 reading beyond the passed in buffer length.
7225
b6b9ffcc
PL
72262015-08-06 Pierre Langlois <pierre.langlois@arm.com>
7227
7228 * tracepoint.c (symbol_list) <required>: Remove.
7229
863d01bd
PA
72302015-08-06 Pedro Alves <palves@redhat.com>
7231
7232 * linux-low.c (handle_extended_wait): Set the fork child's suspend
7233 count if stopping and suspending threads.
7234 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
7235 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
7236 (linux_detach): Complete an ongoing step-over.
7237 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
7238 throughout.
7239 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
7240 (linux_wait_1): If passing a signal to the inferior after
7241 finishing a step-over, unsuspend and re-resume all lwps. If we
7242 see a single-step event but the thread should be continuing, don't
7243 pass the trap to gdb.
7244 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
7245 internal_error instead of gdb_assert.
7246 (enqueue_pending_signal): New function.
7247 (check_ptrace_stopped_lwp_gone): Add debug output.
7248 (start_step_over): Use internal_error instead of gdb_assert.
7249 (complete_ongoing_step_over): New function.
7250 (linux_resume_one_thread): Don't resume a suspended thread.
7251 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
7252 it stepping.
7253
00db26fa
PA
72542015-08-06 Pedro Alves <palves@redhat.com>
7255
7256 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
7257 (linux_thread_alive): Use lwp_is_marked_dead.
7258 (extended_event_reported): Delete.
7259 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
7260 instead of extended_event_reported.
7261 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
7262 as well.
7263 (lwp_is_marked_dead): New function.
7264 (lwp_running): Use lwp_is_marked_dead.
7265 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
7266 comment.
7267
ad071a30
PA
72682015-08-06 Pedro Alves <palves@redhat.com>
7269
7270 * linux-low.c (linux_wait_1): Move fork event output out of the
7271 !report_to_gdb check. Pass event_child->waitstatus to
7272 target_waitstatus_to_string instead of ourstatus.
7273
524b57e6
YQ
72742015-08-04 Yao Qi <yao.qi@linaro.org>
7275
7276 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
7277 if current_thread is 32 bit.
7278
6085d6f6
YQ
72792015-08-04 Yao Qi <yao.qi@linaro.org>
7280
7281 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
7282 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
7283 * server.c (extended_protocol): Remove "static".
7284 * server.h (extended_protocol): Declare it.
7285
8a7e4587
YQ
72862015-08-04 Yao Qi <yao.qi@linaro.org>
7287
7288 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
7289 both aarch64 and aarch32.
7290 (aarch64_set_pc): Likewise.
7291
3b53ae99
YQ
72922015-08-04 Yao Qi <yao.qi@linaro.org>
7293
7294 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
7295 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
7296 arm-with-neon.xml to srv_xmlfiles.
7297 * linux-aarch64-low.c: Include linux-aarch32-low.h.
7298 (is_64bit_tdesc): New function.
7299 (aarch64_linux_read_description): New function.
7300 (aarch64_arch_setup): Call aarch64_linux_read_description.
7301 (regs_info): Rename to regs_info_aarch64.
7302 (aarch64_regs_info): Return right regs_info.
7303 (initialize_low_arch): Call initialize_low_arch_aarch32.
7304
bd9e6534
YQ
73052015-08-04 Yao Qi <yao.qi@linaro.org>
7306
7307 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
7308 * linux-aarch32-low.c: New file.
7309 * linux-aarch32-low.h: New file.
7310 * linux-arm-low.c (arm_fill_gregset): Move it to
7311 linux-aarch32-low.c.
7312 (arm_store_gregset): Likewise.
7313 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
7314 (arm_store_vfpregset): Call arm_store_vfpregset_num.
7315 (arm_arch_setup): Check if PTRACE_GETREGSET works.
7316 (regs_info): Rename to regs_info_arm.
7317 (arm_regs_info): Return regs_info_aarch32 if
7318 have_ptrace_getregset is 1 and target description is
7319 arm_with_neon or arm_with_vfpv3.
7320 (initialize_low_arch): Don't call init_registers_arm_with_neon.
7321 Call initialize_low_arch_aarch32 instead.
7322
ded48a5e
YQ
73232015-08-04 Yao Qi <yao.qi@linaro.org>
7324
7325 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
7326 * linux-low.c: ... here.
7327 * linux-low.h (have_ptrace_getregset): Declare it.
7328
96e9210f
PA
73292015-08-04 Pedro Alves <palves@redhat.com>
7330
7331 * thread-db.c (struct thread_db): Use new typedefs.
7332 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
7333 CHK calls.
7334 (disable_thread_event_reporting): Cast result of dlsym to
7335 destination function pointer type.
7336 (thread_db_mourn): Use td_ta_delete_ftype.
7337
af60a1ef
SL
73382015-08-03 Sandra Loosemore <sandra@codesourcery.com>
7339
7340 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
7341 arch variant.
7342 (CDX_BREAKPOINT): Define for R2.
7343 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
7344 (the_low_target): Add comments.
7345
e8b41681
YQ
73462015-07-30 Yao Qi <yao.qi@linaro.org>
7347
7348 * linux-arm-low.c (arm_hwcap): Remove it.
7349 (arm_read_description): New local variable arm_hwcap. Don't
7350 set arm_hwcap to zero.
7351
89abb039
YQ
73522015-07-30 Yao Qi <yao.qi@linaro.org>
7353
7354 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
7355 Use regcache->tdesc instead.
7356 (arm_store_wmmxregset): Likewise.
7357 (arm_fill_vfpregset): Likewise.
7358 (arm_store_vfpregset): Likewise.
7359
deca266c
YQ
73602015-07-30 Yao Qi <yao.qi@linaro.org>
7361
7362 * linux-arm-low.c: Include arch/arm.h.
7363 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
7364 (arm_store_gregset): Likewise.
7365
aa58a496
SM
73662015-07-29 Simon Marchi <simon.marchi@ericsson.com>
7367
7368 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
7369 ptrace's 4th parameter.
7370
50904b25
YQ
73712015-07-27 Yao Qi <yao.qi@linaro.org>
7372
7373 * configure.srv (case aarch64*-*-linux*): Don't set
7374 srv_linux_usrregs.
7375
5826e159
PA
73762015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
7377
7378 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
7379 sys/ptrace.h.
7380 * linux-arm-low.c: Likewise.
7381 * linux-cris-low.c: Likewise.
7382 * linux-crisv32-low.c: Likewise.
7383 * linux-low.c: Likewise.
7384 * linux-m68k-low.c: Likewise.
7385 * linux-mips-low.c: Likewise.
7386 * linux-nios2-low.c: Likewise.
7387 * linux-s390-low.c: Likewise.
7388 * linux-sparc-low.c: Likewise.
7389 * linux-tic6x-low.c: Likewise.
7390 * linux-tile-low.c: Likewise.
7391 * linux-x86-low.c: Likewise.
7392
54019719
PA
73932015-07-24 Pedro Alves <palves@redhat.com>
7394
7395 * config.in: Regenerate.
7396 * configure: Regenerate.
7397
eb7aa561
PA
73982015-07-24 Pedro Alves <palves@redhat.com>
7399
7400 * acinclude.m4: Include ../ptrace.m4.
7401 * configure.ac: Call GDB_AC_PTRACE.
7402 * config.in, configure: Regenerate.
7403
55d7b841
YQ
74042015-07-24 Yao Qi <yao.qi@linaro.org>
7405
7406 * linux-low.c (linux_create_inferior): Remove setting to
7407 proc->priv->new_inferior.
7408 (linux_attach): Likewise.
7409 (linux_low_filter_event): Likewise.
7410 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
7411
c06cbd92
YQ
74122015-07-24 Yao Qi <yao.qi@linaro.org>
7413
7414 * linux-low.c (linux_arch_setup): New function.
7415 (linux_low_filter_event): If proc->tdesc is NULL and
7416 proc->attached is true, call the_low_target.arch_setup.
7417 Otherwise, keep status pending, and return.
7418 (linux_resume_one_lwp_throw): Don't call get_pc if
7419 thread->while_stepping isn't NULL. Don't call
7420 get_thread_regcache if proc->tdesc is NULL.
7421 (need_step_over_p): Return 0 if proc->tdesc is NULL.
7422 (linux_target_ops): Install arch_setup.
7423 * server.c (start_inferior): Call the_target->arch_setup.
7424 * target.h (struct target_ops) <arch_setup>: New field.
7425 (target_arch_setup): New marco.
7426 * lynx-low.c (lynx_target_ops): Update.
7427 * nto-low.c (nto_target_ops): Update.
7428 * spu-low.c (spu_target_ops): Update.
7429 * win32-low.c (win32_target_ops): Update.
7430
5ae3ebba
YQ
74312015-07-24 Yao Qi <yao.qi@linaro.org>
7432
7433 * linux-low.c (linux_add_process): Don't set
7434 proc->priv->new_inferior.
7435 (linux_create_inferior): Set proc->priv->new_inferior to 1.
7436 (linux_attach): Likewise.
7437
eb97750b
YQ
74382015-07-24 Yao Qi <yao.qi@linaro.org>
7439
7440 * server.c (start_inferior): Code refactor.
7441
51aee833
YQ
74422015-07-24 Yao Qi <yao.qi@linaro.org>
7443
7444 * server.c (process_serial_event): Set general_thread.
7445
af1b22f3
YQ
74462015-07-21 Yao Qi <yao.qi@linaro.org>
7447
7448 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
7449 aarch64_linux_get_debug_reg_capacity.
7450
554717a3
YQ
74512015-07-17 Yao Qi <yao.qi@linaro.org>
7452
7453 * Makefile.in (aarch64-linux-hw-point.o): New rule.
7454 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
7455 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
7456 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
7457 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
7458 (AARCH64_HWP_ALIGNMENT): Likewise.
7459 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
7460 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
7461 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
7462 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
7463 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
7464 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
7465 (struct aarch64_debug_reg_state): Likewise.
7466 (struct arch_lwp_info): Likewise.
7467 (aarch64_align_watchpoint): Likewise.
7468 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
7469 (aarch64_watchpoint_length): Likewise.
7470 (aarch64_point_encode_ctrl_reg): Likewise
7471 (aarch64_point_is_aligned): Likewise.
7472 (aarch64_align_watchpoint): Likewise.
7473 (aarch64_linux_set_debug_regs):
7474 (aarch64_dr_state_insert_one_point): Likewise.
7475 (aarch64_dr_state_remove_one_point): Likewise.
7476 (aarch64_handle_breakpoint): Likewise.
7477 (aarch64_handle_aligned_watchpoint): Likewise.
7478 (aarch64_handle_unaligned_watchpoint): Likewise.
7479 (aarch64_handle_watchpoint): Likewise.
7480
c67ca4de
YQ
74812015-07-17 Yao Qi <yao.qi@linaro.org>
7482
7483 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
7484 and don't aarch64_get_debug_reg_state. All callers update.
7485 (aarch64_handle_aligned_watchpoint): Likewise.
7486 (aarch64_handle_unaligned_watchpoint): Likewise.
7487 (aarch64_handle_watchpoint): Likewise.
7488 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
7489 (aarch64_remove_point): Likewise.
7490
25abf979
YQ
74912015-07-17 Yao Qi <yao.qi@linaro.org>
7492
7493 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
7494 debug_printf.
7495 (aarch64_handle_unaligned_watchpoint): Likewise.
7496
db1ff28b
JK
74972015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7498
7499 Revert the previous 3 commits:
7500 Move gdb_regex* to common/
7501 Move linux_find_memory_regions_full & co.
7502 gdbserver build-id attribute generator
7503
700ca40f
JK
75042015-07-15 Aleksandar Ristovski <aristovski@qnx.com
7505 Jan Kratochvil <jan.kratochvil@redhat.com>
7506
7507 gdbserver build-id attribute generator.
7508 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
7509 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
7510 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
7511 (find_phdr): New.
7512 (get_dynamic): Use find_pdhr to traverse program headers.
7513 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
7514 (compare_mapping_entry_range, struct find_memory_region_callback_data)
7515 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
7516 (get_hex_build_id): New.
7517 (linux_qxfer_libraries_svr4): Add optional build-id attribute
7518 to reply XML document.
7519
9904185c
JK
75202015-07-15 Aleksandar Ristovski <aristovski@qnx.com
7521 Jan Kratochvil <jan.kratochvil@redhat.com>
7522
7523 * target.c: Include target/target-utils.h and fcntl.h.
7524 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
7525 (target_fileio_read_stralloc): New functions.
7526
6e5b4429
JK
75272015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7528
7529 * Makefile.in (OBS): Add gdb_regex.o.
7530 (gdb_regex.o): New.
7531 * config.in: Rebuilt.
7532 * configure: Rebuilt.
7533
ddc98fbf
JK
75342015-07-15 Aleksandar Ristovski <aristovski@qnx.com
7535 Jan Kratochvil <jan.kratochvil@redhat.com>
7536
7537 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
7538 * Makefile.in (OBS): Add target-utils.o.
7539 (linux-maps.o, target-utils.o): New.
7540 * configure.srv (srv_linux_obj): Add linux-maps.o.
7541
e57bb7a0
PL
75422015-07-15 Pierre Langlois <pierre.langlois@arm.com>
7543
7544 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
7545 function, return 1.
7546 (the_low_target): Install it.
7547
586b02a9
PA
75482015-07-14 Pedro Alves <palves@redhat.com>
7549
7550 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
7551 Instead, ignore ECHILD, and throw an error for other errnos.
7552
58c1b36c
PA
75532015-07-10 Pedro Alves <palves@redhat.com>
7554
7555 * event-loop.c (struct callback_event) <data>: Change type to
7556 gdb_client_data instance instead of gdb_client_data pointer.
7557 (append_callback_event): Adjust.
7558
421530db
PL
75592015-07-10 Pierre Langlois <pierre.langlois@arm.com>
7560
7561 * linux-aarch64-low.c: Add comments for each linux_target_ops
7562 method. Remove comments already covered in target_ops and
7563 linux_target_ops definitions.
7564 (the_low_target): Add comments for each unimplemented method.
7565
c2d65f38
YQ
75662015-07-09 Yao Qi <yao.qi@linaro.org>
7567
7568 * linux-aarch64-low.c (aarch64_regmap): Remove.
7569 (aarch64_usrregs_info): Remove.
7570 (regs_info): Set field usrregs to NULL.
7571
b20a6524
MM
75722015-07-02 Markus Metzger <markus.t.metzger@intel.com>
7573
7574 * linux-low.c: Include "rsp-low.h"
7575 (linux_low_encode_pt_config, linux_low_encode_raw): New.
7576 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
7577 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
7578 (handle_btrace_enable_pt): New.
7579 (handle_btrace_general_set): Support "pt".
7580 (handle_btrace_conf_general_set): Support "pt:size".
7581
96c97461
PL
75822015-06-29 Pierre Langlois <pierre.langlois@arm.com>
7583
7584 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
7585 Z_PACKET_SW_BP.
7586
37d66942
PL
75872015-06-29 Pierre Langlois <pierre.langlois@arm.com>
7588
7589 * linux-aarch64-low.c: Remove comment about endianness.
7590 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
7591 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
7592 memcmp.
7593
dc06243f
GB
75942015-06-24 Gary Benson <gbenson@redhat.com>
7595
7596 * linux-i386-ipa.c (stdint.h): Do not include.
7597 * lynx-i386-low.c (stdint.h): Likewise.
7598 * lynx-ppc-low.c (stdint.h): Likewise.
7599 * mem-break.c (stdint.h): Likewise.
7600 * thread-db.c (stdint.h): Likewise.
7601 * tracepoint.c (stdint.h): Likewise.
7602 * win32-low.c (stdint.h): Likewise.
7603
124e13d9
SM
76042015-06-18 Simon Marchi <simon.marchi@ericsson.com>
7605
7606 * server.c (write_qxfer_response): Update call to
7607 remote_escape_output.
7608
909c2cda
JK
76092015-06-15 Aleksandar Ristovski <aristovski@qnx.com
7610 Jan Kratochvil <jan.kratochvil@redhat.com>
7611
7612 Merge multiple hex conversions.
7613 * gdbreplay.c (tohex): Rename to 'fromhex'.
7614 (logchar): Use fromhex.
7615
24c05f46
JK
76162015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7617
7618 * server.c (handle_qxfer_libraries): Set `version' attribute for
7619 <library-list>.
7620
14d2069a
GB
76212015-06-10 Gary Benson <gbenson@redhat.com>
7622
7623 * target.h (struct target_ops) <multifs_open>: New field.
7624 <multifs_unlink>: Likewise.
7625 <multifs_readlink>: Likewise.
7626 * linux-low.c (nat/linux-namespaces.h): New include.
7627 (linux_target_ops): Initialize the_target->multifs_open,
7628 the_target->multifs_unlink and the_target->multifs_readlink.
7629 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
7630 * hostio.c (hostio_fs_pid): New static variable.
7631 (hostio_handle_new_gdb_connection): New function.
7632 (handle_setfs): Likewise.
7633 (handle_open): Use the_target->multifs_open as appropriate.
7634 (handle_unlink): Use the_target->multifs_unlink as appropriate.
7635 (handle_readlink): Use the_target->multifs_readlink as
7636 appropriate.
7637 (handle_vFile): Handle vFile:setfs packets.
7638 * server.c (handle_query): Call hostio_handle_new_gdb_connection
7639 after target_handle_new_gdb_connection.
7640
4b8b5e72
GB
76412015-06-10 Gary Benson <gbenson@redhat.com>
7642
7643 * configure.ac (AC_CHECK_FUNCS): Add setns.
7644 * config.in: Regenerate.
7645 * configure: Likewise.
7646 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
7647 (linux-namespaces.o): New rule.
7648 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
7649
3ac2e371
GB
76502015-06-09 Gary Benson <gbenson@redhat.com>
7651
7652 * hostio.c (handle_open): Process mode argument with
7653 fileio_to_host_mode.
7654
ca9b78ce
YQ
76552015-06-01 Yao Qi <yao.qi@linaro.org>
7656
7657 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7658 * linux-x86-low.c: Likewise.
7659
bfacd19d
DB
76602015-05-28 Don Breazeal <donb@codesourcery.com>
7661
7662 * linux-low.c (handle_extended_wait): Initialize
7663 thread_info.last_resume_kind for new fork children.
7664
452003ef
PA
76652015-05-15 Pedro Alves <palves@redhat.com>
7666
7667 * target.h (target_handle_new_gdb_connection): Rewrite using if
7668 wrapped in do/while.
7669
1041a03c
JB
76702015-05-14 Joel Brobecker <brobecker@adacore.com>
7671
7672 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
7673 * configure, config.in: Regenerate.
7674 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
7675 Declare typedef.
7676
c269dbdb
DB
76772015-05-12 Don Breazeal <donb@codesourcery.com>
7678
7679 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
7680 PTRACE_EVENT_VFORK_DONE.
7681 (linux_low_ptrace_options, extended_event_reported): Add vfork
7682 events.
7683 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
7684 and "vforkdone" for RSP 'T' Stop Reply Packet.
7685 * server.h (report_vfork_events): Declare
7686 global variable.
7687
3a8a0396
DB
76882015-05-12 Don Breazeal <donb@codesourcery.com>
7689
7690 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
7691 (the_low_target) <new_fork>: Initialize new member.
7692 * linux-arm-low.c (arm_new_fork): New function.
7693 (the_low_target) <new_fork>: Initialize new member.
7694 * linux-low.c (handle_extended_wait): Call new target function
7695 new_fork.
7696 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
7697 * linux-mips-low.c (mips_add_watchpoint): New function
7698 extracted from mips_insert_point.
7699 (the_low_target) <new_fork>: Initialize new member.
7700 (mips_linux_new_fork): New function.
7701 (mips_insert_point): Call mips_add_watchpoint.
7702 * linux-x86-low.c (x86_linux_new_fork): New function.
7703 (the_low_target) <new_fork>: Initialize new member.
7704
de0d863e
DB
77052015-05-12 Don Breazeal <donb@codesourcery.com>
7706
7707 * linux-low.c (handle_extended_wait): Implement return value,
7708 rename argument 'event_child' to 'event_lwp', handle
7709 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
7710 (linux_low_ptrace_options): New function.
7711 (linux_low_filter_event): Call linux_low_ptrace_options,
7712 use different argument fo linux_enable_event_reporting,
7713 use return value from handle_extended_wait.
7714 (extended_event_reported): New function.
7715 (linux_wait_1): Call extended_event_reported and set
7716 status to report fork events.
7717 (linux_write_memory): Add pid to debug message.
7718 (reset_lwp_ptrace_options_callback): New function.
7719 (linux_handle_new_gdb_connection): New function.
7720 (linux_target_ops): Initialize new structure member.
7721 * linux-low.h (struct lwp_info) <waitstatus>: New member.
7722 * lynx-low.c: Initialize new structure member.
7723 * remote-utils.c (prepare_resume_reply): Implement stop reason
7724 "fork" for "T" stop message.
7725 * server.c (handle_query): Call handle_new_gdb_connection.
7726 * server.h (report_fork_events): Declare global flag.
7727 * target.h (struct target_ops) <handle_new_gdb_connection>:
7728 New member.
7729 (target_handle_new_gdb_connection): New macro.
7730 * win32-low.c: Initialize new structure member.
7731
ddcbc397
DB
77322015-05-12 Don Breazeal <donb@codesourcery.com>
7733
7734 * mem-break.c (APPEND_TO_LIST): Define macro.
7735 (clone_agent_expr): New function.
7736 (clone_one_breakpoint): New function.
7737 (clone_all_breakpoints): New function.
7738 * mem-break.h: Declare new functions.
7739
89245bc0
DB
77402015-05-12 Don Breazeal <donb@codesourcery.com>
7741
7742 * linux-low.c (linux_supports_fork_events): New function.
7743 (linux_supports_vfork_events): New function.
7744 (linux_target_ops): Initialize new structure members.
7745 (initialize_low): Call linux_check_ptrace_features.
7746 * lynx-low.c (lynx_target_ops): Initialize new structure
7747 members.
7748 * server.c (report_fork_events, report_vfork_events):
7749 New global flags.
7750 (handle_query): Add new features to qSupported packet and
7751 response.
7752 (captured_main): Initialize new global variables.
7753 * target.h (struct target_ops) <supports_fork_events>:
7754 New member.
7755 <supports_vfork_events>: New member.
7756 (target_supports_fork_events): New macro.
7757 (target_supports_vfork_events): New macro.
7758 * win32-low.c (win32_target_ops): Initialize new structure
7759 members.
7760
835205d0
GB
77612015-05-12 Gary Benson <gbenson@redhat.com>
7762
7763 * server.c (handle_qxfer_exec_file): Use current process
7764 if annex is empty.
7765
21e94bd9
SL
77662015-05-08 Sandra Loosemore <sandra@codesourcery.com>
7767
7768 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
7769 Remove HAVE_PTRACE_GETREGS conditionals.
7770 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
7771 instead of PTRACE_GETREGS and PTRACE_SETREGS.
7772
45614f15
YQ
77732015-05-08 Yao Qi <yao.qi@linaro.org>
7774
7775 * linux-low.c (linux_supports_conditional_breakpoints): New
7776 function.
7777 (linux_target_ops): Install new target method.
7778 * lynx-low.c (lynx_target_ops): Install NULL hook for
7779 supports_conditional_breakpoints.
7780 * nto-low.c (nto_target_ops): Likewise.
7781 * spu-low.c (spu_target_ops): Likewise.
7782 * win32-low.c (win32_target_ops): Likewise.
7783 * server.c (handle_query): Check
7784 target_supports_conditional_breakpoints.
7785 * target.h (struct target_ops) <supports_conditional_breakpoints>:
7786 New field.
7787 (target_supports_conditional_breakpoints): New macro.
7788
80ad801e
PA
77892015-05-06 Pedro Alves <palves@redhat.com>
7790
7791 PR server/18081
7792 * server.c (start_inferior): If the process exits, mourn it.
7793
819843c7
GB
77942015-04-21 Gary Benson <gbenson@redhat.com>
7795
7796 * hostio.c (fileio_open_flags_to_host): Factored out to
7797 fileio_to_host_openflags in common/fileio.c. Single use
7798 updated.
7799
a2d5a9d7
MF
78002015-04-17 Max Filippov <jcmvbkbc@gmail.com>
7801
7802 * linux-xtensa-low.c (xtensa_fill_gregset)
7803 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
7804 XCHAL_HAVE_LOOP.
7805
deb44829
MF
78062015-04-17 Max Filippov <jcmvbkbc@gmail.com>
7807
7808 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
7809 (regs_info): Replace usrregs pointer with NULL.
7810
e57f1de3
GB
78112015-04-17 Gary Benson <gbenson@redhat.com>
7812
7813 * target.h (struct target_ops) <pid_to_exec_file>: New field.
7814 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
7815 * server.c (handle_qxfer_exec_file): New function.
7816 (qxfer_packets): Add exec-file entry.
7817 (handle_query): Report qXfer:exec-file:read as supported packet.
7818
62828379
RN
78192015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
7820
7821 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
7822
b88bb450
GB
78232015-04-09 Gary Benson <gbenson@redhat.com>
7824
7825 * hostio-errno.c (errno_to_fileio_error): Remove function.
7826 Update caller to use remote_fileio_to_fio_error.
7827
c8f4bfdd
YQ
78282015-04-09 Yao Qi <yao.qi@linaro.org>
7829
7830 * linux-low.c (linux_insert_point): Call
7831 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
7832 (linux_remove_point): Call remove_memory_breakpoint if type is
7833 raw_bkpt_type_sw.
7834 * linux-x86-low.c (x86_insert_point): Don't call
7835 insert_memory_breakpoint.
7836 (x86_remove_point): Don't call remove_memory_breakpoint.
7837
41f98f02
PA
78382015-04-01 Pedro Alves <palves@redhat.com>
7839 Cleber Rosa <crosa@redhat.com>
7840
7841 * server.c (gdbserver_usage): Reorganize and extend the usage
7842 message.
7843
2bf6fb9d
PA
78442015-03-24 Pedro Alves <palves@redhat.com>
7845
7846 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
7847 output. Also dump TRAP_TRACE.
7848 (linux_low_filter_event): In debug output, distinguish a
7849 resume_stop SIGSTOP from a delayed SIGSTOP.
7850
369f6daa
GB
78512015-03-24 Gary Benson <gbenson@redhat.com>
7852
7853 * linux-x86-low.c (x86_linux_new_thread): Moved to
7854 nat/x86-linux.c.
7855 (x86_linux_prepare_to_resume): Likewise.
7856
8e5d4070
GB
78572015-03-24 Gary Benson <gbenson@redhat.com>
7858
7859 * Makefile.in (x86-linux-dregs.o): New rule.
7860 * configure.srv: Add x86-linux-dregs.o to relevant targets.
7861 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
7862 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
7863 (x86_linux_dr_get): Likewise.
7864 (x86_linux_dr_set): Likewise.
7865 (update_debug_registers_callback): Likewise.
7866 (x86_linux_dr_set_addr): Likewise.
7867 (x86_linux_dr_get_addr): Likewise.
7868 (x86_linux_dr_set_control): Likewise.
7869 (x86_linux_dr_get_control): Likewise.
7870 (x86_linux_dr_get_status): Likewise.
7871 (x86_linux_update_debug_registers): Likewise.
7872
2b95d440
GB
78732015-03-24 Gary Benson <gbenson@redhat.com>
7874
7875 * linux-x86-low.c (x86_linux_update_debug_registers):
7876 New function, factored out from...
7877 (x86_linux_prepare_to_resume): ...this.
7878
14b0bc68
GB
78792015-03-24 Gary Benson <gbenson@redhat.com>
7880
7881 * linux-x86-low.c (x86_linux_dr_get): Update comments.
7882 (x86_linux_dr_set): Likewise.
7883 (update_debug_registers_callback): Likewise.
7884 (x86_linux_dr_set_addr): Likewise.
7885 (x86_linux_dr_get_addr): Likewise.
7886 (x86_linux_dr_set_control): Likewise.
7887 (x86_linux_dr_get_control): Likewise.
7888 (x86_linux_dr_get_status): Likewise.
7889 (x86_linux_prepare_to_resume): Likewise.
7890
5dfe6ca8
GB
78912015-03-24 Gary Benson <gbenson@redhat.com>
7892
7893 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
7894 Use perror_with_name. Pass string through gettext.
7895 (x86_linux_dr_set): Likewise.
7896
d33472ad
GB
78972015-03-24 Gary Benson <gbenson@redhat.com>
7898
7899 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
7900 (x86_linux_dr_set_addr): ...this.
7901 (x86_dr_low_get_addr): Rename to...
7902 (x86_linux_dr_get_addr): ...this.
7903 (x86_dr_low_set_control): Rename to...
7904 (x86_linux_dr_set_control): ...this.
7905 (x86_dr_low_get_control): Rename to...
7906 (x86_linux_dr_get_control): ...this.
7907 (x86_dr_low_get_status): Rename to...
7908 (x86_linux_dr_get_status): ...this.
7909 (x86_dr_low): Update with new function names.
7910
4b134ca1
GB
79112015-03-24 Gary Benson <gbenson@redhat.com>
7912
7913 * Makefile.in (x86-linux.o): New rule.
7914 * configure.srv: Add x86-linux.o to relevant targets.
7915 * linux-low.c (lwp_set_arch_private_info): New function.
7916 (lwp_arch_private_info): Likewise.
7917 * linux-x86-low.c: Include nat/x86-linux.h.
7918 (arch_lwp_info): Removed structure.
7919 (update_debug_registers_callback):
7920 Use lwp_set_debug_registers_changed.
7921 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
7922 and lwp_set_debug_registers_changed.
7923 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
7924
34c703da
GB
79252015-03-24 Gary Benson <gbenson@redhat.com>
7926
7927 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
7928 * linux-arm-low.c (arm_new_thread): Likewise.
7929 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
7930 * linux-mips-low.c (mips_linux_new_thread): Likewise.
7931 * linux-x86-low.c (x86_linux_new_thread): Likewise.
7932 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
7933
cff068da
GB
79342015-03-24 Gary Benson <gbenson@redhat.com>
7935
7936 * linux-low.c (ptid_of_lwp): New function.
7937 (lwp_is_stopped): Likewise.
7938 (lwp_stop_reason): Likewise.
7939 * linux-x86-low.c (update_debug_registers_callback):
7940 Use lwp_is_stopped.
7941 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
7942 lwp_stop_reason.
7943
b2f7c7e8
GB
79442015-03-24 Gary Benson <gbenson@redhat.com>
7945
7946 * linux-low.h (linux_stop_lwp): Remove declaration.
7947
6d4ee8c6
GB
79482015-03-24 Gary Benson <gbenson@redhat.com>
7949
7950 * linux-low.h: Include nat/linux-nat.h.
7951 * linux-low.c (iterate_over_lwps_args): New structure.
7952 (iterate_over_lwps_filter): New function.
7953 (iterate_over_lwps): Likewise.
7954 * linux-x86-low.c (update_debug_registers_callback):
7955 Update signature to what iterate_over_lwps expects.
7956 Remove PID check that iterate_over_lwps now performs.
7957 (x86_dr_low_set_addr): Use iterate_over_lwps.
7958 (x86_dr_low_set_control): Likewise.
7959
70a0bb6b
GB
79602015-03-24 Gary Benson <gbenson@redhat.com>
7961
7962 * linux-x86-low.c (x86_debug_reg_state): New function.
7963 (x86_linux_prepare_to_resume): Use the above.
7964
7b669087
GB
79652015-03-24 Gary Benson <gbenson@redhat.com>
7966
7967 * linux-low.c (current_lwp_ptid): New function.
7968 * linux-x86-low.c: Include nat/linux-nat.h.
7969 (x86_dr_low_get_addr): Use current_lwp_ptid.
7970 (x86_dr_low_get_control): Likewise.
7971 (x86_dr_low_get_status): Likewise.
7972
eef49a3d
PA
79732015-03-20 Pedro Alves <palves@redhat.com>
7974
7975 * tracepoint.c (cmd_qtstatus): Make "str" const.
7976
b2333d22
PA
79772015-03-20 Pedro Alves <palves@redhat.com>
7978
7979 * server.c (handle_general_set): Make "req_str" const.
7980
23f238d3
PA
79812015-03-19 Pedro Alves <palves@redhat.com>
7982
7983 * linux-low.c (linux_resume_one_lwp): Rename to ...
7984 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
7985 instead call perror_with_name.
7986 (check_ptrace_stopped_lwp_gone): New function.
7987 (linux_resume_one_lwp): Reimplement as wrapper around
7988 linux_resume_one_lwp_throw that swallows errors if the LWP is
7989 gone.
7990
91baf43f
PA
79912015-03-19 Pedro Alves <palves@redhat.com>
7992
7993 * linux-low.c (count_events_callback, select_event_lwp_callback):
7994 No longer check whether the thread has resume_stop as last resume
7995 kind.
7996
8bf3b159
PA
79972015-03-19 Pedro Alves <palves@redhat.com>
7998
7999 * linux-low.c (count_events_callback, select_event_lwp_callback):
8000 Use the lwp's status_pending_p field, not the thread's.
8001
b90fc188
PA
80022015-03-19 Pedro Alves <palves@redhat.com>
8003
8004 * linux-low.c (select_event_lwp_callback): Update comments to
8005 no longer mention SIGTRAP.
8006
464b0089
GB
80072015-03-18 Gary Benson <gbenson@redhat.com>
8008
8009 * server.c (handle_query): Do not report vFile:fstat as supported.
8010
aa9e327f
GB
80112015-03-11 Gary Benson <gbenson@redhat.com>
8012
8013 * hostio.c (sys/types.h): New include.
8014 (sys/stat.h): Likewise.
8015 (common-remote-fileio.h): Likewise.
8016 (handle_fstat): New function.
8017 (handle_vFile): Handle vFile:fstat packets.
aa9e327f 8018
791c0056
GB
80192015-03-11 Gary Benson <gbenson@redhat.com>
8020
8021 * configure.ac (AC_CHECK_MEMBERS): Add checks for
8022 struct stat.st_blocks and struct stat.st_blksize.
8023 * configure: Regenerate.
8024 * config.in: Likewise.
8025 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
8026 (OBS): Add common-remote-fileio.o.
8027 (common-remote-fileio.o): New rule.
8028
9a9df970
PA
80292015-03-09 Pedro Alves <palves@redhat.com>
8030
8031 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
8032 'struct sockaddr' pointer in 'accept' call.
8033
9eb1356e
PA
80342015-03-09 Pedro Alves <palves@redhat.com>
8035
8036 Revert:
8037 2015-03-07 Pedro Alves <palves@redhat.com>
8038 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
8039 or <winsock2.h> here. Instead include "gdb_socket.h".
8040 (remote_open): Use union gdb_sockaddr_u.
8041 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
8042 or <winsock2.h> here. Instead include "gdb_socket.h".
8043 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
8044 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
8045 or <sys/un.h>.
8046 (init_named_socket, gdb_agent_helper_thread): Use union
8047 gdb_sockaddr_u.
8048
aac331e4
PA
80492015-03-07 Pedro Alves <palves@redhat.com>
8050
8051 * configure.ac (build_warnings): Move
8052 -Wdeclaration-after-statement to the C-specific set.
8053 * configure: Regenerate.
8054
366c75fc
PA
80552015-03-07 Pedro Alves <palves@redhat.com>
8056
8057 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
8058 or <winsock2.h> here. Instead include "gdb_socket.h".
8059 (remote_open): Use union gdb_sockaddr_u.
8060 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
8061 or <winsock2.h> here. Instead include "gdb_socket.h".
8062 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
8063 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
8064 or <sys/un.h>.
8065 (init_named_socket, gdb_agent_helper_thread): Use union
8066 gdb_sockaddr_u.
8067
492d29ea
PA
80682015-03-07 Pedro Alves <palves@redhat.com>
8069
8070 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
8071 instead.
8072
60a191ed
YQ
80732015-03-06 Yao Qi <yao.qi@linaro.org>
8074
8075 * linux-aarch64-low.c (aarch64_insert_point): Use
8076 show_debug_regs as a boolean.
8077 (aarch64_remove_point): Likewise.
8078
f5771b1d
PA
80792015-03-05 Pedro Alves <palves@redhat.com>
8080
8081 * lynx-low.c (lynx_target_ops): Install NULL hooks for
8082 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
8083 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
8084 * nto-low.c (nto_target_ops): Likewise.
8085 * spu-low.c (spu_target_ops): Likewise.
8086 * win32-low.c (win32_target_ops): Likewise.
8087
3e572f71
PA
80882015-03-04 Pedro Alves <palves@redhat.com>
8089
72f4393d 8090 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
3e572f71
PA
8091 Decide whether a breakpoint triggered based on the SIGTRAP's
8092 siginfo.si_code.
72f4393d
L
8093 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
8094 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
3e572f71
PA
8095 (linux_low_filter_event): Check for breakpoints before checking
8096 watchpoints.
8097 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
8098 siginfo.si_code.
72f4393d
L
8099 (linux_stopped_by_sw_breakpoint)
8100 (linux_supports_stopped_by_sw_breakpoint)
8101 (linux_stopped_by_hw_breakpoint)
8102 (linux_supports_stopped_by_hw_breakpoint): New functions.
8103 (linux_target_ops): Install new target methods.
3e572f71 8104
1ec68e26
PA
81052015-03-04 Pedro Alves <palves@redhat.com>
8106
8107 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
8108 * server.c (swbreak_feature, hwbreak_feature): New globals.
8109 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
8110 (captured_main): Clear swbreak_feature and hwbreak_feature.
8111 * server.h (swbreak_feature, hwbreak_feature): Declare.
8112 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
8113 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
8114 supports_stopped_by_hw_breakpoint>: New fields.
8115 (target_supports_stopped_by_sw_breakpoint)
8116 (target_stopped_by_sw_breakpoint)
8117 (target_supports_stopped_by_hw_breakpoint)
8118 (target_stopped_by_hw_breakpoint): Declare.
8119
15c66dd6
PA
81202015-03-04 Pedro Alves <palves@redhat.com>
8121
8122 enum lwp_stop_reason -> enum target_stop_reason
8123 * linux-low.c (check_stopped_by_breakpoint): Adjust.
8124 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
8125 (linux_wait_1, stuck_in_jump_pad_callback)
8126 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
8127 (linux_stopped_by_watchpoint):
8128 * linux-low.h (enum lwp_stop_reason): Delete.
8129 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
8130 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
8131
98fc70d6
YQ
81322015-03-04 Yao Qi <yao.qi@linaro.org>
8133
8134 * Makefile.in (SFILES): Add linux-aarch64-low.c.
8135
dd2ac174
GB
81362015-03-03 Gary Benson <gbenson@redhat.com>
8137
8138 * hostio.c (handle_vFile): Fix prefix lengths.
8139
d68e53f4
MM
81402015-03-03 Markus Metzger <markus.t.metzger@intel.com>
8141
8142 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
8143 ptr_bits.
8144
bf2d68ab
AA
81452015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
8146
8147 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
8148 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
8149 (clean): Add "rm -f" for above C files.
8150 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
8151 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
8152 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
8153 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
8154 * linux-s390-low.c (HWCAP_S390_VX): New macro.
8155 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
8156 (init_registers_s390x_vx_linux64)
8157 (init_registers_s390x_tevx_linux64)
8158 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
8159 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
8160 declarations.
8161 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
8162 (s390_store_vxrs_high): New functions.
8163 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
8164 NT_S390_VXRS_HIGH.
8165 (s390_arch_setup): Add logic for selecting one of the new target
8166 descriptions. Activate the new vector regsets if applicable.
8167 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
8168 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
8169 and init_registers_s390x_tevx_linux64.
8170
c966a859
PA
81712015-03-01 Pedro Alves <palves@redhat.com>
8172
8173 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
8174 parameter.
8175
4180215b
PA
81762015-02-27 Pedro Alves <palves@redhat.com>
8177
8178 * linux-x86-low.c (u_debugreg_offset): New function.
8179 (x86_linux_dr_get, x86_linux_dr_set): Use it.
8180
749bab01
PA
81812015-02-27 Pedro Alves <palves@redhat.com>
8182
8183 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
8184 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
8185 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
8186 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
8187 (ps_lsetfpregs, ps_getpid)
8188 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
8189 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
8190 (ps_lsetxregs, ps_plog): Declare.
8191
3c14e5a3
PA
81922015-02-27 Pedro Alves <palves@redhat.com>
8193
8194 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
8195 IP_AGENT_EXPORT_FUNC.
8196 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
8197 IP_AGENT_EXPORT_FUNC.
8198 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
8199 (IP_AGENT_EXPORT): Delete.
8200 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
8201 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
8202 (gdb_trampoline_buffer_error, collecting, gdb_collect)
8203 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
8204 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
8205 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
8206 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
8207 (traceframe_read_count, traceframe_write_count)
8208 (traceframes_created, trace_state_variables, get_raw_reg)
8209 (get_trace_state_variable_value, set_trace_state_variable_value)
8210 (ust_loaded, helper_thread_id, cmd_buf): Use
8211 IPA_SYM_EXPORTED_NAME.
8212 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
8213 (tracepoints) Use IP_AGENT_EXPORT_VAR.
8214 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
8215 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
8216 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
8217 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
8218 EXTERN_C_PUSH/EXTERN_C_POP.
8219 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
8220 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
8221 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
8222 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
8223 (traceframe_write_count, traceframe_read_count)
8224 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
8225 (about_to_request_buffer_space, get_trace_state_variable_value)
8226 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
8227 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
8228 EXTERN_C_PUSH/EXTERN_C_POP.
8229 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
8230 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
8231 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
8232 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
8233 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
8234 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
8235 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
8236 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
8237 Define.
8238 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
8239 (IP_AGENT_EXPORT_VAR_DECL): Define.
8240 (tracing): Declare.
8241 (gdb_agent_get_raw_reg): Declare.
8242
fe978cb0
PA
82432015-02-27 Tom Tromey <tromey@redhat.com>
8244 Pedro Alves <palves@redhat.com>
8245
8246 Rename symbols whose names are reserved C++ keywords throughout.
8247
3bc3d82a
PA
82482015-02-27 Pedro Alves <palves@redhat.com>
8249
8250 * Makefile.in (COMPILER): New, get it from autoconf.
8251 (CXX): Get from autoconf instead.
8252 (COMPILE.pre): Use COMPILER.
8253 (CC-LD): Rename to ...
8254 (CC_LD): ... this. Use COMPILER.
8255 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
8256 (CXX_FOR_TARGET): Default to g++ instead of gcc.
8257 * acinclude.m4: Include build-with-cxx.m4.
8258 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
8259 Disable -Werror by default if building in C++ mode.
8260 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
8261 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
8262 the C++ compiler. Save/restore CXXFLAGS too.
8263 * configure: Regenerate.
8264
07697489
PA
82652015-02-27 Pedro Alves <palves@redhat.com>
8266
8267 * acinclude.m4: Include libiberty.m4.
8268 * configure.ac: Call libiberty_INIT.
8269 * config.in, configure: Regenerate.
8270
9beb7c4e
PA
82712015-02-26 Pedro Alves <palves@redhat.com>
8272
8273 * linux-low.c (linux_wait_1): When incrementing the PC past a
8274 program breakpoint always use the_low_target.breakpoint_len as
8275 increment, rather than the maximum between that and
8276 the_low_target.decr_pc_after_break.
8277
8090aef2
PA
82782015-02-23 Pedro Alves <palves@redhat.com>
8279
8280 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
8281 thread was doing a step-over; always adjust the PC if
8282 we stepped over a permanent breakpoint.
8283 (linux_wait_1): If we stepped over breakpoint that was on top of a
8284 permanent breakpoint, manually advance the PC past it.
8285
bc9540e8
PA
82862015-02-23 Pedro Alves <palves@redhat.com>
8287
8288 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
8289 modes.
8290 (x86_fill_gregset, x86_store_gregset): Use it when handling
8291 $orig_eax.
8292
2db9a427
PA
82932015-02-20 Pedro Alves <palves@redhat.com>
8294
8295 * thread-db.c: Include "nat/linux-procfs.h".
8296 (thread_db_init): Skip listing new threads if the kernel supports
8297 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
8298
afa8d396
PA
82992015-02-20 Pedro Alves <palves@redhat.com>
8300
8301 * linux-low.c (status_pending_p_callback): Use ptid_match.
8302
c9587f88
AT
83032015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
8304
8305 PR breakpoints/16812
8306 * linux-low.c (wstatus_maybe_breakpoint): Remove.
8307 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
8308 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
8309
b05ec7a5
AT
83102015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
8311
8312 PR breakpoints/15956
8313 * tracepoint.c (cmd_qtinit): Add check for current_thread.
8314
d33501a5
MM
83152015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8316
8317 * linux-low.c (linux_low_btrace_conf): Print size.
8318 * server.c (handle_btrace_conf_general_set): New.
8319 (hanle_general_set): Call handle_btrace_conf_general_set.
8320 (handle_query): Report Qbtrace-conf:bts:size as supported.
8321
f4abbc16
MM
83222015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8323
8324 * linux-low.c (linux_low_enable_btrace): Update parameters.
8325 (linux_low_btrace_conf): New.
8326 (linux_target_ops)<to_btrace_conf>: Initialize.
8327 * server.c (current_btrace_conf): New.
8328 (handle_btrace_enable): Rename to ...
8329 (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
8330 to target_enable_btrace. Update comment. Update users.
8331 (handle_qxfer_btrace_conf): New.
8332 (qxfer_packets): Add btrace-conf entry.
8333 (handle_query): Report qXfer:btrace-conf:read as supported packet.
8334 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
8335 (target_ops)<read_btrace_conf>: New.
8336 (target_enable_btrace): Update parameters.
8337 (target_read_btrace_conf): New.
8338
043c3577
MM
83392015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8340
8341 * server.c (handle_btrace_general_set): Remove call to
8342 target_supports_btrace.
8343 (supported_btrace_packets): New.
8344 (handle_query): Call supported_btrace_packets.
8345 * target.h: include btrace-common.h.
8346 (btrace_target_info): Removed.
8347 (supports_btrace, target_supports_btrace): Update parameters.
8348
734b0e4b
MM
83492015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8350
8351 * Makefile.in (SFILES): Add common/btrace-common.c.
8352 (OBS): Add common/btrace-common.o.
8353 (btrace-common.o): Add build rules.
8354 * linux-low: Include btrace-common.h.
8355 (linux_low_read_btrace): Use struct btrace_data. Call
8356 btrace_data_init and btrace_data_fini.
8357
d6c146e9
PA
83582015-02-06 Pedro Alves <palves@redhat.com>
8359
8360 * thread-db.c (find_new_threads_callback): Add debug output.
8361
20ba1ce6
PA
83622015-02-04 Pedro Alves <palves@redhat.com>
8363
8364 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
8365 (resume_stopped_resumed_lwps): New function.
8366 (linux_wait_for_event_filtered): Use it.
8367
8cc73a39
SDJ
83682015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
8369
8370 * Makefile.in (SFILES): Add linux-personality.c.
8371 (linux-personality.o): New rule.
8372 * configure.srv (srv_linux_obj): Add linux-personality.o to the
8373 list of objects to be built.
8374 * linux-low.c: Include nat/linux-personality.h.
8375 (linux_create_inferior): Remove code to disable address space
8376 randomization (moved to ../nat/linux-personality.c). Create
8377 cleanup to disable address space randomization.
8378
fb23d554
SDJ
83792015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
8380
8381 * Makefile.in (posix-strerror.o): New rule.
8382 (mingw-strerror.o): Likewise.
8383 * configure: Regenerated.
8384 * configure.ac: Source file ../common/common.host. Initialize new
8385 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
8386
cdf43629
YQ
83872015-01-14 Yao Qi <yao@codesourcery.com>
8388
8389 * Makefile.in (SFILES): Add nat/ppc-linux.c.
8390 (ppc-linux.o): New rule.
8391 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
8392 * configure.ac: AC_CHECK_FUNCS(getauxval).
8393 * config.in: Re-generated.
8394 * configure: Re-generated.
8395 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
8396 ppc64_64bit_inferior_p
8397
514c5338
YQ
83982015-01-14 Yao Qi <yao@codesourcery.com>
8399
8400 * linux-ppc-low.c: Include "nat/ppc-linux.h".
8401 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
8402 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
8403 (PT_ORIG_R3, PT_TRAP): Likewise.
8404 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
8405 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
8406 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
8407
3368c1e5
JB
84082015-01-10 Joel Brobecker <brobecker@adacore.com>
8409
8410 * i387-fp.c (i387_cache_to_xsave): In look over
8411 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
8412 zmmh_low_space field by use of zmmh_high_space.
8413
582511be
PA
84142015-01-09 Pedro Alves <palves@redhat.com>
8415
8416 * linux-low.c (step_over_bkpt): Move higher up in the file.
8417 (handle_extended_wait): Don't store the stop_pc here.
8418 (get_stop_pc): Adjust comments and rename to ...
8419 (check_stopped_by_breakpoint): ... this. Record whether the LWP
8420 stopped for a software breakpoint or hardware breakpoint.
8421 (thread_still_has_status_pending_p): New function.
8422 (status_pending_p_callback): Use
8423 thread_still_has_status_pending_p. If the event is no longer
8424 interesting, resume the LWP.
8425 (handle_tracepoints): Add assert.
8426 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
8427 (wstatus_maybe_breakpoint): New function.
8428 (cancel_breakpoint): Delete function.
8429 (check_stopped_by_watchpoint): New function, factored out from
8430 linux_low_filter_event.
8431 (lp_status_maybe_breakpoint): Delete function.
8432 (linux_low_filter_event): Remove filter_ptid argument.
8433 Leave thread group exits pending here. Store the LWP's stop PC.
8434 Always leave events pending.
8435 (linux_wait_for_event_filtered): Pull all events out of the
8436 kernel, and leave them all pending.
8437 (count_events_callback, select_event_lwp_callback): Consider all
8438 events.
8439 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
8440 (select_event_lwp): Only give preference to the stepping LWP in
8441 all-stop mode. Adjust comments.
8442 (ignore_event): New function.
8443 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
8444 references to cancel_breakpoints. Adjust to renames. Also give
8445 equal priority to all LWPs that have had events in non-stop mode.
8446 If reporting a software breakpoint event, unadjust the LWP's PC.
8447 (linux_wait): If linux_wait_1 returned an ignored event, retry.
8448 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
8449 Adjust.
8450 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
8451 (resume_status_pending_p): Use thread_still_has_status_pending_p.
8452 (linux_stopped_by_watchpoint): Adjust.
8453 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
8454 * linux-low.h (enum lwp_stop_reason): New.
8455 (struct lwp_info) <stop_pc>: Adjust comment.
8456 <stopped_by_watchpoint>: Delete field.
8457 <stop_reason>: New field.
8458 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
8459 * mem-break.c (software_breakpoint_inserted_here)
8460 (hardware_breakpoint_inserted_here): New function.
8461 * mem-break.h (software_breakpoint_inserted_here)
8462 (hardware_breakpoint_inserted_here): Declare.
8463 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
8464 (cancel_breakpoints): Delete.
8465 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
8466 (upload_fast_traceframes): Remove references to
8467 cancel_breakpoints.
8468
a33e3959
PA
84692015-01-09 Pedro Alves <palves@redhat.com>
8470
8471 * thread-db.c (find_new_threads_callback): Ignore thread if the
8472 kernel thread ID is -1.
8473
8784d563
PA
84742015-01-09 Pedro Alves <palves@redhat.com>
8475
8476 * linux-low.c (linux_attach_fail_reason_string): Move to
8477 nat/linux-ptrace.c, and rename.
8478 (linux_attach_lwp): Update comment.
8479 (attach_proc_task_lwp_callback): New function.
8480 (linux_attach): Adjust to rename and use
8481 linux_proc_attach_tgid_threads.
8482 (linux_attach_fail_reason_string): Delete declaration.
8483
76f2b779
JB
84842015-01-01 Joel Brobecker <brobecker@adacore.com>
8485
8486 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
8487 * server.c (gdbserver_version): Likewise.
8488
fafcc06a
SDJ
84892014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
8490
8491 * remote-utils.c: Include ctype.h.
8492 (input_interrupt): Explicitly handle the case when the char
8493 received is the NUL byte. Improve the printing of non-ASCII
8494 characters.
8495
beed38b8
JB
84962014-12-16 Joel Brobecker <brobecker@adacore.com>
8497
8498 * linux-low.c (linux_low_filter_event): Update call to
8499 linux_enable_event_reporting following the addition of
8500 a new parameter to that function.
8501
bf330350
CU
85022014-12-16 Catalin Udma <catalin.udma@freescale.com>
8503
8504 PR server/17457
8505 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
8506 (AARCH64_FPCR_REGNO): Likewise.
8507 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
8508 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
8509 (aarch64_store_fpregset): Likewise.
8510
5227d625
JB
85112014-12-15 Joel Brobecker <brobecker@adacore.com>
8512
8513 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
8514 Remove FIXME comment about assumption about N.
8515
f93b65a0
JB
85162014-12-13 Joel Brobecker <brobecker@adacore.com>
8517
8518 * configure.ac: If large-file support is disabled in GDBserver,
8519 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
8520 * configure: Regenerate.
8521
e5a9158d
AA
85222014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
8523
8524 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
8525 warning upon ENODATA from ptrace.
8526 * linux-s390-low.c (s390_store_tdb): New.
8527 (s390_regsets): Add regset for NT_S390_TDB.
8528
feea5f36
AA
85292014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
8530
8531 * linux-low.c (regsets_store_inferior_registers): Skip regsets
8532 without a fill_function.
8533 * linux-s390-low.c (s390_fill_last_break): Remove.
8534 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
8535 (s390_arch_setup): Use regset's size instead of fill_function for
8536 loop end condition.
8537
098dbe61
AA
85382014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
8539
8540 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
8541 the regset's store function when ptrace returned an error.
8542 * regcache.c (get_thread_regcache): Invalidate register cache
8543 before fetching inferior's registers.
8544
28eef672
AA
85452014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
8546
8547 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
8548 while-loop as for-loop.
8549 (regsets_store_inferior_registers): Likewise.
8550
bdca27a2
YQ
85512014-11-28 Yao Qi <yao@codesourcery.com>
8552
8553 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
8554 * config.in, configure: Re-generate.
8555 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
8556 is defined.
8557
9c232dda
YQ
85582014-11-21 Yao Qi <yao@codesourcery.com>
8559
8560 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
8561 (AC_CHECK_HEADERS): Remove malloc.h.
8562 * configure: Re-generated.
8563 * config.in: Re-generated.
8564 * server.h: Don't include alloca.h and malloc.h.
8565 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
8566 Don't include malloc.h.
8567
43968415
JB
85682014-11-17 Joel Brobecker <brobecker@adacore.com>
8569
8570 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
8571 corresponding ERRNO check in same block.
8572
40e91bc7
PA
85732014-11-12 Pedro Alves <palves@redhat.com>
8574
8575 * server.c (cont_thread): Update comment.
8576 (start_inferior, attach_inferior): No longer clear cont_thread.
8577 (handle_v_cont): No longer set cont_thread.
8578 (captured_main): Clear cont_thread each time a GDB connects.
8579
c2c118cf
PA
85802014-11-12 Pedro Alves <palves@redhat.com>
8581
8582 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
8583 thread, and don't resume all threads if the Hc thread has exited.
8584
78708b7c
PA
85852014-11-12 Pedro Alves <palves@redhat.com>
8586
8587 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
8588 the process group instead of to a specific LWP.
8589
a2abc7de
PA
85902014-10-15 Pedro Alves <palves@redhat.com>
8591
8592 PR server/17487
8593 * win32-arm-low.c (arm_set_thread_context): Remove current_event
8594 parameter.
8595 (arm_set_thread_context): Delete.
8596 (the_low_target): Adjust.
8597 * win32-i386-low.c (debug_registers_changed)
8598 (debug_registers_used): Delete.
8599 (update_debug_registers_callback): New function.
8600 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
8601 needing to update their debug registers.
8602 (win32_get_current_dr): New function.
8603 (x86_dr_low_get_addr, x86_dr_low_get_control)
8604 (x86_dr_low_get_status): Fetch the debug register from the thread
8605 record's context.
8606 (i386_initial_stuff): Adjust.
8607 (i386_get_thread_context): Remove current_event parameter. Don't
8608 clear debug_registers_changed nor copy DR values to
8609 debug_reg_state.
8610 (i386_set_thread_context): Delete.
8611 (i386_prepare_to_resume): New function.
8612 (i386_thread_added): Mark the thread as needing to update irs
8613 debug registers.
8614 (the_low_target): Remove i386_set_thread_context and install
8615 i386_prepare_to_resume.
8616 * win32-low.c (win32_get_thread_context): Adjust.
8617 (win32_set_thread_context): Use SetThreadContext
8618 directly.
8619 (win32_prepare_to_resume): New function.
8620 (win32_require_context): New function, factored out from ...
8621 (thread_rec): ... this.
8622 (continue_one_thread): Call win32_prepare_to_resume on each thread
8623 we're about to continue.
8624 (win32_resume): Call win32_prepare_to_resume on the event thread.
8625 * win32-low.h (struct win32_thread_info)
8626 <debug_registers_changed>: New field.
8627 (struct win32_target_ops): Change prototype of set_thread_context,
8628 delete set_thread_context and add prepare_to_resume.
8629 (win32_require_context): New declaration.
8630
a442d071
GB
86312014-10-08 Gary Benson <gbenson@redhat.com>
8632
8633 * server.h: Do not include common-exceptions.h.
8634
6f1947e8
GB
86352014-10-08 Gary Benson <gbenson@redhat.com>
8636
8637 * server.h: Do not include cleanups.h.
8638
63b434a4
JH
86392014-09-30 James Hogan <james.hogan@imgtec.com>
8640
8641 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
8642 mips64-dsp-linux.c.
8643
c4d9ceb6
YQ
86442014-09-23 Yao Qi <yao@codesourcery.com>
8645
8646 * linux-low.c (lp_status_maybe_breakpoint): New function.
8647 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
8648 (count_events_callback): Likewise.
8649 (select_event_lwp_callback): Likewise.
8650 (cancel_breakpoints_callback): Likewise.
8651
89a5711c
DB
86522014-09-19 Don Breazeal <donb@codesourcery.com>
8653
8654 * linux-low.c (handle_extended_wait): Call
8655 linux_ptrace_get_extended_event.
8656 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
8657 linux_is_extended_waitstatus.
8658
bffc0964
JB
86592014-09-16 Joel Brobecker <brobecker@adacore.com>
8660
8661 * Makefile.in (CPPFLAGS): Define.
8662 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
8663 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
8664
0bfdf32f
GB
86652014-09-16 Gary Benson <gbenson@redhat.com>
8666
8667 * inferiors.h (current_inferior): Renamed as...
8668 (current_thread): New variable. All uses updated.
8669 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
8670 (maybe_move_out_of_jump_pad): Likewise.
8671 (cancel_breakpoint): Likewise.
8672 (linux_low_filter_event): Likewise.
8673 (wait_for_sigstop): Likewise.
8674 (linux_resume_one_lwp): Likewise.
8675 (need_step_over_p): Likewise.
8676 (start_step_over): Likewise.
8677 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
8678 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
8679 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
8680 and save_inferior as saved_thread.
8681 * regcache.c (get_thread_regcache): Renamed saved_inferior as
8682 saved_thread.
8683 (regcache_invalidate_thread): Likewise.
8684 * remote-utils.c (prepare_resume_reply): Likewise.
8685 * thread-db.c (thread_db_get_tls_address): Likewise.
8686 (disable_thread_event_reporting): Likewise.
8687 (remove_thread_event_breakpoints): Likewise.
8688 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
8689 as saved_thread.
8690 * target.h (set_desired_inferior): Renamed as...
8691 (set_desired_thread): New declaration. All uses updated.
8692 * server.c (myresume): Updated comment to reference thread instead
8693 of inferior.
8694 (handle_serial_event): Likewise.
8695 (handle_target_event): Likewise.
8696
361c8ade
GB
86972014-09-12 Tom Tromey <tromey@redhat.com>
8698 Gary Benson <gbenson@redhat.com>
8699
8700 * regcache.h: Include common-regcache.h.
8701 (regcache_read_pc): Don't declare.
8702 * regcache.c (get_thread_regcache_for_ptid): New function.
8703
bd9269f7
GB
87042014-09-11 Tom Tromey <tromey@redhat.com>
8705 Gary Benson <gbenson@redhat.com>
8706
8707 * symbol.c: New file.
8708 * Makefile.in (SFILES): Add symbol.c.
8709 (OBS): Add symbol.o.
8710
f8c1d06b
GB
87112014-09-11 Gary Benson <gbenson@redhat.com>
8712
8713 * target.c (target_stop_ptid, target_continue_ptid): New
8714 functions.
8715
721ec300
GB
87162014-09-11 Tom Tromey <tromey@redhat.com>
8717 Gary Benson <gbenson@redhat.com>
8718
8719 * target.h: Include target/target.h.
8720 * target.c (target_read_memory, target_read_uint32)
8721 (target_write_memory): New functions.
8722
c5e92cca
GB
87232014-09-11 Gary Benson <gbenson@redhat.com>
8724
8725 * server.h (debug_hw_points): Don't declare.
8726 * server.c (debug_hw_points): Don't define. Replace all uses
8727 with show_debug_regs.
8728 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
8729 all uses with show_debug_regs.
8730
2e4bb98a
EBM
87312014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
8732
8733 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
8734 endianness into account.
8735 (ppc_supply_ptrace_register): Likewise.
8736
ac740bc7
JH
87372014-09-03 James Hogan <james.hogan@imgtec.com>
8738
8739 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
8740 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
8741
97ea6506
GB
87422014-09-03 Gary Benson <gbenson@redhat.com>
8743
8744 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
8745 ALL_DEBUG_ADDRESS_REGISTERS.
8746
df7e5265
GB
87472014-09-02 Gary Benson <gbenson@redhat.com>
8748
8749 * i386-low.h: Renamed as...
8750 * x86-low.h: New file. All type, function and variable name
8751 prefixes changed from "i386_" to "x86_". All references updated.
8752 * i386-low.c: Renamed as...
8753 * x86-low.c: New file. All type, function and variable name
8754 prefixes changed from "i386_" to "x86_". All references updated.
8755
ed859da7
GB
87562014-09-02 Gary Benson <gbenson@redhat.com>
8757
8758 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
8759 (x86_linux_new_thread): Likewise.
8760
860789c7
GB
87612014-08-29 Gary Benson <gbenson@redhat.com>
8762
8763 * server.h (setjmp.h): Do not include.
8764 (toplevel): Do not declare.
8765 (common-exceptions.h): Include.
8766 (cleanups.h): Likewise.
8767 * server.c (toplevel): Do not define.
8768 (exit_code): New static global.
8769 (detach_or_kill_for_exit_cleanup): New function.
8770 (main): New function. Original main renamed to...
8771 (captured_main): New function.
8772 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
8773
ff55e1b5
GB
87742014-08-29 Gary Benson <gbenson@redhat.com>
8775
8776 * Makefile.in (SFILES): Add common/common-exceptions.c.
8777 (OBS): Add common-exceptions.o.
8778 (common-exceptions.o): New rule.
8779 * utils.c (prepare_to_throw_exception): New function.
8780
e9bcb658
GB
87812014-08-29 Gary Benson <gbenson@redhat.com>
8782
8783 * config.in: Regenerate.
8784 * configure: Likewise.
8785
e3180625
GB
87862014-08-29 Gary Benson <gbenson@redhat.com>
8787
8788 * Makefile.in (SFILES): Add common/cleanups.c.
8789 (OBS): cleanups.o.
8790 (cleanups.o): New rule.
8791
e3d6ba5d
GB
87922014-08-29 Gary Benson <gbenson@redhat.com>
8793
8794 * utils.c (internal_vwarning): New function.
8795
7096e886
GB
87962014-08-28 Gary Benson <gbenson@redhat.com>
8797
8798 * utils.h (fatal): Remove declaration.
8799 * utils.c (fatal): Remove function.
8800
14ce3192
GB
88012014-08-28 Gary Benson <gbenson@redhat.com>
8802
8803 * tracepoint.c (gdb_agent_init): Replace fatal with
8804 perror_with_name.
8805 (initialize_tracepoint): Likewise.
8806
50278d59
GB
88072014-08-28 Gary Benson <gbenson@redhat.com>
8808
8809 * remote-utils.c (remote_prepare): Replace fatal with error.
8810
aa96c426
GB
88112014-08-28 Gary Benson <gbenson@redhat.com>
8812
8813 * linux-low.c (linux_async): Replace fatal with warning.
8814 Tidy up and return.
8815 (linux_start_non_stop): Return -1 if linux_async failed.
8816
f7160e97
GB
88172014-08-28 Gary Benson <gbenson@redhat.com>
8818
8819 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
8820 gdb_assert.
8821 (i386_dr_low_get_addr): Remove vague comment.
8822 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
8823 gdb_assert.
8824
38e08fca
GB
88252014-08-28 Gary Benson <gbenson@redhat.com>
8826
8827 * inferiors.c (get_thread_process): Replace check with gdb_assert.
8828 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
8829 internal_error.
8830 (linux_resume_one_lwp): Likewise.
8831 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
8832 gdb_assert.
8833 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
8834 with internal_error.
8835 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
8836 (init_register_cache): Replace fatal with gdb_assert_not_reached.
8837 (find_register_by_name): Replace fatal with internal_error.
8838 (find_regno): Likewise.
8839 * tdesc.c (init_target_desc): Replace check with gdb_assert.
8840 * thread-db.c (thread_db_create_event): Likewise.
8841 (thread_db_load_search): Likewise.
8842 (try_thread_db_load_1): Likewise.
8843 * tracepoint.c (get_jump_space_head): Replace fatal with
8844 internal_error.
8845 (claim_trampoline_space): Likewise.
8846 (have_fast_tracepoint_trampoline_buffer): Likewise.
8847 (cmd_qtstart): Likewise.
8848 (stop_tracing): Likewise.
8849 (fast_tracepoint_collecting): Likewise.
8850 (target_malloc): Likewise.
8851 (download_tracepoint): Likewise.
8852 (download_trace_state_variables): Replace check with gdb_assert.
8853 (upload_fast_traceframes): Replace fatal with internal_error.
8854
34abf635
GB
88552014-08-19 Tom Tromey <tromey@redhat.com>
8856 Gary Benson <gbenson@redhat.com>
8857
8858 * Makefile.in (SFILES): Add common/common-debug.c.
8859 (OBS): Add common-debug.o.
8860 (common-debug.o): New rule.
8861 * debug.h (debug_printf): Don't declare.
8862 * debug.c (debug_printf): Renamed and rewritten as...
8863 (debug_vprintf): New function.
8864
f6e94d78
GB
88652014-08-19 Gary Benson <gbenson@redhat.com>
8866
8867 * utils.h: Do not include print-utils.h.
8868
9239eeab
GB
88692014-08-19 Tom Tromey <tromey@redhat.com>
8870 Gary Benson <gbenson@redhat.com>
8871
8872 * server.h: Add static assertion.
8873 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
8874
ef87c8bb
GB
88752014-08-19 Tom Tromey <tromey@redhat.com>
8876 Gary Benson <gbenson@redhat.com>
8877
8878 * Makefile.in (SFILES): Add common/errors.c.
8879 (OBS): Add errors.o.
8880 (IPA_OBS): Add errors-ipa.o.
8881 (errors.o): New rule.
8882 (errors-ipa.o): Likewise.
8883 * utils.h (perror_with_name, error, warning): Don't declare.
8884 * utils.c (warning): Renamed and rewritten as...
8885 (vwarning): New function.
8886 (error): Renamed and rewritten as...
8887 (verror): New function.
8888 (internal_error): Renamed and rewritten as...
8889 (internal_verror): New function.
8890
bb974a24
GB
88912014-08-07 Gary Benson <gbenson@redhat.com>
8892
8893 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
8894 * configure: Regenerate.
8895 * config.in: Likewise.
8896 * server.h: Do not include errno.h.
8897 * event-loop.c: Likewise.
8898 * hostio-errno.c: Likewise.
8899 * linux-low.c: Likewise.
8900 * remote-utils.c: Likewise.
8901 * spu-low.c: Likewise.
8902 * utils.c: Likewise.
8903 * gdbreplay.c: Unconditionally include errno.h.
8904
6d3d12eb
GB
89052014-08-07 Gary Benson <gbenson@redhat.com>
8906
8907 * server.h: Do not include string.h.
8908 * event-loop.c: Likewise.
8909 * linux-low.c: Likewise.
8910 * regcache.c: Likewise.
8911 * remote-utils.c: Likewise.
8912 * spu-low.c: Likewise.
8913 * utils.c: Likewise.
8914
dccbb609
GB
89152014-08-07 Gary Benson <gbenson@redhat.com>
8916
8917 * server.h: Do not include gdb_assert.h.
8918
e76df0d0
GB
89192014-08-07 Gary Benson <gbenson@redhat.com>
8920
8921 * server.h: Do not include common-utils.h.
8922
4cb9c816
GB
89232014-08-07 Gary Benson <gbenson@redhat.com>
8924
8925 * server.h: Do not include ptid.h.
8926 * notif.h: Likewise.
8927
3995eeee
GB
89282014-08-07 Gary Benson <gbenson@redhat.com>
8929
8930 * server.h: Do not include gdb_locale.h.
8931
cb9f1a9b
GB
89322014-08-07 Gary Benson <gbenson@redhat.com>
8933
8934 * server.h: Do not include gdb/signals.h.
8935 * win32-low.c: Likewise.
8936
a5fceff8
GB
89372014-08-07 Gary Benson <gbenson@redhat.com>
8938
8939 * server.h: Do not include pathmax.h.
8940
b9391142
GB
89412014-08-07 Gary Benson <gbenson@redhat.com>
8942
8943 * server.h: Do not include libiberty.h.
8944 * linux-bfin-low.c: Likewise.
8945
0e443c87
GB
89462014-08-07 Gary Benson <gbenson@redhat.com>
8947
8948 * server.h: Do not include ansidecl.h.
8949
8ebb3f56
GB
89502014-08-07 Gary Benson <gbenson@redhat.com>
8951
8952 * linux-x86-low.c: Do not include stddef.h.
8953 * lynx-ppc-low.c: Likewise.
8954 * tracepoint.c: Likewise.
8955
8980bdf6
GB
89562014-08-07 Gary Benson <gbenson@redhat.com>
8957
8958 * server.h: Do not include stdarg.h.
8959 * nto-low.c: Likewise.
8960
d7096f71
GB
89612014-08-07 Gary Benson <gbenson@redhat.com>
8962
8963 * server.h: Do not include stdlib.h.
8964 * inferiors.c: Likewise.
8965 * linux-low.c: Likewise.
8966 * regcache.c: Likewise.
8967 * spu-low.c: Likewise.
8968 * tracepoint.c: Likewise.
8969 * utils.c: Likewise.
8970
d02f550d
GB
89712014-08-07 Gary Benson <gbenson@redhat.com>
8972
8973 * server.h: Do not include stdio.h.
8974 * linux-low.c: Likewise.
8975 * remote-utils.c: Likewise.
8976 * spu-low.c: Likewise.
8977 * utils.c: Likewise.
8978 * wincecompat.c: Likewise.
8979
87f6c4e3
GB
89802014-08-06 Gary Benson <gbenson@redhat.com>
8981
8982 * regcache.c (init_register_cache): Move conditionals inside if.
8983
7089dca4
GB
89842014-08-06 Gary Benson <gbenson@redhat.com>
8985
8986 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
8987
462f517e
GB
89882014-07-31 Gary Benson <gbenson@redhat.com>
8989
8990 * ax.h: Do not include server.h.
8991 * gdbthread.h: Likewise.
8992 * lynx-low.h: Likewise.
8993 * notif.h: Likewise.
8994
976411d6
GB
89952014-07-30 Gary Benson <gbenson@redhat.com>
8996
8997 * server.h: Include common-defs.h.
8998 Do not include config.h or build-gnulib-gdbserver/config.h.
8999
d41f6d8e
GB
90002014-07-30 Gary Benson <gbenson@redhat.com>
9001
9002 * hostio-errno.c: Move server.h to top of includes list.
9003 * inferiors.c: Likewise.
9004 * linux-x86-low.c: Likewise.
9005 * notif.c: Include server.h.
9006
314c6a35
TT
90072014-07-24 Tom Tromey <tromey@redhat.com>
9008 Gary Benson <gbenson@redhat.com>
9009
9010 * server.h (CORE_ADDR): Now unsigned.
9011
69ff6be5
PA
90122014-07-16 Pedro Alves <palves@redhat.com>
9013
9014 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
9015
ce9e3fe7
PA
90162014-07-15 Pedro Alves <palves@redhat.com>
9017
9018 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
9019 copy.
9020
e76126e8
PA
90212014-07-11 Pedro Alves <palves@redhat.com>
9022
9023 * linux-low.c (kill_wait_lwp): New function, based on
9024 kill_one_lwp_callback, but use my_waitpid directly.
9025 (kill_one_lwp_callback, linux_kill): Use it.
9026
8e9db26e
PA
90272014-06-23 Pedro Alves <palves@redhat.com>
9028
9029 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
9030 before setting DR0..DR3.
9031
698b3e08
GB
90322014-06-20 Gary Benson <gbenson@redhat.com>
9033
9034 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
9035 * configure: Regenerated.
9036 * config.in: Likewise.
9037
125f8a3d
GB
90382014-06-20 Gary Benson <gbenson@redhat.com>
9039
9040 * Makefile.in (SFILES): Update locations for files moved
9041 from common to nat.
9042 (object file files): Reordered.
9043
42995dbd
GB
90442014-06-20 Gary Benson <gbenson@redhat.com>
9045
9046 * i386-low.h (i386_dr_low_can_set_addr): Removed.
9047 (i386_dr_low_set_addr): Likewise.
9048 (i386_dr_low_get_addr): Likewise.
9049 (i386_dr_low_can_set_control): Likewise.
9050 (i386_dr_low_set_control): Likewise.
9051 (i386_dr_low_get_control): Likewise.
9052 (i386_dr_low_get_status): Likewise.
9053 (i386_get_debug_register_length): Likewise.
9054 * linux-x86-low.c (i386_dr_low_set_addr):
9055 Changed signature. Made static.
9056 (i386_dr_low_get_addr): Likewise.
9057 (i386_dr_low_set_control): Likewise.
9058 (i386_dr_low_get_control): Likewise.
9059 (i386_dr_low_get_status): Likewise.
9060 (i386_dr_low): New global variable.
9061 * win32-i386-low.c (i386_dr_low_set_addr):
9062 Changed signature. Made static.
9063 (i386_dr_low_get_addr): Likewise.
9064 (i386_dr_low_set_control): Likewise.
9065 (i386_dr_low_get_control): Likewise.
9066 (i386_dr_low_get_status): Likewise.
9067 (i386_dr_low): New global variable.
9068
e1d2394b
MS
90692014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
9070
9071 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
9072 * Makefile.in (AR, AR_FLAGS): Define.
9073 * configure: Regenerate.
9074
3a8ee006
GB
90752014-06-19 Gary Benson <gbenson@redhat.com>
9076
9077 * Makefile.in (i386-dregs.o): New rule.
9078 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
9079 * i386-low.c (target.h): Remove include.
9080 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
9081 (DR_CONTROL_SHIFT): Likewise.
9082 (DR_CONTROL_SIZE): Likewise.
9083 (DR_RW_EXECUTE): Likewise.
9084 (DR_RW_WRITE): Likewise.
9085 (DR_RW_READ): Likewise.
9086 (DR_RW_IORW): Likewise.
9087 (DR_LEN_1): Likewise.
9088 (DR_LEN_2): Likewise.
9089 (DR_LEN_4): Likewise.
9090 (DR_LEN_8): Likewise.
9091 (DR_LOCAL_ENABLE_SHIFT): Likewise.
9092 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
9093 (DR_ENABLE_SIZE): Likewise.
9094 (DR_LOCAL_SLOWDOWN): Likewise.
9095 (DR_GLOBAL_SLOWDOWN): Likewise.
9096 (DR_CONTROL_RESERVED): Likewise.
9097 (I386_DR_CONTROL_MASK): Likewise.
9098 (I386_DR_VACANT): Likewise.
9099 (I386_DR_LOCAL_ENABLE): Likewise.
9100 (I386_DR_GLOBAL_ENABLE): Likewise.
9101 (I386_DR_DISABLE): Likewise.
9102 (I386_DR_SET_RW_LEN): Likewise.
9103 (I386_DR_GET_RW_LEN): Likewise.
9104 (I386_DR_WATCH_HIT): Likewise.
9105 (i386_wp_op_t): Likewise.
9106 (i386_show_dr): Likewise.
9107 (i386_length_and_rw_bits): Likewise.
9108 (i386_insert_aligned_watchpoint): Likewise.
9109 (i386_remove_aligned_watchpoint): Likewise.
9110 (i386_handle_nonaligned_watchpoint): Likewise.
9111 i386_update_inferior_debug_regs(): Likewise.
9112 (i386_dr_insert_watchpoint): Likewise.
9113 (i386_dr_remove_watchpoint): Likewise.
9114 (i386_dr_region_ok_for_watchpoint): Likewise.
9115 (i386_dr_stopped_data_address): Likewise.
9116 (i386_dr_stopped_by_watchpoint): Likewise.
9117
8f26655c
GB
91182014-06-19 Gary Benson <gbenson@redhat.com>
9119
9120 * i386-low.c (i386_dr_show): Renamed to
9121 i386_show_dr and made static. All uses updated.
9122 (i386_dr_length_and_rw_bits): Renamed to
9123 i386_length_and_rw_bits and made static.
9124 All uses updated.
9125 (i386_dr_insert_aligned_watchpoint): Renamed to
9126 i386_insert_aligned_watchpoint and made static.
9127 All uses updated.
9128 (i386_dr_remove_aligned_watchpoint): Renamed to
9129 i386_remove_aligned_watchpoint and made static.
9130 All uses updated.
9131 (i386_dr_update_inferior_debug_regs): Renamed to
9132 i386_update_inferior_debug_regs and made static.
9133 All uses updated.
9134
b9228891
GB
91352014-06-18 Gary Benson <gbenson@redhat.com>
9136
5171def3
GB
9137 * i386-low.h (i386_dr_low_can_set_addr): New macro.
9138 (i386_dr_low_can_set_control): Likewise.
9139 (i386_get_debug_register_length): Likewise.
9140 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
9141 (i386_dr_low_can_set_control): Likewise.
9142 (i386_get_debug_register_length): Likewise.
9143
91442014-06-17 Gary Benson <gbenson@redhat.com>
9145
b9228891
GB
9146 * i386-low.h (i386-dregs.h): New include.
9147 (DR_FIRSTADDR): Now in i386-dregs.h.
9148 (DR_LASTADDR): Likewise.
9149 (DR_NADDR): Likewise.
9150 (DR_STATUS): Likewise.
9151 (DR_CONTROL): Likewise.
9152 (i386_debug_reg_state): Likewise.
9153 (i386_dr_insert_watchpoint): Likewise.
9154 (i386_dr_remove_watchpoint): Likewise.
9155 (i386_dr_region_ok_for_watchpoint): Likewise.
9156 (i386_dr_stopped_data_address): Likewise.
9157 (i386_dr_stopped_by_watchpoint): Likewise.
9158 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
9159
4be83cc2
GB
91602014-06-18 Gary Benson <gbenson@redhat.com>
9161
9162 * i386-low.h (i386_low_insert_watchpoint): Renamed to
9163 i386_dr_insert_watchpoint.
9164 (i386_low_remove_watchpoint): Renamed to
9165 i386_dr_remove_watchpoint.
9166 (i386_low_region_ok_for_watchpoint): Renamed to
9167 i386_dr_region_ok_for_watchpoint.
9168 (i386_low_stopped_data_address): Renamed to
9169 i386_dr_stopped_data_address.
9170 (i386_low_stopped_by_watchpoint): Renamed to
9171 i386_dr_stopped_by_watchpoint.
9172 * i386-low.c (i386_show_dr): Renamed to
9173 i386_dr_show and made nonstatic. All uses updated.
9174 (i386_length_and_rw_bits): Renamed to
9175 i386_dr_length_and_rw_bits and made nonstatic.
9176 All uses updated.
9177 (i386_insert_aligned_watchpoint): Renamed to
9178 i386_dr_insert_aligned_watchpoint and made nonstatic.
9179 All uses updated.
9180 (i386_remove_aligned_watchpoint): Renamed to
9181 i386_dr_remove_aligned_watchpoint and made nonstatic.
9182 All uses updated.
9183 (i386_update_inferior_debug_regs): Renamed to
9184 i386_dr_update_inferior_debug_regs and made nonstatic.
9185 All uses updated.
9186 (i386_low_insert_watchpoint): Renamed to
9187 i386_dr_insert_watchpoint. All uses updated.
9188 (i386_low_remove_watchpoint): Renamed to
9189 i386_dr_remove_watchpoint. All uses updated.
9190 (i386_low_region_ok_for_watchpoint): Renamed to
9191 i386_dr_region_ok_for_watchpoint. All uses updated.
9192 (i386_low_stopped_data_address): Renamed to
9193 i386_dr_stopped_data_address. All uses updated.
9194 (i386_low_stopped_by_watchpoint): Renamed to
9195 i386_dr_stopped_by_watchpoint. All uses updated.
9196
131aa0d4
GB
91972014-06-18 Gary Benson <gbenson@redhat.com>
9198
9199 * i386-low.c (i386_dr_low_can_set_addr): New macro.
9200 (i386_dr_low_can_set_control): Likewise.
9201 (i386_insert_aligned_watchpoint): New check.
9202
d9305f7f
GB
92032014-06-18 Gary Benson <gbenson@redhat.com>
9204
9205 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
9206 Renamed to state.
9207
e927c9fc
GB
92082014-06-18 Gary Benson <gbenson@redhat.com>
9209
9210 * i386-low.c (i386_length_and_rw_bits): Use internal_error
9211 instead of fatal and error.
9212 (i386_handle_nonaligned_watchpoint): Likewise.
9213
1b6d4134
GB
92142014-06-18 Gary Benson <gbenson@redhat.com>
9215
9216 * i386-low.c (i386_get_debug_register_length): New macro.
9217 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
9218 (i386_show_dr): Use debug_printf instead of fprintf. Use
9219 phex to format values.
9220
6e62758f
GB
92212014-06-18 Gary Benson <gbenson@redhat.com>
9222
9223 * i386-low.h: Comment changes.
9224 * i386-low.c: Likewise.
9225
fc6e2f03
GB
92262014-06-18 Gary Benson <gbenson@redhat.com>
9227
9228 * i386-low.c: Whitespace changes.
9229
f9d1eeed
TT
92302014-06-12 Tom Tromey <tromey@redhat.com>
9231
9232 * utils.c (freeargv): Remove.
9233
0b04e523
TT
92342014-06-12 Tom Tromey <tromey@redhat.com>
9235
9236 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
9237 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
9238 (parse_debug_format_options): Likewise.
9239 (gdbserver_usage): Likewise.
9240 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
9241 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
9242 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
9243 against libiberty.
9244 ($(LIBGNU)): Depend on libiberty.
9245 (all-lib): Recurse into all subdirs.
9246 (install-only): Invoke "install" target in subdirs.
9247 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
9248 targets.
9249 * configure: Rebuild.
9250 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
9251 for vasprintf, vsnprintf, or gettimeofday.
9252 * configure.srv: Don't add safe-ctype.o or lbasename.o to
9253 srv_tgtobj.
9254
270c9937
JB
92552014-06-05 Joel Brobecker <brobecker@adacore.com>
9256
9257 * development.sh: Delete.
9258 * Makefile.in (config.status): Adjust dependency on development.sh.
9259 * configure.ac: Adjust development.sh source call.
9260 * configure: Regenerate.
9261
0a261ed8
PA
92622014-06-02 Pedro Alves <palves@redhat.com>
9263
9264 * ax.c (gdb_free_agent_expr): New function.
9265 * ax.h (gdb_free_agent_expr): New declaration.
9266 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
9267 list.
9268 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
9269 static.
9270 (clear_breakpoint_conditions_and_commands): New function.
9271 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
9272 (clear_breakpoint_conditions_and_commands): New declaration.
9273
e9dae05e
RR
92742014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9275
9276 * linux-aarch64-low.c (asm/ptrace.h): Include.
9277
5876f503
JK
92782014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9279
9280 Fix TLS access for -static -pthread.
9281 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
9282 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
9283 (thread_db_load_search, try_thread_db_load_1): Initialize it.
9284
802e8e6d
PA
92852014-05-20 Pedro Alves <palves@redhat.com>
9286
9287 * linux-aarch64-low.c (aarch64_insert_point)
9288 (aarch64_remove_point): No longer check whether the type is
9289 supported here. Adjust to new interface.
9290 (the_low_target): Install aarch64_supports_z_point_type as
9291 supports_z_point_type method.
9292 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
9293 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
9294 instead of a Z packet char. Adjust.
9295 (arm_supports_z_point_type): New function.
9296 (arm_insert_point, arm_remove_point): Adjust to new interface.
9297 (the_low_target): Install arm_supports_z_point_type.
9298 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
9299 (cris_insert_point, cris_remove_point): Adjust to new interface.
9300 Don't check whether the type is supported here.
9301 (the_low_target): Install cris_supports_z_point_type.
9302 * linux-low.c (linux_supports_z_point_type): New function.
9303 (linux_insert_point, linux_remove_point): Adjust to new interface.
9304 * linux-low.h (struct linux_target_ops) <insert_point,
9305 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
9306 raw_breakpoint pointer parameter.
9307 <supports_z_point_type>: New method.
9308 * linux-mips-low.c (mips_supports_z_point_type): New function.
9309 (mips_insert_point, mips_remove_point): Adjust to new interface.
9310 Use mips_supports_z_point_type.
9311 (the_low_target): Install mips_supports_z_point_type.
9312 * linux-ppc-low.c (the_low_target): Install NULL as
9313 supports_z_point_type method.
9314 * linux-s390-low.c (the_low_target): Install NULL as
9315 supports_z_point_type method.
9316 * linux-sparc-low.c (the_low_target): Install NULL as
9317 supports_z_point_type method.
9318 * linux-x86-low.c (x86_supports_z_point_type): New function.
9319 (x86_insert_point): Adjust to new insert_point interface. Use
9320 insert_memory_breakpoint. Adjust to new
9321 i386_low_insert_watchpoint interface.
9322 (x86_remove_point): Adjust to remove_point interface. Use
9323 remove_memory_breakpoint. Adjust to new
9324 i386_low_remove_watchpoint interface.
9325 (the_low_target): Install x86_supports_z_point_type.
9326 * lynx-low.c (lynx_target_ops): Install NULL as
9327 supports_z_point_type callback.
9328 * nto-low.c (nto_supports_z_point_type): New.
9329 (nto_insert_point, nto_remove_point): Adjust to new interface.
9330 (nto_target_ops): Install nto_supports_z_point_type.
9331 * mem-break.c: Adjust intro comment.
9332 (struct raw_breakpoint) <raw_type, size>: New fields.
9333 <inserted>: Update comment.
9334 <shlib_disabled>: Delete field.
9335 (enum bkpt_type) <gdb_breakpoint>: Delete value.
9336 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
9337 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
9338 (raw_bkpt_type_to_target_hw_bp_type): New function.
9339 (find_enabled_raw_code_breakpoint_at): New function.
9340 (find_raw_breakpoint_at): New type and size parameters. Use them.
9341 (insert_memory_breakpoint): New function, based off
9342 set_raw_breakpoint_at.
9343 (remove_memory_breakpoint): New function.
9344 (set_raw_breakpoint_at): Reimplement.
9345 (set_breakpoint): New, based on set_breakpoint_at.
9346 (set_breakpoint_at): Reimplement.
9347 (delete_raw_breakpoint): Go through the_target->remove_point
9348 instead of assuming memory breakpoints.
9349 (find_gdb_breakpoint_at): Delete.
9350 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
9351 (find_gdb_breakpoint): New function.
9352 (set_gdb_breakpoint_at): Delete.
9353 (z_type_supported): New function.
9354 (set_gdb_breakpoint_1): New function, loosely based off
9355 set_gdb_breakpoint_at.
9356 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
9357 (delete_gdb_breakpoint_at): Delete.
9358 (delete_gdb_breakpoint_1): New function, loosely based off
9359 delete_gdb_breakpoint_at.
9360 (delete_gdb_breakpoint): New function.
9361 (clear_gdb_breakpoint_conditions): Rename to ...
9362 (clear_breakpoint_conditions): ... this. Don't handle a NULL
9363 breakpoint.
9364 (add_condition_to_breakpoint): Make static.
9365 (add_breakpoint_condition): Take a struct breakpoint pointer
9366 instead of an address. Adjust.
9367 (gdb_condition_true_at_breakpoint): Rename to ...
9368 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
9369 z_type parameter.
9370 (gdb_condition_true_at_breakpoint): Reimplement.
9371 (add_breakpoint_commands): Take a struct breakpoint pointer
9372 instead of an address. Adjust.
9373 (gdb_no_commands_at_breakpoint): Rename to ...
9374 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
9375 parameter. Return true if no breakpoint was found. Change debug
9376 output.
9377 (gdb_no_commands_at_breakpoint): Reimplement.
9378 (run_breakpoint_commands): Rename to ...
9379 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
9380 and change return type to boolean.
9381 (run_breakpoint_commands): New function.
9382 (gdb_breakpoint_here): Also check for Z1 breakpoints.
9383 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
9384 breakpoint. Go through the_target->remove_point instead of
9385 assuming memory breakpoint.
9386 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
9387 software and hardware breakpoints.
9388 (reinsert_raw_breakpoint): Go through the_target->insert_point
9389 instead of assuming memory breakpoint.
9390 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
9391 software and hardware breakpoints.
9392 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
9393 Check both software and hardware breakpoints.
9394 (validate_inserted_breakpoint): Assert the breakpoint is a
9395 software breakpoint. Set the inserted flag to -1 instead of
9396 setting shlib_disabled.
9397 (delete_disabled_breakpoints): Adjust.
9398 (validate_breakpoints): Only validate software breakpoints.
9399 Adjust to inserted flag change.
9400 (check_mem_read, check_mem_write): Skip breakpoint types other
9401 than software breakpoints. Adjust to inserted flag change.
9402 * mem-break.h (enum raw_bkpt_type): New enum.
9403 (raw_breakpoint, struct process_info): Forward declare.
9404 (Z_packet_to_target_hw_bp_type): Delete declaration.
9405 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
9406 (set_gdb_breakpoint, delete_gdb_breakpoint)
9407 (clear_breakpoint_conditions): New declarations.
9408 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
9409 (breakpoint_inserted_here): Update comment.
9410 (add_breakpoint_condition, add_breakpoint_commands): Replace
9411 address parameter with a breakpoint pointer parameter.
9412 (gdb_breakpoint_here): Update comment.
9413 (delete_gdb_breakpoint_at): Delete.
9414 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
9415 * server.c (process_point_options): Take a struct breakpoint
9416 pointer instead of an address. Adjust.
9417 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
9418 delete_gdb_breakpoint.
9419 * spu-low.c (spu_target_ops): Install NULL as
9420 supports_z_point_type method.
9421 * target.h: Include mem-break.h.
9422 (struct target_ops) <prepare_to_access_memory>: Update comment.
9423 <supports_z_point_type>: New field.
9424 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
9425 instead of a char. Also take a raw breakpoint pointer.
9426 * win32-arm-low.c (the_low_target): Install NULL as
9427 supports_z_point_type.
9428 * win32-i386-low.c (i386_supports_z_point_type): New function.
9429 (i386_insert_point, i386_remove_point): Adjust to new interface.
9430 (the_low_target): Install i386_supports_z_point_type.
9431 * win32-low.c (win32_supports_z_point_type): New function.
9432 (win32_insert_point, win32_remove_point): Adjust to new interface.
9433 (win32_target_ops): Install win32_supports_z_point_type.
9434 * win32-low.h (struct win32_target_ops):
9435 <supports_z_point_type>: New method.
9436 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
9437 instead of a char. Also take a raw breakpoint pointer.
9438
932539e3
PA
94392014-05-20 Pedro Alves <palves@redhat.com>
9440
9441 * mem-break.h: Include break-common.h.
9442 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
9443 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
9444 (Z_packet_to_target_hw_bp_type): New declaration.
9445 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
9446 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
9447 (Z_PACKET_ACCESS_WP): Delete macros.
9448 (Z_packet_to_hw_type): Delete function.
9449 * i386-low.h: Don't include break-common.h here.
9450 (Z_packet_to_hw_type): Delete declaration.
9451 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
9452 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
9453 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
9454 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
9455 * linux-aarch64-low.c: Don't include break-common.h here.
9456 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
9457 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
9458 (Z_packet_to_target_hw_bp_type): Delete function.
9459 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
9460 function.
9461 (mips_insert_point, mips_remove_point): Use
9462 Z_packet_to_target_hw_bp_type.
9463
4ff0d3d8
PA
94642014-05-20 Pedro Alves <palves@redhat.com>
9465
9466 * linux-aarch64-low.c: Include break-common.h.
9467 (enum target_point_type): Delete.
9468 (Z_packet_to_point_type): Rename to ...
9469 (Z_packet_to_target_hw_bp_type): ... this, and return a
9470 target_hw_bp_type instead.
9471 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
9472 instead of an enum target_point_type.
9473 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
9474 breakpoint type.
9475 (aarch64_dr_state_insert_one_point)
9476 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
9477 (aarch64_handle_aligned_watchpoint)
9478 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
9479 Take an enum target_hw_bp_type instead of an enum
9480 target_point_type.
9481 (aarch64_supports_z_point_type): New function.
9482 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
9483 use Z_packet_to_target_hw_bp_type.
9484
786dc519
JB
94852014-05-20 Joel Brobecker <brobecker@adacore.com>
9486
9487 * configure.ac: Only use -Werror by default when DEVELOPMENT
9488 is true.
9489 * configure: Regenerate.
9490
9e0aa64f
JK
94912014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9492
9493 Fix gdbserver qGetTLSAddr for x86_64 -m32.
9494 * linux-x86-low.c (X86_64_USER_REGS): New.
9495 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
9496
2b577b92
YQ
94972014-04-28 Yao Qi <yao@codesourcery.com>
9498
9499 * Makefile.in (i386-avx512.c): Fix the typo of generated file
9500 name.
9501
94611da2
PA
95022014-04-25 Pedro Alves <palves@redhat.com>
9503
9504 PR server/16255
9505 * linux-low.c (linux_attach_fail_reason_string): New function.
9506 (linux_attach_lwp): Delete.
9507 (linux_attach_lwp_1): Rename to ...
9508 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
9509 argument. Remove "initial" parameter. Return int instead of
9510 void. Don't error or warn here.
9511 (linux_attach): Adjust to call linux_attach_lwp. Call error on
9512 failure to attach to the tgid. Call warning when failing to
9513 attach to an lwp.
9514 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
9515 argument. Remove "initial" parameter. Return int instead of
9516 void. Don't error or warn here.
9517 (linux_attach_fail_reason_string): New declaration.
9518 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
9519 interface change. Use linux_attach_fail_reason_string.
9520
01f9f808
MS
95212014-04-24 Michael Sturm <michael.sturm@mintel.com>
9522 Walfred Tedeschi <walfred.tedeschi@intel.com>
9523
9524 * Makefile.in: Added rules to handle new files
9525 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
9526 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
9527 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
9528 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
9529 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
9530 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
9531 x32-avx512-linux.o.
9532 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
9533 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
9534 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
9535 i386/x32-avx512.xml.
9536 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
9537 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
9538 i386/x32-avx512-linux.xml.
9539 * i387-fp.c (num_avx512_k_registers): New constant for number
9540 of K registers.
9541 (num_avx512_zmmh_low_registers): New constant for number of
9542 lower ZMM registers (0-15).
9543 (num_avx512_zmmh_high_registers): New constant for number of
9544 higher ZMM registers (16-31).
9545 (num_avx512_ymmh_registers): New contant for number of higher
9546 YMM registers (ymm16-31 added by avx521 on x86_64).
9547 (num_avx512_xmm_registers): New constant for number of higher
9548 XMM registers (xmm16-31 added by AVX512 on x86_64).
9549 (struct i387_xsave): Add space for AVX512 registers.
9550 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
9551 Add code to handle AVX512 registers.
9552 (i387_xsave_to_cache): Add code to handle AVX512 registers.
9553 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
9554 prototypei from generated file.
9555 (tdesc_amd64_avx512_linux): Likewise.
9556 (init_registers_x32_avx512_linux): Likewise.
9557 (tdesc_x32_avx512_linux): Likewise.
9558 (init_registers_i386_avx512_linux): Likewise.
9559 (tdesc_i386_avx512_linux): Likewise.
9560 (x86_64_regmap): Add AVX512 registers.
9561 (x86_linux_read_description): Add code to handle AVX512 XSTATE
9562 mask.
9563 (initialize_low_arch): Add code to initialize AVX512 registers.
9564
51aa91f9
PA
95652014-04-23 Pedro Alves <palves@redhat.com>
9566
9567 * mem-break.c (find_gdb_breakpoint_at): Make static.
9568 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
9569
a4165e94
PA
95702014-04-23 Pedro Alves <palves@redhat.com>
9571
9572 * i386-low.c: Don't include break-common.h here.
9573 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
9574 prototype to take target_hw_bp_type as argument instead of a Z
9575 packet char.
9576 * i386-low.h: Include break-common.h here.
9577 (Z_packet_to_hw_type): Declare.
9578 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
9579 prototypes.
9580 * linux-x86-low.c (x86_insert_point): Convert the packet number to
9581 a target_hw_bp_type before calling i386_low_insert_watchpoint.
9582 (x86_remove_point): Convert the packet number to a
9583 target_hw_bp_type before calling i386_low_remove_watchpoint.
9584 * win32-i386-low.c (i386_insert_point): Convert the packet number
9585 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
9586 (i386_remove_point): Convert the packet number to a
9587 target_hw_bp_type before calling i386_low_remove_watchpoint.
9588
b8acf843
PA
95892014-04-23 Pedro Alves <palves@redhat.com>
9590
9591 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
9592
d708bcd1
PA
95932014-04-10 Pedro Alves <palves@redhat.com>
9594
9595 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
9596 Check if the condition or command is NULL before checking if the
9597 breakpoint is known. On success, return true.
9598 * mem-break.h (add_breakpoint_condition): Document return.
9599 (add_breakpoint_commands): Add describing comment.
9600 * server.c (skip_to_semicolon): New function.
9601 (process_point_options): Use it.
9602
2eec7d5b
PA
96032014-04-09 Pedro Alves <palves@redhat.com>
9604
9605 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
9606 to lwpid_of.
9607
fa96cb38
PA
96082014-02-27 Pedro Alves <palves@redhat.com>
9609
9610 PR 12702
9611 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
9612 macros.
9613 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
9614 output.
9615 (last_thread_of_process_p): Take a PID argument instead of a
9616 thread pointer.
9617 (linux_wait_for_lwp): Delete.
9618 (num_lwps, check_zombie_leaders, not_stopped_callback): New
9619 functions.
9620 (linux_low_filter_event): New function, party factored out from
9621 linux_wait_for_event.
9622 (linux_wait_for_event): Rename to ...
9623 (linux_wait_for_event_filtered): ... this. Add new filter ptid
9624 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
9625 sigsuspend. Check for zombie leaders.
9626 (linux_wait_for_event): Reimplement as wrapper around
9627 linux_wait_for_event_filtered.
9628 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
9629 a normal or signal exit is seen, it's the whole process exiting.
9630 (wait_for_sigstop): No longer a for_each_inferior callback.
9631 Rewrite on top of linux_wait_for_event_filtered.
9632 (stop_all_lwps): Call wait_for_sigstop directly.
9633 * server.c (resume, handle_target_event): Handle
9634 TARGET_WAITKIND_NO_RESUMED.
9635
d763de10
JB
96362014-02-26 Joel Brobecker <brobecker@adacore.com>
9637
9638 * win32-low.c (psapi_get_dll_name,
9639 * win32_CreateToolhelp32Snapshot): Delete.
9640 (win32_CreateToolhelp32Snapshot, win32_Module32First)
9641 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
9642 Delete.
9643 (handle_load_dll): Add function description.
9644 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
9645
850a0f76
JB
96462014-02-26 Joel Brobecker <brobecker@adacore.com>
9647
9648 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
9649 Add comment.
9650 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
9651 base address when calling win32_add_one_solib.
9652 (handle_load_dll): Delete local variable load_addr.
9653 Remove 0x1000 offset applied to DLL base address when calling
9654 win32_add_one_solib.
9655 (handle_unload_dll): Add comment.
9656
f25b3fc3
JB
96572014-02-26 Joel Brobecker <brobecker@adacore.com>
9658
9659 * win32-low.c (win32_add_all_dlls): Renames
9660 win32_ensure_ntdll_loaded. Rewrite function documentation.
9661 Adjust implementation to always load all DLLs.
9662 Add 0x1000 offset to DLL base address when calling
9663 win32_add_one_solib.
9664 (child_initialization_done): New static global.
9665 (do_initial_child_stuff): Set child_initialization_done to
9666 zero during child initialization, and 1 after. Replace call
9667 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
9668 Add comment.
9669 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
9670 (handle_unload_dll): Add function documentation.
9671 (get_child_debug_event): Ignore load and unload DLL events
9672 during child initialization.
9673
d86d4aaf
DE
96742014-02-20 Doug Evans <dje@google.com>
9675
3bc32da3 9676 Remove global all_lwps.
d86d4aaf
DE
9677 * inferiors.h (ptid_of): Move here from linux-low.h.
9678 (pid_of, lwpid_of): Ditto.
9679 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
9680 parameter is a struct thread_info * now.
9681 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
9682 directly. Pass &all_threads to find_inferior instead of &all_lwps.
9683 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
9684 directly.
9685 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
9686 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
9687 * linux-arm-low.c (update_registers_callback): Update, "entry"
9688 parameter is a struct thread_info * now.
9689 Fetch lwpid from current_inferior directly.
9690 (arm_insert_point): Pass &all_threads to find_inferior instead of
9691 &all_lwps.
9692 (arm_remove_point): Ditto.
9693 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
9694 (arm_prepare_to_resume): Fetch pid from thread.
9695 (arm_read_description): Fetch lwpid from current_inferior directly.
9696 * linux-low.c (all_lwps): Delete.
9697 (delete_lwp): Delete call to remove_inferior.
9698 (handle_extended_wait): Fetch lwpid from thread.
9699 (add_lwp): Don't set lwp->entry.id. Remove call to
9700 add_inferior_to_list.
9701 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
9702 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
9703 (kill_one_lwp_callback): Ditto.
9704 (linux_kill): Don't dereference NULL pointer.
9705 Fetch ptid,lwpid from thread.
9706 (get_detach_signal): Fetch ptid from thread.
9707 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
9708 Simplify call to regcache_invalidate_thread.
9709 (delete_lwp_callback): Update, "entry" parameter is a
9710 struct thread_info * now. Fetch pid from thread.
9711 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
9712 (status_pending_p_callback): Update, "entry" parameter is a
9713 struct thread_info * now. Fetch ptid from thread.
9714 (find_lwp_pid): Update, "entry" parameter is a
9715 struct thread_info * now.
9716 (linux_wait_for_lwp): Fetch pid from thread.
9717 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
9718 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
9719 (enqueue_one_deferred_signal): Fetch lwpid from thread.
9720 (dequeue_one_deferred_signal): Ditto.
9721 (cancel_breakpoint): Fetch ptid from current_inferior.
9722 (linux_wait_for_event): Pass &all_threads to find_inferior,
9723 not &all_lwps. Fetch ptid, lwpid from thread.
9724 (count_events_callback): Update, "entry" parameter is a
9725 struct thread_info * now.
9726 (select_singlestep_lwp_callback): Ditto.
9727 (select_event_lwp_callback): Ditto.
9728 (cancel_breakpoints_callback): Ditto.
9729 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
9730 not &all_lwps.
9731 (select_event_lwp): Ditto. Fetch ptid from event_thread.
9732 (unsuspend_one_lwp): Update, "entry" parameter is a
9733 struct thread_info * now.
9734 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
9735 not &all_lwps.
9736 (linux_stabilize_threads): Ditto. And for for_each_inferior.
9737 Fetch lwpid from thread, not lwp.
9738 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
9739 Pass &all_threads to find_inferior, not &all_lwps.
9740 (send_sigstop): Fetch lwpid from thread, not lwp.
9741 (send_sigstop_callback): Update, "entry" parameter is a
9742 struct thread_info * now.
9743 (suspend_and_send_sigstop_callback): Ditto.
9744 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
9745 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
9746 struct thread_info * now.
9747 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
9748 from thread, lwp.
9749 (lwp_running): Update, "entry" parameter is a
9750 struct thread_info * now.
9751 (stop_all_lwps): Fetch ptid from thread.
9752 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
9753 (linux_resume_one_lwp): Fetch lwpid from thread.
9754 (linux_set_resume_request): Update, "entry" parameter is a
9755 struct thread_info * now. Fetch pid, lwpid from thread.
9756 (resume_status_pending_p): Update, "entry" parameter is a
9757 struct thread_info * now.
9758 (need_step_over_p): Ditto. Fetch lwpid from thread.
9759 (start_step_over): Fetch lwpid from thread.
9760 (linux_resume_one_thread): Update, "entry" parameter is a
9761 struct thread_info * now. Fetch lwpid from thread.
9762 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
9763 (proceed_one_lwp): Update, "entry" parameter is a
9764 struct thread_info * now. Fetch lwpid from thread.
9765 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
9766 struct thread_info * now.
9767 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
9768 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
9769 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
9770 directly.
9771 (regsets_store_inferior_registers): Ditto.
9772 (fetch_register, store_register): Ditto.
9773 (linux_read_memory, linux_write_memory): Ditto.
9774 (linux_request_interrupt): Ditto.
9775 (linux_read_auxv): Ditto.
9776 (linux_xfer_siginfo): Ditto.
9777 (linux_qxfer_spu): Ditto.
9778 (linux_qxfer_libraries_svr4): Ditto.
9779 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
9780 moved to inferiors.h.
9781 (get_lwp): Delete.
9782 (get_thread_lwp): Update.
9783 (struct lwp_info): Delete member "entry". Simplify comment for
9784 member "thread".
9785 (all_lwps): Delete.
9786 * linux-mips-low.c (mips_read_description): Fetch lwpid from
9787 current_inferior directly.
9788 (update_watch_registers_callback): Update, "entry" parameter is a
9789 struct thread_info * now. Fetch pid from thread.
9790 (mips_linux_prepare_to_resume): Fetch ptid from thread.
9791 (mips_insert_point): Fetch lwpid from current_inferior.
9792 Pass &all_threads to find_inferior, not &all_lwps.
9793 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
9794 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
9795 directly.
9796 (mips_stopped_data_address): Ditto.
9797 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
9798 directly.
9799 * linux-tile-low.c (tile_arch_setup): Ditto.
9800 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
9801 (update_debug_registers_callback): Update, "entry" parameter is a
9802 struct thread_info * now. Fetch pid from thread.
9803 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
9804 Pass &all_threads to find_inferior, not &all_lwps.
9805 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
9806 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
9807 Pass &all_threads to find_inferior, not &all_lwps.
9808 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
9809 (i386_dr_low_get_status): Ditto.
9810 (x86_linux_prepare_to_resume): Fetch ptid from thread.
9811 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
9812 (x86_linux_read_description): Ditto.
9813 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
9814
3b8361aa
DE
98152014-02-20 Doug Evans <dje@google.com>
9816
9817 * inferiors.c (get_first_inferior): Fix buglet.
9818
f7667f0d
DE
98192014-02-19 Doug Evans <dje@google.com>
9820
9821 * gdbthread.h (add_thread): Change result type to struct thread_info *.
9822 * inferiors.c (add_thread): Change result type to struct thread_info *.
9823 All callers updated.
9824 (add_lwp): Call add_thread here instead of in callers.
9825 All callers updated.
9826 * linux-low.h (get_lwp_thread): Rewrite.
9827 (struct lwp_info): New member "thread".
9828
b3312d80
DE
98292014-02-19 Doug Evans <dje@google.com>
9830
9831 * linux-low.c (add_lwp): Change result to struct lwp_info *.
9832 All callers updated.
9833
ecc6f45c
DE
98342014-02-19 Doug Evans <dje@google.com>
9835
9836 * inferiors.c (add_thread): Fix whitespace.
9837
649ebbca
DE
98382014-02-19 Doug Evans <dje@google.com>
9839
9840 * dll.c (clear_dlls): Replace accessing list implemention details
9841 with API function.
9842 * gdbthread.h (get_first_thread): Declare.
9843 * inferiors.c (for_each_inferior_with_data): New function.
9844 (get_first_thread): New function.
9845 (find_thread_ptid): Simplify.
9846 (get_first_inferior): New function.
9847 (clear_list): Delete.
9848 (one_inferior_p): New function.
9849 (clear_inferior_list): New function.
9850 (clear_inferiors): Update.
9851 * inferiors.h (for_each_inferior_with_data): Declare.
9852 (clear_inferior_list): Declare.
9853 (one_inferior_p): Declare.
9854 (get_first_inferior): Declare.
9855 * linux-low.c (linux_wait_for_event): Replace accessing list
9856 implemention details with API function.
9857 * server.c (target_running): Ditto.
9858 (accumulate_file_name_length): New function.
9859 (emit_dll_description): New function.
9860 (handle_qxfer_libraries): Replace accessing list implemention
9861 details with API function.
9862 (handle_qxfer_threads_worker): New function.
9863 (handle_qxfer_threads_proper): Replace accessing list implemention
9864 details with API function.
9865 (handle_query): Ditto.
9866 (visit_actioned_threads_callback_ftype): New typedef.
9867 (visit_actioned_threads_data): New struct.
9868 (visit_actioned_threads): Rewrite to be find_inferior callback.
9869 (resume): Call find_inferior.
9870 (handle_status): Replace accessing list implemention
9871 details with API function.
9872 (process_serial_event): Replace accessing list implemention details
9873 with API function.
9874 * target.c (set_desired_inferior): Replace accessing list implemention
9875 details with API function.
9876 * tracepoint.c (same_process_p): New function.
9877 (gdb_agent_about_to_close): Replace accessing list implemention
9878 details with API function.
9879 * win32-low.c (child_delete_thread): Replace accessing list
9880 implemention details with API function.
9881 (match_dll_by_basename): New function.
9882 (dll_is_loaded_by_basename): New function.
9883 (win32_ensure_ntdll_loaded): Replace accessing list implemention
9884 details call to dll_is_loaded_by_basename.
9885
80894984
DE
98862014-02-19 Doug Evans <dje@google.com>
9887
9888 * dll.h (struct dll_info): Add comment.
9889 * gdbthread.h (struct thread_info): Add comment.
9890 (current_ptid): Simplify.
9891 * inferiors.c (add_process): Update.
9892 (remove_process): Update.
9893 * inferiors.h (struct process_info): Rename member "head" to "entry".
9894 * linux-low.c (delete_lwp): Update.
9895 (add_lwp): Update.
9896 (last_thread_of_process_p): Update.
9897 (kill_one_lwp_callback, linux_kill): Update.
9898 (status_pending_p_callback): Update.
9899 (wait_for_sigstop): Update. Simplify read of ptid.
9900 (start_step_over): Update.
9901 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
9902 (get_lwp_thread): Update.
9903 (struct lwp_info): Rename member "head" to "entry".
9904 * regcache.h (inferior_list_entry): Delete.
9905 * server.c (kill_inferior_callback): Update.
9906 (detach_or_kill_inferior_callback): Update.
9907 (print_started_pid): Update.
9908 (print_attached_pid): Update.
9909 (process_serial_event): Simplify read of ptid.
9910 * thread-db.c (thread_db_create_event): Update.
9911 (thread_db_get_tls_address): Update.
9912 * win32-low.c (current_inferior_ptid): Simplify.
9913
46917d26
TT
99142014-02-19 Tom Tromey <tromey@redhat.com>
9915
9916 * target.h (struct target_ops) <supports_btrace>: Add target_ops
9917 argument.
9918 (target_supports_btrace): Update.
9919
0759a81e
YQ
99202014-02-14 Yao Qi <yao@codesourcery.com>
9921
9922 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
9923 (rsp-low-ipa.o): New target.
9924
a7191e8b
TT
99252014-02-12 Tom Tromey <tromey@redhat.com>
9926
9927 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
9928 convert_ascii_to_int.
9929 * regcache.c (registers_to_string): Likewise.
9930 * remote-utils.c (decode_M_packet): Likewise.
9931 * server.c (process_serial_event): Likewise.
9932
ff0e980e
TT
99332014-02-12 Tom Tromey <tromey@redhat.com>
9934
9935 * server.c (handle_query, handle_v_run): Use hex2bin, not
9936 unhexify.
9937 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
9938
e9371aff
TT
99392014-02-12 Tom Tromey <tromey@redhat.com>
9940
9941 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
9942 convert_int_to_ascii.
9943 * regcache.c (registers_to_string, collect_register_as_string):
9944 Likewise.
9945 * remote-utils.c (look_up_one_symbol, relocate_instruction):
9946 Likewise.
9947 * server.c (process_serial_event): Likewise.
9948 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
9949 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
9950
971dc0b8
TT
99512014-02-12 Tom Tromey <tromey@redhat.com>
9952
9953 * remote-utils.c (look_up_one_symbol, monitor_output): Use
9954 bin2hex, not hexify.
9955 * tracepoint.c (cmd_qtstatus): Likewise.
9956
0a822afb
TT
99572014-02-12 Tom Tromey <tromey@redhat.com>
9958
9959 * remote-utils.c (monitor_output): Pass explicit length to
9960 hexify.
9961
9c3d6531
TT
99622014-02-12 Tom Tromey <tromey@redhat.com>
9963
9964 * tracepoint.c: Include rsp-low.h.
9965 * server.c: Include rsp-low.h.
9966 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
9967 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
9968 declare.
9969 * remote-utils.c: Include rsp-low.h.
9970 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
9971 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
9972 (convert_int_to_ascii, convert_ascii_to_int): Move to
9973 common/rsp-low.c.
9974 * regcache.c: Include rsp-low.h.
9975 * ax.c: Include rsp-low.h.
9976 * Makefile.in (SFILES): Add common/rsp-low.c.
9977 (OBS): Add rsp-low.o.
9978 (rsp-low.o): New target.
9979
01fd3ea5
TT
99802014-02-12 Tom Tromey <tromey@redhat.com>
9981
9982 * utils.h (pulongest, plongest, phex_nz): Don't declare.
9983 Include print-utils.h.
9984 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
9985 (plongest, thirty_two, phex_nz): Remove.
9986 * Makefile.in (SFILES): Add common/print-utils.c.
9987 (OBS): Add print-utils.o.
9988 (print-utils-ipa.o): New target.
9989 (print-utils.o): New target.
9990 (IPA_OBJS): Add print-utils-ipa.o.
9991
e99dc820
TT
99922014-02-06 Tom Tromey <tromey@redhat.com>
9993
9994 * Makefile.in (SFILES): Fix indentation.
9995
ee1e2d4f
DE
99962014-02-05 Doug Evans <dje@google.com>
9997
9998 * linux-low.c (linux_wait_for_event): Improve comment.
9999 (linux_wait_1): Keep current_inferior in sync with event_child.
10000
f5a02773
DE
100012014-01-22 Doug Evans <dje@google.com>
10002
10003 * gdbthread.h (gdb_id_to_thread): Delete, unused.
10004
87ce2a04
DE
100052014-01-22 Doug Evans <dje@google.com>
10006
10007 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
10008 * configure: Regenerate.
10009 * config.in: Regenerate.
10010 * Makefile.in (SFILES): Add debug.c.
10011 (OBS): Add debug.o.
10012 * debug.c: New file.
10013 * debug.h: New file.
10014 * linux-aarch64-low.c (*): Update all debugging printfs to use
10015 debug_printf instead of fprintf.
10016 * linux-arm-low.c (*): Ditto.
10017 * linux-cris-low.c (*): Ditto.
10018 * linux-crisv32-low.c (*): Ditto.
10019 * linux-m32r-low.c (*): Ditto.
10020 * linux-sparc-low.c (*): Ditto.
10021 * linux-x86.c (*): Ditto.
10022 * linux-low.c (*): Ditto.
10023 (linux_wait_1): Add calls to debug_enter, debug_exit.
10024 (linux_wait): Remove redundant debugging printf.
10025 (stop_all_lwps): Add calls to debug_enter, debug_exit.
10026 (linux_resume, unstop_all_lwps): Ditto.
10027 * mem-break.c (*): Update all debugging printfs to use
10028 debug_printf instead of fprintf.
10029 * remote-utils.c (*): Ditto.
10030 * thread-db.c (*): Ditto.
10031 * server.c #include <ctype.h>, "gdb_vecs.h".
10032 (debug_threads): Moved to debug.c.
10033 (*): Update all debugging printfs to use debug_printf instead of
10034 fprintf.
10035 (start_inferior): Replace call to fflush with call to debug_flush.
10036 (monitor_show_help): Mention set debug-format.
10037 (parse_debug_format_options): New function.
10038 (handle_monitor_command): Handle "monitor set debug-format".
10039 (gdbserver_usage): Mention --debug-format.
10040 (main): Parse --debug-format.
10041 * server.h (debug_threads): Declaration moved to debug.h.
10042 #include "debug.h".
10043 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
10044 trace_debug_1 that uses debug_printf.
10045 (tracepoint_look_up_symbols): Update all debugging printfs to use
10046 debug_printf instead of fprintf.
10047
e671835b
BS
100482014-01-20 Baruch Siach <baruch@tkos.co.il>
10049
10050 * linux-xtensa-low.c: Include asm/ptrace.h instead of
10051 sys/ptrace.h.
10052
b5737fa9
PA
100532014-01-17 Pedro Alves <palves@redhat.com>
10054
ea38d2a9 10055 PR build/16445
c7faa97a
PA
10056 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
10057 defined after including gdb_proc_service.h.
b5737fa9 10058
40ed484e
DE
100592014-01-16 Doug Evans <dje@google.com>
10060
10061 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
10062 (match_dll): Use it.
10063
969c39fb
MM
100642014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10065
10066 * target.h (target_ops) <read_btrace>: Change parameters and
10067 return type to allow error reporting.
10068 * server.c (handle_qxfer_btrace): Support delta reads. Pass
10069 trace reading errors on.
10070 * linux-low.c (linux_low_read_btrace): Pass trace reading
10071 errors on.
10072 (linux_low_disable_btrace): New.
10073
ab7f45ba
DE
100742014-01-15 Doug Evans <dje@google.com>
10075
10076 * inferiors.c (thread_id_to_gdb_id): Delete.
10077 * inferiors.h (thread_id_to_gdb_id): Delete.
10078
66af0f44
EZ
100792014-01-13 Eli Zaretskii <eliz@gnu.org>
10080
10081 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
10082 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
10083 versions.
10084
9939e131
PA
100852014-01-08 Pedro Alves <palves@redhat.com>
10086
10087 * server.c (handle_status): Don't discard previous queued stop
10088 replies or thread's pending status here.
10089 (main) <disconnection>: Do it here instead.
10090
b7ea362b
PA
100912014-01-08 Pedro Alves <palves@redhat.com>
10092
10093 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
10094 * server.c (visit_actioned_threads, handle_pending_status): New
10095 function.
10096 (handle_v_cont): Factor out parts to ...
10097 (resume): ... this new function. If in all-stop, and a thread
10098 being resumed has a pending status, report it without actually
10099 resuming.
10100 (myresume): Adjust to use the new 'resume' function.
10101 (clear_pending_status_callback, set_pending_status_callback)
10102 (find_status_pending_thread_callback): New functions.
10103 (handle_status): Handle the case of multiple threads having
10104 interesting statuses to report. Report threads' real last signal
10105 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
10106 with an interesting thread to report the status for, instead of
10107 always reporting the status of the first thread.
10108
28498c42
JB
101092014-01-01 Joel Brobecker <brobecker@adacore.com>
10110
10111 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
10112 * gdbreplay.c (gdbreplay_version): Likewise.
10113
f45c82da
YZ
101142013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
10115
10116 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
10117 iov.iov_len with the real length in use.
10118
379a5e2d
JB
101192013-12-13 Joel Brobecker <brobecker@adacore.com>
10120
10121 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
10122 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
10123 for all targets that use win32-low.c.
10124 * win32-low.c (win32_ensure_ntdll_loaded): New function.
10125 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
10126
4210d83e
PA
101272013-12-13 Pedro Alves <palves@redhat.com>
10128
10129 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
10130 if equal to TARGET_WAITKIND_LOADED.
10131 * win32-low.c (cached_status): New static global.
10132 (win32_wait): Add declaration.
10133 (do_initial_child_stuff): Flush all initial pending debug events
10134 up to the initial breakpoint.
10135 (win32_wait): If CACHED_STATUS was set, return that instead
10136 of doing a real wait. Remove the code resuming the execution
10137 of the inferior after receiving a TARGET_WAITKIND_LOADED event
10138 during the initial phase. Also remove the code changing
10139 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
10140 TARGET_WAITKIND_STOPPED.
10141
e7f0d979
YQ
101422013-12-11 Yao Qi <yao@codesourcery.com>
10143
10144 * notif.c (handle_notif_ack): Return 0 if no notification
10145 matches.
10146
ebcf782c
DE
101472013-11-20 Doug Evans <dje@google.com>
10148
10149 * linux-low.c (linux_set_resume_request): Fix comment.
10150
20ad9378
DE
101512013-11-20 Doug Evans <dje@google.com>
10152
10153 * linux-low.c (resume_status_pending_p): Tweak comment.
10154
a196ebeb
WT
101552013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
10156
10157 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
10158 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
10159 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
10160 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
10161 (srv_amd64_regobj): Add amd64-mpx.o.
10162 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
10163 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
10164 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
10165 * i387-fp.c (num_pl_bnd_register) Added constant.
10166 (num_pl_bnd_cfg_registers) Added constant.
10167 (struct i387_xsave) Added reserved area and MPX fields.
10168 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
10169 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
10170 function.
10171 (tdesc_i386_mpx_linux): Add MPX amd64 target.
10172 (init_registers_amd64_mpx_linux): Declare new function.
10173 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
10174 (x86_64_regmap): Add MPX registers.
10175 (x86_linux_read_description): Add MPX case.
10176 (initialize_low_arch): Initialize MPX targets.
10177
0080a2f6
TT
101782013-11-18 Tom Tromey <tromey@redhat.com>
10179
10180 * configure: Rebuild.
10181 * configure.ac: Don't check for stdlib.h.
10182 * gdbreplay.c: Unconditionally include stdlib.h.
10183
2978b111
TT
101842013-11-18 Tom Tromey <tromey@redhat.com>
10185
10186 * config.in: Rebuild.
10187 * configure: Rebuild.
10188 * configure.ac: Don't use AC_HEADER_DIRENT.
10189
a3d08894
TT
101902013-11-18 Tom Tromey <tromey@redhat.com>
10191
10192 * server.h: Don't check HAVE_STRING_H.
10193 * gdbreplay.c: Don't check HAVE_STRING_H.
10194 * configure: Rebuild.
10195
0a5dd17d
TT
101962013-11-18 Tom Tromey <tromey@redhat.com>
10197
10198 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
10199 LIBGNU.
10200
1bd2f0ba
TT
102012013-11-08 Tom Tromey <tromey@redhat.com>
10202
10203 * configure, config.in: Rebuild.
10204 * configure.ac: Remove unused configury.
10205
3266f10b
TT
102062013-11-08 Tom Tromey <tromey@redhat.com>
10207
10208 * acinclude.m4: Include common.m4, codeset.m4.
10209 * configure, config.in: Rebuild.
10210 * configure.ac: Use GDB_AC_COMMON.
10211
6682d959
AA
102122013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
10213
10214 * linux-s390-low.c (HWCAP_S390_TE): New define.
10215 (s390_arch_setup): Consider the TE field in the HWCAP for
10216 determining 'have_regset_tdb'.
10217
fd0a4d76
SDJ
102182013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
10219
10220 PR gdb/16014
10221 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
10222 call to sizeof.
10223
1a3d890b
PA
102242013-10-02 Pedro Alves <palves@redhat.com>
10225
10226 * server.c (process_serial_event): Don't output "GDBserver
10227 exiting" if GDB is connected through stdio.
10228 * target.c (mywait): Likewise, be silent if GDB is connected
10229 through stdio.
10230
97ad4581
JB
102312013-10-01 Joel Brobecker <brobecker@adacore.com>
10232
10233 * lynx-low.c (lynx_add_threads_after_attach): New function.
10234 (lynx_attach): Remove call to add_thread. Add call to
10235 lynx_add_threads_after_attach instead.
10236
5b4e221c
MF
102372013-09-28 Mike Frysinger <vapier@gentoo.org>
10238
10239 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
10240 * config.in, configure: Regenerated.
10241
ee47b2f8
YQ
102422013-09-18 Yao Qi <yao@codesourcery.com>
10243
10244 PR server/15959
10245 * server.c (start_inferior): Clear 'resume_info'.
10246
d6707650 102472013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 10248
d6707650
JW
10249 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
10250 for each register.
10251
9243dd0e 102522013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 10253
9243dd0e
JW
10254 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
10255 linux-tile-low.o to srv_tgtobj.
10256
c623a6ef
WN
102572013-09-16 Will Newton <will.newton@linaro.org>
10258
10259 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
10260 out regs.
10261
fb71d39e
PA
102622013-09-06 Pedro Alves <palves@redhat.com>
10263
10264 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
10265 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
10266 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
10267 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
10268 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
10269 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
10270
8e7e9910
PA
102712013-09-06 Pedro Alves <palves@redhat.com>
10272
10273 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
10274 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
10275
7c3a12ca
PA
102762013-09-06 Pedro Alves <palves@redhat.com>
10277
10278 * linux-amd64-ipa.c: Include tracepoint.h.
10279 * linux-i386-ipa.c: Include tracepoint.h.
10280
8eb3d7b6
RW
102812013-09-06 Ricard Wanderlof <ricardw@axis.com>
10282
10283 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
10284 (ps_get_thread_area): New function.
10285
eddddb9d
RW
102862013-09-06 Ricard Wanderlof <ricardw@axis.com>
10287
10288 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
10289 (initialize_low_arch): Call init_registers_crisv32 rather than
10290 init_register_crisv32.
10291
533b0600
PA
102922013-09-05 Pedro Alves <palves@redhat.com>
10293
10294 * server.h (handle_vFile, hostio_last_error_from_errno): Move
10295 to ...
10296 * hostio.h: ... this new file.
10297 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
10298 win32-low.c: Include hostio.h.
10299
0ce3d3b5
PA
103002013-09-05 Pedro Alves <palves@redhat.com>
10301
10302 * server.h (gdb_client_data, handler_func, callback_handler_func)
10303 (delete_file_handler, add_file_handler, append_callback_event)
10304 (delete_callback_event, start_event_loop, initialize_event_loop):
10305 Move to event-loop.h and include it.
10306 * event-loop.h: New file.
10307
799cdc37
PA
103082013-09-05 Pedro Alves <palves@redhat.com>
10309
10310 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
10311 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
10312 (loaded_dll, unloaded_dll): Move to ...
10313 * dll.h: ... this new file.
10314 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
10315
6a6bbd9d
PA
103162013-09-05 Pedro Alves <palves@redhat.com>
10317
10318 * server.h (current_process, get_thread_process, all_processes)
10319 (add_inferior_to_list, for_each_inferior, current_inferior)
10320 (remove_inferior, add_process, remove_process, find_process_pid)
10321 (have_started_inferiors_p, have_attached_inferiors_p)
10322 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
10323 (clear_inferiors, find_inferior, find_inferior_id)
10324 (inferior_target_data, set_inferior_target_data)
10325 (inferior_regcache_data, set_inferior_regcache_data): Move to
10326 inferiors.h, and include it.
10327 * inferiors.h: New file.
10328
f699aaba
PA
103292013-09-05 Pedro Alves <palves@redhat.com>
10330
10331 * server.h (struct emit_ops, current_insn_ptr, emit_error):
10332 Move ...
72f4393d 10333 * ax.h: ... here.
f699aaba 10334
c144c7a0
PA
103352013-09-05 Pedro Alves <palves@redhat.com>
10336
10337 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
10338 tracepoint.h.
10339 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
10340 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
10341 (handle_tracepoint_general_set, handle_tracepoint_query)
10342 (tracepoint_finished_step, tracepoint_was_hit)
10343 (release_while_stepping_state_list, current_traceframe)
10344 (in_readonly_region, traceframe_read_mem)
10345 (fetch_traceframe_registers, traceframe_read_sdata)
10346 (traceframe_read_info, struct fast_tpoint_collect_status)
10347 (fast_tracepoint_collecting, force_unlock_trace_buffer)
10348 (handle_tracepoit_bkpts, initialize_low_tracepoint)
10349 (supply_fast_tracepoint_registers)
10350 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
10351 (ipa_tdesc, claim_trampoline_space)
10352 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
10353 (agent_mem_read, agent_get_trace_state_variable_value)
10354 (agent_set_trace_state_variable_value, agent_tsv_read)
10355 (agent_mem_read_string, get_raw_reg_func_addr)
10356 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
10357 * tracepoint.h: ... this new file.
10358
ff42e6ab
PA
103592013-09-05 Pedro Alves <palves@redhat.com>
10360
10361 * server.h (perror_with_name, error, fatal, warning, paddress)
10362 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
10363 include it.
10364 * utils.h: New file.
10365
541af0f4
PA
103662013-09-05 Pedro Alves <palves@redhat.com>
10367
10368 * server.h (remote_debug, noack_mode, transport_is_reliable)
10369 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
10370 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
10371 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
10372 (write_enn, initialize_async_io, enable_async_io)
10373 (disable_async_io, check_remote_input_interrupt_request)
10374 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
10375 (dead_thread_notify, prepare_resume_reply)
10376 (decode_address_to_semicolon, decode_address, decode_m_packet)
10377 (decode_M_packet, decode_X_packet, decode_xfer_write)
10378 (decode_search_memory_packet, unhexify, hexify)
10379 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
10380 (look_up_one_symbol, relocate_instruction)
10381 (monitor_output): Move to remote-utils.h, and include it.
10382 * remote-utils.h: New file.
10383
eebdf26b
PA
103842013-09-05 Pedro Alves <palves@redhat.com>
10385
10386 * server.h (_): Delete.
10387
3aafd2ff
PA
103882013-09-02 Pedro Alves <palves@redhat.com>
10389
10390 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
10391 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
10392 allocated.
10393 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
10394
cee83bcb
PM
103952013-09-02 Pierre Muller <muller@sourceware.org>
10396
10397 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
10398 or WriteProcessMemory complete successfully and handle
10399 ERROR_PARTIAL_COPY error.
10400
9a13b2fa
PA
104012013-09-02 Pedro Alves <palves@redhat.com>
10402
10403 * server.c (gdb_read_memory): Return -1 on traceframe memory read
10404 error instead of EIO.
10405
602e3198
JK
104062013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10407
10408 PR server/15604
10409 * linux-low.c: Include filestuff.h.
10410 (linux_create_inferior) <pid == 0>: Call close_most_fds.
10411 * lynx-low.c: Include filestuff.h.
10412 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
10413 * server.c: Include filestuff.h.
10414 (main): Call notice_open_fds.
10415 * spu-low.c: Include filestuff.h.
10416 (spu_create_inferior) <pid == 0>: Call close_most_fds.
10417
96d7229d
LM
104182013-08-22 Luis Machado <lgustavo@codesourcery.com>
10419
10420 * Makefile.in: Explain why ../target and ../nat are not
10421 listed as include file search paths.
10422 (linux-waitpid.o): New object file rule.
10423 * configure.srv (srv_native_linux_obj): New variable.
10424 Replace all occurrences of linux native object files with
10425 $srv_native_linux_obj.
10426 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
10427 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
10428 (linux_enable_event_reporting): Remove declaration.
10429 (my_waitpid): Moved to common/linux-waitpid.c.
10430 (linux_wait_for_event): Pass ptid when calling
10431 linux_enable_event_reporting.
10432 (linux_supports_tracefork_flag): Remove.
10433 (linux_enable_event_reporting): Likewise.
10434 (linux_tracefork_grandchild): Remove.
10435 (STACK_SIZE): Moved to common/linux-ptrace.c.
10436 (linux_tracefork_child): Remove.
10437 (linux_test_for_tracefork): Remove.
10438 (linux_look_up_symbols): Call linux_supports_traceclone.
10439 (initialize_low): Remove call to linux_test_for_tracefork.
10440 * linux-low.h (PTRACE_TYPE_ARG3): Move to
10441 common/linux-ptrace.h.
10442 (PTRACE_TYPE_ARG4): Likewise.
10443 Include linux-ptrace.h.
10444
32940073
PA
104452013-08-21 Pedro Alves <palves@redhat.com>
10446
10447 * config.in: Renegerate.
10448
33b60d58 104492013-08-19 Luis Machado <lgustavo@codesourcery.com>
a261b8f5 10450
33b60d58
LM
10451 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
10452 (SFILES): Remove $(srcdir)/common/target-common.c and
10453 add $(srcdir)/target/waitstatus.c.
10454 (OBS): Remove target-common.o and add waitstatus.o.
10455 (server_h): Remove $(srcdir)/../common/target-common.h and
10456 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
10457 and $(srcdir)/../target/waitstatus.h.
10458 (target-common.o): Remove.
10459 (waitstatus.o): New target object file.
10460 * target.h: Do not include target-common.h and
10461 include target/resume.h, target/wait.h and
10462 target/waitstatus.h.
10463
b8e1b30e
LM
104642013-08-13 Luis Machado <lgustavo@codesourcery.com>
10465
10466 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
10467 to PTRACE_TYPE_ARG3.
10468 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
10469 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
10470 PTRACE_TYPE_ARG4.
10471 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
10472 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
10473
7a60ad40
YQ
104742013-07-27 Jie Zhang <jie@codesourcery.com>
10475 Daniel Jacobowitz <dan@codesourcery.com>
10476 Yao Qi <yao@codesourcery.com>
10477
10478 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
10479 (mips-linux-watch.o): New rule.
10480 (mips_linux_watch_h): New variable.
10481 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
10482 srv_tgtobj.
10483 * linux-mips-low.c: Include mips-linux-watch.h.
10484 (struct arch_process_info, struct arch_lwp_info): New.
10485 (update_watch_registers_callback): New function.
10486 (mips_linux_new_process, mips_linux_new_thread) New functions.
10487 (mips_linux_prepare_to_resume, mips_insert_point): New
10488 functions.
10489 (mips_remove_point, mips_stopped_by_watchpoint): New
10490 functions.
10491 (rsp_bp_type_to_target_hw_bp_type): New function.
10492 (mips_stopped_data_address): New function.
10493 (the_low_target): Add watchpoint support functions.
10494
de6f69ad
YQ
104952013-07-27 Yao Qi <yao@codesourcery.com>
10496
10497 * i386-low.c: Include break-common.h.
10498 (enum target_hw_bp_type): Remove.
10499
3360c0bf
LM
105002013-07-24 Luis Machado <lgustavo@codesourcery.com>
10501
10502 * Makefile.in (SFILES): /common/target-common.c.
10503 (OBS): Add target-common.o.
10504 (server_h): Add $(srcdir)/../common/target-common.h.
10505 (target-common.o): New target.
10506 * server.c (queue_stop_reply_callback): Free
10507 status string after use.
10508 * target.c (target_waitstatus_to_string): Remove.
10509 * target.h: Include target-common.h.
10510 (resume_kind): Likewise.
10511 (target_waitkind): Likewise.
10512 (target_waitstatus): Likewise.
10513 (TARGET_WNOHANG): Likewise.
10514
bd885420
YQ
105152013-07-04 Yao Qi <yao@codesourcery.com>
10516
10517 * Makefile.in (host_alias): Use @host_noncanonical@.
10518 (target_alias): Use @target_noncanonical@.
10519 * configure.ac: Use ACX_NONCANONICAL_TARGET and
10520 ACX_NONCANONICAL_HOST.
10521 * configure: Regenerated.
10522
10523 Revert:
10524 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
10525
10526 * configure.ac (version_host, version_target): Set and AC_SUBST them.
10527 * configure: Rebuild.
10528 * Makefile.in (version_host, version_target): Get from configure.
10529 (version.c): Use $(version_host) and $(version_target).
10530
17ef446e
PA
105312013-07-03 Pedro Alves <palves@redhat.com>
10532
10533 * Makefile.in (config.status): Depend on development.sh.
10534 * acinclude.m4: Include libmcheck.m4.
10535 * configure: Regenerate.
10536
7a9a7487
MG
105372013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
10538
10539 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
10540 attribute inside the parentheses.
10541 (winapi_DebugSetProcessKillOnExit): Ditto.
10542 (winapi_DebugBreakProcess): Ditto.
10543 (winapi_GenerateConsoleCtrlEvent): Ditto.
a261b8f5 10544
49b64de6
MG
105452013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
10546
10547 * notif.h (notif_event): Add a dummy member to avoid compiler
10548 errors.
10549
d5749ee7
PA
105502013-07-01 Pedro Alves <palves@redhat.com>
10551
10552 * hostio.c (HOSTIO_PATH_MAX): Define.
10553 (require_filename, handle_open, handle_unlink, handle_readlink):
10554 Use it.
10555
d8d2a3ee
PA
105562013-07-01 Pedro Alves <palves@redhat.com>
10557
10558 * server.h: Include "pathmax.h".
10559 * linux-low.c: Don't include sys/param.h.
10560 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
10561 MAXPATHLEN.
10562 * win32-low.c: Don't include sys/param.h.
10563 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
10564
bc7dea8d
PA
105652013-07-01 Pedro Alves <palves@redhat.com>
10566
10567 * event-loop.c: Don't check HAVE_UNISTD_H before including
10568 <unistd.h>.
10569 * gdbreplay.c: Likewise.
10570 * remote-utils.c: Likewise.
10571 * server.c: Likewise.
10572 * configure.ac: Don't check for unistd.h.
10573 * configure: Regenerate.
10574
d6c2da54
TT
105752013-06-28 Tom Tromey <tromey@redhat.com>
10576
10577 * Makefile.in (version.c): Use version.in, not
10578 common/version.in.
10579
257b6bec
MG
105802013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
10581
10582 * configure.ac (version_host, version_target): Set and AC_SUBST them.
10583 * configure: Rebuild.
10584 * Makefile.in (version_host, version_target): Get from configure.
10585 (version.c): Use $(version_host) and $(version_target).
10586
86ebe149
DK
105872013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
10588
10589 Fix trace-status to output user name without trailing colon.
10590 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
10591
f30aa5af
DK
105922013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
10593
10594 Fix trace-status to output proper start-time and stop-time.
10595 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
10596 output start time and stop time in hex as gdb expects.
10597
28a93511
YQ
105982013-06-26 Pedro Alves <pedro@codesourcery.com>
10599
10600 * tracepoint.c (build_traceframe_info_xml): Output trace state
10601 variables present in the trace buffer.
10602
01208463
TT
106032013-06-24 Tom Tromey <tromey@redhat.com>
10604
10605 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
10606 create-version.sh.
10607 (version.o): Remove.
10608 * gdbreplay.c: Include version.h.
10609 (version, host_name): Don't declare.
10610 * server.h: Include version.h.
10611 (version, host_name): Don't declare.
10612
760256f9
PA
106132013-06-12 Pedro Alves <palves@redhat.com>
10614
10615 * linux-x86-low.c (linux_is_elf64): Delete global.
10616 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
10617 with local linux_pid_exe_is_elf_64_file use.
10618
030031ee
PA
106192013-06-11 Pedro Alves <palves@redhat.com>
10620
10621 * linux-low.c (regset_disabled, disable_regset): New functions.
10622 (regsets_fetch_inferior_registers)
10623 (regsets_store_inferior_registers): Use them.
10624 (initialize_regsets_info); Don't allocate the disabled_regsets
10625 array here.
10626 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
10627 comment.
10628
5da6eb0a
PA
106292013-06-11 Pedro Alves <palves@redhat.com>
10630
10631 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
10632 xmalloc.
10633
7e5aaa09
PA
106342013-06-11 Pedro Alves <palves@redhat.com>
10635
10636 * linux-x86-low.c (initialize_low_arch): Call
10637 init_registers_x32_avx_linux.
10638
d878444c
JK
106392013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10640
10641 Fix compatibility with Android Bionic.
10642 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
10643 it is not empty.
10644
3aee8918
PA
106452013-06-07 Pedro Alves <palves@redhat.com>
10646
5f2b57b5 10647 PR server/14823
3aee8918
PA
10648 * Makefile.in (OBS): Add tdesc.o.
10649 (IPA_OBJS): Add tdesc-ipa.o.
10650 (tdesc-ipa.o): New rule.
10651 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
10652 interface.
10653 * linux-low.c (new_inferior): Delete.
10654 (disabled_regsets, num_regsets): Delete.
10655 (linux_add_process): Adjust to set the new per-process
10656 new_inferior flag.
10657 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
10658 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
10659 was a stop. When calling arch_setup, switch the current inferior
10660 to the thread that got an event.
10661 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
10662 (regsets_fetch_inferior_registers)
10663 (regsets_store_inferior_registers): New regsets_info parameter.
10664 Adjust to use it.
10665 (linux_register_in_regsets): New regs_info parameter. Adjust to
10666 use it.
10667 (register_addr, fetch_register, store_register): New usrregs_info
10668 parameter. Adjust to use it.
10669 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
10670 parameter regs_info. Adjust to use it.
10671 (linux_fetch_registers): Get the current inferior's regs_info, and
10672 adjust to use it.
10673 (linux_store_registers): Ditto.
10674 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
10675 (initialize_low): Don't initialize the target_regsets here. Call
10676 initialize_low_arch.
10677 * linux-low.h (target_regsets): Delete declaration.
10678 (struct regsets_info): New.
10679 (struct usrregs_info): New.
10680 (struct regs_info): New.
10681 (struct process_info_private) <new_inferior>: New field.
10682 (struct linux_target_ops): Delete the num_regs, regmap, and
10683 regset_bitmap fields. New field regs_info.
10684 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
10685 * i387-fp.c (num_xmm_registers): Delete.
10686 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
10687 calls to new interface.
10688 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
10689 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
10690 Infer the number of xmm registers from the regcache's target
10691 description.
10692 * i387-fp.h (num_xmm_registers): Delete.
10693 * inferiors.c (add_thread): Don't install the thread's regcache
10694 here.
10695 * proc-service.c (gregset_info): Fetch the current inferior's
10696 regs_info. Adjust to use it.
10697 * regcache.c: Include tdesc.h.
10698 (register_bytes, reg_defs, num_registers)
10699 (gdbserver_expedite_regs): Delete.
10700 (get_thread_regcache): If the thread doesn't have a regcache yet,
10701 create one, instead of aborting gdbserver.
10702 (regcache_invalidate_one): Rename to ...
10703 (regcache_invalidate_thread): ... this.
10704 (regcache_invalidate_one): New.
10705 (regcache_invalidate): Only invalidate registers of the current
10706 process.
10707 (init_register_cache): Add target_desc parameter, and use it.
10708 (new_register_cache): Ditto. Assert the target description has a
10709 non zero registers_size.
10710 (regcache_cpy): Add assertions. Adjust.
10711 (realloc_register_cache, set_register_cache): Delete.
10712 (registers_to_string, registers_from_string): Adjust.
10713 (find_register_by_name, find_regno, find_register_by_number)
10714 (register_cache_size): Add target_desc parameter, and use it.
10715 (free_register_cache_thread, free_register_cache_thread_one)
10716 (regcache_release, register_cache_size): New.
10717 (register_size): Add target_desc parameter, and use it.
10718 (register_data, supply_register, supply_register_zeroed)
10719 (supply_regblock, supply_register_by_name, collect_register)
10720 (collect_register_as_string, collect_register_by_name): Adjust.
10721 * regcache.h (struct target_desc): Forward declare.
10722 (struct regcache) <tdesc>: New field.
10723 (init_register_cache, new_register_cache): Add target_desc
10724 parameter.
10725 (regcache_invalidate_thread): Declare.
10726 (regcache_invalidate_one): Delete declaration.
10727 (regcache_release): Declare.
10728 (find_register_by_number, register_cache_size, register_size)
10729 (find_regno): Add target_desc parameter.
10730 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
10731 declarations.
10732 * remote-utils.c: Include tdesc.h.
10733 (outreg, prepare_resume_reply): Adjust.
10734 * server.c: Include tdesc.h.
10735 (gdbserver_xmltarget): Delete declaration.
10736 (get_features_xml, process_serial_event): Adjust.
10737 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
10738 declare.
10739 (struct process_info) <tdesc>: New field.
10740 (ipa_tdesc): Declare.
10741 * tdesc.c: New file.
10742 * tdesc.h: New file.
10743 * tracepoint.c: Include tdesc.h.
10744 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
10745 (get_context_regcache): Adjust to pass ipa_tdesc down.
10746 (do_action_at_tracepoint): Adjust to get the register cache size
10747 from the context regcache's description.
10748 (traceframe_walk_blocks): Adjust to get the register cache size
10749 from the current trace frame's description.
10750 (traceframe_get_pc): Adjust to get current trace frame's
10751 description and pass it down.
10752 (gdb_collect): Adjust to get the register cache size from the
10753 IPA's description.
10754 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
10755 (gdbserver_xmltarget): Delete.
10756 (initialize_low_tracepoint): Set the ipa's target description.
10757 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
10758 (initialize_low_tracepoint): Set the ipa's target description.
10759 * linux-x86-low.c: Include tdesc.h.
10760 [__x86_64__] (is_64bit_tdesc): New.
10761 (ps_get_thread_area, x86_get_thread_area): Use it.
10762 (i386_cannot_store_register): Rename to ...
10763 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
10764 (i386_cannot_fetch_register): Rename to ...
10765 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
10766 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
10767 to new interface.
10768 (target_regsets): Rename to ...
10769 (x86_regsets): ... this.
10770 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
10771 interface.
10772 (x86_siginfo_fixup): Use is_64bit_tdesc.
10773 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
10774 (tdesc_x32_avx_linux, tdesc_x32_linux)
10775 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
10776 Declare.
10777 (x86_linux_update_xmltarget): Delete.
10778 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
10779 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
10780 (AMD64_LINUX_USER64_CS): New.
10781 (x86_linux_read_description): New, based on
10782 x86_linux_update_xmltarget.
10783 (same_process_callback): New.
10784 (x86_arch_setup_process_callback): New.
10785 (x86_linux_update_xmltarget): New.
10786 (x86_regsets_info): New.
10787 (amd64_linux_regs_info): New.
10788 (i386_linux_usrregs_info): New.
10789 (i386_linux_regs_info): New.
10790 (x86_linux_regs_info): New.
10791 (x86_arch_setup): Reimplement.
10792 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
10793 (x86_emit_ops): Ditto.
10794 (the_low_target): Adjust. Install x86_linux_regs_info,
10795 x86_cannot_fetch_register, and x86_cannot_store_register.
10796 (initialize_low_arch): New.
10797 * linux-ia64-low.c (tdesc_ia64): Declare.
10798 (ia64_fetch_register): Adjust.
10799 (ia64_usrregs_info, regs_info): New globals.
10800 (ia64_regs_info): New function.
10801 (the_low_target): Adjust.
10802 (initialize_low_arch): New function.
10803 * linux-sparc-low.c (tdesc_sparc64): Declare.
10804 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
10805 Adjust.
10806 (sparc_arch_setup): New function.
10807 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
10808 (the_low_target): Adjust.
10809 (initialize_low_arch): New function.
10810 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
10811 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
10812 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
10813 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
10814 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
10815 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
10816 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
10817 (tdesc_powerpc_isa205_vsx64l): Declare.
10818 (ppc_cannot_store_register, ppc_collect_ptrace_register)
10819 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
10820 (ppc_set_pc, ppc_get_hwcap): Adjust.
10821 (ppc_usrregs_info): Forward declare.
10822 (!__powerpc64__) ppc_regmap_adjusted: New global.
10823 (ppc_arch_setup): Adjust to the current process'es target
10824 description.
10825 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
10826 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
10827 (ppc_store_evrregset): Adjust.
10828 (target_regsets): Rename to ...
10829 (ppc_regsets): ... this, and make static.
10830 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
10831 (ppc_regs_info): New function.
10832 (the_low_target): Adjust.
10833 (initialize_low_arch): New function.
10834 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
10835 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
10836 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
10837 (tdesc_s390x_linux64v2): Declare.
10838 (s390_collect_ptrace_register, s390_supply_ptrace_register)
10839 (s390_fill_gregset, s390_store_last_break): Adjust.
10840 (target_regsets): Rename to ...
10841 (s390_regsets): ... this, and make static.
10842 (s390_get_pc, s390_set_pc): Adjust.
10843 (s390_get_hwcap): New target_desc parameter, and use it.
10844 [__s390x__] (have_hwcap_s390_high_gprs): New global.
10845 (s390_arch_setup): Adjust to set the current process'es target
10846 description. Don't adjust the regmap.
10847 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
10848 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
10849 (regs_info_3264): New globals.
10850 (s390_regs_info): New function.
10851 (the_low_target): Adjust.
10852 (initialize_low_arch): New function.
10853 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
10854 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
10855 [__mips64] (init_registers_mips_linux)
10856 (init_registers_mips_dsp_linux): Delete defines.
10857 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
10858 (have_dsp): New global.
10859 (mips_read_description): New, based on mips_arch_setup.
10860 (mips_arch_setup): Reimplement.
10861 (get_usrregs_info): New function.
10862 (mips_cannot_fetch_register, mips_cannot_store_register)
10863 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
10864 (mips_fill_fpregset, mips_store_fpregset): Adjust.
10865 (target_regsets): Rename to ...
10866 (mips_regsets): ... this, and make static.
10867 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
10868 (dsp_regs_info, regs_info): New globals.
10869 (mips_regs_info): New function.
10870 (the_low_target): Adjust.
10871 (initialize_low_arch): New function.
10872 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
10873 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
10874 Declare.
10875 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
10876 (arm_read_description): New, with bits factored from
10877 arm_arch_setup.
10878 (arm_arch_setup): Reimplement.
10879 (target_regsets): Rename to ...
10880 (arm_regsets): ... this, and make static.
10881 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
10882 (arm_regs_info): New function.
10883 (the_low_target): Adjust.
10884 (initialize_low_arch): New function.
10885 * linux-m68k-low.c (tdesc_m68k): Declare.
10886 (target_regsets): Rename to ...
10887 (m68k_regsets): ... this, and make static.
10888 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
10889 (m68k_regs_info): New function.
10890 (m68k_arch_setup): New function.
10891 (the_low_target): Adjust.
10892 (initialize_low_arch): New function.
10893 * linux-sh-low.c (tdesc_sharch): Declare.
10894 (target_regsets): Rename to ...
10895 (sh_regsets): ... this, and make static.
10896 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
10897 (sh_regs_info, sh_arch_setup): New functions.
10898 (the_low_target): Adjust.
10899 (initialize_low_arch): New function.
10900 * linux-bfin-low.c (tdesc_bfin): Declare.
10901 (bfin_arch_setup): New function.
10902 (bfin_usrregs_info, regs_info): New globals.
10903 (bfin_regs_info): New function.
10904 (the_low_target): Adjust.
10905 (initialize_low_arch): New function.
10906 * linux-cris-low.c (tdesc_cris): Declare.
10907 (cris_arch_setup): New function.
10908 (cris_usrregs_info, regs_info): New globals.
10909 (cris_regs_info): New function.
10910 (the_low_target): Adjust.
10911 (initialize_low_arch): New function.
10912 * linux-cris-low.c (tdesc_crisv32): Declare.
10913 (cris_arch_setup): New function.
10914 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
10915 (cris_regs_info): New function.
10916 (the_low_target): Adjust.
10917 (initialize_low_arch): New function.
10918 * linux-m32r-low.c (tdesc_m32r): Declare.
10919 (m32r_arch_setup): New function.
10920 (m32r_usrregs_info, regs_info): New globals.
10921 (m32r_regs_info): Adjust.
10922 (initialize_low_arch): New function.
10923 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
10924 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
10925 (tic6x_usrregs_info): Forward declare.
10926 (tic6x_read_description): New function, based on ...
10927 (tic6x_arch_setup): ... this. Reimplement.
10928 (target_regsets): Rename to ...
10929 (tic6x_regsets): ... this, and make static.
10930 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
10931 (tic6x_regs_info): New function.
10932 (the_low_target): Adjust.
10933 (initialize_low_arch): New function.
10934 * linux-xtensa-low.c (tdesc_xtensa): Declare.
10935 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
10936 (target_regsets): Rename to ...
10937 (xtensa_regsets): ... this, and make static.
10938 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
10939 globals.
10940 (xtensa_arch_setup, xtensa_regs_info): New functions.
10941 (the_low_target): Adjust.
10942 (initialize_low_arch): New function.
10943 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
10944 (nios2_arch_setup): Set the current process'es tdesc.
10945 (target_regsets): Rename to ...
10946 (nios2_regsets): ... this.
10947 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
10948 (nios2_regs_info): New function.
10949 (the_low_target): Adjust.
10950 (initialize_low_arch): New function.
a261b8f5
PA
10951 * linux-aarch64-low.c (tdesc_aarch64): Declare.
10952 (aarch64_arch_setup): Set the current process'es tdesc.
10953 (target_regsets): Rename to ...
10954 (aarch64_regsets): ... this.
10955 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
10956 (aarch64_regs_info): New function.
10957 (the_low_target): Adjust.
10958 (initialize_low_arch): New function.
3aee8918
PA
10959 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
10960 globals.
10961 (target_regsets): Rename to ...
10962 (tile_regsets): ... this.
10963 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
10964 (tile_regs_info): New function.
10965 (tile_arch_setup): Set the current process'es tdesc.
10966 (the_low_target): Adjust.
10967 (initialize_low_arch): New function.
10968 * spu-low.c (tdesc_spu): Declare.
10969 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
10970 * win32-arm-low.c (tdesc_arm): Declare.
10971 (arm_arch_setup): New function.
10972 (the_low_target): Install arm_arch_setup instead of
10973 init_registers_arm.
10974 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
10975 (init_windows_x86): Rename to ...
10976 (i386_arch_setup): ... this. Set `win32_tdesc'.
10977 (the_low_target): Adjust.
10978 * win32-low.c (win32_tdesc): New global.
10979 (child_add_thread): Don't create the thread cache here.
10980 (do_initial_child_stuff): Set the new process'es tdesc.
10981 * win32-low.h (struct target_desc): Forward declare.
10982 (win32_tdesc): Declare.
10983 * lynx-i386-low.c (tdesc_i386): Declare global.
10984 (lynx_i386_arch_setup): Set `lynx_tdesc'.
10985 * lynx-low.c (lynx_tdesc): New global.
10986 (lynx_add_process): Set the new process'es tdesc.
10987 * lynx-low.h (struct target_desc): Forward declare.
10988 (lynx_tdesc): Declare global.
10989 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
10990 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
10991 * nto-low.c (nto_tdesc): New global.
10992 (do_attach): Set the new process'es tdesc.
10993 * nto-low.h (struct target_desc): Forward declare.
10994 (nto_tdesc): Declare.
10995 * nto-x86-low.c (tdesc_i386): Declare.
10996 (nto_x86_arch_setup): Set `nto_tdesc'.
10997
b1fbec62
GB
109982013-06-04 Gary Benson <gbenson@redhat.com>
10999
11000 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
11001 to qSupported response when appropriate.
11002 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
11003 with nonzero-length annex.
11004 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
11005 arguments supplied in annex.
11006
d1ec4ce7
DE
110072013-05-31 Doug Evans <dje@google.com>
11008
ac44adcb 11009 PR server/15594
d1ec4ce7
DE
11010 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
11011 64 bits in 64-cross-32 environment.
11012
9b25f2d3
PA
110132013-05-28 Pedro Alves <palves@redhat.com>
11014
11015 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
11016 (aarch64-without-fpu.c): Delete rule.
11017 * configure.srv (aarch64*-*-linux*): Remove references to
11018 aarch64-without-fpu.o and aarch64-without-fpu.xml.
11019 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
11020 declaration.
11021
6740dc9c
PA
110222013-05-24 Pedro Alves <palves@redhat.com>
11023
11024 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
11025 instead of strchr/decode_address. Error if the range isn't split
11026 with a ','. Don't assume there's be a ':' in the action.
11027
c2d6af84
PA
110282013-05-23 Yao Qi <yao@codesourcery.com>
11029 Pedro Alves <palves@redhat.com>
11030
11031 * linux-low.c (lwp_in_step_range): New function.
11032 (linux_wait_1): If the thread was range stepping and stopped
11033 outside the stepping range, report the stop to GDB. Otherwise,
11034 continue stepping. Add range stepping debug output.
11035 (linux_set_resume_request): Copy the step range from the resume
11036 request to the lwp.
11037 (linux_supports_range_stepping): New.
11038 (linux_target_ops) <supports_range_stepping>: Set to
11039 linux_supports_range_stepping.
11040 * linux-low.h (struct linux_target_ops)
11041 <supports_range_stepping>: New field.
11042 (struct lwp_info) <step_range_start, step_range_end>: New fields.
11043 * linux-x86-low.c (x86_supports_range_stepping): New.
11044 (the_low_target) <supports_range_stepping>: Set to
11045 x86_supports_range_stepping.
11046 * server.c (handle_v_cont): Handle 'r' action.
11047 (handle_v_requests): Append ";r" if the target supports range
11048 stepping.
11049 * target.h (struct thread_resume) <step_range_start,
11050 step_range_end>: New fields.
11051 (struct target_ops) <supports_range_stepping>:
11052 New field.
11053 (target_supports_range_stepping): New macro.
11054
58794e1a
JB
110552013-05-17 Joel Brobecker <brobecker@adacore.com>
11056
11057 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
11058 confusion in comment.
11059
d631c5a7
JB
110602013-05-17 Joel Brobecker <brobecker@adacore.com>
11061
11062 * lynx-low.c (struct process_info_private): New type.
11063 (lynx_add_process): New function.
11064 (lynx_create_inferior, lynx_attach): Replace calls to
11065 add_process by calls to lynx_add_process.
11066 (lynx_resume): If PTID is null, then try using
11067 current_process()->private->last_wait_event_ptid.
11068 Add comments.
11069 (lynx_clear_inferiors): Delete. The contents of that function
11070 has been inlined in lynx_mourn;
11071 (lynx_wait_1): Save the ptid in the process's private data.
11072 (lynx_mourn): Free the process' private data. Replace call
11073 to lynx_clear_inferiors by call to clear_inferiors.
11074
96f7a20f
YQ
110752013-05-17 Yao Qi <yao@codesourcery.com>
11076
11077 * i386-low.c (i386_length_and_rw_bits): Move the comment to
11078 the right place.
11079
db0dfaa0
LM
110802013-05-16 Luis Machado <lgustavo@codesourcery.com>
11081
11082 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
11083 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
11084 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
11085 PT_TEXT_END_ADDR guards. Update comments.
11086 (linux_target_op) <read_offsets>: Conditionally define to
11087 linux_read_offsets if the target is UCLIBC and if it defines
11088 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
11089
68f5f838
SL
110902013-05-06 Sandra Loosemore <sandra@codesourcery.com>
11091 Andrew Jenner <andrew@codesourcery.com>
11092
11093 * Makefile.in (SFILES): Add linux-nios2-low.c.
11094 (clean): Add action to delete nios2-linux.c.
11095 (nios2-linux.c): New rule.
11096 * configure.srv: Add nios2*-*-linux*.
11097 * linux-nios2-low.c: New.
11098
1ebff1fd
HAQ
110992013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
11100
11101 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
11102
f6150862
HZ
111032013-04-25 Hui Zhu <hui@codesourcery.com>
11104
11105 PR gdb/15186
f6150862
HZ
11106 * ax.c (ax_printf): Add fflush.
11107
614c279d
TT
111082013-04-22 Tom Tromey <tromey@redhat.com>
11109
11110 * Makefile.in (SFILES): Add filestuff.c.
11111 (OBS): Add filestuff.o.
11112 (filestuff.o): New target.
11113 * config.in, configure: Rebuild.
11114 * configure.ac: Check for fdwalk, pipe2.
11115
7d4e5717
PA
111162013-04-17 Pedro Alves <palves@redhat.com>
11117
11118 * configure.ac (USE_THREAD_DB): Delete variable.
11119 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
11120 Don't AC_SUBST USE_THREAD_DB.
11121 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
11122 * config.in, configure: Regenerate.
11123
d5c93e41
PA
111242013-04-16 Pedro Alves <palves@redhat.com>
11125
11126 * linux-low.h (struct lwp_info) <thread_known>: Move under
11127 the USE_THREAD_DB #ifdef.
11128
04f5fe89
PA
111292013-04-16 Pedro Alves <palves@redhat.com>
11130
11131 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
11132 (linux-low.o): Delete rule.
11133 * linux-low.h: Always include "gdb_thread_db.h" instead of
11134 conditionally including thread_db.h.
11135 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
11136 HAVE_THREAD_DB_H.
11137
480b27bf
JK
111382013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
11139
11140 * Makefile.in (install-only): Fix make install regression.
11141
43662968
JK
111422013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11143
11144 Convert man pages to texinfo, new gdbinit.5 texinfo page.
11145 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
11146 installation.
11147 * gdbserver.1: Remove.
11148
3e74e146
PA
111492013-03-22 Pedro Alves <palves@redhat.com>
11150
11151 * linux-low.c (handle_extended_wait): Don't call
11152 linux_enable_event_reporting.
11153
a8347a2a
TT
111542013-03-15 Tony Theodore <tonyt@logyst.com>
11155
11156 PR build/9098:
11157 * Makefile.in (SHELL): Use @SHELL@.
11158
eeb56fa7
SDJ
111592013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
11160
11161 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
11162 compiler warning.
11163
4fa7e2ff
JB
111642013-03-13 Joel Brobecker <brobecker@adacore.com>
11165
11166 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
11167 Remove extraneous NULL element.
11168
8ddb1965
YQ
111692013-03-13 Yao Qi <yao@codesourcery.com>
11170
11171 * tracepoint.c (traceframe_read_tsv): Look for the last matched
11172 'V' block in trace frame.
11173
9accd112
MM
111742013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11175
11176 * target.h (struct target_ops): Add btrace ops.
11177 (target_supports_btrace): New macro.
11178 (target_enable_btrace): New macro.
11179 (target_disable_btrace): New macro.
11180 (target_read_btrace): New macro.
11181 * gdbthread.h (struct thread_info): Add btrace field.
11182 * server.c: Include btrace-common.h.
11183 (handle_btrace_general_set): New function.
11184 (handle_btrace_enable): New function.
11185 (handle_btrace_disable): New function.
11186 (handle_general_set): Call handle_btrace_general_set.
11187 (handle_qxfer_btrace): New function.
11188 (struct qxfer qxfer_packets[]): Add btrace entry.
11189 * inferiors.c (remove_thread): Disable btrace.
11190 * linux-low: Include linux-btrace.h.
11191 (linux_low_enable_btrace): New function.
11192 (linux_low_read_btrace): New function.
11193 (linux_target_ops): Add btrace ops.
11194 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
11195 Add srv_linux_btrace=yes.
11196 (x86_64-*-linux*): Add linux-btrace.o.
11197 Add srv_linux_btrace=yes.
11198 * configure.ac: Define HAVE_LINUX_BTRACE.
11199 * config.in: Regenerated.
11200 * configure: Regenerated.
11201
5cc22e4c
MM
112022013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11203
11204 * server.c (handle_qxfer): Preserve error message if -3 is
11205 returned.
11206 (qxfer): Document the -3 return value.
11207
7c97f91e
MM
112082013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11209
11210 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
11211 (linux_btrace_h): New variable.
11212 (linux-btrace.o): New rule.
11213
be9a119c 112142013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
11215 Hafiz Abid Qadeer <abidh@codesourcery.com>
11216
11217 * tracepoint.c (trace_buffer_size): New global.
11218 (DEFAULT_TRACE_BUFFER_SIZE): New define.
11219 (init_trace_buffer): Change to one-argument function. Allocate
11220 trace buffer memory.
11221 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
11222 handle QTBuffer:size packet.
11223 (cmd_bigqtbuffer_size): New function.
11224 (initialize_tracepoint): Call init_trace_buffer with
11225 DEFAULT_TRACE_BUFFER_SIZE.
11226 * server.c (handle_query): Add QTBuffer:size in the
11227 supported packets.
11228
e64f7499
YQ
112292013-03-07 Yao Qi <yao@codesourcery.com>
11230
11231 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
11232 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
11233 of -1.
11234 (cmd_qtsp): Adjust condition. Do post increment.
11235 Set cur_action and cur_step_action back to 0.
11236
f0ae6fc3
PA
112372013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
11238
11239 PR server/15236
11240 * linux-low.c (linux_write_memory): Return early success if LEN is
11241 zero.
11242
b5b0b0af
CV
112432013-03-05 Corinna Vinschen <vinschen@redhat.de>
11244
334ad4a8 11245 * configure.srv: Add x86_64-*-cygwin* as target.
b5b0b0af 11246
589bc927
TT
112472013-02-28 Tom Tromey <tromey@redhat.com>
11248
11249 * configure.ac: Invoke AC_SYS_LARGEFILE.
11250 * configure, config.in: Rebuild.
11251
dfe07582
CV
112522013-02-28 Corinna Vinschen <vinschen@redhat.com>
11253
11254 * win32-low.c: Throughout, fix format strings and casts of
11255 printf-like functions to avoid type related warnings on all
11256 platforms.
11257 (get_child_debug_event): Print dwDebugEventCode as hex since
11258 that's how it's usually documented.
11259
736cd585
YQ
112602013-02-28 Yao Qi <yao@codesourcery.com>
11261
11262 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
11263 pulongest.
11264
e1f58301
JW
112652013-02-27 Jiong Wang <jiwang@tilera.com>
11266
11267 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
11268 (reg-tilegx32.c): New rule.
11269 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
11270 * linux-tile-low.c (tile_arch_setup): New function. Invoke
11271 different register info initializer according to elf class.
11272 (init_registers_tilgx32): New function. The tilegx32 register info
11273 initializer.
11274 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
11275 (tile_store_gregset): Likewise.
11276
d171ca78
YQ
112772013-02-27 Yao Qi <yao@codesourcery.com>
11278
11279 * server.c (process_point_options): Print debug message when
11280 debug_threads is true.
11281
282bbdf3
YQ
112822013-02-26 Yao Qi <yao@codesourcery.com>
11283
11284 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
11285
aca22551
PA
112862013-02-19 Pedro Alves <palves@redhat.com>
11287 Kai Tietz <ktietz@redhat.com>
11288
11289 PR gdb/15161
11290
11291 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
11292 instead of strtoul to extract address from packet.
11293 (process_serial_event) <'z'>: Likewise.
11294
4f3cee1c
YQ
112952013-02-18 Yao Qi <yao@codesourcery.com>
11296
11297 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
11298
8e1d55a3
PA
112992013-02-14 Pedro Alves <palves@redhat.com>
11300
11301 Plug memory leak.
11302
11303 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
11304 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
11305
458820da
PA
113062013-02-14 Pedro Alves <palves@redhat.com>
11307
11308 * tracepoint.c (cmd_qtdpsrc): Use savestring.
11309
baea0dae
PA
113102013-02-14 Pedro Alves <palves@redhat.com>
11311
11312 * tracepoint.c (save_string): Delete.
11313 (add_tracepoint_action): Use savestring instead of save_string.
11314
0b1afbb3
PA
113152013-02-12 Pedro Alves <palves@redhat.com>
11316
11317 * linux-xtensa-low.c: Ditto.
11318 * xtensa-xtregs.c: Ditto.
11319
8a4ac37e
PA
113202013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11321
11322 * thread-db.c (thread_db_get_tls_address): NULL pointer check
11323 thread_db.
11324
148de6bb
MS
113252013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
11326
11327 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
11328 aarch64_num_wp_regs and aarch64_num_bp_regs to
11329 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
11330
55fac6e0
MS
113312013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
11332
11333 * linux-aarch64-low.c (ps_get_thread_area): Replace
11334 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
11335
176eb98c
MS
113362013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11337 Marcus Shawcroft <marcus.shawcroft@arm.com>
11338 Nigel Stephens <nigel.stephens@arm.com>
11339 Yufeng Zhang <yufeng.zhang@arm.com>
11340
11341 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
11342 (aarch64.c, aarch64-without-fpu.c): New targets.
11343 * configure.srv (aarch64*-*-linux*): New.
11344 * linux-aarch64-low.c: New file.
11345
56f7af9c
MS
113462013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
11347
43aaf8b6 11348 * linux-low.c (handle_extended_wait, linux_create_inferior)
56f7af9c
MS
11349 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
11350 (dequeue_one_deferred_signal, linux_resume_one_thread)
11351 (fetch_register, linux_write_memory, linux_enable_event_reporting)
11352 (linux_tracefork_grandchild, linux_test_for_tracefork)
11353 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
11354 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
11355 where the argument is 0.
11356
60f662b0
YQ
113572013-01-25 Yao Qi <yao@codesourcery.com>
11358
11359 * event-loop.c: Include "queue.h".
11360 (gdb_event_p): New typedef.
11361 (struct gdb_event) <next_event>: Remove.
11362 (event_queue): Change to QUEUE(gdb_event_p).
11363 (async_queue_event): Remove.
11364 (gdb_event_xfree): New.
11365 (initialize_event_loop): New.
11366 (process_event): Use API from QUEUE.
11367 (wait_for_event): Likewise.
11368 * server.c (main): Call initialize_event_loop.
11369 * server.h (initialize_event_loop): Declare.
11370
5ae4861a
YQ
113712013-01-18 Yao Qi <yao@codesourcery.com>
11372
11373 * ax.h (struct eval_agent_expr_context): New.
11374 (gdb_eval_agent_expr): Update declaration.
11375 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
11376 TFRAME. Add new argument CTX.
11377 * server.h (struct eval_agent_expr_context): Declare.
11378 (agent_mem_read, agent_tsv_read): Update declaration.
11379 (agent_mem_read_string): Likewise.
11380 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
11381 (add_traceframe_block): Add new argument TPOINT.
11382 Increase TPOINT->traceframe_usage.
11383 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
11384 eval_tracepoint_agent_expr.
11385 (condition_true_at_tracepoint): Likewise.
11386 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
11387 (agent_mem_read_string, agent_tsv_read): Likewise.
11388
85e00e85
YQ
113892013-01-16 Yao Qi <yao@codesourcery.com>
11390
11391 * linux-low.c (linux_resume_one_lwp): Don't check
11392 'lwp->bp_reinsert != 0'.
11393
4039cf45
JB
113942013-01-07 Joel Brobecker <brobecker@adacore.com>
11395 Pedro Alves <palves@redhat.com>
11396
11397 * lynx-low.c (ptrace_request_to_str): Define a temporary
11398 macro and use it to simplify this function's implementation.
11399
9044dee2
JB
114002013-01-07 Joel Brobecker <brobecker@adacore.com>
11401
11402 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
11403 sets errno.
11404
e6352c8f
JB
114052013-01-07 Joel Brobecker <brobecker@adacore.com>
11406
11407 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
11408
50681a27
JB
114092013-01-07 Joel Brobecker <brobecker@adacore.com>
11410
11411 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
11412
3f6e77ef
JB
114132013-01-07 Joel Brobecker <brobecker@adacore.com>
11414
11415 * lynx-low.c (lynx_resume): Use the resume_info parameter
11416 to determine the ptid for the lynx_ptrace call, unless
11417 it is equal to minus_one_ptid, in which case we use the
11418 ptid of the current_inferior.
11419 (lynx_wait_1): After having received a thread create/exit
11420 event, resume the inferior's execution using the signaling
11421 thread's ptid, rather than the old ptid.
11422
7fda33ae
JB
114232013-01-07 Joel Brobecker <brobecker@adacore.com>
11424
11425 * lynx-low.c (lynx_resume): Delete variable ret.
11426
b9786c74
JB
114272013-01-01 Joel Brobecker <brobecker@adacore.com>
11428
11429 * gdbreplay.c (gdbreplay_version): Update copyright year.
11430 * server.c (gdbserver_version): Likewise.
11431
8b93d60f
JB
114322012-12-17 Joel Brobecker <brobecker@adacore.com>
11433
11434 * lynx-low.c (lynx_wait_1): Add debug trace before adding
11435 new thread.
11436
037335a7
JB
114372012-12-17 Joel Brobecker <brobecker@adacore.com>
11438
11439 * lynx-low.c (ptrace_request_to_str): Add handling for
11440 PTRACE_GETTRACESIG.
11441
52d4cbd8
JB
114422012-12-17 Joel Brobecker <brobecker@adacore.com>
11443
11444 * lynx-low.c (lynx_attach): Delete variable new_process.
11445
ab8f6ca9
JB
114462012-12-17 Joel Brobecker <brobecker@adacore.com>
11447
11448 * lynx-low.c (lynx_create_inferior): Delete variable
11449 new_process.
11450
78cbc024
JB
114512012-12-17 Joel Brobecker <brobecker@adacore.com>
11452
11453 * lynx-low.c (ptrace_request_to_str): Do not handle
11454 PTRACE_GETTHREADLIST if this macro does not exist.
11455
14a00470
YQ
114562012-12-15 Yao Qi <yao@codesourcery.com>
11457
11458 * Makefile.in (OBS): Add notif.o.
11459 * notif.c, notif.h: New.
11460 * server.c: Include "notif.h".
11461 (struct vstop_notif) <next>: Remove.
11462 <base>: New field.
11463 (queue_stop_reply): Update.
11464 (push_event, send_next_stop_reply): Remove.
11465 (discard_queued_stop_replies): Update.
11466 (notif_stop): New variable.
11467 (handle_v_stopped): Remove.
11468 (handle_v_requests): Don't call handle_v_stopped. Call
11469 handle_ack_notif instead.
11470 (queue_stop_reply_callback): Call notif_event_enque instead
11471 of queue_stop_reply.
11472 (handle_status): Don't call send_next_stop_reply, call
11473 notif_write_event instead.
11474 (kill_inferior_callback): Likewise.
11475 (detach_or_kill_inferior_callback): Likewise.
11476 (main): Call initialize_notif.
11477 (process_serial_event): Call QUEUE_is_empty.
11478 (handle_target_event): Call notif_push instead of push event.
11479 * server.h (push_event): Remove declaration.
11480
61c125b9
TT
114812012-12-10 Tom Tromey <tromey@redhat.com>
11482
11483 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
11484 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
11485 macros.
11486 (.c.o): Rewrite.
11487 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
11488 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
11489 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
11490 (amd64-linux-ipa.o, ax.o): Rewrite.
11491 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
11492 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
11493 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
11494 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
11495 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
11496 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
11497 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
11498 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
11499 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
11500 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
11501 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
11502 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
11503 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
11504 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
11505 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
11506 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
11507 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
11508 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
11509 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
11510 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
11511 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
11512 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
11513 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
11514 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
11515 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
11516 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
11517 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
11518 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
11519 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
11520 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
11521 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
11522 (reg-tilegx.o): Remove.
11523 (all_object_files): New macro.
11524 Include .deps files.
11525 * aclocal.m4, configure: Rebuild.
11526 * acinclude.m4: Include depstand.m4, lead-dot.m4.
11527 * configure.ac: Invoke ZW_CREATE_DEPDIR,
11528 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
11529
e90e9ad9
TT
115302012-12-05 Tom Tromey <tromey@redhat.com>
11531
11532 PR gdb/14917:
11533 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
11534
02d403bf 115352012-11-28 Markus Metzger <markus.t.metzger@intel.com>
945bf713
MM
11536
11537 * configure.ac: Check for linux/perf_event.h.
11538 * config.in: Regenerated.
11539 * configure: Regenerated.
11540
0270a750
PA
115412012-11-26 Maxime Villard <rustyBSD@gmx.fr>
11542
11543 * hostio.c (handle_readlink): Decrease buffer size
11544 parameter passed to readlink by one byte.
11545
8c29b58e
YQ
115462012-11-26 Yao Qi <yao@codesourcery.com>
11547
11548 * configure.ac (build_warnings): Append '-Wempty-body'.
11549 * configure: Regenerated.
11550 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
11551 body.
11552
8bdce1ff
PM
115532012-11-15 Pierre Muller <muller@sourceware.org>
11554
11555 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
11556 * config.in: Regenerate.
11557 * configure: Regenerate.
11558 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
11559 Use "gdb_wait.h" header instead of <sys/wait.h> header.
11560 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
11561 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
11562 header.
11563 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
11564 instead of <sys/wait.h> header.
11565 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
11566
02d403bf 115672012-11-13 Markus Metzger <markus.t.metzger@intel.com>
3ba6ad0f
MM
11568
11569 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
11570 (various make rules): Remove -DGDBSERVER
11571
fbd5db48
YQ
115722012-11-09 Yao Qi <yao@codesourcery.com>
11573
11574 * spu-low.c (current_ptid): Move it to ..
11575 * gdbthread.h: ... here. New.
11576 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
11577 * server.c (myresume, process_serial_event): Likewise.
11578 * thread-db.c (thread_db_find_new_threads): Likewise.
11579 * tracepoint.c (run_inferior_command): Likewise.
11580
b3dc46ff
AB
115812012-10-01 Andrew Burgess <aburgess@broadcom.com>
11582
11583 * server.c (handle_search_memory_1): Include access length in
11584 warning message.
11585
07c04788
HPN
115862012-09-05 Michael Brandt <michael.brandt@axis.com>
11587
11588 * linux-crisv32-low.c: Fix compile errors.
11589
918d227b
YQ
115902012-09-04 Yao Qi <yao@codesourcery.com>
11591
11592 * tracepoint.c (cmd_qtsv): Adjust debug message.
11593 Don't check CUR_TPOINT.
11594
18c1b81a
YQ
115952012-08-28 Yao Qi <yao@codesourcery.com>
11596
11597 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
11598 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
11599 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
11600 Remove declarations of xmalloc, xreallloc, xstrdup and
11601 freeargv.
11602 * Makefile.in (libiberty_h): New.
11603 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
11604 (linux-bfin-low.o): Append dependency 'libiberty.h'.
11605
dc82f37b
YQ
116062012-08-23 Yao Qi <yao@codesourcery.com>
11607
11608 * server.h: Remove declaration of 'xsnprintf'.
11609
406b1477
KS
116102012-08-22 Keith Seitz <keiths@redhat.com>
11611
11612 * server.h: Include build-gnulib-gbserver/config.h.
11613 * gdbreplay.c: Likewise.
11614
e6712ff1
DE
116152012-08-08 Doug Evans <dje@google.com>
11616
11617 * Makefile.in (SFILES): Add gdb_vecs.c.
11618 (OBS): Add gdb_vecs.o.
11619 (gdb_vecs_h, host_defs_h): New variables.
11620 (thread-db.o): Add $(gdb_vecs_h) dependency.
11621 (gdb_vecs.o): New rule.
11622 * thread-db.c: #include "gdb_vecs.h".
11623 (thread_db_load_search): Use a vector to iterate over path elements.
11624 Handle text appearing after "$pdir".
11625
11626 * configure.ac: Add check for strstr.
11627 * config.in: Regenerate.
11628 * configure: Regenerate.
11629
7c3270ae
UW
116302012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
11631
11632 * hostio.c (handle_pread): If pread fails, fall back to attempting
11633 lseek/read.
11634 (handle_pwrite): Likewise for pwrite.
11635
b62e2b27
UW
116362012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
11637
11638 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
11639 between unsupported TYPE and unimplementable ADDR/LEN combination.
11640 (arm_insert_point): Act on new return value.
11641
78a99e91
PA
116422012-07-31 Pedro Alves <palves@redhat.com>
11643
11644 * server.c (process_point_options): Only skip tokens if we find
11645 one that is unrecognized. Don't treat 'X' specially while
11646 skipping unrecognized tokens.
11647
fcf303ab
UW
116482012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
11649
11650 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
11651 to 4-byte-align HW breakpoint addresses for Thumb.
11652
7255706c
YQ
116532012-07-27 Yao Qi <yao@codesourcery.com>
11654
11655 PR remote/14161.
11656
11657 * server.h: Declare gdb_agent_about_to_close.
11658 * target.c (kill_inferior): Include "agent.h".
11659 New. Send command 'kill'.
11660 * target.h (kill_inferior): Removed macro.
11661 * tracepoint.c (gdb_agent_about_to_close): New.
11662 (gdb_agent_helper_thread): Handle command 'close'.
11663 Wait endlessly until the inferior stops.
11664 Install gdb_agent_remove_socket to atexit hook.
11665 (agent_socket_name): New static variable.
11666 (gdb_agent_socket_init): Replace local variable 'name' with
11667 'agent_socket_name'.
11668 (gdb_agent_remove_socket): New.
11669
5a3f286f
YQ
116702012-07-27 Yao Qi <yao@codesourcery.com>
11671
11672 * server.c (process_point_options): Stop at 'X' when parsing.
11673
961bd387
ME
116742012-07-19 Michael Eager <eager@eagercon.com>
11675
a261b8f5 11676 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
961bd387
ME
11677 to hw_execute.
11678 * linux-x86-low.c (x86_insert_point, x86_remove_point):
11679 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
11680 hardware breakpoint.
11681
aa7c7447
JK
116822012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
11683
11684 * gdbserver/linux-low.c (initialize_low): Call
11685 linux_ptrace_init_warnings.
11686
7f216e7c
DE
116872012-07-02 Doug Evans <dje@google.com>
11688
11689 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
11690 pointer to int.
11691
d3ce09f5
SS
116922012-07-02 Stan Shebs <stan@codesourcery.com>
11693
11694 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
11695 (ax.o): Add it to build rule.
11696 (ax-ipa.o): Ditto.
11697 (OBS): Add format.o.
11698 (IPA_OBS): Add format.o.
11699 * server.c (handle_query): Claim support for breakpoint commands.
11700 (process_point_options): Add command case.
11701 (process_serial_event): Leave running if there are printfs in
11702 effect.
11703 * mem-break.h (any_persistent_commands): Declare.
11704 (add_breakpoint_commands): Declare.
11705 (gdb_no_commands_at_breakpoint): Declare.
11706 (run_breakpoint_commands): Declare.
11707 * mem-break.c (struct point_command_list): New struct.
11708 (struct breakpoint): New field command_list.
11709 (any_persistent_commands): New function.
11710 (add_commands_to_breakpoint): New function.
11711 (add_breakpoint_commands): New function.
11712 (gdb_no_commands_at_breakpoint): New function.
11713 (run_breakpoint_commands): New function.
11714 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
11715 locally.
11716 * ax.c: Include format.h.
11717 (ax_printf): New function.
11718 (gdb_eval_agent_expr): Add printf opcode.
11719
2f8f6aed
YQ
117202012-06-13 Yao Qi <yao@codesourcery.com>
11721
11722 * server.c (start_inferior): Remove duplicated writes to fields
11723 'last_resume_kind' and 'last_status' of 'current_inferior'.
11724
0c9070b3
YQ
117252012-06-12 Yao Qi <yao@codesourcery.com>
11726 Pedro Alves <palves@redhat.com>
11727
11728 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
11729 comment.
11730 * server.c (handle_v_cont): Extend comment.
11731
c52daf70
YQ
117322012-06-11 Yao Qi <yao@codesourcery.com>
11733
11734 * linux-low.c (linux_attach): Add 'static'.
11735
d38bbb0a
YQ
117362012-06-06 Yao Qi <yao@codesourcery.com>
11737
11738 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
11739
89dc0afd
JK
117402012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11741
11742 Fix gcc -flto compilation warning.
11743 * server.c (main): Make variable multi_mode and attach volatile.
11744
75f62ce7
TJB
117452012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
11746
11747 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
11748 if the platform doesn't know about it.
11749
65f479b6
PA
117502012-05-30 Jeff Kenton <jkenton@tilera.com>
11751
11752 * Makefile.in (SFILES): Add linux-tile-low.c.
11753 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
11754 * configure.srv: Handle tilegx-*-linux*.
11755 * linux-tile-low.c: New file.
11756
0c5bf5a9
JK
117572012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
11758
11759 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
11760
a493e3e2
PA
117612012-05-24 Pedro Alves <palves@redhat.com>
11762
11763 PR gdb/7205
11764
43aaf8b6 11765 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 11766
2ea28649
PA
117672012-05-24 Pedro Alves <palves@redhat.com>
11768
11769 PR gdb/7205
11770
11771 Replace target_signal with gdb_signal throughout.
11772
8d409d16
MR
117732012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
11774
11775 * linux-low.c (linux_store_registers): Avoid the copying sequence
11776 when no data has been retrieved by ptrace.
11777
23512c01
MGD
117782012-05-22 Will Deacon <will.deacon@arm.com>
11779
11780 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
11781 Include asm/ptrace.h.
11782 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
11783 already defined.
11784
4934b29e
MR
117852012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
11786
11787 * linux-low.c (linux_store_registers): Don't re-retrieve data
11788 with ptrace that has already been obtained from /proc. Always
11789 copy any data retrieved with ptrace to the buffer supplied.
11790
bde24c0a
PA
117912012-05-11 Yao Qi <yao@codesourcery.com>
11792 Pedro Alves <palves@redhat.com>
11793
11794 * linux-low.c (enum stopping_threads_kind): New.
11795 (stopping_threads): Change type to `enum stopping_threads_kind'.
11796 (handle_extended_wait): If stopping and suspending threads, leave
11797 the new_lwp suspended too.
11798 (linux_wait_for_event): Adjust.
11799 (stop_all_lwps): Set `stopping_threads' to
11800 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
11801 whether we're suspending threads or just stopping them. Assert no
11802 recursion happens.
11803
623b6bdf
YQ
118042012-04-29 Yao Qi <yao@codesourcery.com>
11805
11806 * server.h: Move some code to ...
11807 * gdbthread.h: ... here. New.
11808 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
11809 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
11810 (nto-low.o, win32-low.o): Likewise.
11811 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
11812 * regcache.c, remote-utils.c, server.c: Likewise.
11813 * target.c, tracepoint.c, win32-low.c: Likewise.
11814
f15f9948
TJB
118152012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
11816
11817 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
11818 (PTRACE_ARG4_TYPE): Likewise.
11819 (PTRACE_XFER_TYPE): Likewise.
11820 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
11821 ptrace to PTRACE_ARG3_TYPE.
11822 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
11823 (PTRACE_ARG4_TYPE): Likewise.
11824 (PTRACE_XFER_TYPE): Likewise.
11825 (linux_detach_one_lwp): Cast fourth argument of
11826 ptrace to long then PTRACE_ARG4_TYPE.
11827 (regsets_fetch_inferior_registers): Cast third argument of
11828 ptrace to long then PTRACE_ARG3_TYPE.
11829 (regsets_store_inferior_registers): Likewise.
11830
38ea300a
PA
118312012-04-20 Pedro Alves <palves@redhat.com>
11832
11833 * configure: Regenerate.
11834
c971b7fa
PA
118352012-04-19 Pedro Alves <palves@redhat.com>
11836
43aaf8b6 11837 * Makefile.in (GNULIB_BUILDDIR): New.
c971b7fa 11838 (LIBGNU, INCGNU, GNULIB_H): Adjust.
43aaf8b6
PA
11839 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
11840 (all, install-only, uninstall, clean-info, all-lib, clean): No
11841 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
11842 (maintainer-clean realclean distclean): Use subdir_do.
11843 (subdir_do): New.
11844 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
c971b7fa 11845 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
43aaf8b6
PA
11846 * acinclude.m4: Include acx_configure_dir.m4.
11847 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
11848 calls. Call AC_PROG_RANLIB. Configure gnulib using
11849 ACX_CONFIGURE_DIR.
11850 (GNULIB): New.
11851 (GNULIB_STDINT_H): Adjust.
11852 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
11853 * gdbreplay.c: Include build-gnulib/config.h.
11854 * server.h: Likewise.
11855 * aclocal.m4: Regenerate.
11856 * config.in: Regenerate.
11857 * configure: Regenerate.
c971b7fa 11858
809277f8
PA
118592012-04-19 Pedro Alves <palves@redhat.com>
11860
11861 * Makefile.in (LIBGNU, INCGNU): Adjust.
11862 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
11863 (all, install-only, uninstall, clean-info, all-lib, clean)
11864 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
11865 * configure.ac: Adjust AC_OUTPUT output.
11866 * aclocal.m4: Regenerate.
11867 * configure: Regenerate.
11868
fd9bb8b8
PA
118692012-04-19 Pedro Alves <palves@redhat.com>
11870
11871 * Makefile.in (generated_files): New.
11872 (server_h): Remove the explicit dependency on config.h, and depend
11873 on $generated_files.
11874
1c298c66
PA
118752012-04-19 Pedro Alves <palves@redhat.com>
11876
11877 * Makefile.in (INCGNU): Add -Ignulib.
11878
57c4b50b
PA
118792012-04-19 Pedro Alves <palves@redhat.com>
11880
11881 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
11882 (INCGNU): ... this, and spell out -I here.
11883 (GNULIB_LIB): Rename to ...
11884 (LIBGNU): ... this.
11885 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
11886
1030e047
PA
118872012-04-19 Pedro Alves <palves@redhat.com>
11888
11889 * config.in: Regenerate.
11890
447d4319
PA
118912012-04-19 Pedro Alves <palves@redhat.com>
11892
11893 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
11894 * server.h (memmem): Remove declaration.
11895 * config.in: Regenerate.
11896 * configure: Regenerate.
11897
aad9eab9
YQ
118982012-04-19 Yao Qi <yao@codesourcery.com>
11899
11900 * Makefile.in (SFILES): Add common/vec.c.
11901 (OBS): Add vec.o.
11902 (vec.o): New rule.
11903
3e10640f
YQ
119042012-04-19 Yao Qi <yao@codesourcery.com>
11905
11906 * remote-utils.c (prepare_resume_reply): Replace with macro
11907 target_core_of_thread.
11908 * server.c (handle_qxfer_threads_proper): Likewise.
11909 * target.h (traget_core_of_thread): New macro.
11910
71622373
PA
119112012-04-18 Pedro Alves <palves@redhat.com>
11912
11913 * aclocal.m4: Regenerate.
11914 * configure: Regenerate.
11915
80d26939
YQ
119162012-04-16 Yao Qi <yao@codesourcery.com>
11917
11918 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
11919 duplicated on address.
11920
42476b70
YQ
119212012-04-16 Yao Qi <yao@codesourcery.com>
11922
11923 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
11924 (struct tracepoint_action_ops) <send>: New field.
11925 (m_tracepoint_action_send, r_tracepoint_action_send): New.
11926 (agent_expr_send, x_tracepoint_action_send): New.
11927 (l_tracepoint_action_send): New.
11928 (cmd_qtdp): Download and install tracepoint
11929 according to `use_agent'.
11930 (run_inferior_command): Add one more parameter `len'.
11931 Update callers.
11932 (tracepoint_send_agent): New.
11933 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
11934
7bc83639
YQ
119352012-04-16 Yao Qi <yao@codesourcery.com>
11936
11937 * tracepoint.c (download_tracepoints): Moved to ...
11938 (cmd_qtstart): ... here.
11939
5f18041e
YQ
119402012-04-14 Yao Qi <yao@codesourcery.com>
11941
11942 * tracepoint.c: Include inttypes.h.
11943 (struct collect_memory_action): Use sized types.
11944 (struct tracepoint): Likewise.
11945 (cmd_qtdp, stop_tracing): Update print specifiers.
11946 (cmd_qtp, response_tracepoint): Likewise.
11947 (collect_data_at_tracepoint): Likewise.
11948 (collect_data_at_step): Likewise.
11949
55a8c076
YQ
119502012-04-14 Yao Qi <yao@codesourcery.com>
11951
11952 Import gnulib module inttypes.
11953 * aclocal.m4, config.in, configure: Regenerated.
11954
dc750257
YQ
119552012-04-14 Yao Qi <yao@codesourcery.com>
11956
11957 * Makefile.in (maintainer-clean, realclean, distclean): Remove
11958 Makefile and config.status at last.
11959
0ab5faf9
YQ
119602012-04-13 Yao Qi <yao@codesourcery.com>
11961
11962 * tracepoint.c: Include stdint.h unconditionally.
11963
18f5fd81
TJB
119642012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
11965
11966 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
11967 on BFD_HAVE_SYS_PROCFS_TYPE.
11968 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
11969 * configure: Regenerate.
11970 * config.in: Likewise.
11971
4d47af5c
L
119722012-04-13 H.J. Lu <hongjiu.lu@intel.com>
11973
11974 * Makefile.in (clean): Also remove x32.c x32-linux.c
11975 x32-avx.c x32-avx-linux.c.
11976 (x32.o): New target.
11977 (x32.c): Likewise.
11978 (x32-linux.o): Likewise.
11979 (x32-linux.c): Likewise.
11980 (x32-avx.o): Likewise.
11981 (x32-avx.c): Likewise.
11982 (x32-avx-linux.o): Likewise.
11983 (x32-avx-linux.c): Likewise.
11984
11985 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
11986 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
11987 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
11988 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
11989 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
11990 i386/x32-avx-linux.xml.
11991
11992 * linux-x86-low.c (init_registers_x32_linux): New prototype.
11993 (init_registers_x32_avx_linux): Likwise.
11994 (x86_linux_update_xmltarget): Call init_registers_x32_linux
11995 or init_registers_x32_avx_linux if linux_is_elf64 is false.
11996
ecedbe58
PA
119972012-04-13 Pedro Alves <palves@redhat.com>
11998
11999 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
12000 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
12001 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
12002 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
12003 the sub-make.
12004
c92b5177
L
120052012-04-12 H.J. Lu <hongjiu.lu@intel.com>
12006
12007 * linux-x86-low.c (compat_x32_clock_t): New.
12008 (compat_x32_siginfo_t): Likewise.
12009 (compat_x32_siginfo_from_siginfo): Likewise.
12010 (siginfo_from_compat_x32_siginfo): Likewise.
12011 (linux_is_elf64): Likewise.
12012 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
12013 and siginfo_from_compat_x32_siginfo for x32.
12014 (x86_arch_setup): Set linux_is_elf64.
12015
214d508e
L
120162012-04-12 H.J. Lu <hongjiu.lu@intel.com>
12017
12018 PR gdb/13969
12019 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
12020 e_machine field.
12021 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
12022 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
12023 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
12024 compatible with process.
12025
c9a1864a
YQ
120262012-04-12 Yao Qi <yao@codesourcery.com>
12027
12028 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
12029 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
12030 (install-only, install-info, clean): Handle sub dir gnulib.
12031 (all-lib, am--refresh): New targets.
12032 (memmem.o): Remove target.
12033 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
12034 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
12035 (AC_REPLACE_FUNCS): Remove memmem.
12036 Invoke gl_INIT and AM_INIT_AUTOMAKE.
12037 (AC_OUTPUT): Generate Makefile in gnulib/.
12038 * aclocal.m4, config.in, configure: Regenerated.
12039
367ba2c2
MR
120402012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
12041
12042 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
12043
9d236627
PA
120442012-04-05 Pedro Alves <palves@redhat.com>
12045
12046 -Werror=strict-aliasing
12047
12048 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
12049 pointer.
12050
111217b3
PA
120512012-04-04 Pedro Alves <palves@redhat.com>
12052
12053 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
12054 (sparc_store_gregset_from_stack, sparc_store_gregset)
12055 (sparc_breakpoint_at): Fix formatting.
12056
8365dcf5
TJB
120572012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
12058
12059 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
12060 are available.
12061 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
12062 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
12063 * config.in: Regenerate.
12064 * configure: Likewise.
12065
689cc2ae
PA
120662012-03-29 Pedro Alves <palves@redhat.com>
12067
12068 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
12069 Correct ptrace arguments.
12070
c14dfd32
PA
120712012-03-28 Pedro Alves <palves@redhat.com>
12072
12073 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
12074 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
12075 (IA64_FR1_REGNUM): New defines.
12076 (ia64_fetch_register): New.
12077 (the_low_target): Install it.
12078 * linux-low.h (struct linux_target_ops) <fetch_register>: New
12079 field.
12080 * linux-low.c (linux_fetch_registers): Try the
12081 the_low_target.fetch_register hook first.
12082
12083 * linux-arm-low.c (the_low_target): Adjust.
12084 * linux-bfin-low.c (the_low_target): Adjust.
12085 * linux-cris-low.c (the_low_target): Adjust.
12086 * linux-crisv32-low.c (the_low_target): Adjust.
12087 * linux-m32r-low.c (the_low_target): Adjust.
12088 * linux-m68k-low.c (the_low_target): Adjust.
12089 * linux-mips-low.c (the_low_target): Adjust.
12090 * linux-ppc-low.c (the_low_target): Adjust.
12091 * linux-s390-low.c (the_low_target): Adjust.
12092 * linux-sh-low.c (the_low_target): Adjust.
12093 * linux-sparc-low.c (the_low_target): Adjust.
12094 * linux-tic6x-low.c (the_low_target): Adjust.
12095 * linux-x86-low.c (the_low_target): Adjust.
12096 * linux-xtensa-low.c (the_low_target): Adjust.
12097
63c88e13
PA
120982012-03-26 Pedro Alves <palves@redhat.com>
12099
12100 * server.c (handle_qxfer_libraries): Don't bail early if
12101 the_target->qxfer_libraries_svr4 is not NULL.
12102
fb723180
PA
121032012-03-26 Pedro Alves <palves@redhat.com>
12104
12105 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
12106
0afae3cf
PA
121072012-03-23 Pedro Alves <palves@redhat.com>
12108
12109 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
12110 "library-list-svr4" element's start tag when the the DSO list is
12111 empty.
12112
485f1ee4
PA
121132012-03-23 Pedro Alves <palves@redhat.com>
12114
12115 * linux-low.c (read_one_ptr): Read the inferior's pointer through
12116 a variable whose type size is the same as the inferior's pointer
12117 size.
12118
a5362b9a
TS
121192012-03-21 Thomas Schwinge <thomas@codesourcery.com>
12120
12121 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
12122 struct siginfo.
12123 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
12124 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
12125 * linux-low.h: Include <signal.h>.
12126 (struct siginfo): Remove forward declaration.
12127 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
12128 struct siginfo.
12129
d226c142
MF
121302012-03-21 Mike Frysinger <vapier@gentoo.org>
12131
12132 * .gitignore: Ignore more files.
12133
122f36ef
PA
121342012-03-19 Pedro Alves <palves@redhat.com>
12135 Jan Kratochvil <jan.kratochvil@redhat.com>
12136
12137 * server.c (cont_thread, general_thread): Add describing comments.
12138 (start_inferior): Clear `cont_thread'.
12139 (handle_v_cont): Don't set `cont_thread' if resuming all threads
12140 of a process.
12141
fc3e5175
YQ
121422012-03-15 Yao Qi <yao@codesourcery.com>
12143
12144 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
12145 handling to ...
12146 (cmd_qtdp): ... here.
12147
8d0d92cd
YQ
121482012-03-15 Yao Qi <yao@codesourcery.com>
12149
12150 * tracepoint.c (struct tracepoint_action_ops): New.
12151 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
12152 (m_tracepoint_action_download): New.
12153 (r_tracepoint_action_download): New.
12154 (x_tracepoint_action_download): New.
12155 (l_tracepoint_action_download): New.
12156 (add_tracepoint_action): Install `action->ops' according type.
12157 (download_tracepoint_1): Move code `download' function pointer
12158 of various tracepoint_action_ops.
12159
87b0bb13
JK
121602012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12161
12162 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
12163 linux_ptrace_attach_warnings.
12164
5f572dec
JK
121652012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12166
12167 * Makefile.in (linux-ptrace.o): New.
12168 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
12169 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
12170 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
12171 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
12172 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
12173 of these targets.
12174 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
12175
f4647387
YQ
121762012-03-08 Yao Qi <yao@codesourcery.com>
12177 Pedro Alves <palves@redhat.com>
12178
12179 Fix PR server/13392.
12180 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
12181 offset of JMP insn.
12182 * tracepoint.c (remove_tracepoint): New.
12183 (cmd_qtdp): Call remove_tracepoint when failed to install.
12184
9b224c5e
PA
121852012-03-07 Pedro Alves <palves@redhat.com>
12186
12187 * linux-low.c (get_detach_signal): New.
12188 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
12189 Pass on pending signals to PTRACE_DETACH. Check the result of the
12190 ptrace call.
12191 * server.c (program_signals, program_signals_p): New.
12192 (handle_general_set): Handle QProgramSignals.
12193 * server.h (program_signals, program_signals_p): Declare.
12194
e237a7e2
JK
121952012-03-05 Pedro Alves <palves@redhat.com>
12196 Jan Kratochvil <jan.kratochvil@redhat.com>
12197
12198 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
12199 New comment why.
12200
5808517f
YQ
122012012-03-03 Yao Qi <yao@codesourcery.com>
12202
12203 * tracepoint.c (tracepoint_look_up_symbols): Update call to
12204 agent_look_up_symbols.
12205
58b4daa5
YQ
122062012-03-03 Yao Qi <yao@codesourcery.com>
12207
12208 * Makefile.in (linux-low.o): Keep dependence on agent.h.
12209 (linux-x86-low.o): Likewise.
12210 * server.h: Remove in_process_agent_loaded.
12211 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
12212 common/agent.c.
12213 Update callers.
12214
8ffcbaaf
YQ
122152012-03-03 Yao Qi <yao@codesourcery.com>
12216
12217 * tracepoint.c (gdb_agent_capability): New global.
12218 (in_process_agent_loaded_ust): Renamed to
12219 `in_process_agent_supports_ust'.
12220 Update callers.
12221 (in_process_agent_supports_ust): Call agent_capability_check.
12222 (clear_installed_tracepoints): Assert that agent supports
12223 agent.
12224
d1feda86
YQ
122252012-03-03 Yao Qi <yao@codesourcery.com>
12226
12227 * linux-low.c (linux_supports_agent): New.
12228 (linux_target_ops): Initialize field `supports_agent' with
12229 linux_supports_agent.
12230 * target.h (struct target_ops) <supports_agent>: New.
12231 (target_supports_agent): New macro.
12232 * server.c (handle_general_set): Handle packet 'QAgent'.
12233 (handle_query): Send `QAgent+'.
12234 * Makefile.in (server.o): Depends on agent.h.
12235
2fa291ac
YQ
122362012-03-03 Yao Qi <yao@codesourcery.com>
12237
12238 * Makefile.in (OBS): Add agent.o.
12239 Add new rule for agent.o.
12240 Track dependence of tracepoint.c on agent.h.
12241 * tracepoint.c (run_inferior_command_1):
12242 (run_inferior_command): Call agent_run_command.
12243 (gdb_ust_connect_sync_socket): Deleted. Move it to
12244 common/agent.c.
12245 (resume_thread, stop_thread): Likewise.
12246 (gdb_ust_socket_init): Renamed to ...
12247 (gdb_agent_socket_init): ... New.
12248 (gdb_ust_thread): Renamed to ...
12249 (gdb_agent_helper_thread): ... New.
12250 (gdb_ust_init): Move some code to ...
12251 (gdb_agent_init): ... here. New.
12252 [HAVE_UST]: Call gdb_ust_init.
12253 (initialize_tracepoint_ftlib): Call gdb_agent_init.
12254 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
12255 * config.in, configure: Regenerated.
12256
05044653
PA
122572012-03-02 Pedro Alves <palves@redhat.com>
12258
12259 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
12260 * linux-low.c (struct simple_pid_list): New.
12261 (stopped_pids): New a struct simple_pid_list pointer.
12262 (add_to_pid_list, pull_pid_from_list): New.
12263 (handle_extended_wait): Don't assume the first signal new children
12264 report is SIGSTOP. Adjust call to pull_pid_from_list.
12265 (linux_wait_for_lwp): Adjust.
12266
8d00225b
YQ
122672012-03-02 Yao Qi <yao@codesourcery.com>
12268
12269 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
12270 debug log.
12271
19560ba5
YQ
122722012-03-02 Yao Qi <yao@codesourcery.com>
12273
12274 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
12275 `stop_pc' and `tpoint'. Update caller.
12276
1faeff08
MR
122772012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
12278
12279 * linux-low.h (linux_target_ops): Add regset_bitmap member.
12280 * linux-low.c (use_linux_regsets): New macro.
12281 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
12282 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
12283 (linux_register_in_regsets): New function.
12284 (usr_fetch_inferior_registers): Skip registers covered by
12285 regsets.
12286 (usr_store_inferior_registers): Likewise.
12287 (usr_fetch_inferior_registers): New macro.
12288 (usr_store_inferior_registers): Likewise.
12289 (linux_fetch_registers): Handle mixed regset/non-regset targets.
12290 (linux_store_registers): Likewise.
12291 * linux-mips-low.c (init_registers_mips_dsp_linux): New
12292 prototype.
12293 (init_registers_mips64_dsp_linux): Likewise.
12294 (init_registers_mips_linux): New macro.
12295 (init_registers_mips_dsp_linux): Likewise.
12296 (mips_dsp_num_regs): Likewise.
12297 (DSP_BASE, DSP_CONTROL): New fallback macros.
12298 (mips_base_regs): New macro.
12299 (mips_regmap): Use it. Fix the size.
12300 (mips_dsp_regmap): New variable.
12301 (mips_dsp_regset_bitmap): Likewise.
12302 (mips_arch_setup): New function.
12303 (mips_cannot_fetch_register): Use the_low_target.regmap rather
12304 than mips_regmap.
12305 (mips_cannot_store_register): Likewise.
12306 (the_low_target): Update .arch_setup, .num_regs and .regmap
12307 initializers. Add .regset_bitmap initializer.
12308 * linux-arm-low.c (the_low_target): Add .regset_bitmap
12309 initializer.
12310 * linux-bfin-low.c (the_low_target): Likewise.
12311 * linux-cris-low.c (the_low_target): Likewise.
12312 * linux-crisv32-low.c (the_low_target): Likewise.
12313 * linux-ia64-low.c (the_low_target): Likewise.
12314 * linux-m32r-low.c (the_low_target): Likewise.
12315 * linux-m68k-low.c (the_low_target): Likewise.
12316 * linux-ppc-low.c (the_low_target): Likewise.
12317 * linux-s390-low.c (the_low_target): Likewise.
12318 * linux-sh-low.c (the_low_target): Likewise.
12319 * linux-sparc-low.c (the_low_target): Likewise.
12320 * linux-tic6x-low.c (the_low_target): Likewise.
12321 * linux-x86-low.c (the_low_target): Likewise.
12322 * linux-xtensa-low.c (the_low_target): Likewise.
12323 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
12324 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
12325 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
12326 srv_xmlfiles.
12327 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
12328 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
12329
c03e6ccc
YQ
123302012-02-29 Yao Qi <yao@codesourcery.com>
12331 Pedro Alves <palves@redhat.com>
12332
12333 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
12334 `step_over_finished' is true.
12335
644cebc9
PA
123362012-02-27 Pedro Alves <palves@redhat.com>
12337
12338 * linux-low.c (pid_is_stopped): Delete, moved to common/.
12339 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
12340
c14d7ab2
PA
123412012-02-27 Pedro Alves <palves@redhat.com>
12342
12343 PR server/9684
12344 * linux-low.c (pid_is_stopped): New.
12345 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
12346
412c89dd
LM
123472012-02-25 Luis Machado <lgustavo@codesourcery.com>
12348
12349 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
12350 of conditions.
12351
b745defe
MR
123522012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
12353
12354 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
12355
9f3a5c85
LM
123562012-02-24 Luis Machado <lgustavo@codesourcery>
12357
12358 * server.c (handle_query): Advertise support for target-side
12359 breakpoint condition evaluation.
12360 (process_point_options): New function.
12361 (process_serial_event): When inserting a breakpoint, check for
12362 a target-side condition that should be evaluated.
12363
12364 * mem-break.c: Include regcache.h and ax.h.
12365 (point_cond_list_t): New data structure.
12366 (breakpoint) <cond_list>: New field.
12367 (find_gdb_breakpoint_at): Make non-static.
12368 (delete_gdb_breakpoint_at): Clear any target-side
12369 conditions.
12370 (clear_gdb_breakpoint_conditions): New function.
12371 (add_condition_to_breakpoint): Likewise.
12372 (add_breakpoint_condition): Likewise.
12373 (gdb_condition_true_at_breakpoint): Likewise.
12374 (gdb_breakpoint_here): Return result directly instead
12375 of going through a local variable.
12376
12377 * mem-break.h (find_gdb_breakpoint_at): New prototype.
12378 (clear_gdb_breakpoint_conditions): Likewise.
12379 (add_breakpoint_condition): Likewise.
12380 (gdb_condition_true_at_breakpoint): Likewise.
12381
12382 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
12383 (need_step_over_p): Take target-side breakpoint condition into
12384 consideration.
12385
5e1dc496
LM
123862012-02-24 Luis Machado <lgustavo@codesourcery>
12387
12388 * server.h: Include tracepoint.h.
12389 (agent_mem_read, agent_get_trace_state_variable_value,
12390 agent_set_trace_state_variable_value,
12391 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
12392 get_set_tsv_func_addr): New prototypes.
12393
12394 * ax.h: New include file.
12395 * ax.c: New source file.
12396
12397 * tracepoint.c: Include ax.h.
12398 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
12399 agent_expr, eval_result_type): Move to ax.h.
12400 (parse_agent_expr): Rename to ...
12401 (gdb_parse_agent_expr): ... this, make it non-static and move
12402 to ax.h.
12403 (unparse_agent_expr) Rename to ...
12404 (gdb_unparse_agent_expr): ... this, make it non-static and move
12405 to ax.h.
12406 (eval_agent_expr): Rename to ...
12407 (eval_tracepoint_agent_expr): ... this.
12408 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
12409 forward declarations.
12410 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
12411 (agent_get_trace_state_variable_value): New function.
12412 (agent_set_trace_state_variable_value): New function.
12413 (cmd_qtdp): Call gdb_parse_agent_expr (...).
12414 (response_tracepoint): Call gdb_unparse_agent_expr (...).
12415 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
12416 (condition_true_at_tracepoint): Likewise.
12417 (parse_agent_expr): Rename to ...
12418 (gdb_parse_agent_expr): ... this and move to ax.c.
12419 (unparse_agent_expr): Rename to ...
12420 (gdb_unparse_agent_expr): ... this and move to ax.c.
12421 (gdb_agent_op_name): Move to ax.c.
12422 (eval_agent_expr): Rename to ...
12423 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
12424 and move to ax.c.
12425 (eval_tracepoint_agent_expr): New function.
12426 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
43aaf8b6 12427 non-static.
5e1dc496
LM
12428 (current_insn_ptr, emit_error, struct bytecode_address): Move to
12429 ax.c.
12430 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
12431 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
12432 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
12433 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
12434 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
12435 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
12436 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
12437 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
12438 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
12439 (compile_bytecodes): Remove forward declaration.
12440 (is_goto_target): Move to ax.c.
12441 (compile_bytecodes): Move to ax.c and call
12442 agent_get_trace_state_variable_value (...) and
12443 agent_set_trace_state_variable_value (...).
12444
12445 * Makefile.in: Update ax.c and IPA dependencies.
12446
277e4e52
PA
124472012-02-24 Pedro Alves <palves@redhat.com>
12448
12449 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
12450 (cmd_bigqtbuffer_circular): ... this. Only handle
12451 'QTBuffer:circular:'.
12452 (handle_tracepoint_general_set): Adjust.
12453
bf4c19f7
YQ
124542012-02-16 Yao Qi <yao@codesourcery.com>
12455
12456 * inferiors.c: Move code to ...
12457 * dll.c: .... here. New.
12458 * server.h: Declare clear_dlls.
12459 * Makefile.in (SFILES): Add dll.c.
12460 (OBS): Add dll.o
12461 (dll.o): New rule.
12462
d73f2619
YQ
124632012-02-11 Yao Qi <yao@codesourcery.com>
12464
12465 * server.c: (handle_monitor_command): Add a new parameter
12466 `own_buf'.
12467 (handle_query): Update caller.
12468
f8255c2a
JB
124692012-02-09 Joel Brobecker <brobecker@adacore.com>
12470
12471 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
12472 * configure, config.in: Regenerate.
12473 * hostio.c: Provide an alternate implementation if HAVE_READLINK
12474 is not defined.
12475
da84f473
PA
124762012-02-02 Pedro Alves <palves@redhat.com>
12477
12478 Try SIGKILL first, then PTRACE_KILL.
12479 * linux-low.c (linux_kill_one_lwp): New.
12480 (linux_kill_one_lwp): Rename to ...
12481 (kill_one_lwp_callback): ... this. Use the new
12482 linux_kill_one_lwp.
12483
e886a173
PA
124842012-02-02 Pedro Alves <palves@redhat.com>
12485
12486 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
12487 inferior.
12488
be07f1a2
PA
124892012-01-27 Pedro Alves <palves@redhat.com>
12490
12491 * linux-low.c (linux_child_pid_to_exec_file): Delete.
12492 (elf_64_file_p): Make static.
12493 (linux_pid_exe_is_elf_64_file): New.
12494 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
12495 Delete declarations.
12496 (linux_pid_exe_is_elf_64_file): Declare.
12497 * linux-x86-low.c (x86_arch_setup): Use
12498 linux_pid_exe_is_elf_64_file.
12499
d8301ad1
JK
125002012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
12501
12502 * linux-low.c (linux_wait_for_event_1): Rename to ...
12503 (linux_wait_for_event): ... here and merge it with former
12504 linux_wait_for_event - new variable wait_ptid, use it.
12505 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
12506
01b17894
PA
125072012-01-23 Pedro Alves <palves@redhat.com>
12508
12509 * server.c (main): Avoid yet another case of infinite loop while
12510 detaching/killing after a longjmp.
12511
e825046f
JK
125122012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12513
12514 Code cleanup.
12515 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
12516
b9e7b9c3
UW
125172012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12518
12519 * hostio.c (handle_readlink): New function.
12520 (handle_vFile): Call it to handle "vFile:readlink" packets.
12521
901f9912
UW
125222012-01-20 Pedro Alves <palves@redhat.com>
12523 Ulrich Weigand <ulrich.weigand@linaro.org>
12524
12525 * server.c (handle_v_requests): Only support vAttach and vRun to
12526 start multiple processes when in extended protocol mode.
12527
fc1ab1a0
PA
125282012-01-17 Pedro Alves <palves@redhat.com>
12529
12530 * tracepoint.c (initialize_tracepoint): Use mmap instead of
12531 memalign plus mprotect to allocate the scratch buffer.
12532
7d5d4e98
PA
125332012-01-13 Pedro Alves <palves@redhat.com>
12534
12535 * server.c (attach_inferior): Clear `cont_thread'.
12536
f128d5e9
PA
125372012-01-13 Pedro Alves <palves@redhat.com>
12538
12539 * server.c (main): Avoid infinite loop while detaching/killing
12540 after a longjmp.
12541
06db92f0
DE
125422012-01-09 Doug Evans <dje@google.com>
12543
12544 * server.c (start_inferior): Set last_ptid in --wrapper case.
12545
32d92999
YQ
125462012-01-06 Yao Qi <yao@codesourcery.com>
12547
12548 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
12549 defined.
12550 [IN_PROCESS_AGENT] (debug_agent): New global variable.
12551
5e0a92a9
YQ
125522012-01-04 Yao Qi <yao@codesourcery.com>
12553
12554 * tracepoint.c (cmd_qtdp): Print debug message
12555 for static tracepoint.
12556
ae639e8c
YQ
125572012-01-04 Yao Qi <yao@codesourcery.com>
12558
12559 * tracepoint.c (trace_vdebug): Differentiate debug message
12560 between gdbserver and IPA.
12561
f72429c5
YQ
125622012-01-03 Yao Qi <yao@codesourcery.com>
12563
12564 * tracepoint.c (tracepoint_was_hit): Don't collect for
12565 static tracepoint.
12566
12c3e59c
JB
125672012-01-02 Joel Brobecker <brobecker@adacore.com>
12568
12569 * terminal.h: Reformat copyright header.
12570
67827812
JB
125712012-01-02 Joel Brobecker <brobecker@adacore.com>
12572
12573 * server.c (gdbserver_version): Update copyright year.
12574 * gdbreplay.c (gdbreplay_version): Likewise.
12575
3e52c33d
JK
125762011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
12577
12578 * linux-low.c (linux_create_inferior): Put empty if clause for write.
12579
12580 Revert:
12581 2011-12-18 Hui Zhu <teawater@gmail.com>
12582 * linux-low.c (linux_create_inferior): Save return value to ret.
12583
66f1260e
HZ
125842011-12-18 Hui Zhu <teawater@gmail.com>
12585
12586 * linux-low.c (linux_create_inferior): Save return value to ret.
12587
e77616d7
DE
125882011-12-16 Doug Evans <dje@google.com>
12589
e7b06c57
DE
12590 * linux-low.c (linux_create_inferior): If stdio connection,
12591 redirect stdin from /dev/null, stdout to stderr.
12592 * remote-utils.c (remote_is_stdio): New static global.
12593 (remote_connection_is_stdio): New function.
12594 (remote_prepare): Handle stdio connection.
12595 (remote_open): Ditto.
12596 (remote_close): Don't close stdin for stdio connections.
12597 (read_prim,write_prim): New functions. Replace all calls to
12598 read/write to these.
12599 * server.c (main): Watch for "-" argument. Move call to
12600 remote_prepare before start_inferior.
12601 * server.h (STDIO_CONNECTION_NAME): New macro.
12602 (remote_connection_is_stdio): Declare.
12603
e77616d7
DE
12604 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
12605 in debugging output.
12606
82067193
YQ
126072011-12-15 Yao Qi <yao@codesourcery.com>
12608
12609 * tracepoint.c: Include sys/syscall.h.
12610 (gdb_ust_thread): Remove preprocessor conditional.
12611
82bfbe7e
PA
126122011-12-14 Pedro Alves <pedro@codesourcery.com>
12613
12614 * linux-low.c (linux_detach_one_lwp): Call
12615 the_low_target.prepare_to_resume before detaching.
12616
712c6575
YQ
126172011-12-14 Yao Qi <yao@codesourcery.com>
12618
12619 * tracepoint.c (gdb_ust_thread): Don't ignore return value
12620 of write.
12621
d54d1edf
YQ
126222011-12-14 Yao Qi <yao@codesourcery.com>
12623
12624 * i386-low.c (i386_low_stopped_data_address): Initialize local
12625 variable `control'.
12626
6210a125
PA
126272011-12-13 Pedro Alves <pedro@codesourcery.com>
12628
12629 PR remote/13492
12630
12631 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
12632 DR_CONTROL unless necessary. Extend comments.
12633 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
12634 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
12635
2ece8244
YQ
126362011-12-13 Yao Qi <yao@codesourcery.com>
12637
12638 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
12639 macros.
12640 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
12641
784867a5
JK
126422011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
12643
12644 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
12645 Print new debug message for such case.
12646
6bf36717
JK
126472011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
12648
12649 Fix overlapping memcpy.
12650 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
12651 the read_inferior_memory transfer.
12652 (delete_fast_tracepoint_jump): New variable buf. Use it for the
12653 write_inferior_memory transfer.
12654 (set_fast_tracepoint_jump): New variable buf. Use it for the
12655 read_inferior_memory and write_inferior_memory transfers.
12656 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
12657 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
12658 Use it for the write_inferior_memory transfer.
12659 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
12660 buffers.
12661
50275556
MR
126622011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
12663
12664 * linux-low.c (fetch_register, store_register): Make code
12665 consistent, fix formatting.
12666
7325beb4
MR
126672011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
12668
12669 * linux-low.c (usr_store_inferior_registers): Factor out code
12670 to handle individual registers into...
12671 (store_register): ... this new function.
12672
c642a434
UW
126732011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
12674
12675 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
12676 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
12677 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
12678 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
12679 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
12680 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
12681 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
12682 (srv_xmlfiles): Add new XML files.
12683
12684 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
12685 and <sys/uio.h>.
12686 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
12687 (init_registers_s390_linux32v1): Add prototype.
12688 (init_registers_s390_linux32v2): Likewise.
12689 (init_registers_s390_linux64v1): Likewise.
12690 (init_registers_s390_linux64v2): Likewise.
12691 (init_registers_s390x_linux64v1): Likewise.
12692 (init_registers_s390x_linux64v2): Likewise.
12693 (s390_num_regs): Increment to 52.
12694 (s390_regmap): Add orig_r2 register.
12695 (s390_num_regs_3264): Increment to 68.
12696 (s390_regmap_3264): Add orig_r2 register.
12697 (s390_collect_ptrace_register): Handle orig_r2 register.
12698 (s390_supply_ptrace_register): Likewise.
12699 (s390_fill_last_break): New function.
12700 (s390_store_last_break): Likewise.
12701 (s390_fill_system_call): New function.
12702 (s390_store_system_call): Likewise.
12703 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
12704 register sets.
12705 (s390_check_regset): New function.
12706 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
12707 NT_S390_SYSTEM_CALL regsets and use appropriate description.
12708 Update target_regsets for available register sets.
12709
2268b414
JK
127102011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
12711 Jan Kratochvil <jan.kratochvil@redhat.com>
12712
12713 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
12714 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
12715 New.
12716 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
12717 * linux-low.h (struct process_info_private): New member r_debug.
12718 * server.c (handle_qxfer_libraries): Call
12719 the_target->qxfer_libraries_svr4.
12720 (handle_qxfer_libraries_svr4): New function.
12721 (qxfer_packets): New entry "libraries-svr4".
12722 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
12723 * target.h (struct target_ops): New member qxfer_libraries_svr4.
12724 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
12725 PACKET_qXfer_libraries_svr4.
12726
d6db1fab
UW
127272011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
12728
12729 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
12730 PSW address/mask between 8-byte and 16-byte formats.
12731 (s390_supply_ptrace_register): Likewise.
12732 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
12733 basic addressing mode bit.
12734
242f5f1c
SS
127352011-11-24 Stan Shebs <stan@codesourcery.com>
12736
12737 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
12738
f196051f
SS
127392011-11-17 Stan Shebs <stan@codesourcery.com>
12740
12741 * tracepoint.c (struct tracepoint): New field traceframe_usage.
12742 (tracing_start_time): New global.
12743 (tracing_stop_time): New global.
12744 (tracing_user_name): New global.
12745 (tracing_notes): New global.
12746 (tracing_stop_note): New global.
12747 (cmd_qtstart): Set traceframe_usage, start_time.
12748 (stop_tracing): Set stop_time.
12749 (cmd_qtstatus): Report additional status.
12750 (cmd_qtp): New function.
12751 (handle_tracepoint_query): Call it.
12752 (cmd_qtnotes): New function.
12753 (handle_tracepoint_general_set): Call it.
12754 (get_timestamp): Rename from tsv_get_timestamp.
12755
405f8e94
SS
127562011-11-14 Stan Shebs <stan@codesourcery.com>
12757 Kwok Cheung Yeung <kcy@codesourcery.com>
12758
12759 * linux-x86-low.c (small_jump_insn): New.
12760 (i386_install_fast_tracepoint_jump_pad): Add arguments for
12761 trampoline and error message, build a trampoline and issue a small
12762 jump instruction to it.
12763 (x86_install_fast_tracepoint_jump_pad): Add arguments for
12764 trampoline and error message.
12765 (x86_get_min_fast_tracepoint_insn_len): New.
12766 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
12767 * linux-low.h (struct linux_target_ops): Add arguments to
12768 install_fast_tracepoint_jump_pad operation, add new operation.
12769 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
12770 arguments.
12771 (linux_get_min_fast_tracepoint_insn_len): New function.
12772 (linux_target_op): Add new operation.
12773 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
12774 (gdb_trampoline_buffer_end): Ditto.
12775 (gdb_trampoline_buffer_error): Ditto.
12776 (struct ipa_sym_addresses): Add fields for new IPA variables.
12777 (symbol_list): Add entries for new IPA variables.
12778 (struct tracepoint): Add fields to hold the address range of the
12779 trampoline used by the tracepoint.
12780 (trampoline_buffer_head): New static variable.
12781 (trampoline_buffer_tail): Ditto.
12782 (claim_trampoline_space): New function.
12783 (have_fast_tracepoint_trampoline_buffer): New function.
12784 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
12785 structure.
12786 (install_fast_tracepoint): Ditto, also add error buffer argument.
12787 (cmd_qtminftpilen): New function.
12788 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
12789 (fast_tracepoint_from_trampoline_address): New function.
12790 (fast_tracepoint_collecting): Handle trampoline as part of jump
12791 pad space.
12792 (set_trampoline_buffer_space): New function.
12793 (initialize_tracepoint): Initialize new IPA variables.
12794 * target.h (struct target_ops): Add arguments to
12795 install_fast_tracepoint_jump_pad operation, add new
12796 get_min_fast_tracepoint_insn_len operation.
12797 (target_get_min_fast_tracepoint_insn_len): New.
12798 (install_fast_tracepoint_jump_pad): Add arguments.
12799 * server.h (IPA_BUFSIZ): Define.
12800 * linux-i386-ipa.c: Include extra header files.
12801 (initialize_fast_tracepoint_trampoline_buffer): New function.
12802 (initialize_low_tracepoint): Call it.
12803 * server.h (set_trampoline_buffer_space): Declare.
12804 (claim_trampoline_space): Ditto.
12805 (have_fast_tracepoint_trampoline_buffer): Ditto.
12806
1e4d1764
YQ
128072011-11-14 Yao Qi <yao@codesourcery.com>
12808
12809 * server.c (handle_query): Handle InstallInTrace for qSupported.
12810 * tracepoint.c (add_tracepoint): Sort list.
12811 (install_tracepoint, download_tracepoint): New.
12812 (cmd_qtdp): Call them to install and download tracepoints.
12813 (sort_tracepoints): Removed.
12814 (cmd_qtstart): Update.
12815
5c73ff4e
YQ
128162011-11-14 Yao Qi <yao@codesourcery.com>
12817
12818 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
12819 * mem-break.h: Declare.
12820 * tracepoint.c (cmd_qtstart): Move some code to ...
12821 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
12822 New.
12823 (download_tracepoints): Move some code to ...
12824 (download_tracepoint_1): ... here. New.
12825
86a30030
YQ
128262011-11-08 Yao Qi <yao@codesourcery.com>
12827
12828 * remote-utils.c (relocate_instruction): A comment fix.
12829
8d26e50c
JB
128302011-11-07 Joel Brobecker <brobecker@adacore.com>
12831
12832 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
12833 (i386_dr_low_get_control, i386_dr_low_get_status): Use
12834 dr_status_mirror and dr_control_mirror from debug_reg_state.
12835 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
12836 (i386_initial_stuff): Remove use of deleted globals.
12837 (i386_get_thread_context, i386_set_thread_context,
12838 i386_thread_added): Use dr_status_mirror and dr_control_mirror
12839 from debug_reg_state.
12840
a59306a3
YQ
128412011-11-05 Yao Qi <yao@codesourcery.com>
12842
12843 * tracepoint.c (gdb_collect): Loop over tracepoints of same
12844 address as TPOINT's.
12845
3065dfb6
SS
128462011-11-02 Stan Shebs <stan@codesourcery.com>
12847
12848 * tracepoint.c (agent_mem_read_string): New function.
12849 (eval_agent_expr): Call it for tracenz.
12850 * server.c (handle_query): Report support for tracenz.
12851
fd0d8c7c
YQ
128522011-11-02 Yao Qi <yao@codesourcery.com>
12853
12854 * tracepoint.c (cmd_qtstart): Remove unused local variables.
12855
609086b1
YQ
128562011-11-02 Yao Qi <yao@codesourcery.com>
12857
12858 * target.h: Fix a typo in comment.
12859
b9fd1791
PA
128602011-10-31 Pedro Alves <pedro@codesourcery.com>
12861
12862 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
12863 clobber the breakpoints' shadows with fast tracepoint jumps.
12864 * mem-break.h (check_mem_write): Add `myaddr' parameter.
12865 * target.c (write_inferior_memory): Also pass MYADDR down to
12866 check_mem_write.
12867
03583c20
UW
128682011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
12869
12870 * configure.ac: Check support for personality routine.
12871 * configure: Regenerate.
12872 * config.in: Likewise.
12873 * linux-low.c: Include <sys/personality.h>.
12874 Define ADDR_NO_RANDOMIZE if necessary.
12875 (linux_create_inferior): Disable address space randomization when
12876 forking inferior, if requested.
12877 (linux_supports_disable_randomization): New function.
12878 (linux_target_ops): Install it.
12879 * server.h (disable_randomization): Declare.
12880 * server.c (disable_randomization): New global variable.
12881 (handle_general_set): Handle QDisableRandomization.
12882 (handle_query): Likewise for qSupported.
12883 (main): Support --disable-randomization and --no-disable-randomization
12884 command line arguments.
12885 * target.h (struct target_ops): Add supports_disable_randomization.
12886 (target_supports_disable_randomization): New macro.
12887
723b724b
MF
128882011-09-29 Mike Frysinger <vapier@gentoo.org>
12889
12890 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
12891 ifdef check.
12892 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
12893 [!PT_GETDSBT] (target_loadmap): New definition.
12894 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
12895 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
12896 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
12897 and PT_GETDSBT to LINUX_LOADMAP.
12898 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
12899 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
12900
55329a5c 129012011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
71487fd7
UW
12902
12903 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
12904 (arm_linux_hwbp_cap): New static variable.
12905 (arm_linux_get_hwbp_cap): Replace by ...
12906 (arm_linux_init_hwbp_cap): ... this new function.
12907 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
12908 (arm_linux_get_hw_watchpoint_count): Likewise.
12909 (arm_linux_get_hw_watchpoint_max_length): Likewise.
12910 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
12911 (arm_prepare_to_resume): Use perror_with_name instead of error.
12912
55329a5c 129132011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
09b4ad9f
UW
12914
12915 * linux-arm-low.c: Include <signal.h>.
12916 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
12917 (struct arm_linux_hwbp_cap): New data type.
12918 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
12919 (struct arm_linux_hw_breakpoint): New data type.
12920 (MAX_BPTS, MAX_WPTS): Define.
12921 (struct arch_process_info, struct arch_lwp_info): New data types.
12922 (arm_linux_get_hwbp_cap): New function.
12923 (arm_linux_get_hw_breakpoint_count): Likewise.
12924 (arm_linux_get_hw_watchpoint_count): Likewise.
12925 (arm_linux_get_hw_watchpoint_max_length): Likewise.
12926 (arm_hwbp_control_initialize): Likewise.
12927 (arm_hwbp_control_is_enabled): Likewise.
12928 (arm_hwbp_control_is_initialized): Likewise.
12929 (arm_hwbp_control_disable): Likewise.
12930 (arm_linux_hw_breakpoint_equal): Likewise.
12931 (arm_linux_hw_point_initialize): Likewise.
12932 (struct update_registers_data): New data structure.
12933 (update_registers_callback: New function.
12934 (arm_insert_point): Likewise.
12935 (arm_remove_point): Likewise.
12936 (arm_stopped_by_watchpoint): Likewise.
12937 (arm_stopped_data_address): Likewise.
12938 (arm_new_process): Likewise.
12939 (arm_new_thread): Likewise.
12940 (arm_prepare_to_resume): Likewise.
12941 (the_low_target): Register arm_insert_point, arm_remove_point,
12942 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
12943 arm_new_thread, and arm_prepare_to_resume.
12944
6b9801d4
SS
129452011-09-15 Stan Shebs <stan@codesourcery.com>
12946
12947 * server.h (struct emit_ops): Add compare-goto fields.
12948 * tracepoint.c (gdb_agent_op_sizes): New table.
12949 (emit_eq_goto): New function.
12950 (emit_ne_goto): New function.
12951 (emit_lt_goto): New function.
12952 (emit_le_goto): New function.
12953 (emit_gt_goto): New function.
12954 (emit_ge_goto): New function.
12955 (is_goto_target): New function.
12956 (compile_bytecodes): Recognize special cases of compare-goto
12957 combinations and call specialized emitters for them.
12958 * linux-x86-low.c (amd64_emit_eq_goto): New function.
12959 (amd64_emit_ne_goto): New function.
12960 (amd64_emit_lt_goto): New function.
12961 (amd64_emit_le_goto): New function.
12962 (amd64_emit_gt_goto): New function.
12963 (amd64_emit_ge_goto): New function.
12964 (amd64_emit_ops): Add the new functions.
12965 (i386_emit_eq_goto): New function.
12966 (i386_emit_ne_goto): New function.
12967 (i386_emit_lt_goto): New function.
12968 (i386_emit_le_goto): New function.
12969 (i386_emit_gt_goto): New function.
12970 (i386_emit_ge_goto): New function.
12971 (i386_emit_ops): Add the new functions.
12972
bf15cbda
SS
129732011-09-08 Stan Shebs <stan@codesourcery.com>
12974
12975 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
12976 (i386_emit_epilogue): Restore %ebx.
12977
943ca1dd
JZ
129782011-08-31 Jie Zhang <jzhang918@gmail.com>
12979
12980 * server.c (step_thread): Remove definition.
12981 (process_serial_event): Don't handle Hs.
12982 * server.h (step_thread): Remove declaration.
12983 * target.c (set_desired_inferior): Remove use of step_thread.
12984
e3deef73
LM
129852011-08-24 Luis Machado <lgustavo@codesourcery.com>
12986
12987 * linux-low.c: Include linux-procfs.h.
12988 (linux_attach_lwp_1): Update comments.
12989 (linux_attach): Scan for existing threads when attaching to a
12990 process that is the tgid.
12991 * Makefile.in: Update dependencies.
12992
13da1c97
LM
129932011-08-24 Luis Machado <lgustavo@codesourcery.com>
12994
12995 * configure.srv: Add linux-procfs.o dependencies.
12996
881127c9
YQ
129972011-08-14 Yao Qi <yao@codesourcery.com>
12998
12999 * target.h (struct target_ops): Fix indent.
13000 * win32-low.c (win32_target_ops): Fix comment.
13001
58dbd541
YQ
130022011-08-14 Andrew Jenner <andrew@codesourcery.com>
13003 Yao Qi <yao@codesourcery.com>
13004
13005 * Makefile.in (clean): Remove tic6x-*.c files.
13006 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
13007 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
13008 (tic6x-c64xp-linux.c): Likewise.
13009 * configure.srv: Add support for tic6x-*-uclinux.
13010 * linux-tic6x-low.c: New.
13011 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
13012
78d85199
YQ
130132011-08-14 Andrew Stubbs <ams@codesourcery.com>
13014 Yao Qi <yao@codesourcery.com>
13015
13016 * target.h (struct target_ops): Add read_loadmap.
13017 * linux-low.c (struct target_loadseg): New type.
13018 (struct target_loadmap): New type.
13019 (linux_read_loadmap): New function.
13020 (linux_target_ops): Add linux_read_loadmap.
13021 * server.c (handle_query): Support qXfer:fdpic:read packet.
43aaf8b6
PA
13022 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
13023 to NULL.
78d85199 13024
a959a88d
EZ
130252011-08-05 Eli Zaretskii <eliz@gnu.org>
13026
13027 * win32-low.c: Include <stdint.h>.
13028
1ced966e
PA
130292011-07-22 Pedro Alves <pedro@codesourcery.com>
13030
13031 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
13032 to the inferior here.
13033 (i386_remove_aligned_watchpoint): Ditto.
13034 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
13035 fit part of the watchpoint in the debug registers.
13036 (i386_update_inferior_debug_regs): New.
13037 (i386_low_insert_watchpoint): Work on a local mirror of the debug
13038 registers, and only update the inferior on success.
13039 (i386_low_remove_watchpoint): Ditto.
13040
d26e3629
KY
130412011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
13042
13043 * linux-low.c (compare_ints, unique, list_threads, show_process,
13044 linux_core_of_thread): Delete.
13045 (linux_target_ops): Change linux_core_of_thread to
13046 linux_common_core_of_thread.
13047 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
13048 * utils.c (malloc_failure): Change type of argument.
13049 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
13050 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
13051 common/linux-osdata.c, common/ptid.c and common/buffer.c.
13052 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
13053 (IPA_OBJS): Add common-utils-ipa.o.
13054 (ptid_h, linux_osdata_h): New macros.
13055 (server_h): Add common/common-utils.h, common/xml-utils.h,
13056 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
13057 common/ptid.h.
13058 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
13059 ptid.o, buffer.o): New rules.
13060 (linux-low.o): Add common/linux-osdata.h as a dependency.
13061 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
13062 * configure.ac: Add AC_HEADER_DIRENT check.
13063 * config.in: Regenerate.
13064 * configure: Regenerate.
13065 * remote-utils.c (xml_escape_text): Delete.
13066 (buffer_grow, buffer_free, buffer_init, buffer_finish,
13067 buffer_xml_printf): Move to common/buffer.c.
13068 * server.c (main): Remove call to initialize_inferiors.
13069 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
13070 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
13071 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
13072 internal_error, gdb_assert, gdb_assert_fail): Delete.
13073 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
13074 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
13075 common/buffer.h.
13076 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
13077 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
13078 initialize_inferiors): Delete.
13079
2275a1a7
PA
130802011-07-20 Pedro Alves <pedro@codesourcery.com>
13081
13082 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
13083 symbol error.
13084
0a5b1e09
PA
130852011-05-31 Pedro Alves <pedro@codesourcery.com>
13086
13087 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
13088 assertion.
13089 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
13090
6938fd34
YQ
130912011-05-26 Yao Qi <yao@codesourcery.com>
13092
13093 * Makefile.in (thread-db.o): Track dependence to
13094 common/gdb_thread_db.h.
13095 * thread-db.c: include gdb_thread_db.h from right place.
13096
b481f9e0
TT
130972011-05-16 Adrian Cornish <gnu@bluedreamer.com>
13098
13099 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
13100 __FILE__ and __LINE__ to internal_error.
13101
98a5dd13
DE
131022011-05-13 Doug Evans <dje@google.com>
13103
13104 * thread-db.c (try_thread_db_load_from_sdir): New function.
13105 (try_thread_db_load_from_dir): New function.
13106 (thread_db_load_search): Handle $sdir, ignore $pdir.
13107 Remove trying of system directories if search of
13108 libthread-db-search-path fails, that is now done via $sdir.
13109
d248b706
KY
131102011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
13111
13112 * server.c (handle_query): Add EnableDisableTracepoints to the list
13113 of supported features.
43aaf8b6 13114 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
d248b706 13115 tracepoints.
43aaf8b6
PA
13116 (cmd_qtenable_disable): New.
13117 (cmd_qtstart): Install tracepoints even if disabled.
13118 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
13119 receiving a QTEnable or QTDisable packet.
13120 (gdb_collect): Skip data collection if fast tracepoint is disabled.
13121 (ust_marker_to_static_tracepoint): Do not ignore disabled static
13122 tracepoints.
13123 (gdb_probe): Skip data collection if static tracepoint is disabled.
d248b706 13124
84e578fb
DE
131252011-05-10 Doug Evans <dje@google.com>
13126
13127 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
13128
71f55dd8
DE
131292011-05-04 Doug Evans <dje@google.com>
13130
13131 * linux-low.c (linux_join): Skip process lookup.
13132 * spu-low.c (spu_join): Ditto.
13133 * server.c (join_inferiors_callback): Delete.
13134 (process_serial_event): For 'D' packet (detach) call join_inferior
13135 directly.
13136
4d393d60
JM
131372011-05-04 Joseph Myers <joseph@codesourcery.com>
13138
13139 * README: Don't mention xscale*-*-linux*.
13140 * configure.srv (xscale*-*-linux*): Don't handle target.
13141
b00ad6ff
NF
131422011-04-27 Nathan Froyd <froydnj@codesourcery.com>
13143
13144 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
13145 casting pointers.
13146 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
13147 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
13148 (i386_emit_void_call_2): Likewise.
13149
af96c192
YQ
131502011-04-26 Yao Qi <yao@codesourcery.com>
13151
43aaf8b6
PA
13152 * linux-low.c: Move common macros to linux-ptrace.h.
13153 Include linux-ptrace.h.
af96c192
YQ
13154 * Makefile.in (linux_ptrace_h): New.
13155 (linux-low.o): Depends on linux-ptrace.h.
13156
03f2bd59
JK
131572011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
13158
13159 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
13160 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
13161 (remote_prepare): New function with most of the TCP code from ...
13162 (remote_open): ... here. Detect PORT here unconditionally. Move also
13163 setting transport_is_reliable.
13164 * server.c (run_once): New variable.
13165 (gdbserver_usage): Document it.
13166 (main): Set run_once for `--once'. Call remote_prepare. Exit after
13167 the first run if RUN_ONCE.
13168 * server.h (run_once, remote_prepare): New declarations.
13169
7a9dd1b2
TT
131702011-04-19 Tom Tromey <tromey@redhat.com>
13171
13172 * win32-low.c (handle_load_dll): Remove duplicate "the".
13173
81239425
PM
131742011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
13175
13176 Remove support for old Cygwin 1.5 versions.
13177 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
13178 function to avoid warning.
13179 (win32_add_one_solib): Use cygwin_conv_path function to avoid
13180 warning.
13181
9e0627f1
PM
131822011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
13183
13184 * gdbserver/server.h (Macro _): Define it if not available.
13185
588eebee
MS
131862011-03-14 Michael Snyder <msnyder@vmware.com>
13187
348af9f7 13188 * hostio.c (handle_close): Remove unnecessary null test.
588eebee 13189
43f70d4c
JB
131902011-03-10 Joel Brobecker <brobecker@adacore.com>
13191
13192 * Makefile.in (maintainer-clean realclean distclean): Remove
13193 "make ... subdir_do" command.
13194
348af9f7
MS
131952011-03-10 Michael Snyder <msnyder@vmware.com>
13196
13197 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
13198
13199 * server.c (handle_v_run): Free alloced buffer on early return.
13200
e637a4f5
YQ
132012011-03-09 Yao Qi <yao@codesourcery.com>
13202
13203 Revert:
13204 2011-03-04 Yao Qi <yao@codesourcery.com>
13205
13206 * Makefile.in: Remove GNU make feature --directory.
13207
13208 2011-03-05 Yao Qi <yao@codesourcery.com>
13209
13210 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
13211 (subdir_do): New make target. Copied from gdb/Makefile.
13212 (maintainer-clean, realclean, distclean, clean): Call corresponding
13213 make targets in common/Makefile.
13214
13215 2011-02-11 Yao Qi <yao@codesourcery.com>
13216
13217 * configure.ac: Call AC_PROG_RANLIB.
13218 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
13219 * configure: Regenerate.
13220
e6edda56
JK
132212011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
13222
13223 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
13224
e5141119
JB
132252011-03-06 Yao Qi <yao@codesourcery.com>
13226
13227 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
13228
64794aa4
JB
132292011-03-05 Yao Qi <yao@codesourcery.com>
13230
13231 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
13232 (subdir_do): New make target. Copied from gdb/Makefile.
13233 (maintainer-clean, realclean, distclean, clean): Call corresponding
13234 make targets in common/Makefile.
13235
7a762829
YQ
132362011-03-04 Yao Qi <yao@codesourcery.com>
13237
13238 * Makefile.in: Remove GNU make feature --directory.
13239
348af9f7
MS
132402011-03-04 Michael Snyder <msnyder@vmware.com>
13241
13242 * server.c (queue_stop_reply): Call xmalloc not malloc.
13243
132442011-03-02 Michael Snyder <msnyder@vmware.com>
13245
13246 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
13247
9f72fee2
MS
132482011-02-28 Michael Snyder <msnyder@vmware.com>
13249
588eebee
MS
13250 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
13251 (cmd_qtframe): Ditto.
13252 (cmd_qtbuffer): Ditto.
13253 (cmd_bigqtbuffer): Ditto.
13254
9f72fee2
MS
13255 * utils.c (decimal2str): Initialize 'width' to nine, then
13256 don't mess with it.
13257
8040bd49
UW
132582011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
13259
13260 * hostio.c (require_data): Free *data, not data.
13261
7e52cbd0
JK
132622011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13263
13264 * hostio.c (require_data): Use free, not xfree.
13265
9130f83e
MS
132662011-02-27 Michael Snyder <msnyder@vmware.com>
13267
4b812f4e
MS
13268 * server.c (handle_query): Discard unused value.
13269
9130f83e
MS
13270 * hostio.c (require_data): Free malloc memory before returning
13271 error.
13272
69d37113
MS
132732011-02-26 Michael Snyder <msnyder@vmware.com>
13274
13275 * linux-low.c (list_threads): Call closedir for dirent.
13276
35f5825a
MS
132772011-02-27 Michael Snyder <msnyder@vmware.com>
13278
2a589cef
MS
13279 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
13280 a case statement falls through.
13281
0adea5f7
MS
13282 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
13283
35f5825a
MS
13284 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
13285 in comparison.
13286
238f1c74
MS
132872011-02-26 Michael Snyder <msnyder@vmware.com>
13288
13289 * utils.c (decimal2str): Eliminate dead code and dead param.
13290 (pulongest): Drop dead param from call to decimal2str.
13291 (plongest): Ditto.
13292
633ff500
JB
132932011-02-24 Joel Brobecker <brobecker@adacore.com>
13294
13295 Revert the following patch (not approved yet):
13296 2011-02-21 Hui Zhu <teawater@gmail.com>
13297 * tracepoint.c (tp_printf): New function.
13298 (eval_agent_expr): Handle gdb_agent_op_printf.
13299
f9c6ff72
HZ
133002011-02-21 Hui Zhu <teawater@gmail.com>
13301
13302 * tracepoint.c (tp_printf): New function.
13303 (eval_agent_expr): Handle gdb_agent_op_printf.
13304
94d5e490
TT
133052011-02-18 Tom Tromey <tromey@redhat.com>
13306
13307 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
13308 (tracepoint.o): Likewise.
13309 * tracepoint.c (enum gdb_agent_op): Use ax.def.
13310 (gdb_agent_op_names): Likewise.
13311
c7f96d2b
TT
133122011-02-18 Tom Tromey <tromey@redhat.com>
13313
13314 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
13315 gdb_agent_op_rot>: New constants.
13316 (gdb_agent_op_names): Add pick and roll.
13317 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
13318 cases.
13319
0feedb2c
JK
133202011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
13321
13322 * aclocal.m4: Regenerated with aclocal-1.11.1.
13323
b3b9301e
PA
133242011-02-14 Pedro Alves <pedro@codesourcery.com>
13325
13326 * server.c (handle_qxfer_traceframe_info): New.
13327 (qxfer_packets): Register "traceframe-info".
13328 (handle_query): Report support for qXfer:traceframe-info:read+.
13329 * tracepoint.c (match_blocktype): New.
13330 (traceframe_find_block_type): Rename to ...
13331 (traceframe_walk_blocks): ... this. Add callback filter argument,
13332 and use it.
13333 (traceframe_find_block_type): New, reimplemented on top of
13334 traceframe_walk_blocks.
13335 (build_traceframe_info_xml): New.
13336 (traceframe_read_info): New.
13337 * server.h (traceframe_read_info): Declare.
13338
4f3e6fb7
YQ
133392011-02-11 Yao Qi <yao@codesourcery.com>
13340
13341 * configure.ac: Call AC_PROG_RANLIB.
13342 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
13343 * configure: Regenerate.
13344
764880b7
PA
133452011-02-07 Pedro Alves <pedro@codesourcery.com>
13346
13347 * server.c (gdb_read_memory): Change return semantics to allow
13348 partial transfers.
13349 (handle_search_memory_1): Adjust.
13350 (process_serial_event) <'m' packet>: Handle partial transfers.
13351 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
13352
1c79eb8a
PA
133532011-01-28 Pedro Alves <pedro@codesourcery.com>
13354
13355 * regcache.c (init_register_cache): Initialize
13356 regcache->register_status.
13357 (free_register_cache): Release regcache->register_status.
13358 (regcache_cpy): Copy register_status.
13359 (registers_to_string): Print 'x's for unavailable registers.
13360 (supply_register): Mark the register's status valid or
13361 unavailable, depending on whether a buffer was passed in or not.
13362 (supply_register_zeroed): New.
13363 (supply_regblock): Mark the registers' status valid or
13364 unavailable, depending on whether a buffer was passed in or not.
13365 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
13366 (struct regcache): New `register_status' field.
13367 (supply_register_zeroed): Declare.
13368 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
13369 supply_register_zeroed, rather than passing a NULL buffer to
13370 supply_register.
13371 * tracepoint.c (fetch_traceframe_registers): Update comment.
13372
85724a0e
PA
133732011-01-28 Pedro Alves <pedro@codesourcery.com>
13374
13375 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
13376 buffer explicit.
13377
d08aafef
PA
133782011-01-25 Pedro Alves <pedro@codesourcery.com>
13379
13380 * server.h (decode_xfer_write): Change prototype.
13381 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
13382 and don't extract the annex here.
13383 * server.c (decode_xfer_read): Remove `annex' parameter,
13384 and don't extract the annex here.
13385 (decode_xfer): New.
13386 (struct qxfer): New.
13387 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
13388 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
13389 (handle_qxfer_statictrace): New functions, abstracted out from
13390 handle_query, and made to use the struct qxfer interface.
13391 (handle_threads_qxfer_proper): Rename to ...
13392 (handle_qxfer_threads_proper): ... this.
13393 (handle_threads_qxfer): Rename to ...
13394 (handle_qxfer_threads): ... this. Adjust.
13395 (qxfer_packets): New array.
13396 (handle_qxfer): New function.
13397 (handle_query): Use handle_qxfer.
13398
493e2a69
MS
133992011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
13400
13401 * gdbreplay.c: Shorten lines of >= 80 columns.
13402 * linux-low.c: Ditto.
13403 * linux-ppc-low.c: Ditto.
13404 * linux-s390-low.c: Ditto.
13405 * linux-sparc-low.c: Ditto.
13406 * linux-x86-low.c: Ditto.
13407 * linux-xtensa-low.c: Ditto.
13408 * mem-break.c: Ditto.
13409 * nto-low.c: Ditto.
13410 * regcache.h: Ditto.
13411 * remote-utils.c: Ditto.
13412 * server.c: Ditto.
13413 * server.h: Ditto.
13414 * thread-db.c: Ditto.
13415 * tracepoint.c: Ditto.
13416 * utils.c: Ditto.
13417 * win32-low.h: Ditto.
13418
44944448
JB
134192011-01-05 Joel Brobecker <brobecker@adacore.com>
13420
13421 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
13422 update.
13423
71ce852c
JB
134242011-01-01 Joel Brobecker <brobecker@adacore.com>
13425
13426 * server.c (gdbserver_version): Update copyright year in version
13427 output.
13428 * gdbreplay.c (gdbreplay_version): Ditto.
13429
eb826dc6
MF
134302010-12-29 Jie Zhang <jie.zhang@analog.com>
13431
13432 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
13433 * linux-bfin-low.c: New file.
13434 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
13435 PT_DATA_ADDR for BFIN targets.
13436 * Makefile.in (SFILES): Add linux-bfin-low.c.
13437 (clean): Remove reg-bfin.c.
13438 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
13439 * README: Mention supported Blackfin targets.
13440
39ab222a
MF
134412010-12-23 Mike Frysinger <vapier@gentoo.org>
13442
13443 * .gitignore: New file.
13444
a1f2ce7d
MF
134452010-11-16 Mike Frysinger <vapier@gentoo.org>
13446
13447 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
13448
f474844c
JZ
134492010-10-22 Jie Zhang <jie@codesourcery.com>
13450
13451 * Makefile.in: Add FLAGS_TO_PASS variable.
13452 (install): Remove dependency of install-only and recursively
13453 invoke make for install-only.
13454
f1048712
DE
134552010-10-04 Doug Evans <dje@google.com>
13456
13457 * Makefile.in (uninstall): Use $(DESTDIR).
13458
b53a1623
PA
134592010-09-24 Pedro Alves <pedro@codesourcery.com>
13460
e6ee044d
PA
13461 PR gdb/11842
13462
b53a1623
PA
13463 * linux-x86-low.c (compat_siginfo_from_siginfo)
13464 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
13465 si_code is < 0. Check for si_code == SI_TIMER before checking for
13466 si_code < 0.
13467
fa1bd1e4
JB
134682010-09-13 Joel Brobecker <brobecker@adacore.com>
13469
13470 * lynx-i386-low.c: New file.
13471 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
13472
47fac8f8
JB
134732010-09-13 Joel Brobecker <brobecker@adacore.com>
13474
13475 * lynx-low.c (ptrace_request_to_str): Remove handling for
13476 request values that have been removed in LynxOS 5.x.
13477
1adfc54d
JB
134782010-09-13 Joel Brobecker <brobecker@adacore.com>
13479
13480 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
13481 <ptrace.h>
13482
c2a66c29
NS
134832010-09-09 Nathan Sidwell <nathan@codesourcery.com>
13484
13485 * configure.ac: Add --enable-inprocess-agent option.
13486 * configure: Rebuilt.
13487
32fcada3
YQ
134882010-09-06 Yao Qi <yao@codesourcery.com>
13489
13490 * linux-low.c (linux_kill): Remove unused variable.
13491 (linux_stabilize_threads): Likewise.
13492 * server.c (start_inferior): Likewise.
13493 (queue_stop_reply_callback): Likewise.
13494 * tracepoint.c (do_action_at_tracepoint): Likewise.
13495
0cccb683
YQ
134962010-09-06 Yao Qi <yao@codesourcery.com>
13497
13498 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
13499 on return.
13500
423ec54c
JK
135012010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
13502
13503 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
13504
12ac6819
PA
135052010-09-06 Pedro Alves <pedro@codesourcery.com>
13506
13507 * Makefile.in (install-only): Replace $IPA_DEPFILES with
13508 "$(IPA_DEPFILES)".
13509
8ed54b31
JB
135102010-09-01 Joel Brobecker <brobecker@adacore.com>
13511
13512 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
13513 gdbserver/lynx-ppc-low.c: New files.
13514 * Makefile.in (lynx_low_h): New variable.
13515 (lynx-low.o, lynx-ppc-low.o): New rules.
13516 * configure.ac: On LynxOS, link with -lnetinet.
13517 * configure.srv: Add handling of powerpc-*-lynxos* targets.
13518 * configure: regenerate.
13519
bb0116a4
JB
135202010-09-01 Joel Brobecker <brobecker@adacore.com>
13521
13522 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
13523 * configure.ac: Add check for vasprintf and vsnprintf.
13524 * configure, config.in: Regenerate.
13525 * server.h (vasprintf, vsnprintf): Add conditional declarations.
13526
a778ab81 135272010-09-01 Joel Brobecker <brobecker@adacore.com>
13528
13529 * gdbreplay.c: Move include of alloca.h up, next to include of
13530 malloc.h.
13531 * server.h: Add include of malloc.h.
13532 * mem-break.c: Remove include of malloc.h.
13533 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
13534
8b034a19 135352010-09-01 Joel Brobecker <brobecker@adacore.com>
13536
13537 * Makefile.in (memmem.o): Build with -Wno-error.
13538
135392010-09-01 Joel Brobecker <brobecker@adacore.com>
13540
13541 * utils.c (xsnprintf): Make non-static.
13542 * server.h: Add xsnprintf declaration.
13543 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
13544 replace calls to snprintf by calls to xsnprintf throughout.
13545
135462010-09-01 Joel Brobecker <brobecker@adacore.com>
13547
13548 * configure.ac: Add configure check for alloca.
13549 * configure, config.in: Regenerate.
13550 * server.h: Include alloca.h if it exists.
13551 * gdbreplay.c: Include alloca.h if it exists.
13552
1a981360
PA
135532010-08-28 Pedro Alves <pedro@codesourcery.com>
13554
13555 * linux-low.c (__SIGRTMIN): Define if not already defined.
13556 (linux_create_inferior): Check for __ANDROID__ rather than
13557 __SIGRTMIN.
13558 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
13559 are already deferred.
13560 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
13561 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
13562 stopped and already has a pending signal to report.
13563 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
13564 a pending signal to report or is moving out of a jump pad.
13565 (linux_init_signals): Check for __ANDROID__ rather than
13566 __SIGRTMIN.
13567
b4d51a55
PA
135682010-08-28 Pedro Alves <pedro@codesourcery.com>
13569
13570 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
13571 debug_threads check. Avoid a linear search when not doing debug
13572 output.
13573
ec48365d
PA
135742010-08-27 Pedro Alves <pedro@codesourcery.com>
13575
13576 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
13577 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
13578 (struct file_handler) <fd>: Change type to gdb_fildes_t.
13579 (process_event): Change local fd's type to gdb_fildes_t.
13580 (create_file_handler): Adjust prototype.
13581 (delete_file_handler): Adjust prototype.
13582 (handle_file_event): Adjust prototype. Use pfildes.
13583 (create_file_event): Adjsut prototype.
13584 * remote-utils.c (remote_desc, listen_desc): Change type to
13585 gdb_fildes_t.
13586 * server.h: New gdb_fildes_t typedef.
13587 [USE_WIN32API]: Include winsock2.h.
13588 (delete_file_handler, add_file_handler): Adjust prototypes.
13589 (pfildes): Declare.
13590 * utils.c (pfildes): New.
13591
854d88f0
PA
135922010-08-27 Pedro Alves <pedro@codesourcery.com>
13593
13594 * configure.ac (build_warnings): Add -Wno-char-subscripts.
13595 * configure: Regenerate.
13596
0146f85b
PA
135972010-08-27 Pedro Alves <pedro@codesourcery.com>
13598
13599 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
13600 (linux_done_accessing_memory): ... this.
13601 (linux_target_ops): Adjust.
13602 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
13603 * nto-low.c (nto_target_ops): Adjust comment.
13604 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
13605 * spu-low.c (spu_target_ops): Adjust comment.
13606 * target.h (target_ops): Rename unprepare_to_access_memory field
13607 to done_accessing_memory.
13608 (unprepare_to_access_memory): Rename to ...
13609 (done_accessing_memory): ... this.
13610
90d74c30
PA
136112010-08-26 Pedro Alves <pedro@codesourcery.com>
13612
13613 * linux-low.c (linux_prepare_to_access_memory): New.
13614 (linux_unprepare_to_access_memory): New.
13615 (linux_target_ops): Install them.
13616 * server.c (read_memory): Rename to ...
13617 (gdb_read_memory): ... this. Use
13618 prepare_to_access_memory/prepare_to_access_memory.
13619 (write_memory): Rename to ...
13620 (gdb_write_memory): ... this. Use
13621 prepare_to_access_memory/prepare_to_access_memory.
13622 (handle_search_memory_1): Adjust.
13623 (process_serial_event): Adjust.
13624 * target.h (struct target_ops): New fields
13625 prepare_to_access_memory and unprepare_to_access_memory.
13626 (prepare_to_access_memory, unprepare_to_access_memory): New.
13627 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
13628 prepare_to_access_memory/prepare_to_access_memory.
13629 * nto-low.c (nto_target_ops): Adjust.
13630 * spu-low.c (spu_target_ops): Adjust.
13631 * win32-low.c (win32_target_ops): Adjust.
13632
fd467969
PA
136332010-08-26 Pedro Alves <pedro@codesourcery.com>
13634
13635 * Makefile.in (WARN_CFLAGS): Get it from configure.
13636 (WERROR_CFLAGS): New.
13637 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
13638 * configure.ac: Introduce --enable-werror, which adds -Werror to
13639 the compiler command line. Enabled by default. Disable with
13640 --disable-werror. Add -Wdeclaration-after-statement
13641 Wpointer-arith and -Wformat-nonliteral to warning flags.
13642 * configure: Regenerate.
13643
331e2f5f
PA
136442010-08-26 Pedro Alves <pedro@codesourcery.com>
13645
13646 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
13647
e581f2b4
PA
136482010-08-26 Pedro Alves <pedro@codesourcery.com>
13649
13650 * gdbreplay.c (remote_error): New.
13651 (gdbchar): New.
13652 (expect): Use gdbchar. Check for error reading from GDB.
13653 Clarify sync error output.
13654 (play): Check for errors writing to GDB.
13655 * linux-low.c (sigchld_handler): Really ignore `write' errors.
13656 * remote-utils.c (getpkt): Check for errors writing to the remote
13657 descriptor.
13658
3c11dd79
PA
136592010-08-25 Pedro Alves <pedro@codesourcery.com>
13660
13661 * linux-low.c (linux_wait_1): Move non-debugging code out of
13662 `debug_threads' control.
13663
d20a8ad9
PA
136642010-08-25 Pedro Alves <pedro@codesourcery.com>
13665
13666 * linux-low.c (linux_wait_1): Don't set last_status here.
13667 * server.c (push_event, queue_stop_reply_callback): Assert we're
13668 not pushing a TARGET_WAITKIND_IGNORE event.
13669 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
13670 (myresume, handle_target_event): Set the thread's last_resume_kind
13671 and last_status from the target returned status.
13672
964e4306
PA
136732010-08-25 Pedro Alves <pedro@codesourcery.com>
13674
13675 PR threads/10729
13676
13677 * linux-x86-low.c (update_debug_registers_callback): New.
13678 (i386_dr_low_set_addr): Use it.
13679 (i386_dr_low_get_addr): New.
13680 (i386_dr_low_set_control): Use update_debug_registers_callback.
13681 (i386_dr_low_get_control): New.
13682 (i386_dr_low_get_status): Adjust.
13683 * linux-low.c (linux_stop_lwp): New.
13684 * linux-low.h (linux_stop_lwp): Declare.
13685
13686 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
13687 argument instead of a i386_debug_reg_state.
13688 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
13689 a i386_debug_reg_state.
13690 (i386_insert_aligned_watchpoint): Adjust.
13691 (i386_remove_aligned_watchpoint): Adjust.
13692 (i386_low_stopped_data_address): Read the debug registers from the
13693 inferior instead of from the mirrors.
13694 * i386-low.h (struct i386_debug_reg_state): Extend comment.
13695 (i386_dr_low_get_addr): Declare.
13696 (i386_dr_low_get_control): Declare.
13697 (i386_dr_low_get_status): Change prototype.
13698
13699 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
13700 (i386_dr_low_get_addr): New.
13701 (i386_dr_low_get_control): New.
13702 (i386_dr_low_get_status): Adjust prototype. Return
13703 dr_status_mirror.
13704 (i386_initial_stuff): Clear dr_status_mirror and
13705 dr_control_mirror.
13706 (i386_get_thread_context): Adjust.
13707 (i386_set_thread_context): Adjust.
13708 (i386_thread_added): Adjust.
13709
5f21a75b
PA
137102010-08-24 Pedro Alves <pedro@codesourcery.com>
13711
13712 * linux-low.h (linux_thread_area): Delete declaration.
13713
3e4c1235
TS
137142010-08-11 Thomas Schwinge <thomas@codesourcery.com>
13715
13716 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
13717 after its termination.
13718
1971b033
PA
137192010-08-09 Pedro Alves <pedro@codesourcery.com>
13720
13721 * linux-low.c (gdb_wants_lwp_stopped): Delete.
13722 (gdb_wants_all_stopped): Delete.
13723 (linux_wait_1): Don't call them.
13724 * server.c (handle_v_cont): Tag all threads as want-stopped.
13725 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
13726 stopped as "client-wants-stopped".
13727
310444ac
PA
137282010-07-31 Pedro Alves <pedro@codesourcery.com>
13729
13730 * Makefile.in (signals_h): New.
13731 (server_h): Depend on it.
13732 (server.o): Don't depend on $(signals_def).
13733 (signals.o): Depend on $(signals_def).
13734
a19cae16
JK
137352010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
13736
13737 * Makefile.in (signals_def): New.
13738 (server_h): Append include/gdb/signals.h and signals_def.
13739 (server.o): Append signals_def.
13740
30d50328
JK
137412010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
13742
13743 * server.c (handle_target_event): Use target_signal_to_host for
13744 resume_info.sig initialization.
13745 * target.h (struct thread_resume) <sig>: New comment.
13746
5c3216e2
OS
137472010-07-20 Ozkan Sezer <sezeroz@gmail.com>
13748
c6f46ca0
OS
13749 * server.c (handle_query): strcpy() the returned string from paddress()
13750 instead of sprintf().
5c3216e2
OS
13751 * utils.c (paddress): Return phex_nz().
13752
6bd31874
JB
137532010-07-07 Joel Brobecker <brobecker@adacore.com>
13754
13755 * server.c (handle_v_cont): Call mourn_inferior if process
13756 just exited.
13757 (myresume): Likewise.
13758
0fb4aa4b
PA
137592010-07-01 Pedro Alves <pedro@codesourcery.com>
13760
13761 Static tracepoints, and integration with UST.
13762
13763 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
13764 * mem-break.c (uninsert_all_breakpoints)
13765 (reinsert_all_breakpoints): New.
13766 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
13767 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
13768 (gdb_agent_ust_loaded, helper_thread_id)
13769 (gdb_agent_helper_thread_id): New macros.
13770 (struct ipa_sym_addresses): Add addr_ust_loaded,
13771 addr_helper_thread_id, addr_cmd_buf.
13772 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
13773 (in_process_agent_loaded_ust): New.
13774 (write_e_ust_not_loaded): New.
13775 (maybe_write_ipa_ust_not_loaded): New.
13776 (struct collect_static_trace_data_action): New.
13777 (enum tracepoint_type) <static_tracepoint>: New.
13778 (struct tracepoint) <handle>: Mention static tracepoints.
13779 (struct static_tracepoint_ctx): New.
13780 (CMD_BUF_SIZE): New.
13781 (add_tracepoint_action): Handle static tracepoint actions.
13782 (unprobe_marker_at): New.
13783 (clear_installed_tracepoints): Handle static tracepoints.
13784 (cmd_qtdp): Handle static tracepoints.
13785 (probe_marker_at): New.
13786 (cmd_qtstart): Handle static tracepoints.
13787 (response_tracepoint): Handle static tracepoints.
13788 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
13789 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
13790 (get_context_regcache): Handle static tracepoints.
13791 (do_action_at_tracepoint): Handle static tracepoint actions.
13792 (traceframe_find_block_type): Handle static trace data blocks.
13793 (traceframe_read_sdata): New.
13794 (download_tracepoints): Download static tracepoint actions.
13795 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
13796 (GDB_PROBE_NAME): New.
13797 (ust_ops): New.
13798 (GET_UST_SYM): New.
13799 (USTF): New.
13800 (dlsym_ust): New.
13801 (ust_marker_to_static_tracepoint): New.
13802 (gdb_probe): New.
13803 (collect_ust_data_at_tracepoint): New.
13804 (gdb_ust_probe): New.
13805 (UNIX_PATH_MAX, SOCK_DIR): New.
13806 (gdb_ust_connect_sync_socket): New.
13807 (resume_thread, stop_thread): New.
13808 (run_inferior_command): New.
13809 (init_named_socket): New.
13810 (gdb_ust_socket_init): New.
13811 (cstr_to_hexstr): New.
13812 (next_st): New.
13813 (first_marker, next_marker): New.
13814 (response_ust_marker): New.
13815 (cmd_qtfstm, cmd_qtsstm): New.
13816 (unprobe_marker_at, probe_marker_at): New.
13817 (cmd_qtstmat, gdb_ust_thread): New.
13818 (gdb_ust_init): New.
13819 (initialize_tracepoint_ftlib): Call gdb_ust_init.
13820 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
13821 (ST_REGENTRY): New.
13822 (x86_64_st_collect_regmap): New.
13823 (X86_64_NUM_ST_COLLECT_GREGS): New.
13824 (AMD64_RIP_REGNUM): New.
13825 (supply_static_tracepoint_registers): New.
13826 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
13827 (ST_REGENTRY): New.
13828 (i386_st_collect_regmap): New.
13829 (i386_NUM_ST_COLLECT_GREGS): New.
13830 (supply_static_tracepoint_registers): New.
13831 * server.c (handle_query): Handle qXfer:statictrace:read.
13832 <qSupported>: Report support for StaticTracepoints, and
13833 qXfer:statictrace:read features.
13834 * server.h (traceframe_read_sdata)
13835 (supply_static_tracepoint_registers): Declare.
13836 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
13837 (unpack_varlen_hex): Include in IPA build.
13838 * Makefile.in (ustlibs, ustinc): New.
13839 (IPA_OBJS): Add remote-utils-ipa.o.
13840 ($(IPA_LIB)): Link -ldl and -lpthread.
13841 (UST_CFLAGS): New.
13842 (IPAGENT_CFLAGS): Add UST_CFLAGS.
13843 * config.in, configure: Regenerate.
13844
9e4344e5
PA
138452010-06-20 Ian Lance Taylor <iant@google.com>
13846 Pedro Alves <pedro@codesourcery.com>
13847
13848 * linux-x86-low.c (always_true): Delete.
13849 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
13850 trying to fool the compiler with always_true.
13851
c6beb2cb
PA
138522010-06-20 Pedro Alves <pedro@codesourcery.com>
13853
13854 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
13855 conditions in gdbserver.
13856
d2ed6730
UW
138572010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
13858
13859 * spu-low.c (spu_read_memory): Wrap around local store limit.
13860 (spu_write_memory): Likewise.
13861
4e29fb54
PA
138622010-06-15 Pedro Alves <pedro@codesourcery.com>
13863
13864 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
13865 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
13866 LONGEST uses.
13867 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
13868 uses.
13869 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
13870 uses with LONGEST uses.
13871
6a271cae
PA
138722010-06-14 Stan Shebs <stan@codesourcery.com>
13873 Pedro Alves <pedro@codesourcery.com>
13874
13875 Bytecode compiler.
13876
13877 * linux-x86-low.c: Include limits.h.
13878 (add_insns): New.
13879 (always_true): New.
13880 (EMIT_ASM): New.
13881 (EMIT_ASM32): New.
13882 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
13883 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
13884 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
13885 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
13886 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
13887 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
13888 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
13889 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
13890 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
13891 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
13892 (amd64_emit_void_call_2): New.
13893 (amd64_emit_ops): New.
13894 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
13895 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
13896 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
13897 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
13898 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
13899 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
13900 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
13901 (i386_emit_call, i386_emit_reg, i386_emit_pop)
13902 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
13903 (i386_emit_stack_adjust, i386_emit_int_call_1)
13904 (i386_emit_void_call_2): New.
13905 (i386_emit_ops): New.
13906 (x86_emit_ops): New.
13907 (the_low_target): Install x86_emit_ops.
13908 * server.h (struct emit_ops): New.
13909 (get_raw_reg_func_addr): Declare.
13910 (current_insn_ptr, emit_error): Declare.
13911 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
13912 (set_trace_state_variable_value): New defines.
13913 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
13914 addr_get_trace_state_variable_value and
13915 addr_set_trace_state_variable_value.
13916 (symbol_list): New fields for get_raw_reg,
13917 get_trace_state_variable_value and set_trace_state_variable_value.
13918 (condfn): New typedef.
13919 (struct tracepoint): New field `compiled_cond'.
13920 (do_action_at_tracepoint): Clear compiled_cond.
13921 (get_trace_state_variable_value, set_trace_state_variable_value):
13922 Export in the IPA.
13923 (condition_true_at_tracepoint): If there's a compiled condition,
13924 run that.
13925 (current_insn_ptr, emit_error): New globals.
13926 (struct bytecode_address): New.
13927 (get_raw_reg_func_addr): New.
13928 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
13929 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
13930 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
13931 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
13932 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
13933 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
13934 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
13935 (compile_tracepoint_condition, compile_bytecodes): New.
13936 * target.h (emit_ops): Forward declare.
13937 (struct target_ops): New field emit_ops.
13938 (target_emit_ops): New.
13939 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
13940 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
13941 * linux-low.c (linux_emit_ops): New.
13942 (linux_target_ops): Install it.
13943 * linux-low.h (struct linux_target_ops): New field emit_ops.
13944
92b72907
UW
139452010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
13946
13947 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
13948 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
13949
fa593d66
PA
139502010-06-01 Pedro Alves <pedro@codesourcery.com>
13951 Stan Shebs <stan@codesourcery.com>
13952
13953 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
13954 (all): Depend on $(extra_libraries).
13955 (install-only): Install the IPA.
13956 (IPA_OBJS, IPA_LIB): New.
13957 (clean): Remove the IPA lib.
13958 (IPAGENT_CFLAGS): New.
13959 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
13960 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
13961 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
13962 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
13963 * configure.ac: Check for atomic builtins support in the compiler.
13964 (IPA_DEPFILES, extra_libraries): Define.
13965 * configure.srv (ipa_obj): Add description.
13966 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
13967 (i[34567]86-*-linux*): Set ipa_obj.
13968 (x86_64-*-linux*): Set ipa_obj.
13969 * linux-low.c (stabilizing_threads): New.
13970 (supports_fast_tracepoints): New.
13971 (linux_detach): Stabilize threads before detaching.
13972 (handle_tracepoints): Handle internal tracing breakpoints. Assert
13973 the lwp is either not stabilizing, or is moving out of a jump pad.
13974 (linux_fast_tracepoint_collecting): New.
13975 (maybe_move_out_of_jump_pad): New.
13976 (enqueue_one_deferred_signal): New.
13977 (dequeue_one_deferred_signal): New.
13978 (linux_wait_for_event_1): If moving out of a jump pad, defer
13979 pending signals to later.
13980 (linux_stabilize_threads): New.
13981 (linux_wait_1): Check if threads need moving out of jump pads, and
13982 do it if so.
13983 (stuck_in_jump_pad_callback): New.
13984 (move_out_of_jump_pad_callback): New.
13985 (lwp_running): New.
13986 (linux_resume_one_lwp): Handle moving out of jump pads.
13987 (linux_set_resume_request): Dequeue deferred signals.
13988 (need_step_over_p): Also step over fast tracepoint jumps.
13989 (start_step_over): Also uninsert fast tracepoint jumps.
13990 (finish_step_over): Also reinsert fast tracepoint jumps.
13991 (linux_install_fast_tracepoint_jump): New.
13992 (linux_target_ops): Install linux_stabilize_threads and
13993 linux_install_fast_tracepoint_jump_pad.
13994 * linux-low.h (linux_target_ops) <get_thread_area,
13995 install_fast_tracepoint_jump_pad>: New fields.
13996 (struct lwp_info) <collecting_fast_tracepoint,
13997 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
13998 (linux_get_thread_area): Declare.
13999 * linux-x86-low.c (jump_insn): New.
14000 (x86_get_thread_area): New.
14001 (append_insns): New.
14002 (push_opcode): New.
14003 (amd64_install_fast_tracepoint_jump_pad): New.
14004 (i386_install_fast_tracepoint_jump_pad): New.
14005 (x86_install_fast_tracepoint_jump_pad): New.
14006 (the_low_target): Install x86_get_thread_area and
14007 x86_install_fast_tracepoint_jump_pad.
14008 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
14009 (struct fast_tracepoint_jump): New.
14010 (fast_tracepoint_jump_insn): New.
14011 (fast_tracepoint_jump_shadow): New.
14012 (find_fast_tracepoint_jump_at): New.
14013 (fast_tracepoint_jump_here): New.
14014 (delete_fast_tracepoint_jump): New.
14015 (set_fast_tracepoint_jump): New.
14016 (uninsert_fast_tracepoint_jumps_at): New.
14017 (reinsert_fast_tracepoint_jumps_at): New.
14018 (set_breakpoint_at): Use write_inferior_memory.
14019 (uninsert_raw_breakpoint): Use write_inferior_memory.
14020 (check_mem_read): Mask out fast tracepoint jumps.
14021 (check_mem_write): Mask out fast tracepoint jumps.
14022 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
14023 (set_fast_tracepoint_jump): Declare.
14024 (delete_fast_tracepoint_jump)
14025 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
14026 (reinsert_fast_tracepoint_jumps_at): Declare.
14027 * regcache.c: Don't compile many functions when building the
14028 in-process agent library.
14029 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
14030 the register buffer in the heap.
14031 (free_register_cache): If the register buffer isn't owned by the
14032 regcache, don't free it.
14033 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
14034 pre-existing register caches.
14035 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
14036 type.
14037 (convert_ascii_to_int): : Constify `from' parameter type.
14038 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
14039 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
14040 the needed buffer in-place.
14041 (relocate_instruction): New.
14042 * server.c (handle_query) <qSymbols>: If the target supports
14043 tracepoints, give it a chance of looking up symbols. Report
14044 support for fast tracepoints.
14045 (handle_status): Stabilize threads.
14046 (process_serial_event): Adjust.
14047 * server.h (struct fast_tracepoint_jump): Forward declare.
14048 (struct process_info) <fast_tracepoint_jumps>: New field.
14049 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
14050 (decode_X_packet, decode_M_packet): Adjust.
14051 (relocate_instruction): Declare.
14052 (in_process_agent_loaded): Declare.
14053 (tracepoint_look_up_symbols): Declare.
14054 (struct fast_tpoint_collect_status): Declare.
14055 (fast_tracepoint_collecting): Declare.
14056 (force_unlock_trace_buffer): Declare.
14057 (handle_tracepoint_bkpts): Declare.
14058 (initialize_low_tracepoint)
14059 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
14060 * target.h (struct target_ops) <stabilize_threads,
14061 install_fast_tracepoint_jump_pad>: New fields.
14062 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
14063 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
14064 [HAVE_STDINT_H]: Include stdint.h.
14065 (trace_debug_1): Rename to ...
14066 (trace_vdebug): ... this.
14067 (trace_debug): Rename to ...
14068 (trace_debug_1): ... this. Add `level' parameter.
14069 (trace_debug): New.
14070 (ATTR_USED, ATTR_NOINLINE): New.
14071 (IP_AGENT_EXPORT): New.
14072 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
14073 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
14074 (about_to_request_buffer_space, trace_buffer_is_full)
14075 (stopping_tracepoint, expr_eval_result, error_tracepoint)
14076 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
14077 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
14078 (traceframe_write_count, traceframes_created)
14079 (trace_state_variables)
14080 New renaming defines.
14081 (struct ipa_sym_addresses): New.
14082 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
14083 (symbol_list): New.
14084 (ipa_sym_addrs): New.
14085 (all_tracepoint_symbols_looked_up): New.
14086 (in_process_agent_loaded): New.
14087 (write_e_ipa_not_loaded): New.
14088 (maybe_write_ipa_not_loaded): New.
14089 (tracepoint_look_up_symbols): New.
14090 (debug_threads) [IN_PROCESS_AGENT]: New.
14091 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
14092 (UNKNOWN_SIDE_EFFECTS): New.
14093 (stop_tracing): New.
14094 (flush_trace_buffer): New.
14095 (stop_tracing_bkpt): New.
14096 (flush_trace_buffer_bkpt): New.
14097 (read_inferior_integer): New.
14098 (read_inferior_uinteger): New.
14099 (read_inferior_data_pointer): New.
14100 (write_inferior_data_pointer): New.
14101 (write_inferior_integer): New.
14102 (write_inferior_uinteger): New.
14103 (struct collect_static_trace_data_action): Delete.
14104 (enum tracepoint_type): New.
14105 (struct tracepoint) <type>: New field `type'.
43aaf8b6
PA
14106 <actions_str, step_actions, step_actions_str>: Only include in
14107 GDBserver.
fa593d66
PA
14108 <orig_size, obj_addr_on_target, adjusted_insn_addr>
14109 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
14110 (tracepoints): Use IP_AGENT_EXPORT.
14111 (last_tracepoint): Don't include in the IPA.
14112 (stopping_tracepoint): Use IP_AGENT_EXPORT.
14113 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
14114 (alloced_trace_state_variables): New.
14115 (trace_state_variables): Use IP_AGENT_EXPORT.
14116 (traceframe_t): Delete unused variable.
14117 (circular_trace_buffer): Don't include in the IPA.
14118 (trace_buffer_start): Delete.
14119 (struct trace_buffer_control): New.
14120 (trace_buffer_free): Delete.
14121 (struct ipa_trace_buffer_control): New.
14122 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
14123 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
14124 New.
14125 (trace_buffer_ctrl): New.
14126 (TRACE_BUFFER_CTRL_CURR): New.
14127 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
14128 Reimplement as macros.
14129 (trace_buffer_wrap): Delete.
14130 (traceframe_write_count, traceframe_read_count)
14131 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
14132 (struct tracepoint_hit_ctx) <type>: New field.
14133 (struct fast_tracepoint_ctx): New.
14134 (memory_barrier): New.
14135 (cmpxchg): New.
14136 (record_tracepoint_error): Update atomically in the IPA.
14137 (clear_inferior_trace_buffer): New.
14138 (about_to_request_buffer_space): New.
14139 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
14140 updating the same buffer.
14141 (add_tracepoint): Default the tracepoint's type to trap
14142 tracepoint, and orig_size to -1.
14143 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
14144 internal variables.
14145 (create_trace_state_variable): New parameter `gdb'. Handle it.
14146 (clear_installed_tracepoints): Clear fast tracepoint jumps.
14147 (cmd_qtdp): Handle fast tracepoints.
14148 (cmd_qtdv): Adjust.
14149 (max_jump_pad_size): New.
14150 (gdb_jump_pad_head): New.
14151 (get_jump_space_head): New.
14152 (claim_jump_space): New.
14153 (sort_tracepoints): New.
14154 (MAX_JUMP_SIZE): New.
14155 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
14156 IPA.
14157 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
14158 support. Upload fast traceframes, and delete internal IPA
14159 breakpoints.
14160 (stop_tracing_handler): New.
14161 (flush_trace_buffer_handler): New.
14162 (cmd_qtstop): Upload fast tracepoints.
14163 (response_tracepoint): Handle fast tracepoints.
14164 (tracepoint_finished_step): Upload fast traceframes. Set the
14165 tracepoint hit context's tracepoint type.
14166 (handle_tracepoint_bkpts): New.
14167 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
14168 type. Add comment about fast tracepoints.
14169 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
14170 non-existing action_str field.
14171 (get_context_regcache): Handle fast tracepoints.
14172 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
14173 to the regcache.
14174 (fast_tracepoint_from_jump_pad_address): New.
14175 (fast_tracepoint_from_ipa_tpoint_address): New.
14176 (collecting_t): New.
14177 (force_unlock_trace_buffer): New.
14178 (fast_tracepoint_collecting): New.
14179 (collecting): New.
14180 (gdb_collect): New.
14181 (write_inferior_data_ptr): New.
14182 (target_tp_heap): New.
14183 (target_malloc): New.
14184 (download_agent_expr): New.
14185 (UALIGN): New.
14186 (download_tracepoints): New.
14187 (download_trace_state_variables): New.
14188 (upload_fast_traceframes): New.
14189 (IPA_FIRST_TRACEFRAME): New.
14190 (IPA_NEXT_TRACEFRAME_1): New.
14191 (IPA_NEXT_TRACEFRAME): New.
14192 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
14193 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
14194 (gdb_jump_pad_buffer_end): New.
14195 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
14196 (initialize_tracepoint): Adjust.
14197 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
14198 buffer. Initialize the low module.
14199 * utils.c (PREFIX, TOOLNAME): New.
14200 (malloc_failure): Use PREFIX.
14201 (error): In the IPA, an error causes an exit.
14202 (fatal, warning): Use PREFIX.
14203 (internal_error): Use TOOLNAME.
14204 (NUMCELLS): Increase to 10.
14205 * configure, config.in: Regenerate.
14206
d149dd1d
PA
142072010-06-01 Pedro Alves <pedro@codesourcery.com>
14208
14209 * server.c (handle_query) <qSupported>: Do two passes over the
14210 qSupported string to avoid nesting strtok.
14211
f6528abd
JK
142122010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14213
14214 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
14215 (CDEPS): New.
14216 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
14217 -Wl,--dynamic-list.
14218 * configure: Regenerate.
14219 * proc-service.list: New.
14220
ca2a87a0
JK
142212010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14222
14223 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
14224 New comment.
14225
363a6e9f
OS
142262010-05-26 Ozkan Sezer <sezeroz@gmail.com>
14227
14228 * gdbreplay.c (remote_open): Check error return from socket() call by
14229 its equality to -1 not by it being negative.
14230 * remote-utils.c (remote_open): Likewise.
14231
d23b6cb1
PA
142322010-05-23 Pedro Alves <pedro@codesourcery.com>
14233
14234 * config.h: Regenerate.
14235
28d3cf85
MK
142362010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
14237
14238 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
14239 doesn't provide PTRACE_GET_THREAD_AREA.
14240
fea36a59
MK
142412010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
14242
14243 * linux-m68k-low.c: Include <asm/ptrace.h>
14244 (ps_get_thread_area): Implement.
14245
24b066ba
DE
142462010-05-03 Doug Evans <dje@google.com>
14247
14248 * event-loop.c (struct callback_event): New struct.
14249 (callback_list): New global.
14250 (append_callback_event, delete_callback_event): New functions.
14251 (process_callback): New function.
14252 (start_event_loop): Call it.
14253 * remote-utils.c (NOT_SCHEDULED): Define.
14254 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
14255 moved out of readchar.
14256 (readchar): Rewrite. Call reschedule before returning.
14257 (reset_readchar): New function.
14258 (remote_close): Call it.
14259 (process_remaining, reschedule): New functions.
14260 * server.h (callback_handler_func): New typedef.
14261 (append_callback_event, delete_callback_event): Declare.
14262
9836d6ea
PA
142632010-05-03 Pedro Alves <pedro@codesourcery.com>
14264
14265 * proc-service.c (ps_pglobal_lookup): Use
14266 thread_db_look_up_one_symbol.
14267 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
14268 parameter. Use it instead of all_symbols_looked_up.
14269 * server.h (struct process_info) <all_symbols_looked_up>: Delete
14270 field.
14271 (all_symbols_looked_up): Don't declare.
14272 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
14273 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
14274 field.
14275 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
14276 Set all_symbols_looked_up here.
14277 (thread_db_look_up_one_symbol): New.
14278 (thread_db_get_tls_address): Adjust.
14279 (thread_db_load_search, try_thread_db_load_1): Always allocate the
14280 thread_db object on the heap, and tentatively set it in the
14281 process structure.
14282 (thread_db_init): Don't set all_symbols_looked_up here.
14283 * linux-low.h (thread_db_look_up_one_symbol): Declare.
14284
7984d532
PA
142852010-05-03 Pedro Alves <pedro@codesourcery.com>
14286
14287 * linux-low.c (linux_kill, linux_detach): Adjust.
14288 (status_pending_p_callback): Remove redundant statement. Check
14289 for !TARGET_WAITIKIND_IGNORE, instead of
14290 TARGET_WAITKIND_STOPPED.
14291 (handle_tracepoints): Make sure LWP is locked. Adjust.
14292 (linux_wait_for_event_1): Adjust.
14293 (linux_cancel_breakpoints): New.
14294 (unsuspend_one_lwp): New.
14295 (unsuspend_all_lwps): New.
14296 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
14297 (send_sigstop_callback): Change return type to int, add new
14298 `except' parameter and handle it.
14299 (suspend_and_send_sigstop_callback): New.
14300 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
14301 pass them down. If SUSPEND, also increment the lwp's suspend
14302 count.
14303 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
14304 (need_step_over_p): Don't consider suspended LWPs.
14305 (start_step_over): Adjust.
14306 (proceed_one_lwp): Change return type to int, add new `except'
14307 parameter and handle it.
14308 (unsuspend_and_proceed_one_lwp): New.
14309 (proceed_all_lwps): Use find_inferior instead of
14310 for_each_inferior.
14311 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
14312 also decrement the suspend count of LWPs. Pass `except' down,
14313 instead of hacking its suspend count.
14314 (linux_pause_all): Add `freeze' parameter. Adjust.
14315 (linux_unpause_all): New.
14316 (linux_target_ops): Install linux_unpause_all.
14317 * server.c (handle_status): Adjust.
14318 * target.h (struct target_ops): New fields `unpause_all' and
14319 `cancel_breakpoints'. Add new parameter to `pause_all'.
14320 (pause_all): Add new `freeze' parameter.
14321 (unpause_all): New.
14322 (cancel_breakpoints): New.
14323 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
14324 cancel breakpoints.
14325 (cmd_qtstart): Pause threads.
14326 (stop_tracing): Pause threads, and cancel breakpoints.
14327 * win32-low.c (win32_target_ops): Adjust.
14328
e471f25b
PA
143292010-05-03 Pedro Alves <pedro@codesourcery.com>
14330
14331 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
14332 the inferior right away from here...
14333 (linux_wait_1): ... to here, and adjust to check the thread's
14334 last_resume_kind instead of the lwp's step or stop_expected flags.
14335
1915ef4f
PA
143362010-05-02 Pedro Alves <pedro@codesourcery.com>
14337
14338 * README: Use consistent `GDB' and `GDBserver' spellings.
14339
f9e39928
PA
143402010-05-02 Pedro Alves <pedro@codesourcery.com>
14341
14342 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
14343 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
14344 (linux_detach_one_lwp): Assume the lwp is stopped.
14345 (any_thread_of): Delete.
14346 (linux_detach): Stop all lwps here. Don't blindly delete all
14347 breakpoints.
14348 (delete_lwp_callback): New.
14349 (linux_mourn): Delete all lwps of the process that is gone.
14350 (linux_wait_1): Don't delete the last lwp of the process here.
14351 * mem-break.h (mark_breakpoints_out): Declare.
14352 * mem-break.c (mark_breakpoints_out): New.
14353 (free_all_breakpoints): Use it.
14354 * server.c (handle_target_event): If the process is gone, mark
14355 breakpoints out.
14356 * thread-db.c (struct thread_db) <create_bp>: New field.
14357 (thread_db_enable_reporting): Fix prototype. Store a thread event
14358 breakpoint reference in the thread_db struct.
14359 (thread_db_load_search): Clear the thread_db object.
14360 (try_thread_db_load_1): Ditto.
14361 (switch_to_process): New.
14362 (disable_thread_event_reporting): Use it.
14363 (remove_thread_event_breakpoints): New.
14364 (thread_db_detach, thread_db_mourn): Use it.
14365
1e7fc18c
PA
143662010-05-01 Pedro Alves <pedro@codesourcery.com>
14367
14368 * linux-low.c (linux_enable_event_reporting): New.
14369 (linux_wait_for_event_1, handle_extended_wait): Use it.
14370
02fc4de7
PA
143712010-04-30 Pedro Alves <pedro@codesourcery.com>
14372
14373 * linux-low.c (linux_kill_one_lwp, linux_kill)
14374 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
14375 (send_sigstop): Take an lwp_info as parameter instead. Queue a
14376 SIGSTOP even if the LWP is stopped.
14377 (send_sigstop_callback): New.
14378 (stop_all_lwps): Use send_sigstop_callback instead.
14379 (linux_resume_one_thread): Adjust.
14380 (proceed_one_lwp): Still proceed an LWP that the client has
14381 requested to stop, if we haven't reported it as stopped yet. Make
14382 sure that LWPs the client want stopped, have a pending SIGSTOP.
14383
bc3b5632
DE
143842010-04-26 Doug Evans <dje@google.com>
14385
ae1ada35
DE
14386 * server.c (handle_general_set): Make static.
14387
bc3b5632
DE
14388 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
14389 Print received char after testing for error/eof instead of before.
14390 (input_interrupt): Tweak comment.
14391
65730243
DE
143922010-04-23 Doug Evans <dje@google.com>
14393
14394 * server.c (start_inferior): Print inferior argv if --debug.
14395
a8ae7dc0
AR
143962010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
14397
14398 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
14399 * nto-x86-low.c: Include server.h
14400
1c07cc19
PM
144012010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
14402
14403 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
14404 be consistent with other sources of this directory.
14405 (init_registers_amd64): Correct name of source file of this function
14406 in the comment.
14407
e0a61e09
PM
144082010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
14409
14410 * configure.srv (x86_64-*-mingw*): New configuration for Windows
14411 64-bit executables.
14412
54709339
PM
144132010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
14414
14415 * win32-i386-low.c: Add 64-bit support.
14416 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
14417 (init_registers_amd64): Declare.
14418 (mappings): Add 64-bit version of array.
14419 (init_windows_x86): New function.
14420 (the_low_target): Change init_arch field to init_windows_x86.
14421
e8f0053d
PM
144222010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
14423
14424 * win32-low.c: Adapt to support also 64-bit architecture.
14425 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
14426 (get_image_name): Use SIZE_T type for local variable `done'.
14427 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
14428 (toolhelp_get_dll_name): Idem.
14429 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
14430 Use uintptr_t typecast to avoid warning.
14431 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
14432 (handle_exception): Use phex_nz to avoid warning.
14433 (win32_wait): Remove unused local variable `process'.
14434
c481e77e
PM
144352010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
14436
14437 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
14438 `amd64-avx.o'.
14439
12ea4b69
PM
144402010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
14441
14442 * configure.ac: Use `ws2_32' library for srv_mingw.
14443 * configure: Regenerate.
14444 * gdbreplay.c: Include winsock2.h instead of winsock.h.
14445 * remote-utils.c: Likewise.
14446
f6d1620c
L
144472010-04-17 H.J. Lu <hongjiu.lu@intel.com>
14448
14449 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
14450 if __x86_64__ is defined.
14451
8e642873
PM
144522010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
14453
14454 * configure: Regenerate.
14455
711e434b
PM
144562010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
14457
14458 * server.c (handle_query): Handle 'qGetTIBAddr' query.
14459 * target.h (target_ops): New get_tib_address field.
14460 * win32-low.h (win32_thread_info): Add thread_local_base field.
14461 * win32-low.c (child_add_thread): Add tlb argument.
14462 Set thread_local_base field to TLB.
14463 (get_child_debug_event): Adapt to child_add_thread change.
14464 (win32_get_tib_address): New function.
14465 (win32_target_ops): Set get_tib_address field to
14466 win32_get_tib_address.
14467 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
14468
505106cd
PA
144692010-04-12 Pedro Alves <pedro@codesourcery.com>
14470
505106cd
PA
14471 * linux-low.c (linux_mourn): Also remove the process.
14472 * server.c (handle_target_event): Don't remove the process here.
14473 * nto-low.c (nto_mourn): New.
14474 (nto_target_ops): Install it.
14475 * spu-low.c (spu_mourn): New.
14476 (spu_target_ops): Install it.
14477 * win32-low.c (win32_mourn): New.
14478 (win32_target_ops): Install it.
14479
e8470a06
PA
144802010-04-12 Pedro Alves <pedro@codesourcery.com>
14481
14482 * server.h (buffer_xml_printf): Remove redundant `;'.
14483
45ba0d02
PA
144842010-04-12 Pedro Alves <pedro@codesourcery.com>
14485
14486 * regcache.c (set_register_cache): Invalidate regcaches before
14487 changing the register cache layout.
14488 (regcache_invalidate_one): Allow a NULL regcache.
14489 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
14490 regcaches before changing the register cache layout or the target
14491 regsets.
14492
59e04013
L
144932010-04-12 H.J. Lu <hongjiu.lu@intel.com>
14494
14495 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
14496 variable warning on Linux/x86-64.
14497
8336d594
PA
144982010-04-11 Pedro Alves <pedro@codesourcery.com>
14499
14500 GDBserver disconnected tracing support.
14501
14502 * linux-low.c (linux_remove_process): Delete.
14503 (add_lwp): Don't set last_resume_kind here.
14504 (linux_kill): Use `mourn'.
14505 (linux_detach): Use `thread_db_detach', and `mourn'.
14506 (linux_mourn): New.
14507 (linux_attach_lwp_1): Adjust comment.
14508 (linux_attach): last_resume_kind moved the thread_info; adjust.
14509 (status_pending_p_callback): Adjust.
14510 (linux_wait_for_event_1): Adjust.
14511 (count_events_callback, select_singlestep_lwp_callback)
14512 (select_event_lwp_callback, cancel_breakpoints_callback)
14513 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
14514 (proceed_one_lwp): Adjust.
14515 (linux_async): Add debug output.
14516 (linux_thread_stopped): New.
14517 (linux_pause_all): New.
14518 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
14519 linux_pause_all.
14520 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
14521 (thread_db_free): Delete declaration.
14522 (thread_db_detach, thread_db_mourn): Declare.
14523 * thread-db.c (thread_db_init): Use thread_db_mourn.
14524 (thread_db_free): Delete, split in two.
14525 (disable_thread_event_reporting): New.
14526 (thread_db_detach): New.
14527 (thread_db_mourn): New.
14528
14529 * server.h (struct thread_info) <last_resume_kind>: New field.
14530 <attached>: Add comment.
14531 <gdb_detached>: New field.
14532 (handler_func): Change return type to int.
14533 (handle_serial_event, handle_target_event): Ditto.
14534 (gdb_connected): Declare.
14535 (tracing): Delete.
14536 (disconnected_tracing): Declare.
14537 (stop_tracing): Declare.
14538
14539 * server.c (handle_query) <qSupported>: Report support for
14540 disconnected tracing.
14541 (queue_stop_reply_callback): Account for running threads.
14542 (gdb_wants_thread_stopped): New.
14543 (gdb_wants_all_threads_stopped): New.
14544 (gdb_reattached_process): New.
14545 (handle_status): Clear the `gdb_detached' flag of all processes.
14546 In all-stop, stop all threads.
14547 (main): Be sure to leave tfind mode. Handle disconnected tracing.
14548 (process_serial_event): If the remote connection breaks, or if an
14549 exit was forced with "monitor exit", force an event loop exit.
14550 Handle disconnected tracing on detach.
14551 (handle_serial_event): Adjust.
14552 (handle_target_event): If GDB isn't connected, forward events back
14553 to the inferior, unless the last process exited, in which case,
14554 exit gdbserver. Adjust interface.
14555
14556 * remote-utils.c (remote_open): Don't block in accept. Instead
14557 register an event loop source on the listen socket file
14558 descriptor. Refactor bits into ...
14559 (listen_desc): ... this new global.
14560 (gdb_connected): ... this new function.
14561 (enable_async_notification): ... this new function.
14562 (handle_accept_event): ... this new function.
14563 (remote_close): Clear remote_desc.
14564
14565 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
14566
14567 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
14568 New fields.
14569 (mourn_inferior): Define.
14570 (target_process_qsupported): Avoid the dangling else problem.
14571 (thread_stopped): Define.
14572 (pause_all): Define.
14573 (target_waitstatus_to_string): Declare.
14574 * target.c (target_waitstatus_to_string): New.
14575
14576 * tracepoint.c (tracing): Make extern.
14577 (disconnected_tracing): New.
14578 (stop_tracing): Make extern. Handle tracing stops due to GDB
14579 disconnecting.
14580 (cmd_qtdisconnected): New.
14581 (cmd_qtstatus): Report disconnected tracing status in trace reply.
14582 (handle_tracepoint_general_set): Handle QTDisconnected.
14583
14584 * event-loop.c (event_handler_func): Change return type to int.
14585 (process_event): Bail out if the event handler wants the event
14586 loop to stop.
14587 (handle_file_event): Ditto.
14588 (start_event_loop): Bail out if the event handler wants the event
14589 loop to stop.
14590
14591 * nto-low.c (nto_target_ops): Adjust.
14592 * spu-low.c (spu_wait): Don't remove the process here.
14593 (spu_target_ops): Adjust.
14594 * win32-low.c (win32_wait): Don't remove the process here.
14595 (win32_target_ops): Adjust.
14596
5d267c4c
PA
145972010-04-11 Pedro Alves <pedro@codesourcery.com>
14598
14599 * regcache.c (realloc_register_cache): Invalidate inferior's
14600 regcache before recreating it.
14601
623ccd72
PA
146022010-04-09 Pedro Alves <pedro@codesourcery.com>
14603
14604 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
14605
219f2f23
PA
146062010-04-09 Stan Shebs <stan@codesourcery.com>
14607 Pedro Alves <pedro@codesourcery.com>
14608
14609 * server.h (LONGEST): New.
14610 (struct thread_info) <while_stepping>: New field.
14611 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
14612 Declare.
14613 (initialize_tracepoint, handle_tracepoint_general_set)
14614 (handle_tracepoint_query, tracepoint_finished_step)
14615 (tracepoint_was_hit, release_while_stepping_state_list):
14616 (current_traceframe): Declare.
14617 * server.c (handle_general_set): Handle tracepoint packets.
14618 (read_memory): New.
14619 (write_memory): New.
14620 (handle_search_memory_1): Use read_memory.
14621 (handle_query): Report support for conditional tracepoints, trace
14622 state variables, and tracepoint sources. Handle tracepoint
14623 queries.
14624 (main): Initialize the tracepoints module.
14625 (process_serial_event): Handle traceframe reads/writes.
14626
14627 * linux-low.c (handle_tracepoints): New.
14628 (linux_wait_1): Call it.
14629 (linux_resume_one_lwp): Handle while-stepping.
14630 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
14631 (linux_target_ops): Install them.
14632 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
14633 New field.
14634 * linux-x86-low.c (x86_supports_tracepoints): New.
14635 (the_low_target). Install it.
14636
14637 * mem-break.h (delete_breakpoint): Declare.
14638 * mem-break.c (delete_breakpoint): Make external.
14639
14640 * target.h (struct target_ops): Add `supports_tracepoints',
14641 `read_pc', and `write_pc' fields.
14642 (target_supports_tracepoints): Define.
14643 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
14644 (phex_nz): New.
14645
14646 * regcache.h (struct regcache) <registers_owned>: New field.
14647 (init_register_cache, regcache_cpy): Declare.
14648 (regcache_read_pc, regcache_write_pc): Declare.
14649 (register_cache_size): Declare.
14650 (supply_regblock): Declare.
14651 * regcache.c (init_register_cache): New.
14652 (new_register_cache): Use it.
14653 (regcache_cpy): New.
14654 (register_cache_size): New.
14655 (supply_regblock): New.
14656 (regcache_read_pc, regcache_write_pc): New.
889bf7c5 14657
219f2f23
PA
14658 * tracepoint.c: New.
14659
14660 * Makefile.in (OBS): Add tracepoint.o.
14661 (tracepoint.o): New rule.
14662
3a13a53b
L
146632010-04-08 H.J. Lu <hongjiu.lu@intel.com>
14664
14665 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
14666 (i386-mmx.o): New.
14667 (i386-mmx.c): Likewise.
14668 (i386-mmx-linux.o): Likewise.
14669 (i386-mmx-linux.c): Likewise.
14670
14671 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
14672 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
14673 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
14674 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
14675
14676 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
14677 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
14678 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
14679
1570b33e
L
146802010-04-07 H.J. Lu <hongjiu.lu@intel.com>
14681
14682 * Makefile.in (clean): Updated.
14683 (i386-avx.o): New.
14684 (i386-avx.c): Likewise.
14685 (i386-avx-linux.o): Likewise.
14686 (i386-avx-linux.c): Likewise.
14687 (amd64-avx.o): Likewise.
14688 (amd64-avx.c): Likewise.
14689 (amd64-avx-linux.o): Likewise.
14690 (amd64-avx-linux.c): Likewise.
14691
14692 * configure.srv (srv_i386_regobj): Add i386-avx.o.
14693 (srv_i386_linux_regobj): Add i386-avx-linux.o.
14694 (srv_amd64_regobj): Add amd64-avx.o.
14695 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
14696 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
14697 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
14698 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
14699 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
14700 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
14701 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
14702
14703 * i387-fp.c: Include "i386-xstate.h".
14704 (i387_xsave): New.
14705 (i387_cache_to_xsave): Likewise.
14706 (i387_xsave_to_cache): Likewise.
14707 (x86_xcr0): Likewise.
14708
14709 * i387-fp.h (i387_cache_to_xsave): Likewise.
14710 (i387_xsave_to_cache): Likewise.
14711 (x86_xcr0): Likewise.
14712
14713 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
14714 * linux-crisv32-low.c (target_regsets): Likewise.
14715 * linux-m68k-low.c (target_regsets): Likewise.
14716 * linux-mips-low.c (target_regsets): Likewise.
14717 * linux-ppc-low.c (target_regsets): Likewise.
14718 * linux-s390-low.c (target_regsets): Likewise.
14719 * linux-sh-low.c (target_regsets): Likewise.
14720 * linux-sparc-low.c (target_regsets): Likewise.
14721 * linux-xtensa-low.c (target_regsets): Likewise.
14722
14723 * linux-low.c: Include <sys/uio.h>.
14724 (regsets_fetch_inferior_registers): Support nt_type.
14725 (regsets_store_inferior_registers): Likewise.
14726 (linux_process_qsupported): New.
14727 (linux_target_ops): Add linux_process_qsupported.
14728
14729 * linux-low.h (regset_info): Add nt_type.
14730 (linux_target_ops): Add process_qsupported.
14731
14732 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
14733 and <sys/uio.h>.
14734 (init_registers_i386_avx_linux): New.
14735 (init_registers_amd64_avx_linux): Likewise.
14736 (xmltarget_i386_linux_no_xml): Likewise.
14737 (xmltarget_amd64_linux_no_xml): Likewise.
14738 (PTRACE_GETREGSET): Likewise.
14739 (PTRACE_SETREGSET): Likewise.
14740 (x86_fill_xstateregset): Likewise.
14741 (x86_store_xstateregset): Likewise.
14742 (use_xml): Likewise.
14743 (x86_linux_update_xmltarget): Likewise.
14744 (x86_linux_process_qsupported): Likewise.
14745 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
14746 (x86_arch_setup): Don't call init_registers_amd64_linux nor
14747 init_registers_i386_linux here. Call
14748 x86_linux_update_xmltarget.
14749 (the_low_target): Add x86_linux_process_qsupported.
14750
14751 * server.c (handle_query): Call target_process_qsupported.
14752
14753 * target.h (target_ops): Add process_qsupported.
14754 (target_process_qsupported): New.
14755
fc7238bb
PA
147562010-04-03 Pedro Alves <pedro@codesourcery.com>
14757
14758 * inferiors.c (add_thread): Set last_status kind to
14759 TARGET_WAITKIND_IGNORE.
14760 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
14761 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
14762 (linux_wait_1): Move `thread' local definition to block that uses
14763 it. Don't NULL initialize `event_child'.
14764 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
14765 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
14766 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
14767
bdabb078
PA
147682010-04-01 Pedro Alves <pedro@codesourcery.com>
14769
14770 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
14771 an extended waitstatus, or by a watchpoint.
14772 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
14773 thread was stepping or has been stopped by a watchpoint.
14774
d3bbe7a0
PA
147752010-04-01 Pedro Alves <pedro@codesourcery.com>
14776
14777 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
14778 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
14779 of another, then delete the previous, and validate all
14780 breakpoints.
14781 (validate_inserted_breakpoint): New.
14782 (delete_disabled_breakpoints): New.
14783 (validate_breakpoints): New.
14784 (check_mem_read): Validate breakpoints before trusting their
14785 shadow. Delete disabled breakpoints.
14786 (check_mem_write): Validate breakpoints before trusting they
14787 should be inserted. Delete disabled breakpoints.
14788 * mem-break.h (validate_breakpoints):
14789 * server.c (handle_query): Validate breakpoints when we see a
14790 qSymbol query.
14791
8b07ae33
PA
147922010-04-01 Pedro Alves <pedro@codesourcery.com>
14793
14794 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
14795 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
14796 if we could tell there's a GDB breakpoint at stop_pc.
14797 (need_step_over_p): Don't do a step over if we find a GDB
14798 breakpoint at the resume PC.
14799
14800 * mem-break.c (struct raw_breakpoint): New.
14801 (enum bkpt_type): New type `gdb_breakpoint'.
14802 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
14803 fields. New field `raw'.
14804 (find_raw_breakpoint_at): New.
14805 (set_raw_breakpoint_at): Handle refcounting. Create a raw
14806 breakpoint instead.
14807 (set_breakpoint_at): Adjust.
14808 (delete_raw_breakpoint): New.
14809 (release_breakpoint): New.
14810 (delete_breakpoint): Rename to...
14811 (delete_breakpoint_1): ... this. Add proc parameter. Use
14812 release_breakpoint. Return ENOENT.
14813 (delete_breakpoint): Reimplement.
14814 (find_breakpoint_at): Delete.
14815 (find_gdb_breakpoint_at): New.
14816 (delete_breakpoint_at): Delete.
14817 (set_gdb_breakpoint_at): New.
14818 (delete_gdb_breakpoint_at): New.
14819 (gdb_breakpoint_here): New.
14820 (set_reinsert_breakpoint): Use release_breakpoint.
14821 (uninsert_breakpoint): Rename to ...
14822 (uninsert_raw_breakpoint): ... this.
14823 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
14824 (reinsert_raw_breakpoint): Change parameter type to
14825 raw_breakpoint.
14826 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
14827 instead.
14828 (check_breakpoints): Adjust. Use release_breakpoint.
14829 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
14830 (breakpoint_inserted_here): Ditto.
14831 (check_mem_read): Adjust to iterate over raw breakpoints instead.
14832 Don't trust the breakpoint's shadow if it is not inserted.
14833 (check_mem_write): Adjust to iterate over raw breakpoints instead.
14834 (delete_all_breakpoints): Adjust.
14835 (free_all_breakpoints): Mark all breakpoints as uninserted, and
14836 use delete_breakpoint_1.
14837
14838 * mem-break.h (breakpoints_supported): Delete declaration.
14839 (set_gdb_breakpoint_at): Declare.
14840 (gdb_breakpoint_here): Declare.
14841 (delete_breakpoint_at): Delete.
14842 (delete_gdb_breakpoint_at): Declare.
14843
14844 * server.h (struct raw_breakpoint): Forward declare.
14845 (struct process_info): New field `raw_breakpoints'.
14846
14847 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
14848 breakpoints.
14849
6bf5e0ba
PA
148502010-03-24 Pedro Alves <pedro@codesourcery.com>
14851
14852 * linux-low.c (status_pending_p_callback): Fix comment.
14853 (linux_wait_for_event_1): Move most of the internal breakpoint
14854 handling from here...
14855 (linux_wait_1): ... to here.
14856 (count_events_callback): New.
14857 (select_singlestep_lwp_callback): New.
14858 (select_event_lwp_callback): New.
14859 (cancel_breakpoints_callback): New.
14860 (select_event_lwp): New.
14861 (linux_wait_1): Simplify internal breakpoint handling. Give equal
14862 priority to all LWPs that have had events that should be reported
14863 to the client. Cancel breakpoints when about to reporting the
14864 event to the client, not while stopping lwps. No longer cancel
14865 finished single-steps here.
14866 (cancel_finished_single_step): Delete.
14867 (cancel_finished_single_steps): Delete.
14868
414a389f
PA
148692010-03-24 Pedro Alves <pedro@codesourcery.com>
14870
14871 * mem-break.c (enum bkpt_type): New.
14872 (struct breakpoint): New field `type'.
14873 (set_breakpoint_at): Change return type to struct breakpoint
14874 pointer. Set type to `other_breakpoint' by default.
14875 (delete_breakpoint): Rewrite, supporting more than one breakpoint
14876 in the breakpoint list.
14877 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
14878 (reinsert_breakpoint): Rename to ...
14879 (reinsert_raw_breakpoint): ... this.
14880 (reinsert_breakpoints_at): Adjust.
14881 * mem-break.h (struct breakpoint): Declare.
14882 (set_breakpoint_at): Change return type to struct breakpoint
14883 pointer.
14884
2280c721
PA
148852010-03-24 Pedro Alves <pedro@codesourcery.com>
14886
14887 * server.c (handle_query): Assign, not compare.
14888
d50171e4
PA
148892010-03-24 Pedro Alves <pedro@codesourcery.com>
14890
14891 Teach linux gdbserver to step-over-breakpoints.
14892
14893 * linux-low.c (can_hardware_single_step): New.
14894 (supports_breakpoints): New.
14895 (handle_extended_wait): If stopping threads, read the stop pc of
14896 the new cloned LWP.
14897 (get_pc): New.
14898 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
14899 low target doesn't support retrieving the PC.
14900 (add_lwp): Set last_resume_kind to resume_continue.
14901 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
14902 (linux_attach): Don't clear stop_expected. Set the lwp's
14903 last_resume_kind to resume_stop.
14904 (linux_detach_one_lwp): Don't check for removed breakpoints.
14905 (check_removed_breakpoint): Delete.
14906 (status_pending_p): Rename to ...
14907 (status_pending_p_callback): ... this. Don't check for removed
14908 breakpoints. Don't consider threads that are stopped from GDB's
14909 perspective.
14910 (linux_wait_for_lwp): Always read the stop_pc here.
14911 (cancel_breakpoint): New.
14912 (step_over_bkpt): New global.
14913 (linux_wait_for_event_1): Implement stepping over breakpoints.
14914 (gdb_wants_lwp_stopped): New.
14915 (gdb_wants_all_stopped): New.
14916 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
14917 single-step traps here. Store the thread's last reported target
14918 wait status.
14919 (send_sigstop): Don't clear stop_expected. Always set it,
14920 instead.
14921 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
14922 (cancel_finished_single_step): New.
14923 (cancel_finished_single_steps): New.
14924 (wait_for_sigstop): Don't cancel finished single-step traps here.
14925 (linux_resume_one_lwp): Don't check for removed breakpoints.
14926 Don't set `step' on non-hardware step archs.
14927 (linux_set_resume_request): Ignore resume_stop requests if already
14928 stopping or stopped. Set the lwp's last_resume_kind.
14929 (resume_status_pending_p): Don't check for removed breakpoints.
14930 (need_step_over_p): New.
14931 (start_step_over): New.
14932 (finish_step_over): New.
14933 (linux_resume_one_thread): Always queue a sigstop for resume_stop
14934 requests. Clear the thread's last reported target waitstatus.
14935 Don't use the `suspended' flag. Don't consider pending breakpoints.
14936 (linux_resume): Start a step-over if necessary.
14937 (proceed_one_lwp): New.
14938 (proceed_all_lwps): New.
14939 (unstop_all_lwps): New.
14940 * linux-low.h (struct lwp_info): Rewrite comment for the
14941 `suspended' flag. Add the `stop_pc' field. Delete the
14942 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
14943 Add `'last_resume_kind' and `need_step_over' fields.
14944 * inferiors.c (struct thread_info): Delete, moved elsewhere.
14945 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
14946 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
14947 (set_raw_breakpoint_at): New.
14948 (set_breakpoint_at): Rewrite to use it.
14949 (reinsert_breakpoint_handler): Delete.
14950 (set_reinsert_breakpoint): New.
14951 (reinsert_breakpoint_by_bp): Delete.
14952 (delete_reinsert_breakpoints): New.
14953 (uninsert_breakpoint): Rewrite.
14954 (uninsert_breakpoints_at): New.
14955 (reinsert_breakpoint): Rewrite.
14956 (reinsert_breakpoints_at): New.
14957 (check_breakpoints): Rewrite.
14958 (breakpoint_here): New.
14959 (breakpoint_inserted_here): New.
14960 (check_mem_read): Adjust.
14961 * mem-break.h (breakpoints_supported, breakpoint_here)
14962 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
14963 (reinsert_breakpoint_by_bp): Delete declaration.
14964 (delete_reinsert_breakpoints): Declare.
14965 (reinsert_breakpoint): Delete declaration.
14966 (reinsert_breakpoints_at): Declare.
14967 (uninsert_breakpoint): Delete declaration.
14968 (uninsert_breakpoints_at): Declare.
14969 (check_breakpoints): Adjust prototype.
14970 * server.h: Adjust include order.
14971 (struct thread_info): Declare here. Add a `last_status' field.
14972
30ba68cb
MS
149732010-03-23 Michael Snyder <msnyder@vmware.com>
14974
14975 * server.c (crc32): New function.
14976 (handle_query): Add handling for 'qCRC:' request.
14977
b9a881c2
PA
149782010-03-23 Pedro Alves <pedro@codesourcery.com>
14979
14980 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
14981 lwp had been stopped by a watchpoint.
14982
e92d13d5
PA
149832010-03-16 Pedro Alves <pedro@codesourcery.com>
14984
14985 * server.h (internal_error): Declare.
14986 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
14987 * utils.c (internal_error): New function.
14988
64daa791
AS
149892010-03-15 Andreas Schwab <schwab@redhat.com>
14990
14991 * configure.srv: Fix typo setting srv_regobj.
14992
f52cd8cd
PA
149932010-03-15 Pedro Alves <pedro@codesourcery.com>
14994
14995 * linux-low.c (fetch_register): Avoid passing a non string literal
14996 format to `error'.
14997 (usr_store_inferior_registers): Ditto.
14998
93ae6fdc
PA
149992010-03-14 Pedro Alves <pedro@codesourcery.com>
15000
15001 * linux-low.c (linux_write_memory): Bail out early if peeking
15002 memory failed.
15003
c3adc08c
PA
150042010-03-14 Pedro Alves <pedro@codesourcery.com>
15005
15006 * linux-low.h (struct lwp_info): New fields
15007 `stopped_by_watchpoint' and `stopped_data_address'.
15008 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
15009 here, and cache them in the lwp object.
15010 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
15011 directly.
15012 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
15013 field.
15014 (linux_stopped_by_watchpoint): Rewrite.
15015 (linux_stopped_data_address): Rewrite.
15016
bce522a2
PA
150172010-03-06 Simo Melenius <simo.melenius@iki.fi>
15018
15019 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
15020 switching the current inferior, not before.
15021
90884b2b
L
150222010-03-01 H.J. Lu <hongjiu.lu@intel.com>
15023
15024 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
15025 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
15026 i386-linux.c and amd64-linux.c.
15027 (reg-i386.o): Removed.
15028 (reg-i386.c): Likewise.
15029 (reg-i386-linux.o): Likewise.
15030 (reg-i386-linux.c): Likewise.
15031 (reg-x86-64.o): Likewise.
15032 (reg-x86-64.c): Likewise.
15033 (reg-x86-64-linux.o): Likewise.
15034 (reg-x86-64-linux.c): Likewise.
15035 (i386.o): New.
15036 (i386.c): Likewise.
15037 (i386-linux.o): Likewise.
15038 (i386-linux.c): Likewise.
15039 (amd64.o): Likewise.
15040 (amd64.c): Likewise.
15041 (amd64-linux.o): Likewise.
15042 (amd64-linux.c): Likewise.
15043
15044 * configure.srv (srv_i386_regobj): New.
15045 (srv_i386_linux_regobj): Likewise.
15046 (srv_amd64_regobj): Likewise.
15047 (srv_amd64_linux_regobj): Likewise.
15048 (srv_i386_32bit_xmlfiles): Likewise.
15049 (srv_i386_64bit_xmlfiles): Likewise.
15050 (srv_i386_xmlfiles): Likewise.
15051 (srv_amd64_xmlfiles): Likewise.
15052 (srv_i386_linux_xmlfiles): Likewise.
15053 (srv_amd64_linux_xmlfiles): Likewise.
15054 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
15055 srv_xmlfiles to $srv_i386_xmlfiles.
15056 (i[34567]86-*-mingw32ce*): Likewise.
15057 (i[34567]86-*-mingw*): Likewise.
15058 (i[34567]86-*-nto*): Likewise.
15059 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
15060 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
15061 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
15062 (x86_64-*-linux*): Likewise.
15063
15064 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
15065 (init_registers_amd64_linux): New.
15066 (x86_arch_setup): Replace init_registers_x86_64_linux with
15067 init_registers_amd64_linux.
15068
193f13e6
MK
150692010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
15070
15071 * configure.ac: Check for libdl. If it is not available link against
15072 static libthread_db.
15073 * configure: Regenerate.
15074
85d721b8
PA
150752010-02-22 Pedro Alves <pedro@codesourcery.com>
15076
15077 PR9605
15078
15079 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
15080 handing a read watchpoint.
15081 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
15082
6076632b
DE
150832010-02-12 Doug Evans <dje@google.com>
15084
15085 * linux-low.c (linux_supports_tracefork_flag): Document.
15086 (linux_look_up_symbols): Add comment.
15087
3327ccf7
L
150882010-02-03 H.J. Lu <hongjiu.lu@intel.com>
15089
15090 * regcache.c (supply_register): Clear regcache if buf is NULL.
15091
0718675c 150922010-02-02 Nicolas Roche <roche@sourceware.org>
3327ccf7 15093 Joel Brobecker <brobecker@adacore.com>
0718675c
JB
15094
15095 * inferiors.c (find_inferior): Add function documentation.
15096 (unloaded_dll): Handle the case where the unloaded dll has not
15097 been previously registered in the dll list.
15098
177321bd
DJ
150992010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
15100
15101 * linux-arm-low.c (thumb_breakpoint_len): Delete.
15102 (thumb2_breakpoint): New.
15103 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
15104
2b009048
DJ
151052010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
15106
15107 * linux-low.c (get_stop_pc): Check for SIGTRAP.
15108 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
15109 breakpoints.
15110
3be029c7
PA
151112010-01-21 Pedro Alves <pedro@codesourcery.com>
15112
15113 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
15114
18f5de3b
JK
151152010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
15116
15117 * linux-s390-low.c (s390_collect_ptrace_register)
15118 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
15119
3743bb4f
DE
151202010-01-21 Doug Evans <dje@google.com>
15121
14ce3065
DE
15122 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
15123 (PTRACE_ARG4_TYPE): New macro.
15124 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
15125 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
15126 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
15127 (usr_store_inferior_registers): Ditto.
15128 (linux_read_memory, linux_write_memory): Ditto.
15129 (linux_test_for_tracefork): Ditto.
15130
3743bb4f
DE
15131 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
15132 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
15133
8b315be5
PA
151342010-01-21 Pedro Alves <pedro@codesourcery.com>
15135
15136 * proc-service.c (ps_lgetregs): Don't refetch registers from the
15137 target.
15138
85492558
PA
151392010-01-21 Pedro Alves <pedro@codesourcery.com>
15140
15141 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
15142 prototype to take a regcache. Adjust.
15143
442ea881
PA
151442010-01-20 Pedro Alves <pedro@codesourcery.com>
15145
15146 * regcache.h (struct thread_info): Forward declare.
15147 (struct regcache): New.
15148 (new_register_cache): Adjust prototype.
15149 (get_thread_regcache): Declare.
15150 (free_register_cache): Adjust prototype.
15151 (registers_to_string, registers_from_string): Ditto.
15152 (supply_register, supply_register_by_name, collect_register)
15153 (collect_register_as_string, collect_register_by_name): Ditto.
15154 * regcache.c (struct inferior_regcache_data): Delete.
15155 (get_regcache): Rename to ...
15156 (get_thread_regcache): ... this. Adjust. Switch inferior before
15157 fetching registers.
15158 (regcache_invalidate_one): Adjust.
15159 (regcache_invalidate): Fix prototype.
15160 (new_register_cache): Return the new register cache.
15161 (free_register_cache): Change prototype.
15162 (realloc_register_cache): Adjust.
15163 (registers_to_string): Change prototype to take a regcache. Adjust.
15164 (registers_from_string): Ditto.
15165 (register_data): Ditto.
15166 (supply_register): Ditto.
15167 (supply_register_by_name): Ditto.
15168 (collect_register): Ditto.
15169 (collect_register_as_string): Ditto.
15170 (collect_register_by_name): Ditto.
15171 * server.c (process_serial_event): Adjust.
15172 * linux-low.h (regset_fill_func, regset_store_func): Change
15173 prototype.
15174 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
15175 Change prototype.
15176 * linux-low.c (get_stop_pc): Adjust.
15177 (check_removed_breakpoint): Adjust.
15178 (linux_wait_for_event): Adjust.
15179 (linux_resume_one_lwp): Adjust.
15180 (fetch_register): Add regcache parameter. Adjust.
15181 (usr_store_inferior_registers): Ditto.
15182 (regsets_fetch_inferior_registers): Ditto.
15183 (regsets_store_inferior_registers): Ditto.
15184 (linux_fetch_registers, linux_store_registers): Ditto.
15185 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
15186 regcache. Adjust.
43aaf8b6
PA
15187 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
15188 Ditto.
442ea881
PA
15189 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
15190 prototype to take a regcache.
15191 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
15192 * remote-utils.c (convert_ascii_to_int, outreg)
15193 (prepare_resume_reply): Change prototype to take a regcache.
15194 Adjust.
15195 * target.h (struct target_ops) <fetch_registers, store_registers>:
15196 Change prototype to take a regcache.
15197 (fetch_inferior_registers, store_inferior_registers): Change
15198 prototype to take a regcache. Adjust.
15199 * proc-service.c (ps_lgetregs): Adjust.
15200 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
15201 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
15202 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
15203 take a regcache. Adjust.
15204 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
15205 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
15206 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
15207 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
15208 * linux-cris-low.c (cris_get_pc, cris_set_pc)
15209 (cris_cannot_fetch_register):
15210 (cris_breakpoint_at): Change prototype to take a regcache.
15211 Adjust.
15212 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
15213 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
15214 to take a regcache. Adjust.
15215 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
15216 Adjust.
15217 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
15218 take a regcache. Adjust.
15219 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
15220 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
15221 (m68k_set_pc): Change prototype to take a regcache. Adjust.
15222 * linux-mips-low.c (mips_get_pc):
15223 (mips_set_pc): Change prototype to take a regcache. Adjust.
15224 (mips_reinsert_addr): Adjust.
15225 (mips_collect_register): Change prototype to take a regcache.
15226 Adjust.
15227 (mips_supply_register):
15228 (mips_collect_register_32bit, mips_supply_register_32bit)
15229 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
15230 (mips_store_fpregset): Ditto.
43aaf8b6
PA
15231 * linux-ppc-low.c (ppc_supply_ptrace_register)
15232 (ppc_supply_ptrace_register): Ditto.
442ea881
PA
15233 (parse_spufs_run): Adjust.
15234 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
15235 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
15236 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
15237 take a regcache. Adjust.
15238 * linux-s390-low.c (s390_collect_ptrace_register)
15239 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
15240 (s390_set_pc): Change prototype to take a regcache. Adjust.
15241 (s390_arch_setup): Adjust.
15242 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
15243 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
15244 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15245 (sparc_fill_gregset, sparc_store_gregset_from_stack)
15246 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
15247 regcache. Adjust.
15248 (sparc_breakpoint_at): Adjust.
15249 * linux-xtensa-low.c (xtensa_fill_gregset):
15250 (xtensa_store_gregset):
15251 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
15252 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
15253 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
15254 prototype to take a regcache. Adjust.
15255 * win32-arm-low.c (arm_fetch_inferior_register)
15256 (arm_store_inferior_register): Change prototype to take a
15257 regcache. Adjust.
15258 * win32-i386-low.c (i386_fetch_inferior_register)
15259 (i386_store_inferior_register): Change prototype to take a
15260 regcache. Adjust.
15261 * win32-low.c (child_fetch_inferior_registers)
15262 (child_store_inferior_registers): Change prototype to take a
15263 regcache. Adjust.
15264 (win32_wait): Adjust.
15265 (win32_fetch_inferior_registers): Change prototype to take a
15266 regcache. Adjust.
15267 (win32_store_inferior_registers): Adjust.
15268 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
15269 store_inferior_register>: Change prototype to take a regcache.
15270
60c3d7b0
DE
152712010-01-20 Doug Evans <dje@google.com>
15272
15273 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
15274 #ifdef.
15275 (linux_wait_for_event1, linux_init_signals): Ditto.
ec8ebe72 15276 (W_STOPCODE): Provide definition if missing.
60c3d7b0 15277
dc146f7c
VP
152782010-01-13 Vladimir Prus <vladimir@codesourcery.com>
15279
15280 * linux-low.c (linux_core_of_thread): New.
15281 (compare_ints, show_process, list_threads): New.
15282 (linux_qxfer_osdata): Report threads and cores.
15283 (linux_target_op): Register linux_core_of_thread.
15284 * remote-utils.c (prepare_resume_reply): Report the core.
15285 (buffer_xml_printf): Support %d specifier.
15286 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
15287 New.
15288 (handle_query): Handle qXfer:threads. Announce availability
15289 thereof.
15290 * target.h (struct target_ops): New field core_of_thread.
15291
7803799a
UW
152922010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
15293
15294 * Makefile.in (clean): Remove new generated files.
15295 (reg-s390.o, reg-s390.c): Remove rules.
15296 (reg-s390x.o, reg-s390x.c): Likewise.
15297 (s390-linux32.o, s390-linux32.c): Add rules.
15298 (s390-linux64.o, s390-linux64.c): Likewise.
15299 (s390x-linux64.o, s390x-linux64.c): Likewise.
15300 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
15301 * linux-s390-low.c: Include <elf.h>.
15302 (HWCAP_S390_HIGH_GPRS): Define if undefined.
15303 (init_registers_s390): Remove prototype.
15304 (init_registers_s390x): Likewise.
15305 (init_registers_s390_linux32): Add prototype.
15306 (init_registers_s390_linux64): Likewise.
15307 (init_registers_s390x_linux64): Likewise.
15308 (s390_num_regs_3264): New define.
15309 (s390_regmap_3264): New global variable.
15310 (s390_cannot_fetch_register): Remove obsolete check.
15311 (s390_cannot_store_register): Likewise.
15312 (s390_collect_ptrace_register): Handle upper/lower register halves.
15313 (s390_supply_ptrace_register): Likewise.
15314 (s390_fill_gregset): Update to register number changes.
15315 (s390_get_hwcap): New routine.
15316 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
15317 Install appropriate regmap and register set.
15318
6e7ffa39
JB
153192010-01-01 Joel Brobecker <brobecker@adacore.com>
15320
15321 * server.c (gdbserver_version): Update copyright year to 2010.
15322 * gdbreplay.c (gdbreplay_version): Likewise.
15323
957f3f49
DE
153242009-12-28 Doug Evans <dje@google.com>
15325
15326 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
15327 elf/external.h. Include <elf.h> instead but only if necessary.
15328
ca5c370d
PA
153292009-12-28 Pedro Alves <pedro@codesourcery.com>
15330
15331 * linux-low.c (linux_remove_process): Remove `detaching'
15332 parameter. Don't release/detach from thread_db here.
15333 (linux_kill): Release/detach from thread_db here, ...
15334 (linux_detach): ... and here, before actually detaching.
15335 (linux_wait_1): ... and here, when a process exits.
15336 * thread-db.c (any_thread_of): New.
15337 (thread_db_free): Switch the current inferior to a thread of the
15338 passed in process.
15339
4ee62156
DE
153402009-12-21 Doug Evans <dje@google.com>
15341
d90e6a88
DE
15342 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
15343
c5f62d5f
DE
15344 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
15345 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
15346 warning ifndef __NR_tkill. Move setting of errno there too.
15347 Delete unnecessary resetting of errno after syscall.
15348 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
15349
10e86dd7
DE
15350 * configure.ac: Check for dladdr.
15351 * config.in: Regenerate.
15352 * configure: Regenerate.
15353 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
15354 (try_thread_db_load): Update.
15355
4ee62156
DE
15356 * linux-low.c (my_waitpid): Delete unnecessary prototype.
15357
00f515da
DE
153582009-12-18 Doug Evans <dje@google.com>
15359
e9464885
DE
15360 * event-loop.c: Include unistd.h if it exists.
15361
07d4f67e
DE
15362 * linux-low.c (my_waitpid): Move definition away from being in
15363 between linux_tracefork_child/linux_test_for_tracefork.
15364
00f515da
DE
15365 * gdb_proc_service.h (psaddr_t): Fix type.
15366 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
15367 signature to match glibc.
15368
1de1badb
DE
153692009-12-16 Doug Evans <dje@google.com>
15370
15371 * linux-low.c (linux_read_memory): Fix argument to read.
15372
aeeb81d1
PA
153732009-11-26 Pedro Alves <pedro@codesourcery.com>
15374
15375 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
15376 events, don't leave current_inferior pointing at null.
15377
10357975
PA
153782009-11-26 Pedro Alves <pedro@codesourcery.com>
15379
15380 * win32-low.c (LOG): Delete.
15381 (OUTMSG): Output to stderr.
15382 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
15383 on compile time LOG macro.
15384 (win32_wait): Fix debug output.
15385
cf6e3471
PA
153862009-11-26 Pedro Alves <pedro@codesourcery.com>
15387
15388 * win32-low.c (win32_add_one_solib): If the dll name is
15389 "ntdll.dll", prepend the system directory to the dll path.
15390
0c85e18e
MK
153912009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
15392
15393 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
15394
9ac544ce 153952009-11-17 Nathan Sidwell <nathan@codesourcery.com>
889bf7c5 15396 Vladimir Prus <vladimir@codesourcery.com>
9ac544ce
MK
15397
15398 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
15399 * configure.ac: Check for __mcoldfire__ and set
15400 gdb_cv_m68k_is_coldfire.
15401 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
15402 reg-cf.o and reg-m68k.o.
15403 * configure: Regenerated.
15404
fd7dd3e6
PA
154052009-11-16 Pedro Alves <pedro@codesourcery.com>
15406
15407 * linux-low.c (linux_remove_process): Add `detaching' parameter.
15408 Pass it to thread_db_free.
15409 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
15410 proper `detaching' argument to linux_remove_process.
15411 * linux-low.h (thread_db_free): Add `detaching' parameter.
15412 * thread-db.c (thread_db_init): Pass false as `detaching' argument
15413 to thread_db_free.
15414 (thread_db_free): Add `detaching' parameter. Only
15415 call td_ta_clear_event if detaching from process.
15416
75aa492e
MK
154172009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
15418
15419 * thread-db.c (thread_db_free): Fix typo.
15420
21e1bee4
PP
154212009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
15422
15423 PR gdb/10838
15424 * thread-db.c (thread_db_free): Call td_ta_clear_event.
15425
8838b45e
NS
154262009-11-03 Nathan Sidwell <nathan@codesourcery.com>
15427
15428 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
15429 with an i686 compiler.
15430 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
15431 needed.
15432 * configure: Rebuilt.
15433
8a35fb51
SL
154342009-10-29 Sandra Loosemore <sandra@codesourcery.com>
15435
15436 PR gdb/10783
15437
15438 * server.c (handle_search_memory_1): Correct read_addr initialization
15439 in loop for searching subsequent chunks.
15440
96f15937
PP
154412009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
15442
15443 * configure.ac: New --with-libthread-db option.
15444 * thread-db.c: Allow direct dependence on libthread_db.
15445 (thread_db_free): Adjust.
15446 * config.in: Regenerate.
15447 * configure: Likewise.
889bf7c5 15448
5f7d1694
PP
154492009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
15450
15451 PR gdb/10757
15452 * thread-db.c (attach_thread): New function.
15453 (maybe_attach_thread): Return success/failure.
15454 (find_new_threads_callback): Adjust.
889bf7c5
PA
15455 (thread_db_find_new_threads): Loop until no new threads.
15456
88e3b899
PA
154572009-10-13 Pedro Alves <pedro@codesourcery.com>
15458
15459 * proc-service.c (ps_lgetregs): Formatting.
15460
cdbfd419
PP
154612009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
15462
15463 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
15464 * configure.ac: Adjust.
15465 * linux-low.h (struct process_info_private): Move members to struct
15466 thread_db.
15467 (thread_db_free, thread_db_handle_monitor_command): New prototype.
15468 * linux-low.c (linux_remove_process): Adjust.
15469 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
15470 * server.c (handle_query): Move code ...
15471 (handle_monitor_command): ... here. New function.
15472 * target.h (struct target_ops): New member.
15473 * thread-db.c (struct thread_db): New.
15474 (libthread_db_search_path): New variable.
15475 (thread_db_create_event, thread_db_enable_reporting)
15476 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
15477 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
15478 (try_thread_db_load_1, dladdr_to_soname): New functions.
15479 (try_thread_db_load, thread_db_load_search): New functions.
15480 (thread_db_init): Search for libthread_db.
15481 (thread_db_free): New function.
15482 (thread_db_handle_monitor_command): Likewise.
15483 * config.in: Regenerate.
15484 * configure: Regenerate.
889bf7c5 15485
4168d2d6
UW
154862009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
15487
15488 * spu-low.c (spu_kill): Wait for inferior to terminate.
15489 Call clear_inferiors.
15490 (spu_detach): Call clear_inferiors.
15491
81ecdfbb
RW
154922009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15493
15494 * aclocal.m4: Regenerate.
15495 * config.in: Likewise.
15496 * configure: Likewise.
15497
0b9ff2c0
UW
154982009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
15499
15500 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
15501 (parse_spufs_run): New function.
15502 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
15503 (ppc_breakpoint_at): Handle SPU breakpoints.
15504
efcbbd14
UW
155052009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
15506
15507 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
15508 (SPUFS_MAGIC): Define.
15509 (spu_enumerate_spu_ids): New function.
15510 (linux_qxfer_spu): New function.
15511 (linux_target_ops): Install linux_qxfer_spu.
15512
f4d9bade
UW
155132009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
15514
15515 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
15516 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
15517 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
15518 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
15519 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
15520 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
15521 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
15522 (init_registers_powerpc_cell32l): Add prototype.
15523 (init_registers_powerpc_cell64l): Likewise.
15524 (ppc_arch_setup): Detect Cell/B.E. architecture.
15525
96e946ca
RW
155262009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15527
15528 * Makefile.in (datarootdir): New variable.
15529
58d6951d
DJ
155302009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
15531
15532 * linux-low.c (linux_write_memory): Update debugging output.
15533 * Makefile.in (clean): Add new descriptions.
15534 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
15535 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
15536 * configure.srv: Add new files for arm*-*-linux*.
15537 * linux-arm-low.c: Add new declarations.
15538 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
15539 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
15540 (HWCAP_VFPv3D16): New.
15541 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
15542 instead of __IWMMXT__.
15543 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
15544 (arm_arch_setup): New.
15545 (target_regsets): Remove #ifdef. Add VFP regset.
15546 (the_low_target): Use arm_arch_setup.
15547
12b42a12
DJ
155482009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
15549
15550 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
15551 the main thread again.
15552
ac8c974e
AR
155532009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
15554
15555 Adding Neutrino gdbserver.
15556 * configure: Regenerated.
15557 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
15558 * configure.srv (i[34567]86-*-nto*): New target.
15559 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
15560 * remote-utils.c [__QNX__]: Include sys/iomgr.h
15561 (nto_comctrl) [__QNX__]: New function.
15562 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
15563
4424e0c3 155642009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
7437790a
PA
15565
15566 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
15567 srv_tgtobj.
15568
912cf4ba
PA
155692009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
15570 Pedro Alves <pedro@codesourcery.com>
15571
15572 * win32-i386-low.c (i386_get_thread_context): Handle systems that
15573 don't support CONTEXT_EXTENDED_REGISTERS.
15574 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
15575 (the_low_target): Install them.
15576 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
15577 failing with ERROR_PIPE_NOT_CONNECTED.
15578
aa5ca48f
DE
155792009-06-30 Doug Evans <dje@google.com>
15580 Pierre Muller <muller@ics.u-strasbg.fr>
15581
15582 Add h/w watchpoint support to x86-linux, win32-i386.
15583 * Makefile.in (SFILES): Add i386-low.c
15584 (i386_low_h): Define.
15585 (i386-low.o): Add dependencies.
15586 (linux-x86-low.o): Add i386-low.h dependency.
15587 (win32-i386-low.o): Ditto.
15588 * i386-low.c: New file.
15589 * i386-low.h: New file.
15590 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
15591 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
15592 * linux-low.c (linux_add_process): Initialize arch_private.
15593 (linux_remove_process): Free arch_private.
15594 (add_lwp): Initialize arch_private.
15595 (delete_lwp): Free arch_private.
15596 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
15597 provided.
15598 * linux-low.h (process_info_private): New member arch_private.
15599 (lwp_info): New member arch_private.
15600 (linux_target_ops): New members new_process, new_thread,
15601 prepare_to_resume.
15602 (ptid_of): New macro.
15603 * linux-x86-low.c: Include stddef.h, i386-low.h.
15604 (arch_process_info): New struct.
15605 (arch_lwp_info): New struct.
15606 (x86_linux_dr_get, x86_linux_dr_set): New functions.
15607 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
15608 (i386_dr_low_get_status): New function.
15609 (x86_insert_point, x86_remove_point): New functions.
15610 (x86_stopped_by_watchpoint): New function.
15611 (x86_stopped_data_address): New function.
15612 (x86_linux_new_process, x86_linux_new_thread): New functions.
15613 (x86_linux_prepare_to_resume): New function.
15614 (the_low_target): Add entries for insert_point, remove_point,
15615 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
15616 prepare_to_resume.
15617 * server.c (debug_hw_points): New global.
15618 (monitor_show_help): Document set debug-hw-points.
15619 (handle_query): Process "set debug-hw-points".
15620 * server.h (debug_hw_points): Declare.
15621 (paddress): Declare.
15622 * utils.c (NUMCELLS, CELLSIZE): New macros.
15623 (get_sell, xsnprintf, paddress): New functions.
15624 * win32-arm-low.c (the_low_target): Add entries for insert_point,
15625 remove_point, stopped_by_watchpoint, stopped_data_address.
15626 * win32-i386-low.c: Include i386-low.h.
15627 (debug_reg_state): Replaces dr.
15628 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
15629 (i386_dr_low_get_status): New function.
15630 (i386_insert_point, i386_remove_point): New functions.
15631 (i386_stopped_by_watchpoint): New function.
15632 (i386_stopped_data_address): New function.
15633 (i386_initial_stuff): Update.
15634 (get_thread_context,set_thread_context,i386_thread_added): Update.
15635 (the_low_target): Add entries for insert_point,
15636 remove_point, stopped_by_watchpoint, stopped_data_address.
15637 * win32-low.c (win32_insert_watchpoint): New function.
15638 (win32_remove_watchpoint): New function.
15639 (win32_stopped_by_watchpoint): New function.
15640 (win32_stopped_data_address): New function.
15641 (win32_target_ops): Add entries for insert_watchpoint,
15642 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
15643 * win32-low.h (win32_target_ops): New members insert_point,
15644 remove_point, stopped_by_watchpoint, stopped_data_address.
15645
d993e290
PA
156462009-06-25 Pedro Alves <pedro@codesourcery.com>
15647
15648 * server.c (process_serial_event): Re-return unsupported, not
15649 error, if the type isn't recognized. Re-allow supporting only
15650 insert or remove packets. Also call require_running for
15651 breakpoints. Add missing break statement to default case. Tidy.
15652 * target.h (struct target_ops): Rename insert_watchpoint to
15653 insert_point, and remove_watchpoint to remove_point.
15654
15655 * linux-low.h (struct linux_target_ops): Likewise.
15656 * linux-low.c (linux_insert_watchpoint): Rename to ...
15657 (linux_insert_point): ... this. Adjust.
15658 (linux_remove_watchpoint): Rename to ...
15659 (linux_remove_point): ... this. Adjust.
15660 (linux_target_ops): Adjust.
15661 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
15662 (cris_insert_point): ... this.
15663 (cris_remove_watchpoint): Rename to ...
15664 (cris_remove_point): ... this.
15665 (the_low_target): Adjust.
15666
0f54c268
PM
156672009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
15668
15669 * server.c (handle_v_kill): Pass signal_pid to
15670 kill_inferior if multi_process is zero.
15671
c6314022
AR
156722009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
15673
15674 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
15675 * target.h (target_ops): Comment for *_watchpoint to make it clear
15676 the functions can get types '0' and '1'.
15677
4463ce24
AR
156782009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
15679
15680 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
15681 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
15682 * regcache.c (get_regcache): Likewise.
15683 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
15684 * win32-low.c (child_fetch_inferior_registers): Remove check for
15685 regno 0.
15686
cf8fd78b
PA
156872009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
15688 Pedro Alves <pedro@codesourcery.com>
15689
15690 * target.h (struct target_ops) <supports_multi_process>: New
15691 callback.
15692 (target_supports_multi_process): New.
15693 * server.c (handle_query): Even if GDB reports support, only
15694 enable multi-process if the target also supports it. Report
15695 multi-process support only if the target backend supports it.
15696 * linux-low.c (linux_supports_multi_process): New function.
15697 (linux_target_ops): Install it as target_supports_multi_process
15698 callback.
15699
47c0c975
DE
157002009-05-24 Doug Evans <dje@google.com>
15701
e09875d4
DE
15702 Global renaming of find_thread_pid to find_thread_ptid.
15703 * server.h (find_thread_ptid): Renamed from find_thread_pid.
15704 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
15705 All callers updated.
15706
e27d73f6
DE
15707 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
15708 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
15709 directly.
15710
47c0c975
DE
15711 * linux-low.c (get_stop_pc): Print pc if debug_threads.
15712 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
15713 (linux_resume_one_lwp): Ditto.
15714
2acc282a
DE
157152009-05-23 Doug Evans <dje@google.com>
15716
15717 * linux-low.c (linux_resume_one_lwp): Change type of first arg
15718 from struct inferior_list_entry * to struct lwp_info *.
15719 All callers updated.
15720
9f1036c1
DE
157212009-05-13 Doug Evans <dje@google.com>
15722
15723 * linux-x86-low.c: Don't include assert.h.
15724 (x86_siginfo_fixup): Use fatal, not assert.
15725 (x86_arch_setup): Fix comment.
15726
d0722149
DE
157272009-05-12 Doug Evans <dje@google.com>
15728
15729 Biarch support for i386/amd64 gdbserver.
15730 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
15731 Add linux-x86-low.c.
15732 (linux-i386-low.o, linux-x86-64-low.o): Delete.
15733 (linux-x86-low.o): Add.
15734 * linux-x86-64-low.c: Delete.
15735 * linux-i386-low.c: Delete.
15736 * linux-x86-low.c: New file.
15737 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
15738 linux-x86-low.o.
15739 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
15740 linux-x86-low.o.
15741 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
15742 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
15743 (linux_child_pid_to_exec_file): New function.
15744 (elf_64_header_p, elf_64_file_p): New functions.
15745 (siginfo_fixup): New function.
15746 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
15747 give target a chance to convert layout.
15748 * linux-low.h (linux_target_ops): New member siginfo_fixup.
15749 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
15750
fdeb2a12
DE
157512009-05-07 Doug Evans <dje@google.com>
15752
15753 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
15754 (regsets_store_inferior_registers): Ditto.
15755
a6dbe5df
PA
157562009-05-06 Pedro Alves <pedro@codesourcery.com>
15757
15758 PR server/10048
15759
15760 * linux-low.c (must_set_ptrace_flags): Delete.
15761 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
15762 of the global.
15763 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
15764 `lwp->must_set_ptrace_flags' instead.
ba42693b 15765 (linux_wait_for_event_1): Set ptrace options here.
a6dbe5df
PA
15766 (linux_wait_1): ... not here.
15767
5091eb23
DE
157682009-04-30 Doug Evans <dje@google.com>
15769
9f767825
DE
15770 * inferiors.c (started_inferior_callback): New function.
15771 (attached_inferior_callback): New function.
15772 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
15773 * server.c (print_started_pid, print_attached_pid): New functions.
15774 (detach_or_kill_for_exit): New function.
15775 (main): Call it instead of for_each_inferior (kill_inferior_callback).
15776 * server.h (have_started_inferiors_p): Declare.
15777 (have_attached_inferiors_p): Declare.
15778
5091eb23
DE
15779 * inferiors.c (remove_process): Fix memory leak, free process.
15780 * linux-low.c (linux_remove_process): New function.
15781 (linux_kill): Call it instead of remove_process.
15782 (linux_detach, linux_wait_1): Ditto.
15783
155c8968
PA
157842009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
15785
15786 * configure.srv: Add x86 Windows CE target.
15787
7fe519cb
UW
157882009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
15789
15790 * inferiors.c (get_thread_process): Make global.
15791 * server.h (get_thread_process): Add prototype.
15792 * thread-db.c (find_one_thread): Use get_thread_process
15793 instead of current_process.
15794 (thread_db_get_tls_address): Do not crash if called when
15795 thread layer is not yet initialized.
15796
5472f405
UW
157972009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
15798
15799 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
15800 * spu-low.c (current_tid): Rename to ...
15801 (current_ptid): ... this.
15802 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
15803 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
15804 ptid_get_lwp (current_ptid) instead of current_tid.
15805 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
15806 instead of current_tid. Use find_process_pid to verify pid
15807 argument is valid. Pass proper argument to remove_process.
15808 (spu_thread_alive): Compare current_ptid instead of current_tid.
15809 (spu_resume): Likewise.
15810
55ac2b99
PA
158112009-04-02 Pedro Alves <pedro@codesourcery.com>
15812
15813 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
15814 variable.
15815
95954743
PA
158162009-04-01 Pedro Alves <pedro@codesourcery.com>
15817
15818 Implement the multiprocess extensions, and add linux multiprocess
15819 support.
15820
15821 * server.h (ULONGEST): Declare.
15822 (struct ptid, ptid_t): New.
15823 (minus_one_ptid, null_ptid): Declare.
15824 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
15825 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
15826 (struct inferior_list_entry): Change `id' type from unsigned from
15827 to ptid_t.
15828 (struct sym_cache, struct breakpoint, struct
15829 process_info_private): Forward declare.
15830 (struct process_info): Declare.
15831 (current_process): Declare.
15832 (all_processes): Declare.
15833 (initialize_inferiors): Declare.
15834 (add_thread): Adjust to use ptid_t.
15835 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
15836 (add_process, remove_process, find_thread_pid): Declare.
15837 (find_inferior_id): Adjust to use ptid_t.
15838 (cont_thread, general_thread, step_thread): Change type to ptid_t.
15839 (multi_process): Declare.
15840 (push_event): Adjust to use ptid_t.
15841 (read_ptid, write_ptid): Declare.
15842 (prepare_resume_reply): Adjust to use ptid_t.
15843 (clear_symbol_cache): Declare.
15844 * inferiors.c (all_processes): New.
15845 (null_ptid, minus_one_ptid): New.
15846 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
15847 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
15848 (add_thread): Change unsigned long to ptid. Remove gdb_id
15849 parameter. Adjust.
15850 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
15851 (gdb_id_to_thread): Rename to ...
15852 (find_thread_pid): ... this. Change unsigned long to ptid.
15853 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
15854 (loaded_dll, pull_pid_from_list): Adjust.
15855 (add_process, remove_process, find_process_pid)
15856 (get_thread_process, current_process, initialize_inferiors): New.
15857 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
15858 (struct target_waitstatus) <related_pid>: Ditto.
15859 (struct target_ops) <kill, detach>: Add `pid' argument. Change
15860 return type to int.
15861 (struct target_ops) <join>: Add `pid' argument.
15862 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
15863 (struct target_ops) <wait>: Add `ptid' field. Change return type
15864 to ptid.
15865 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
15866 (mywait): Add `ptid' argument. Change return type to ptid_t.
15867 (target_pid_to_str): Declare.
15868 * target.c (set_desired_inferior): Adjust to use ptids.
15869 (mywait): Add new `ptid' argument. Adjust.
15870 (target_pid_to_str): New.
15871 * mem-break.h (free_all_breakpoints): Declare.
15872 * mem-break.c (breakpoints): Delelete.
15873 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
15874 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
15875 to use per-process breakpoint list.
15876 (free_all_breakpoints): New.
15877 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
15878 (symbol_cache, all_symbols_looked_up): Delete.
15879 (hexchars): New.
15880 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
15881 read_ptid): New.
15882 (prepare_resume_reply): Change ptid argument's type from unsigned
15883 long to ptid_t. Adjust. Implement W;process and X;process.
15884 (free_sym_cache, clear_symbol_cache): New.
15885 (look_up_one_symbol): Adjust to per-process symbol cache. *
15886 * server.c (cont_thread, general_thread, step_thread): Change type
15887 to ptid_t.
15888 (attached): Delete.
15889 (multi_process): New.
15890 (last_ptid): Change type to ptid_t.
15891 (struct vstop_notif) <ptid>: Change type to ptid_t.
15892 (queue_stop_reply, push_event): Change `ptid' argument's type to
15893 ptid_t.
15894 (discard_queued_stop_replies): Add `pid' argument.
15895 (start_inferior): Adjust to use ptids. Adjust to mywait interface
15896 changes. Don't reference the `attached' global.
15897 (attach_inferior): Adjust to mywait interface changes.
15898 (handle_query): Adjust to use ptids. Parse GDB's qSupported
15899 features. Handle and report "multiprocess+". Handle
15900 "qAttached:PID".
15901 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
15902 changes.
15903 (handle_v_kill): New.
15904 (handle_v_stopped): Adjust to use target_pid_to_str.
15905 (handle_v_requests): Allow multiple attaches and runs when
15906 multiprocess extensions are in effect. Handle "vKill".
15907 (myresume): Adjust to use ptids.
15908 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
15909 (handle_status): Adjust to discard_queued_stop_replies interface
15910 change.
15911 (first_thread_of, kill_inferior_callback)
15912 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
15913 (main): Call initialize_inferiors. Adjust to use ptids, killing
15914 and detaching from all inferiors. Handle multiprocess packet
15915 variants.
15916 * linux-low.h: Include gdb_proc_service.h.
15917 (struct process_info_private): New.
15918 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
15919 <lwpid_of>: Use ptid_get_lwp.
15920 (get_lwp_thread): Adjust.
15921 (struct lwp_info): Add `dead' member.
15922 (find_lwp_pid): Declare.
15923 * linux-low.c (thread_db_active): Delete.
15924 (new_inferior): Adjust comment.
15925 (inferior_pid): Delete.
15926 (linux_add_process): New.
15927 (handle_extended_wait): Adjust.
15928 (add_lwp): Change unsigned long to ptid.
15929 (linux_create_inferior): Add process to processes table. Adjust
15930 to use ptids. Don't set new_inferior here.
15931 (linux_attach_lwp): Rename to ...
15932 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
15933 it. Adjust to use ptids.
15934 (linux_attach_lwp): New.
15935 (linux_attach): Add process to processes table. Don't set
15936 new_inferior here.
15937 (struct counter): New.
15938 (second_thread_of_pid_p, last_thread_of_process_p): New.
15939 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
15940 multiple processes.
15941 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
15942 processes. Remove process from process table.
15943 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
15944 to multiple processes.
15945 (any_thread_of): New.
15946 (linux_detach): Add `pid' argument, and handle it. Remove process
15947 from processes table.
15948 (linux_join): Add `pid' argument. Handle it.
15949 (linux_thread_alive): Change unsighed long argument to ptid_t.
15950 Consider dead lwps as not being alive.
15951 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
15952 threads we're not interested in.
15953 (same_lwp, find_lwp_pid): New.
15954 (linux_wait_for_lwp): Change `pid' argument's type from int to
15955 ptid_t. Adjust.
15956 (linux_wait_for_event): Rename to ...
15957 (linux_wait_for_event_1): ... this. Change `pid' argument's type
15958 from int to ptid_t. Adjust.
15959 (linux_wait_for_event): New.
15960 (linux_wait_1): Add `ptid' argument. Change return type to
15961 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
15962 that exit from the process table.
15963 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
15964 Adjust.
15965 (mark_lwp_dead): New.
15966 (wait_for_sigstop): Adjust to use ptids. If a process exits while
15967 stopping all threads, mark its main lwp as dead.
15968 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
15969 ptids.
15970 (fetch_register, usr_store_inferior_registers)
15971 (regsets_fetch_inferior_registers)
15972 (regsets_store_inferior_registers, linux_read_memory)
15973 (linux_write_memory): Inline `inferior_pid'.
15974 (linux_look_up_symbols): Adjust to use per-process
15975 `thread_db_active'.
15976 (linux_request_interrupt): Adjust to use ptids.
15977 (linux_read_auxv): Inline `inferior_pid'.
15978 (initialize_low): Don't reference thread_db_active.
15979 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
15980 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
15981 (ps_getpid): Return the pid of the current inferior.
15982 * thread-db.c (proc_handle, thread_agent): Delete.
15983 (thread_db_create_event, thread_db_enable_reporting): Adjust to
15984 per-process data.
15985 (find_one_thread): Change argument type to ptid_t. Adjust to
15986 per-process data.
15987 (maybe_attach_thread): Adjust to per-process data and ptids.
15988 (thread_db_find_new_threads): Ditto.
15989 (thread_db_init): Ditto.
15990 * spu-low.c (spu_create_inferior, spu_attach): Add process to
15991 processes table. Adjust to use ptids.
15992 (spu_kill, spu_detach): Adjust interface. Remove process from
15993 processes table.
15994 (spu_join, spu_thread_alive): Adjust interface.
15995 (spu_wait): Adjust interface. Remove process from processes
15996 table. Adjust to use ptids.
15997 * win32-low.c (current_inferior_tid): Delete.
15998 (current_inferior_ptid): New.
15999 (debug_event_ptid): New.
16000 (thread_rec): Take a ptid. Adjust.
16001 (child_add_thread): Add `pid' argument. Adjust to use ptids.
16002 (child_delete_thread): Ditto.
16003 (do_initial_child_stuff): Add `attached' argument. Add process to
16004 processes table.
16005 (child_fetch_inferior_registers, child_store_inferior_registers):
16006 Adjust.
16007 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
16008 (win32_attach): Pass 1 to do_initial_child_stuff.
16009 (win32_kill): Adjust interface. Remove process from processes
16010 table.
16011 (win32_detach): Ditto.
16012 (win32_join): Adjust interface.
16013 (win32_thread_alive): Take a ptid.
16014 (win32_resume): Adjust to use ptids.
16015 (get_child_debug_event): Ditto.
16016 (win32_wait): Adjust interface. Remove exiting process from
16017 processes table.
16018
bd99dc85
PA
160192009-04-01 Pedro Alves <pedro@codesourcery.com>
16020
16021 Non-stop mode support.
16022
16023 * server.h (non_stop): Declare.
16024 (gdb_client_data, handler_func): Declare.
16025 (delete_file_handler, add_file_handler, start_event_loop):
16026 Declare.
16027 (handle_serial_event, handle_target_event, push_event)
16028 (putpkt_notif): Declare.
16029 * target.h (enum resume_kind): New.
16030 (struct thread_resume): Replace `step' field by `kind' field.
16031 (TARGET_WNOHANG): Define.
16032 (struct target_ops) <wait>: Add `options' argument.
16033 <supports_non_stop, async, start_non_stop>: New fields.
16034 (target_supports_non_stop, target_async): New.
16035 (start_non_stop): Declare.
16036 (mywait): Add `options' argument.
16037 * target.c (mywait): Add `options' argument. Print child exit
16038 notifications here.
16039 (start_non_stop): New.
16040 * server.c (non_stop, own_buf, mem_buf): New globals.
16041 (struct vstop_notif): New.
16042 (notif_queue): New global.
16043 (queue_stop_reply, push_event, discard_queued_stop_replies)
16044 (send_next_stop_reply): New.
16045 (start_inferior): Adjust to use resume_kind. Adjust to mywait
16046 interface changes.
16047 (attach_inferior): In non-stop mode, don't wait for the target
16048 here.
16049 (handle_general_set): Handle QNonStop.
16050 (handle_query): When handling qC, return the current general
16051 thread, instead of the first thread of the list.
16052 (handle_query): If the backend supports non-stop mode, include
16053 QNonStop+ in the qSupported query response.
16054 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
16055 and non-stop mode.
16056 (handle_v_attach, handle_v_run): Handle non-stop mode.
16057 (handle_v_stopped): New.
16058 (handle_v_requests): Report support for vCont;t. Handle vStopped.
16059 (myresume): Adjust to use resume_kind. Handle non-stop.
16060 (queue_stop_reply_callback): New.
16061 (handle_status): Handle non-stop mode.
16062 (main): Clear non_stop flag on reconnection. Use the event-loop.
16063 Refactor serial protocol handling from here ...
16064 (process_serial_event): ... to this new function. When GDB
16065 selects any thread, select one here. In non-stop mode, wait until
16066 GDB acks all pending events before exiting.
16067 (handle_serial_event, handle_target_event): New.
16068 * remote-utils.c (remote_open): Install remote_desc in the event
16069 loop.
16070 (remote_close): Remove remote_desc from the event loop.
16071 (putpkt_binary): Rename to...
16072 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
16073 (putpkt_binary): New as wrapper around putpkt_binary_1.
16074 (putpkt_notif): New.
16075 (prepare_resume_reply): In non-stop mode, don't change the
16076 general_thread.
16077 * event-loop.c: New.
16078 * Makefile.in (OBJ): Add event-loop.o.
16079 (event-loop.o): New rule.
16080
16081 * linux-low.h (pid_of): Moved here.
16082 (lwpid_of): New.
16083 (get_lwp_thread): Use lwpid_of.
16084 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
16085 * linux-low.c (pid_of): Delete.
16086 (inferior_pid): Use lwpid_of.
16087 (linux_event_pipe): New.
16088 (target_is_async_p): New.
16089 (delete_lwp): New.
16090 (handle_extended_wait): Use lwpid_of.
16091 (add_lwp): Don't set lwpid field.
16092 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
16093 (linux_kill_one_lwp): If killing a running lwp, stop it first.
16094 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
16095 (linux_detach_one_lwp): If detaching from a running lwp, stop it
16096 first. Adjust to linux_wait_for_event interface changes. Use
16097 lwpid_of.
16098 (linux_detach): Don't delete the main lwp here.
16099 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
16100 (status_pending_p): Don't consider explicitly suspended lwps.
16101 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
16102 pointer. Add OPTIONS argument. Change return type to int. Use
16103 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
16104 (linux_wait_for_event): Take an integer pid instead of a lwp_info
16105 pointer. Add status pointer argument. Return a pid instead of a
16106 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
16107 changes. In non-stop mode, don't switch to a random thread.
16108 (linux_wait): Rename to...
16109 (linux_wait_1): ... this. Add target_options argument, and handle
16110 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
16111 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
16112 clean exit and signal exit code. Don't stop all threads in
16113 non-stop mode. In all-stop mode, only stop all threads when
16114 reporting a stop to GDB. Handle explicit thread stop requests.
16115 (async_file_flush, async_file_mark): New.
16116 (linux_wait): New.
16117 (send_sigstop): Use lwpid_of.
16118 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
16119 interface changes. In non-stop mode, don't switch to a random
16120 thread.
16121 (linux_resume_one_lwp): Use lwpid_of.
16122 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
16123 (linux_resume_one_thread): ... this. Handle resume_stop. In
16124 non-stop mode, don't look for pending flag in all threads.
16125 (resume_status_pending_p): Don't consider explicitly suspended
16126 threads.
16127 (my_waitpid): Reimplement. Emulate __WALL.
16128 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
16129 Use lwpid_of.
16130 (sigchld_handler, linux_supports_non_stop, linux_async)
16131 (linux_start_non_stop): New.
16132 (linux_target_ops): Register linux_supports_non_stop, linux_async
16133 and linux_start_non_stop.
16134 (initialize_low): Install SIGCHLD handler.
16135 * thread-db.c (thread_db_create_event, find_one_thread)
16136 (thread_db_get_tls_address): Use lwpid_of.
16137 * win32-low.c (win32_detach): Adjust to use resume_kind.
16138 (win32_wait): Add `options' argument.
16139 * spu-low.c (spu_resume): Adjust to use resume_kind.
16140 (spu_wait): Add `options' argument.
16141
5b1c542e
PA
161422009-04-01 Pedro Alves <pedro@codesourcery.com>
16143
16144 Decouple target code from remote protocol.
16145
16146 * target.h (enum target_waitkind): New.
16147 (struct target_waitstatus): New.
16148 (struct target_ops) <wait>: Return an unsigned long. Take a
16149 target_waitstatus pointer instead of a char pointer.
16150 (mywait): Likewise.
16151 * target.c (mywait): Change prototype to return an unsigned long.
16152 Take a target_waitstatus pointer instead of a char pointer. Adjust.
16153 * server.h (thread_from_wait, old_thread_from_wait): Delete
16154 declarations.
16155 (prepare_resume_reply): Change prototype to take a
16156 target_waitstatus.
16157 * server.c (thread_from_wait, old_thread_from_wait): Delete.
16158 (last_status, last_ptid): New.
16159 (start_inferior): Remove "statusptr" argument. Adjust. Return a
16160 pid instead of a signal.
16161 (attach_inferior): Remove "status" and "signal" parameters.
16162 Adjust.
16163 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
16164 not as an address.
16165 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
16166 (handle_v_requests, myresume): Remove "status" and "signal"
16167 parameters. Adjust.
16168 (handle_status): New.
16169 (main): Delete local `status'. Adjust.
16170 * remote-utils.c: Include target.h.
16171 (prepare_resume_reply): Change prototype to take a
16172 target_waitstatus. Adjust.
16173
16174 * linux-low.c (linux_wait): Adjust to new target_ops->wait
16175 interface.
16176 * spu-low.c (spu_wait): Adjust.
16177 * win32-low.c (enum target_waitkind, struct target_waitstatus):
16178 Delete.
16179 (win32_wait): Adjust.
16180
2bd7c093
PA
161812009-04-01 Pedro Alves <pedro@codesourcery.com>
16182
16183 * target.h (struct thread_resume): Delete leave_stopped member.
16184 (struct target_ops): Add a `n' argument to the `resume' callback.
16185 * server.c (start_inferior): Adjust.
16186 (handle_v_cont, myresume): Adjust.
16187 * linux-low.c (check_removed_breakpoint): Adjust to resume
16188 interface change, and to removed leave_stopped field.
16189 (resume_ptr): Delete.
16190 (struct thread_resume_array): New.
16191 (linux_set_resume_request): Add new `arg' parameter. Adjust to
16192 resume interface change.
16193 (linux_continue_one_thread, linux_queue_one_thread)
16194 (resume_status_pending_p): Check if the resume field is NULL
16195 instead of checking the leave_stopped member.
16196 (linux_resume): Adjust to the target resume interface change.
16197 * spu-low.c (spu_resume): Adjust to the target resume interface
16198 change.
16199 * win32-low.c (win32_detach, win32_resume): Ditto.
16200
c35fafde
PA
162012009-04-01 Pedro Alves <pedro@codesourcery.com>
16202
16203 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
16204 flag.
16205 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
16206 pending.
16207 (linux_continue_one_thread): Only preserve the stepping flag if
16208 there's a pending breakpoint.
16209
0a59d50b
PA
162102009-03-31 Pedro Alves <pedro@codesourcery.com>
16211
16212 * server.c (main): After the inferior having exited, call
16213 remote_close before exiting gdbserver.
16214
f04c6d38
TJB
162152009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
16216
16217 Fix size of FPSCR in Power 7 processors.
16218 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
16219 (PPC_FEATURE_HAS_DFP): New #define.
16220 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
16221 size of the FPSCR.
16222
78e5cee6
PA
162232009-03-23 Pedro Alves <pedro@codesourcery.com>
16224
16225 * server.c (handle_query) Whitespace and formatting.
16226
1b3f6016
PA
162272009-03-22 Pedro Alves <pedro@codesourcery.com>
16228
16229 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
16230 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
16231 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
16232 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
16233 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
16234 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
16235 Makefile.in, configure.ac: Fix whitespace throughout.
16236 * configure: Regenerate.
16237
a07b2135
PA
162382009-03-22 Pedro Alves <pedro@codesourcery.com>
16239
16240 * inferiors.c (find_inferior): Make it safe for the callback
16241 function to delete the currently iterated inferior.
16242
67cc2626
PA
162432009-03-22 Pedro Alves <pedro@codesourcery.com>
16244
16245 * Makefile.in (linuw_low_h): Move higher.
16246 (thread-db.o): Depend on $(linux_low_h).
16247
54a0b537
PA
162482009-03-17 Pedro Alves <pedro@codesourcery.com>
16249
16250 Rename "process" to "lwp" throughout.
16251
16252 * linux-low.c (all_processes): Rename to...
16253 (all_lwps): ... this.
16254 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
16255 (add_process): Rename to ...
16256 (add_lwp): ... this. Adjust.
16257 (linux_create_inferior): Adjust.
16258 (linux_attach_lwp): Adjust.
16259 (linux_attach): Adjust.
16260 (linux_kill_one_process): Rename to ...
16261 (linux_kill_one_lwp): ... this. Adjust.
16262 (linux_kill): Adjust.
16263 (linux_detach_one_process): Rename to ...
16264 (linux_detach_one_lwp): ... this. Adjust.
16265 (linux_detach): Adjust.
16266 (check_removed_breakpoint): Adjust.
16267 (status_pending_p): Adjust.
16268 (linux_wait_for_process): Rename to ...
16269 (linux_wait_for_lwp): ... this. Adjust.
16270 (linux_wait_for_event): Adjust.
16271 (send_sigstop): Adjust.
16272 (wait_for_sigstop): Adjust.
16273 (stop_all_processes): Rename to ...
16274 (stop_all_lwps): ... this.
16275 (linux_resume_one_process): Rename to ...
16276 (linux_resume_one_lwp): ... this. Adjust.
16277 (linux_set_resume_request, linux_continue_one_thread)
16278 (linux_queue_one_thread, resume_status_pending_p)
16279 (usr_store_inferior_registers, regsets_store_inferior_registers)
16280 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
16281 Adjust.
16282 * linux-low.h (get_process): Rename to ...
16283 (get_lwp): ... this. Adjust.
16284 (get_thread_process): Rename to ...
16285 (get_thread_lwp): ... this. Adjust.
16286 (get_process_thread): Rename to ...
16287 (get_lwp_thread): ... this. Adjust.
16288 (struct process_info): Rename to ...
16289 (struct lwp_info): ... this.
16290 (all_processes): Rename to ...
16291 (all_lwps): ... this.
16292 * proc-service.c (ps_lgetregs): Adjust.
16293 * thread-db.c (thread_db_create_event, find_one_thread)
16294 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
16295
0b16c5cf
PA
162962009-03-14 Pedro Alves <pedro@codesourcery.com>
16297
16298 * server.c (handle_query): Handle "qAttached".
16299
32de4b9d
NS
163002009-03-13 Nathan Sidwell <nathan@codesourcery.com>
16301
16302 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
16303 GPLv3, update license URL.
16304
2aecd87f
DE
163052009-03-01 Doug Evans <dje@google.com>
16306
93efd302 16307 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
2aecd87f
DE
16308 (server_h): Add gdb_signals.h.
16309 (signals.o): Update.
16310 * server.h (target_signal_from_host,target_signal_to_host_p)
16311 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
16312
86b1f9c5
PM
163132009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
16314
16315 * remote-utils.c (getpkt): Also generate remote-debug
16316 information if noack_mode is set.
16317
4aa995e1
PA
163182009-02-06 Pedro Alves <pedro@codesourcery.com>
16319
16320 * server.c (handle_query): Report qXfer:siginfo:read and
16321 qXfer:siginfo:write as supported and handle them.
16322 * target.h (struct target_ops) <qxfer_siginfo>: New field.
16323 * linux-low.c (linux_xfer_siginfo): New.
16324 (linux_target_ops): Set it.
16325
62709adf
PA
163262009-01-26 Pedro Alves <pedro@codesourcery.com>
16327
16328 * server.c (gdbserver_usage): Mention --remote-debug.
16329 (main): Accept '--remote-debug' switch.
16330
aef93bd7
DE
163312009-01-18 Doug Evans <dje@google.com>
16332
16333 * regcache.c (new_register_cache): No need to check result of xcalloc.
16334 * server.c (handle_search_memory): Back out calls to xmalloc,
16335 result is checked and error is returned to user upon failure.
16336 (handle_query): Ditto. Add more checks for result of malloc.
16337 (handle_v_cont): Check result of malloc, report error back to
16338 user upon failure.
16339 (handle_v_run): Ditto. Call freeargv.
16340 * server.h (freeargv): Declare.
16341 * utils.c (freeargv): New fn.
16342
54363045
DE
163432009-01-15 Doug Evans <dje@google.com>
16344
f626972c
DE
16345 * gdbreplay.c (perror_with_name): Make arg const char *.
16346 * server.h (target_signal_to_name): Make return type const char *.
0842e787 16347 * thread-db.c (thread_db_err_str): Make return type const char *.
f626972c 16348 * utils.c (perror_with_name): Make arg const char *.
54363045 16349
18aae699
PA
163502009-01-14 Pedro Alves <pedro@codesourcery.com>
16351
16352 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
16353 when handling a EXIT_PROCESS_DEBUG_EVENT.
16354
ff703abe
JB
163552009-01-06 Joel Brobecker <brobecker@adacore.com>
16356
16357 * gdbreplay.c (gdbreplay_version): Update copyright year.
16358 * server.c (gdbserver_version): Likewise.
16359
f21cc1a2 163602009-01-05 Doug Evans <dje@google.com>
0e21c1ec
DE
16361
16362 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
f21cc1a2 16363 (handle_extended_wait): Improve comment.
0e21c1ec 16364
bca929d3
DE
163652008-12-13 Doug Evans <dje@google.com>
16366
16367 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
16368 * server.h (ATTR_MALLOC): New macro.
16369 (xmalloc,xcalloc,xstrdup): Declare.
16370 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
16371 * inferiors.c: Ditto.
16372 * linux-low.c: Ditto.
16373 * mem-break.c: Ditto.
16374 * regcache.c: Ditto.
16375 * remote-utils.c: Ditto.
16376 * server.c: Ditto.
16377 * target.c: Ditto.
16378 * win32-low.c: Ditto.
16379
97438e3f
DE
163802008-12-12 Doug Evans <dje@google.com>
16381
896c7fbb
DE
16382 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
16383 in debugging printf.
16384
97438e3f
DE
16385 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
16386
e3b886f8
DE
163872008-12-09 Doug Evans <dje@google.com>
16388
16389 * linux-low.h (struct process_info): Delete member tid, unused.
16390 * thread-db.c (find_one_thread): Update.
16391 (maybe_attach_thread): Update.
16392
07e059b5
VP
163932008-12-02 Pedro Alves <pedro@codesourcery.com>
16394
889bf7c5
PA
16395 * target.h (struct target_ops): Add qxfer_osdata member.
16396 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
16397 and dirent.h.
16398 (linux_qxfer_osdata): New functions.
16399 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
16400 callback.
16401 * server.c (handle_query): Handle "qXfer:osdata:read:".
16402 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
16403 (buffer_xml_printf): New functions.
16404 * server.h (struct buffer): New.
16405 (buffer_grow_str, buffer_grow_str0): New macros.
16406 (buffer_grow, buffer_free, buffer_init, buffer_finish)
16407 (buffer_xml_printf): Declare.
07e059b5 16408
4cab47ab
DE
164092008-11-24 Doug Evans <dje@google.com>
16410
16411 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
16412
f142445f
DJ
164132008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
16414
16415 * server.c (handle_v_run): Always use the supplied argument list.
16416
d0107bb6 164172008-11-19 Bob Wilson <bob.wilson@acm.org>
889bf7c5 16418
d0107bb6
BW
16419 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
16420 (xtensa_regmap_table): Add entry for scompare1.
889bf7c5 16421
2c4ad781
TJB
164222008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
16423
16424 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
16425 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
16426 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
16427 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
16428 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
16429 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
16430 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
16431 XML target descriptions.
16432 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
16433 when inferior is running on an ISA 2.05 or later processor. Add
16434 special case to return offset for full 64-bit slot of FPSCR when
16435 in 32-bits.
16436
dfb64f85
DJ
164372008-11-14 Daniel Gutson <dgutson@codesourcery.com>
16438
16439 * Makefile.in (SFILES, clean): Added sparc64 files.
16440 (reg-sparc64.o, reg-sparc64.c): New.
16441 * configure.srv (sparc*-*-linux*): New configuration.
16442 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
16443 syscall arguments for SPARC.
16444 (regsets_store_inferior_registers): Likewise.
16445 * linux-sparc-low.c: New file.
16446
66b6e1dd
DE
164472008-10-21 Doug Evans <dje@google.com>
16448
16449 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
16450 (READLINE_DIR,READLINE_DEP): Delete.
16451 (INTERNAL_CFLAGS): Update.
16452 (LINTFLAGS): Update.
16453
9b710a42
PA
164542008-10-10 Pedro Alves <pedro@codesourcery.com>
16455
16456 * server.c (handle_v_run): If GDB didn't specify an argv, use the
16457 whole argv from the last run, not just argv[0].
16458
5822d809
PA
164592008-09-08 Pedro Alves <pedro@codesourcery.com>
16460
16461 * regcache.c (new_register_cache): Return NULL if the register
16462 cache size isn't known yet.
16463 (free_register_cache): Avoid dereferencing a NULL regcache.
16464
74aac56f
DJ
164652008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
16466
16467 * configure.srv: Merge MIPS and MIPS64.
16468
400b20f5
MR
164692008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
16470
16471 * Makefile.in (uninstall): Apply $(EXEEXT) too.
16472
677c5bb1
LM
164732008-08-18 Luis Machado <luisgpm@br.ibm.com>
16474
16475 * Makefile.in: Add required vsx dependencies.
16476
16477 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
16478 Declare init_registers_powerpc_vsx32l.
16479 Declare init_registers_powerpc_vsx64l.
16480 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
16481 (ppc_arch_setup): Check for VSX in hwcap.
16482 (ppc_fill_vsxregset): New function.
16483 (ppc_store_vsxregset): New function.
16484 Add new VSX entry in regset_info target_regsets.
16485
16486 * configure.srv: Add new VSX dependencies.
16487
a6f3e723
SL
164882008-08-12 Pedro Alves <pedro@codesourcery.com>
16489
16490 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
16491 (remote_open): Set or clear transport_is_reliable.
16492 (putpkt_binary): Don't expect acks in noack mode.
16493 (getpkt): Don't send ack/nac in noack mode.
16494 * server.c (handle_general_set): Handle QStartNoAckMode.
16495 (handle_query): If connected by tcp pass QStartNoAckMode+ in
16496 qSupported.
16497 (main): Reset noack_mode on every connection.
16498 * server.h (noack_mode): Declare.
16499
a417dc56
RW
165002008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16501
16502 * Makefile.in (GDBREPLAY_OBS): New variable.
16503 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
16504
3221518c
UW
165052008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
16506 Daniel Jacobowitz <dan@codesourcery.com>
16507
16508 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
16509 (usr_store_inferior_registers): Likewise.
16510 (regsets_store_inferior_registers): Likewise.
16511
ec56be1b
PA
165122008-07-31 Rolf Jansen <rj@surtec.com>
16513 Pedro Alves <pedro@codesourcery.com>
16514
16515 * configure.ac: Check for memmem declaration.
16516 * server.c [HAVE_MALLOC_H]: Include malloc.h.
16517 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
16518 (disable_packet_qfThreadInfo): Unconditionally compile.
16519 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
16520 * configure, config.in: Regenerate.
16521
2fe5e3ff
DE
165222008-07-28 Doug Kwan <dougkwan@google.com>
16523
16524 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
16525 (linux_write_memory): Remove declaration of errno.
16526
836acd6d
UW
165272008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
16528
16529 * linux-low.c (handle_extended_wait): Do not use "status"
16530 variable uninitialized.
16531
aeba519e
PA
165322008-07-07 Pedro Alves <pedro@codesourcery.com>
16533
16534 * server.c (handle_v_attach): Inhibit reporting dll changes.
16535
db42f210
PA
165362008-06-27 Pedro Alves <pedro@codesourcery.com>
16537
16538 * remote-utils.c (prepare_resume_reply): If requested, don't
16539 output "thread:TID" in the T stop reply.
16540
16541 * server.c (disable_packet_vCont, disable_packet_Tthread)
16542 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
16543 (handle_query): If requested, disable support for qC, qfThreadInfo
16544 and qsThreadInfo.
16545 (handle_v_requests): If requested, disable support for vCont.
16546 (gdbserver_show_disableable): New.
16547 (main): Handle --disable-packet and --disable-packet=LIST.
16548
16549 * server.h (disable_packet_vCont, disable_packet_Tthread)
16550 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
16551
8e4c5421
CD
165522008-06-20 Carlos O'Donell <carlos@codesourcery.com>
16553
16554 * server.c (gdbserver_usage): Mention --version.
16555
6e23a804
DJ
165562008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
16557
16558 * Makefile.in (gdbreplay.o): New rule.
16559
90aa6a40
JM
165602008-06-06 Joseph Myers <joseph@codesourcery.com>
16561
16562 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
16563 message, not gdbserver.
16564
c16158bc 165652008-06-05 Vladimir Prus <vladimir@codesourcery.com>
889bf7c5
PA
16566 Nathan Sidwell <nathan@codesourcery.com>
16567 Joseph Myers <joseph@codesourcery.com>
c16158bc
JM
16568
16569 * acinclude.m4: Include ../../config/acx.m4.
16570 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
16571 * configure, config.in: Regenerate.
16572 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
16573 * server.c (gdbserver_version): Print PKGVERSION.
16574 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
16575 (main): Adjust gdbserver_usage calls.
16576 * gdbreplay.c (version, host_name): Add declarations.
16577 (gdbreplay_version, gdbreplay_usage): New.
16578 (main): Accept --version and --help options.
16579
aeb75bf5
DJ
165802008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
16581
16582 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
16583 (arm_breakpoint_at): Handle Thumb.
16584 (the_low_target): Add comment.
16585
76b233dd
UW
165862008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
16587
16588 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
16589
08388c79
DE
165902008-05-09 Doug Evans <dje@google.com>
16591
a3c83fae
DE
16592 * server.h (decode_search_memory_packet): Declare.
16593 * remote-utils.c (decode_search_memory_packet): New fn.
16594 * server.c (handle_search_memory_1): New fn.
08388c79
DE
16595 (handle_search_memory): New fn.
16596 (handle_query): Process qSearch:memory packets.
16597
bb9c3d36
UW
165982008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
16599
16600 * regcache.c (registers_length): Remove.
16601 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
16602 full register packet.
16603 * regcache.h (registers_length): Remove prototype.
16604 * server.h (PBUFSIZ): Define to 16384.
16605
7284e1be
UW
166062008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
16607
16608 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
16609 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
16610 powerpc-64l.o, and powerpc-altivec64l.o.
16611 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
16612 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
16613 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
16614 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
16615 rs6000/power-linux.xml, and rs6000/power64-linux.xml
16616 to srv_xmlfiles.
16617
16618 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
16619 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
16620 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
16621 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
16622 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
16623 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
16624 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
16625 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
16626 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
16627 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
16628 (clean): Update.
16629
16630 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
16631 (init_registers_powerpc_32l): ... this new prototype.
16632 (init_registers_powerpc_32): Remove, replace by ...
16633 (init_registers_powerpc_altivec32l): ... this new prototype.
16634 (init_registers_powerpc_e500): Remove, replace by ...
16635 (init_registers_powerpc_e500l): ... this new prototype.
16636 (init_registers_ppc64): Remove, replace by ...
16637 (init_registers_powerpc_64l): ... this new prototype.
16638 (init_registers_powerpc_64): Remove, replace by ...
16639 (init_registers_powerpc_altivec64l): ... this new prototype.
16640 (ppc_num_regs): Set to 73.
16641 (PT_ORIG_R3, PT_TRAP): Define if necessary.
16642 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
16643 (ppc_cannot_store_register): Handle orig_r3 and trap.
16644 (ppc_arch_setup): Update init_registers_... calls.
16645 (ppc_fill_gregset): Handle orig_r3 and trap.
16646
16647 * inferiors.c (clear_inferiors): Reset current_inferior.
16648
fdc59709
PB
166492008-04-23 Paolo Bonzini <bonzini@gnu.org>
16650
889bf7c5
PA
16651 * acinclude.m4: Add override.m4.
16652 * configure: Regenerate.
fdc59709 16653
c9b2f845
UW
166542008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
16655
16656 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
16657 initial call to init_register_ppc64.
16658
550512b8
UW
166592008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
16660
43aaf8b6
PA
16661 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
16662 single powerpc*-*-linux* case.
550512b8
UW
16663 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
16664
b6430ec3
UW
166652008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
16666
16667 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
889bf7c5 16668 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
b6430ec3
UW
16669 from reg_xmlfiles.
16670 * linux-ppc-low.c: Include <elf.h>.
16671 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
16672 (ppc_hwcap): New global variable.
16673 (ppc_regmap): Remove __SPE__ #ifdef sections.
16674 (ppc_regmap_e500): New global variable.
16675 (ppc_cannot_store_register): Update __SPE__ special case.
16676 (ppc_get_hwcap): New function.
16677 (ppc_arch_setup): Use it to determine whether inferior supports
16678 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
16679 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
16680 Do not access registers if target does not support AltiVec.
16681 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
16682 Do not access registers if target does not support SPE.
16683 (target_regsets): Unconditionally include AltiVec and SPE regsets.
16684
52fa2412
UW
166852008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
16686
16687 * linux-low.c (disabled_regsets, num_regsets): New.
16688 (use_regsets_p): Delete.
16689 (linux_wait_for_process): Clear disabled_regsets.
16690 (regsets_fetch_inferior_registers): Check and set it.
16691 (regsets_store_inferior_registers): Likewise.
16692 (linux_fetch_registers, linux_store_registers): Do not use
16693 use_regsets_p.
16694 (initialize_low): Allocate disabled_regsets.
16695
e28b3332
DJ
166962008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
16697
16698 * Makefile.in (LIBOBJS): New.
16699 (OBS): Use LIBOBJS.
16700 (memmem.o): New rule.
16701 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
16702 * configure: Regenerated.
16703
4536995d
UW
167042008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
16705
16706 * server.c (handle_query): Never return "unsupported" for
16707 qXfer:features:read queries.
16708
221c031f
UW
167092008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
16710
16711 * server.c (get_features_xml): Fix inverted condition.
16712 (handle_query): Always support qXfer:feature:read.
16713
ccd213ac
DJ
167142008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
16715
16716 * server.c (wrapper_argv): New.
16717 (start_inferior): Handle wrapper_argv. If set, expect an extra
16718 trap.
16719 (gdbserver_usage): Document --wrapper.
16720 (main): Parse --wrapper.
16721
6fe305f7
UW
167222008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16723
16724 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
16725 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
16726 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
16727 (ppc_set_pc): Likewise.
16728 (ppc_arch_setup): New function.
16729 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
16730 of collect_register.
889bf7c5 16731 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
6fe305f7 16732
5b0a002e
UW
167332008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16734
16735 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
16736 instead of linux-ppc64-low.o.
16737 * linux-ppc64-low.c: Remove file.
16738 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
16739 (linux-ppc64-low.o): Remove rule.
16740
16741 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
16742 (init_registers_powerpc_64): Likewise.
16743 (ppc_regmap): Conditionally define depending on __powerpc64__.
16744 (ppc_cannot_store_register): Do not special-case "fpscr" when
16745 compiled on __powerpc64__.
16746 (ppc_collect_ptrace_register): New function.
16747 (ppc_supply_ptrace_register): New function.
16748 (ppc_breakpoint): Change type to "unsigned int".
16749 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
16750 (the_low_target): Conditionally provide initializers for the
889bf7c5 16751 arch_setup member depending on __powerpc64__. Install
5b0a002e
UW
16752 collect_ptrace_register and supply_ptrace_register members.
16753
9b4b61c8
UW
167542008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16755
16756 * regcache.h (gdbserver_xmltarget): Add extern declaration.
16757 * server.c (gdbserver_xmltarget): Define.
16758 (get_features_xml): Use it to replace "target.xml" and arch_string.
16759
16760 * configure.srv: Remove srv_xmltarget. Add XML files that were
16761 mentioned there to srv_xmlfiles instead. Remove conditional tests
16762 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
16763 srv_xmlfiles and srv_regobj to include all possible choices.
16764 * configure.ac (srv_xmltarget): Remove.
16765 (srv_xmlfiles): Do not add "target.xml".
16766 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
16767 checks for supplementary target information.
16768 * configure: Regenerate.
16769 * Makefile.in (XML_TARGET): Remove.
16770 (target.xml): Remove rule.
16771 (clean): Do not clean up target.xml.
16772 (.PRECIOUS): Do not mention target.xml.
16773
16774 * target.h (struct target_ops): Remove arch_string member.
16775 * linux-low.c (linux_arch_string): Remove.
16776 (linux_target_ops): Remove arch_string initializer.
16777 * linux-low.h (struct linux_target_ops): Remove arch_string member.
16778 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
16779 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
16780 * spu-low.c (spu_arch_string): Remove.
16781 (spu_target_ops): Remove arch_string initializer.
16782 * win32-low.c (win32_arch_string): Remove.
16783 (win32_target_ops): Remove arch_string initializer.
16784 * win32-low.h (struct win32_target_ops): Remove arch_string member.
16785 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
16786 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
16787
ee1a7ae4
UW
167882008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
16789
16790 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
16791 by collect_ptrace_register and supply_ptrace_register hooks.
16792 * linux-low.c (fetch_register): Use supply_ptrace_register callback
16793 instead of checking for the_low_target.left_pad_xfer.
16794 (usr_store_inferior_registers): Use collect_ptrace_register callback
16795 instead of checking for the_low_target.left_pad_xfer.
16796
16797 * linux-s390-low.c (s390_collect_ptrace_register): New function.
16798 (s390_supply_ptrace_register): Likewise.
16799 (s390_fill_gregset): Call s390_collect_ptrace_register.
16800 (the_low_target): Update.
16801
16802 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
16803 (ppc_supply_ptrace_register): Likewise.
16804 (the_low_target): Update.
16805
16806 * linux-i386-low.c (the_low_target): Update.
16807 * linux-x86-64-low.c (the_low_target): Update.
16808
d61ddec4
UW
168092008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
16810
16811 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
16812 reg-s390.o and reg-s390x.o.
16813
16814 * linux-low.c (new_inferior): New global variable.
16815 (linux_create_inferior, linux_attach): Set it.
16816 (linux_wait_for_process): Call the_low_target.arch_setup after the
16817 target has stopped for the first time.
16818 (initialize_low): Do not call the_low_target.arch_setup.
16819
16820 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
16821 (s390_set_pc): Likewise.
16822 (s390_arch_setup): New function.
16823 (the_low_target): Use s390_arch_setup as arch_setup routine.
16824
16825 * regcache.c (realloc_register_cache): New function.
16826 (set_register_cache): Call it for each existing regcache.
16827
d05b4ac3
UW
168282008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
16829
16830 * server.h (init_registers): Remove prototype.
16831
16832 * linux-low.h (struct linux_target_ops): Add arch_setup field.
16833 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
16834 instead of init_registers ().
16835 * linux-arm-low.c (init_registers_arm): Add prototype.
16836 (init_registers_arm_with_iwmmxt): Likewise.
16837 (the_low_target): Add initializer for arch_setup field.
16838 * linux-cris-low.c (init_registers_cris): Add prototype.
16839 (the_low_target): Add initializer for arch_setup field.
16840 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
16841 (the_low_target): Add initializer for arch_setup field.
16842 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
16843 (the_low_target): Add initializer for arch_setup field.
16844 * linux-ia64-low.c (init_registers_ia64): Add prototype.
16845 (the_low_target): Add initializer for arch_setup field.
16846 * linux-m32r-low.c (init_registers_m32r): Add prototype.
16847 (the_low_target): Add initializer for arch_setup field.
16848 * linux-m68k-low.c (init_registers_m68k): Add prototype.
16849 (the_low_target): Add initializer for arch_setup field.
16850 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
16851 (init_registers_mips64_linux): Likewise.
16852 (the_low_target): Add initializer for arch_setup field.
16853 * linux-ppc-low.c (init_registers_ppc): Add prototype.
16854 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
16855 (the_low_target): Add initializer for arch_setup field.
16856 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
16857 (init_registers_powerpc_64): Likewise.
16858 (the_low_target): Add initializer for arch_setup field.
16859 * linux-s390-low.c (init_registers_s390): Add prototype.
16860 (init_registers_s390x): Likewise.
16861 (the_low_target): Add initializer for arch_setup field.
16862 * linux-sh-low.c (init_registers_sh): Add prototype.
16863 (the_low_target): Add initializer for arch_setup field.
16864 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
16865 (the_low_target): Add initializer for arch_setup field.
16866 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
16867 (the_low_target): Add initializer for arch_setup field.
16868
16869 * win32-low.h (struct win32_target_ops): Add arch_setup field.
16870 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
16871 instead of init_registers ().
16872 * win32-arm-low.c (init_registers_arm): Add prototype.
16873 (the_low_target): Add initializer for arch_setup field.
16874 * win32-i386-low.c (init_registers_i386): Add prototype.
16875 (the_low_target): Add initializer for arch_setup field.
16876
16877 * spu-low.c (init_registers_spu): Add prototype.
16878 (initialize_low): Call initialie_registers_spu () instead of
16879 initialize_registers ().
16880
fd96d250
PA
168812008-02-19 Pedro Alves <pedro@codesourcery.com>
16882
16883 * server.c (handle_v_requests): When handling the vRun and vAttach
16884 packets, if already debugging a process, don't kill it. Return an
16885 error instead.
16886
d41b6bb4
DJ
168872008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
16888
16889 * server.c (handle_query): Correct length check.
16890
5ac588cf
PA
168912008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
16892
16893 * win32-low.c (do_initial_child_stuff): Add process handle
16894 parameter. Set current_process_handle and current_process_id from the
16895 parameters. Clear globals.
16896 (win32_create_inferior): Don't set current_process_handle and
16897 current_process_id here. Instead pass them on the call to
16898 do_initial_child_stuff.
16899 (win32_attach): Likewise.
16900 (win32_clear_inferiors): New.
16901 (win32_kill): Don't close the current process handle or the
16902 current thread handle here. Instead call win32_clear_inferiors.
16903 (win32_detach): Don't open a new handle to the process. Call
16904 win32_clear_inferiors.
16905 (win32_join): Don't rely on current_process_handle; open a new
16906 handle using the process id.
16907 (win32_wait): Call win32_clear_inferiors when the inferior process
16908 has exited.
16909
ecd7ecbc
DJ
169102008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
16911
16912 * server.c (monitor_show_help): Add "exit".
16913
1525d545
MG
169142008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
16915
ecd7ecbc 16916 * Makefile.in (SFILES): Add linux-xtensa-low.c.
1525d545
MG
16917 (clean): Add reg-xtensa.c.
16918 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
ecd7ecbc
DJ
16919 * configure.srv (xtensa*-*-linux*) New target.
16920 * linux-xtensa-low.c: New.
16921 * xtensa-xtregs.c: New.
1525d545 16922
59a016f0
PA
169232008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
16924
16925 * hostio.c: Don't include errno.h.
16926 (errno_to_fileio_errno): Move to hostio-errno.
16927 * hostio.c: (hostio_error): Remove the error parameter. Defer the
16928 error number outputting to the target->hostio_last_error callback.
16929 (hostio_packet_error): Use FILEIO_EINVAL directly.
16930 (handle_open, handle_pread, hostio_error, handle_unlink): Update
16931 calls to hostio_error.
16932 * hostio-errno.c: New.
16933 * server.h (hostio_last_error_from_errno): Declare.
16934 * target.h (target_ops): Add hostio_last_error member.
16935 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
16936 as hostio_last_error handler.
889bf7c5 16937 * spu-low.c (spu_target_ops): Likewise.
59a016f0
PA
16938 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
16939 (wince_hostio_last_error): New functions.
16940 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
16941 as hostio_last_error handler.
16942 (win32_target_ops) [!_WIN32_WCE]: Register
16943 hostio_last_error_from_errno as hostio_last_error handler.
16944 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
16945 (hostio-errno.o): New rule.
16946 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
16947 * configure.srv (srv_hostio_err_objs): New variable. Default to
16948 hostio-errno.o.
16949 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
16950 * configure: Regenerate.
16951
2d717e4f
DJ
169522008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
16953
16954 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
16955 (linux_kill, linux_detach): Clean up the process list.
16956 * remote-utils.c (remote_open): Improve port number parsing.
16957 (putpkt_binary, input_interrupt): Only send interrupts if the target
16958 is running.
16959 * server.c (extended_protocol): Make static.
16960 (attached): Define earlier.
16961 (exit_requested, response_needed, program_argv): New variables.
16962 (target_running): New.
16963 (start_inferior): Clear attached here.
16964 (attach_inferior): Set attached here.
16965 (require_running): Define.
16966 (handle_query): Use require_running and target_running. Implement
16967 "monitor exit".
16968 (handle_v_attach, handle_v_run): New.
16969 (handle_v_requests): Use require_running. Handle vAttach and vRun.
16970 (gdbserver_usage): Update.
16971 (main): Redo argument parsing. Handle --debug and --multi. Handle
16972 --attach along with other options or after the port. Save
16973 program_argv. Support no initial program. Resynchronize
16974 communication with GDB after an error. Handle "monitor exit".
16975 Use require_running and target_running. Always allow the extended
16976 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
16977 restart in extended mode.
16978 * README: Refer to the GDB manual. Update --attach usage.
16979
7407e2de
AS
169802007-12-20 Andreas Schwab <schwab@suse.de>
16981
16982 * linux-low.c (STACK_SIZE): Define.
16983 (linux_tracefork_child): Use it. Use __clone2 on ia64.
16984 (linux_test_for_tracefork): Likewise.
16985
b65d95c5
DJ
169862007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
16987
16988 * linux-low.c (linux_wait_for_event): Update messages. Do not
16989 reinsert auto-delete breakpoints.
16990 * mem-break.c (struct breakpoint): Change return type of handler to
16991 int.
16992 (set_breakpoint_at): Update handler type.
16993 (reinsert_breakpoint_handler): Return 1 instead of calling
16994 delete_breakpoint.
16995 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
16996 setting a new one.
16997 (check_breakpoints): Delete auto-delete breakpoints and return 2.
16998 * mem-break.h (set_breakpoint_at): Update handler type.
16999 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
17000 * win32-low.c (auto_delete_breakpoint): New.
17001 (get_child_debug_event): Use it.
17002
4e799345
DJ
170032007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
17004
17005 * configure.ac: Check for pread and pwrite.
17006 * hostio.c (handle_pread): Fall back to lseek and read.
17007 (handle_pwrite): Fall back to lseek and write.
17008 * config.in, configure: Regenerated.
17009
27524b67
DJ
170102007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
17011
17012 * server.c (myresume): Add own_buf argument.
17013 (main): Update calls.
17014
a20d5e98
DJ
170152007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
17016
17017 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
17018 * remote-utils.c (remote_open): Do not call disable_async_io.
17019 (block_async_io): Delete.
17020 (unblock_async_io): Make static.
17021 (initialize_async_io): New.
17022 * server.c (handle_v_cont): Handle async I/O here.
17023 (myresume): Likewise. Move other common resume tasks here...
17024 (main): ... from here. Call initialize_async_io. Disable async
17025 I/O before the main loop.
17026 * server.h (initialize_async_io): Declare.
17027 (block_async_io, unblock_async_io): Delete prototypes.
17028 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
17029
b79d787e
DJ
170302007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
17031
17032 * remote-utils.c (readchar): Allow binary data in received messages.
17033
d97903b2
PA
170342007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
17035
17036 * win32-low.c (attaching): New global.
17037 (win32_create_inferior): Clear the `attaching' global.
17038 (win32_attach): Set the `attaching' global.
17039 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
17040 attaching. Only set a breakpoint at the entry point if not
17041 attaching.
17042
311de423
PA
170432007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
17044
17045 * server.c (main): Don't report dll events on the initial
17046 connection on attaches.
17047
6c2d16d2
PA
170482007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
17049
17050 * server.c (main): Relax numerical bases supported for the pid of
17051 the --attach command line argument.
17052
5ca906e6
PA
170532007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
17054
17055 * win32-low.c (win32_attach): Call OpenProcess before
17056 DebugActiveProcess, not after. Add last error output to error
17057 call.
17058
9c6c8194
PA
170592007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
17060
17061 * win32-low.c (win32_get_thread_context)
17062 (win32_set_thread_context): New functions.
17063 (thread_rec): Use win32_get_thread_context.
17064 (continue_one_thread, win32_resume): Use win32_set_thread_context.
17065 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
17066 field.
17067
4d5d1aaa
PA
170682007-12-03 Leo Zayas
17069 Pedro Alves <pedro_alves@portugalmail.pt>
17070
17071 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
17072 global variables.
17073 (child_add_thread): Minor cleanup.
17074 (child_continue): Resume artificially suspended threads before
17075 calling ContinueDebugEvent.
17076 (suspend_one_thread): New.
17077 (fake_breakpoint_event): New.
17078 (get_child_debug_event): Change return type to int. Check here if
17079 gdb sent an interrupt request. If a soft interrupt was requested,
17080 fake a breakpoint event. Return 0 if there is no event to handle,
17081 and 1 otherwise.
17082 (win32_wait): Don't check here if gdb sent an interrupt request.
17083 Ensure there is a valid event to handle.
17084 (win32_request_interrupt): Add soft interruption method as last
17085 resort.
17086
c436e841
PA
170872007-12-03 Leo Zayas
17088 Pedro Alves <pedro_alves@portugalmail.pt>
17089
17090 * win32-low.h (win32_thread_info): Add descriptions to the
17091 structure members. Replace `suspend_count' counter by a
17092 `suspended' flag.
17093 * win32-low.c (thread_rec): Update condition of when to get the
17094 context from the inferior. Rely on ContextFlags being set if it
17095 has already been retrieved. Only suspend the inferior thread if
17096 we haven't already. Warn if that fails.
17097 (continue_one_thread): s/suspend_count/suspended/. Only call
17098 ResumeThread once. Warn if that fails.
17099
e7b5fa67
PA
171002007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
17101
17102 * win32-low.c (win32_wait): Don't read from the inferior when it
17103 has already exited.
17104
a385171d
PA
171052007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
17106
17107 * Makefile.in (win32_low_h): New variable.
17108 (win32-low.o): Add dependency on $(win32_low_h).
17109 (win32-arm-low.o, win32-i386-low.o): New rules.
17110
f80c84b3
DJ
171112007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
17112
17113 * hostio.c: Correct copyright year.
17114
a6b151f1
DJ
171152007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
17116
17117 * Makefile.in (OBS): Add hostio.o.
17118 (hostio.o): New rule.
17119 * server.h (handle_vFile): Declare.
17120 * hostio.c: New file.
17121 * server.c (handle_v_requests): Take packet_len and new_packet_len
17122 for binary packets. Call handle_vFile.
17123 (main): Update call to handle_v_requests.
17124
f9387fc3
DJ
171252007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
17126
17127 * linux-low.c: Include <sched.h>.
17128
51c2684e
DJ
171292007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
17130
17131 * linux-low.c (linux_tracefork_grandchild): New.
17132 (linux_tracefork_child): Use clone.
17133 (linux_test_for_tracefork): Use clone; allocate and free a stack.
17134
75f83163
JB
171352007-10-31 Joel Brobecker <brobecker@adacore.com>
17136
17137 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
17138
da5898ce
DJ
171392007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
17140
17141 * linux-low.c (handle_extended_wait): Handle unexpected signals.
17142
24a09b5f
DJ
171432007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
17144
17145 * inferiors.c (change_inferior_id): Delete.
17146 (add_pid_to_list, pull_pid_from_list): New.
17147 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
17148 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
17149 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
17150 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
17151 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
17152 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
17153 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
17154 (using_threads): Always set to 1.
17155 (handle_extended_wait): New.
17156 (add_process): Do not set TID.
17157 (linux_create_inferior): Set must_set_ptrace_flags.
17158 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
17159 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
17160 (linux_thread_alive): Rename TID argument to LWPID.
17161 (linux_wait_for_process): Handle unknown processes. Do not use TID.
17162 (linux_wait_for_event): Do not use TID or check using_threads. Update
17163 call to dead_thread_notify. Call handle_extended_wait.
17164 (linux_create_inferior): Use PTRACE_SETOPTIONS.
17165 (send_sigstop): Delete sigstop_sent.
17166 (wait_for_sigstop): Avoid TID.
17167 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
17168 (linux_test_for_tracefork): New.
17169 (linux_lookup_signals): Use thread_db_active and
17170 linux_supports_tracefork_flag.
17171 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
17172 * linux-low.h (get_process_thread): Avoid TID.
17173 (struct process_ifo): Move thread_known and tid to the end. Remove
17174 sigstop_sent.
17175 (linux_attach_lwp, thread_db_init): Update prototypes.
17176 * server.h (change_inferior_id): Delete prototype.
17177 (add_pid_to_list, pull_pid_from_list): New prototypes.
17178 * thread-db.c (thread_db_use_events): New.
17179 (find_first_thread): Rename to...
17180 (find_one_thread): ...this. Update callers and messages. Do not
17181 call fatal. Check thread_db_use_events. Do not call
17182 change_inferior_id or new_thread_notify.
17183 (maybe_attach_thread): Update. Do not call new_thread_notify.
17184 (thread_db_init): Set thread_db_use_events. Check use_events.
17185 * utils.c (fatal, warning): Correct message prefix.
17186
30ed0a8f
DJ
171872007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
17188
17189 * Makefile.in (clean): Remove new files.
17190 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
17191 (powerpc-64.o, powerpc-64.c): New rules.
17192 * configure.srv: Use alternate register sets for powerpc64-*-linux*
17193 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
17194 with SPE.
17195 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
17196 SPE targets.
17197 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
17198 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
17199 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
17200 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
17201 (target_regsets): Add AltiVec and SPE register sets.
17202 * configure.ac: Check for AltiVec and SPE.
17203 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
17204 (ppc_fill_vrregset, ppc_store_vrregset): New.
17205 (target_regsets): Add AltiVec register set.
17206 * configure: Regenerated.
17207
fd462a61
DJ
172082007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
17209
17210 * linux-low.c (O_LARGEFILE): Define.
17211 (linux_read_memory): Use /proc/PID/mem.
17212 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
17213 * configure, config.in: Regenerated.
17214
69f223ed
DJ
172152007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
17216
17217 * linux-low.c (linux_wait_for_event): Do not pass signals while
17218 single-stepping.
17219
aec18585
PA
172202007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
17221
17222 * win32-low.c (create_process): New.
17223 (win32_create_inferior): Use create_process instead of
17224 CreateProcess. If create_process failed retry appending an ".exe"
17225 suffix. Store the GetLastError result immediatelly after
17226 create_process calls and use it on the call to error.
17227
34d86ddd
PA
172282007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
17229
17230 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
17231
5a0e3bd0
JB
172322007-08-23 Joel Brobecker <brobecker@adacore.com>
17233
17234 * configure.ac: Switch license to GPLv3.
17235
f88c79e6
MS
172362007-08-01 Michael Snyder <msnyder@access-company.com>
17237
17238 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
17239
6b3d9b83
PA
172402007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
17241
17242 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
17243 typedef.
17244 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
17245 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
17246 CloseToolhelp32Snapshot.
17247 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
17248 CloseToolhelp32Snapshot.
17249
c588c53c
MS
172502007-07-27 Michael Snyder <michael.snyder@access-company.com>
17251
17252 * server.c (main): Check for inferior exit before main loop.
17253
aa0403d9
PA
172542007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
17255
17256 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
17257 instead of on tmp_desc.
17258
255e7678
DJ
172592007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
17260 Daniel Jacobowitz <dan@codesourcery.com>
17261
17262 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
17263 (add_thread): Minor cleanups.
17264 (clear_inferiors): Move lower in the file. Clear the DLL
17265 list.
17266 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
17267 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
17268 (xml_escape_text): New.
17269 * server.c (handle_query): Handle qXfer:libraries:read. Report it
17270 for qSupported.
17271 (handle_v_cont): Report errors.
17272 (gdbserver_version): Update.
17273 (main): Correct size of own_buf. Do not report initial DLL events.
17274 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
17275 (unloaded_dll, xml_escape_text): New.
17276 * win32-low.c (enum target_waitkind): Update comments.
17277 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
17278 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
17279 (win32_EnumProcessModules, win32_GetModuleInformation)
17280 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
17281 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
17282 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
17283 (win32_Module32First, win32_Module32Next, load_toolhelp)
17284 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
17285 (get_child_debug_event): Handle DLL events.
17286 (win32_wait): Likewise.
17287
0d37add9
DJ
172882007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
17289
17290 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
17291 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
17292
45e2715e
PA
172932007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
17294
17295 * win32-low.c (handle_output_debug_string): Ignore event if not
17296 waiting.
17297
c5674cf1
PA
172982007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
17299
17300 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
17301
2bbe3cc1
DJ
173022007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
17303
17304 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
17305
ae13219e
DJ
173062007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
17307
17308 * inferiors.c (change_inferior_id): Add comment.
17309 * linux-low.c (check_removed_breakpoint): Add an early
17310 prototype. Improve debug output.
17311 (linux_attach): Doc update.
17312 (linux_detach_one_process, linux_detach): Clean up before releasing
17313 each process.
17314 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
17315 * linux-low.h (struct process_info): Doc improvement.
17316 * mem-break.c (delete_all_breakpoints): New.
17317 * mem-break.h (delete_all_breakpoints): New prototype.
17318 * thread-db.c (find_first_thread): New.
17319 (thread_db_create_event): Call it instead of
17320 thread_db_find_new_threads. Clean up unused variables.
17321 (maybe_attach_thread): Remove first thread handling.
17322 (thread_db_find_new_threads): Use find_first_thread.
17323 (thread_db_get_tls_address): Likewise.
17324
4105de34
DJ
173252007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
17326
17327 * thread-db.c (thread_db_find_new_threads): Add prototype.
17328 (thread_db_create_event): Check for the main thread before adding
17329 a new thread.
17330 (maybe_attach_thread): Only enable event reporting if TID == 0.
17331 (thread_db_get_tls_address): Check for new threads.
17332
2b876972
DJ
173332007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
17334
17335 * linux-low.c (linux_create_inferior): Try execv before execvp.
17336 * spu-low.c (spu_create_inferior): Likewise.
17337
7a245884
DJ
173382007-06-13 Mike Frysinger <vapier@gentoo.org>
17339
17340 * linux-low.c (linux_create_inferior): Change execv to execvp.
17341 * spu-low.c (spu_create_inferior): Likewies.
17342
117ce543
DJ
173432007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
17344
17345 * Makefile.in (clean): Clean new files instead of deleted ones.
17346 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
17347 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
17348 rules.
17349 * configure.srv: Specify XML files and new regformats for MIPS and
17350 MIPS64 GNU/Linux.
17351 * linux-mips-low.c (mips_num_regs): Set to only used registers.
17352 (mips_regmap): Do not fetch $0. Remove unused registers. Add
17353 an entry for the restart register.
17354 (mips_cannot_fetch_register, mips_cannot_store_register)
17355 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
17356 register names to match the XML descriptions.
17357 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
17358 restart register instead of $0.
17359
0e7f50da
UW
173602007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
17361 Markus Deuling <deuling@de.ibm.com>
17362
17363 * remote-utils.c (decode_xfer_write): New function.
17364 * server.h (decode_xfer_write): Add prototype.
17365 * server.c (handle_query): Add PACKET_LEN argument. Support
17366 qXfer:spu:read and qXfer:spu:write packets.
17367 (main): Pass packet_len to handle_query.
17368 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
17369 * target.h (target_ops): Add qxfer_spu.
17370
374c1d38
UW
173712007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
17372
17373 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
17374 accessing non-seekable spufs files.
17375
bb63802a
UW
173762007-05-16 Markus Deuling <deuling@de.ibm.com>
17377
889bf7c5 17378 * server.c (handle_query): Add reply for qC packet.
bb63802a 17379
7390519e
PA
173802007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
17381 Leo Zayas <lerele@champenstudios@com>
17382
17383 * server.h (check_remote_input_interrupt_request): New function.
17384 * remote_utils.c (INVALID_DESCRIPTOR): New define.
17385 (remote_desc): Initialize with INVALID_DESCRIPTOR.
17386 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
17387 (check_remote_input_interrupt_request): New function.
17388 * server.h (check_remote_input_interrupt_request): Declare.
3ecf0694 17389 * win32-low.c (winapi_DebugBreakProcess,
7390519e
PA
17390 winapi_GenerateConsoleCtrlEvent): New typedefs.
17391 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
17392 to 250 ms.
17393 (win32_wait): Check for remote interrupt request
17394 with check_remote_input_interrupt_request.
17395 (win32_request_interrupt): New function.
17396 (win32_target_op): Set request_interrupt to win32_request_interrupt.
17397
34b34921
PA
173982007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
17399
17400 * win32-low.c (debug_registers_changed,
17401 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
17402 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
17403 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
17404 (thread_rec): Get context using the low target.
17405 (child_add_thread): Call thread_added on the low target,
17406 which does the same thing.
17407 (regptr): Delete.
17408 (do_initial_child_stuff): Remove debug registers references.
17409 Set context using the low target. Resume threads after
17410 setting the contexts.
17411 (child_continue): Remove dead variable. Remove debug
17412 registers references.
17413 (child_fetch_inferior_registers): Go through the low target.
17414 (do_child_store_inferior_registers): Remove.
17415 (child_store_inferior_registers): Go through the low target.
17416 (win32_resume): Remove debug registers references.
17417 Set context using the low target.
17418 (handle_exception): Change return type to void. Don't record
17419 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
17420 first chance exception.
889bf7c5 17421 (get_child_debug_event): Change return type to void. Remove
34b34921
PA
17422 goto loop. Always return after waiting for debug event.
17423 (win32_wait): Convert to switch statement. Handle spurious
17424 events.
17425
17426 * win32-i386-low.c (debug_registers_changed,
17427 debug_registers_used): New.
17428 (initial_stuff): Rename to ...
17429 (i386_initial_stuff): ... this. Clear debug registers
17430 state variables.
17431 (store_debug_registers): Delete.
17432 (i386_get_thread_context): New.
17433 (load_debug_registers): Delete.
17434 (i386_set_thread_context): New.
17435 (i386_thread_added): New.
17436 (single_step): Rename to ...
17437 (i386_single_step): ... this.
17438 (do_fetch_inferior_registers): Rename to ...
17439 (i386_fetch_inferior_register): ... this.
17440 (i386_store_inferior_register): New.
17441 (the_low_target): Adapt to new interface.
17442
17443 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
17444 (arm_get_thread_context): New.
17445 (arm_set_thread_context): New.
17446 (regptr): New.
17447 (do_fetch_inferior_registers): Rename to ...
17448 (arm_fetch_inferior_register): ... this.
17449 (arm_store_inferior_register): New.
17450 (arm_wince_breakpoint): Reimplement as unsigned long.
17451 (arm_wince_breakpoint_len): Define.
17452 (the_low_target): Adapt to new interface.
17453
17454 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
17455 load_debug_registers. Add get_thread_context, set_thread_context,
17456 thread_added and store_inferior_register. Rename
17457 fetch_inferior_registers to fetch_inferior_register.
17458 (regptr): Remove declaration.
17459
dd6953e1
PA
174602007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
17461
17462 * linux-low.c (linux_detach): Change return type to int. Return 0.
17463 * spu-low.c (spu_detach): Likewise.
17464
444d6139
PA
174652007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
17466
17467 * target.h (target_ops): Change return type of detach to int.
17468 Add join.
17469 (join_inferior): New.
17470 * server.c (main): Don't skip detach support on mingw32.
17471 If the inferior doesn't support detaching return error.
17472 Call join_inferior instead of using waitpid.
17473 * linux-low.c (linux_join): New.
17474 (linux_target_op): Add linux_join.
17475 * spu-low.c (spu_join): New.
17476 (spu_target_ops): Add spu_join.
17477 * win32-low.c (win32_detach): Adapt to new interface.
17478 Reopen current_process_handle before detaching. Issue a child
17479 resume before detaching.
17480 (win32_join): New.
17481 (win32_target_op): Add win32_join.
17482
1d5315fe
PA
174832007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
17484
17485 * win32-low.c (win32-attach): Fix return value.
17486 * target.h (target_ops): Describe ATTACH return values.
17487
bf914831
PA
174882007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
17489
17490 * win32-low.c (GETPROCADDRESS): Define.
17491 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
17492 (winapi_DebugSetProcessKillOnExit): Likewise.
17493 (win32_create_inferior): Force usage of ansi CreateProcessA.
17494 (win32_attach): Use GETPROCADDRESS.
17495 (win32_detach): Likewise.
17496
f72f3e60
PA
174972007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
17498
17499 * win32-low.c (win32_wait): Don't use WSTOPSIG.
17500
ed50f18f
PA
175012007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
17502
17503 * win32-low.c: Commit leftover changes from 2007-03-29.
17504
0c2ead7e
DJ
175052007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
17506
17507 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
17508 fields short instead of int. Add explicit padding.
17509 (i387_cache_to_fsave): Remove unnecessary casts.
17510 (i387_fsave_to_cache): Doc fix.
17511 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
17512
73725ff3
DJ
175132007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
17514
17515 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
17516 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
17517
d99f33d8
PA
175182007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
17519
17520 * configure.srv (arm*-*-mingw32ce*): Move near the other
17521 arm targets.
17522
68070c10
PA
175232007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
17524
2482afc6 17525 * configure.ac: Add errno checking.
68070c10
PA
17526 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
17527 sys/file.h and malloc.h.
17528 (AC_CHECK_DECLS): Add perror.
17529 (srv_mingwce): Handle.
2482afc6 17530 * configure.srv (i[34567]86-*-cygwin*): Add
68070c10
PA
17531 win32-i386-low.o to srv_tgtobj.
17532 (i[34567]86-*-mingw*): Likewise.
17533 (arm*-*-mingw32ce*): Add case.
17534 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
17535 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
17536 [__MINGW32CE__] (strerror): New function.
17537 [__MINGW32CE__] (errno): Define to GetLastError.
17538 [__MINGW32CE__] (COUNTOF): New macro.
17539 (remote_open): Remove extra close call.
17540 * mem-break.c (delete_breakpoint_at): New function.
17541 * mem-break.h (delete_breakpoint_at): Declare.
17542 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
17543 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
17544 [USE_WIN32API] (read, write): Add char* casts.
17545 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
17546 * server.h: Include wincecompat.h on Windows CE.
17547 [HAVE_ERRNO_H]: Check.
17548 (perror): Declare if not declared.
17549 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
17550 (perror_with_name): Remove errno declaration.
17551 * wincecompat.h: New.
17552 * wincecompat.c: New.
17553 * win32-low.h: New.
17554 * win32-arm-low.c: New.
17555 * win32-i386-low.c: New.
17556 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
17557 (OUTMSG2): Make it safe.
17558 (_T): New macro.
17559 (COUNTOF): New macro.
17560 (NUM_REGS): Get it from the low target.
17561 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
17562 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
17563 (thread_rec): Let low target handle debug registers.
17564 (child_add_thread): Likewise.
17565 (child_init_thread_list): Likewise.
17566 (continue_one_thread): Likewise.
17567 (regptr): New.
17568 (do_child_fetch_inferior_registers): Move to ...
17569 * win32-i386-low.c: ... here, and rename to ...
17570 (do_fetch_inferior_registers): ... this.
889bf7c5 17571 * win32-low.c (child_fetch_inferior_registers):
68070c10
PA
17572 Go through the low target.
17573 (do_child_store_inferior_registers): Use regptr.
17574 (strwinerror): New function.
17575 (win32_create_inferior): Handle Windows CE.
17576 Use strwinerror instead of strerror on Windows error
17577 codes. Add program to the error output.
17578 Don't close the main thread handle on Windows CE.
17579 (win32_attach): Use coredll.dll on Windows CE.
17580 (win32_kill): Close current process and current
17581 thread handles.
17582 (win32_detach): Use coredll.dll on Windows CE.
17583 (win32_resume): Let low target handle debug registers, and
17584 step request.
17585 (handle_exception): Add/Remove initial breakpoint. Avoid
17586 non-existant WSTOPSIG on Windows CE.
17587 (win32_read_inferior_memory): Cast to remove warning.
17588 (win32_arch_string): Go through the low target.
17589 (initialize_low): Call set_breakpoint_data with the low
17590 target's breakpoint.
17591 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
17592 FOP_REGNUM, mappings): Move to ...
17593 * win32-i386-low.c: ... here.
17594 * win32-low.c (win32_thread_info): Move to ...
17595 * win32-low.h: ... here.
17596 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
17597 win32-arm-low.c and wincecompat.c.
17598 (all:): Add $EXEEXT.
17599 (install-only:): Likewise.
17600 (gdbserver:): Likewise.
17601 (gdbreplay:): Likewise.
17602 * config.in: Regenerate.
17603 * configure: Regenerate.
17604
41093d81
PA
176052007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
17606
17607 * win32-low.c: Rename typedef thread_info to
17608 win32_thread_info throughout.
17609
544afa54
PA
176102007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
17611
17612 * win32-i386-low.c: Rename to ...
17613 * win32-low.c: ... this.
17614 * configure.srv: Replace win32-i386-low.o with win32-low.o.
17615 * Makefile.in: Likewise.
17616
bce7165d
PA
176172007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
17618
17619 * remote-utils.c (monitor_output): Constify msg parameter.
17620 * server.h (monitor_output): Likewise.
17621 * win32-i386-low.c (handle_output_debug_string): New.
17622 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
17623 handle_output_debug_string.
17624 (get_child_debug_event): Likewise.
17625
506c7aa0
DJ
176262007-03-27 Mat Hostetter <mat@lcs.mit.edu>
17627
17628 * server.c (main): Correct strtoul check.
17629
42c81e2a
DJ
176302007-03-27 Jon Ringle <jon@ringle.org>
17631
17632 * linux-low.c: Check __ARCH_HAS_MMU__ also.
17633
9453113a
DJ
176342007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
17635
17636 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
17637
64a69107
DJ
176382007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
17639
17640 * terminal.h: Check HAVE_SGTTY_H.
17641
176422007-02-27 Mat Hostetter <mat@lcs.mit.edu>
6f8486da
DJ
17643
17644 * remote-utils.c (remote_open): Print out the assigned port number.
17645
c74d0ad8
DJ
176462007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
17647
17648 * remote-utils.c (monitor_output): New function.
17649 * server.c (debug_threads): Define here.
17650 (monitor_show_help): New function.
17651 (handle_query): Handle qRcmd.
17652 (main): Do not handle 'd' packet.
17653 * server.h (debug_threads, remote_debug, monitor_output): Declare.
17654 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
17655 of debug_threads.
17656
de7c3b4a
PA
176572007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
17658
17659 * Makefile.in (EXEEXT): New.
17660 (clean): Use $(EXEEXT).
17661
ef57601b
PA
176622007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
17663
17664 * target.h (target_ops): Rename send_signal to request_interrupt,
17665 and remove enum target_signal parameter.
17666 * linux-low.c (linux_request_interrupt): Rename from
17667 linux_send_signal, and always send SIGINT.
17668 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
17669 and always send SIGINT.
17670 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
17671 of send_signal.
17672 (input_interrupt): Likewise.
17673
820f2bda
PA
176742007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
17675
17676 * server.c (get_features_xml): Check if target implemented
17677 arch_string.
17678 * win32-i386-low.c (win32_arch_string): New.
17679 (win32_target_ops): Add win32_arch_string as arch_string member.
17680
ab39bf24
UW
176812007-02-22 Markus Deuling <deuling@de.ibm.com>
17682
17683 * spu-low.c (spu_arch_string): New.
17684 (spu_target_ops): Add spu_arch_string.
17685
61ff6e04
DJ
176862007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
17687
17688 * remote-utils.c: Remove HAVE_TERMINAL_H check.
17689 * configure.ac: Do not check for terminal.h.
17690 * configure, config.in: Regenerated.
17691
fb1e4ffc
DJ
176922007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
17693
17694 * Makefile.in (OBS): Add $(XML_BUILTIN).
17695 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
17696 (clean): Update.
17697 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
17698 (arm-with-iwmmxt.c): New.
17699 * config.in, configure: Regenerate.
17700 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
17701 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
17702 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
17703 (arm*-*-linux*): Add iWMMXt and regset support.
17704 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
17705 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
17706 (arm_store_wmmxregset, target_regsets): New.
17707 * server.c (get_features_xml): Take annex argument. Check builtin
17708 XML documents.
17709 (handle_query): Handle multiple annexes.
17710
0f48aa01
DJ
177112007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
17712
17713 * remote-utils.c [USE_WIN32API] (read, write): Define.
17714 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
17715 write.
17716
23181151
DJ
177172007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
17718
17719 * linux-i386-low.c (the_low_target): Set arch_string.
17720 * linux-x86-64-low.c (the_low_target): Likewise.
17721 * linux-low.c (linux_arch_string): New.
17722 (linux_target_ops): Add it.
17723 * linux-low.h (struct linux_target_ops): Add arch_string.
17724 * server.c (write_qxfer_response): Use const void * for DATA.
17725 (get_features_xml): New.
17726 (handle_query): Handle qXfer:features:read. Report it for qSupported.
17727 * target.h (struct target_ops): Add arch_string method.
17728
9d606399
DJ
177292007-01-03 Denis Pilat <denis.pilat@st.com>
17730 Daniel Jacobowitz <dan@codesourcery.com>
17731
17732 * linux-low.c (linux_kill): Handle being called with no threads.
17733 * win32-i386-low.c (win32_kill): Likewise.
17734 (get_child_debug_event): Clear current_process_handle.
17735
177362006-12-30 Denis PILAT <denis.pilat@st.com>
8264bb58
DJ
17737 Daniel Jacobowitz <dan@codesourcery.com>
17738
17739 * remote-utils.c (remote_open): Check the type of specified
17740 serial port devices before opening them.
17741 * server.c (main): Kill the inferior if an error occurs during
17742 the first remote_open.
17743
a5e13d24
DJ
177442006-12-05 Markus Deuling <deuling@de.ibm.com>
17745
17746 * README: Update supported targets.
17747
186947f7
DJ
177482006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
17749
17750 * Makefile.in (clean): Remove reg-mips64.c.
17751 (reg-mips64.c, reg-mips64.o): New rules.
17752 * configure.srv: Handle mips64. Include regset support for mips.
17753 * linux-mips-low.c (union mips_register): New.
17754 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
17755 (mips_breakpoint, mips_breakpoint_at): Use int.
17756 (mips_collect_register, mips_supply_register)
17757 (mips_collect_register_32bit, mips_supply_register_32bit)
17758 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
17759 (mips_store_fpregset, target_regsets): New.
17760 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
17761
a13e2c95
UW
177622006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
17763
17764 * configure.srv: Add target "spu*-*-*".
17765 * Makefile.in (clean): Remove reg-spu.c.
17766 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
17767 * spu-low.c: New file.
17768
cb7283db
DJ
177692006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
17770
17771 * configure.ac: Correct td_thr_tls_get_addr test.
17772 * configure: Regenerated.
17773
89be2091
DJ
177742006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
17775
17776 * linux-low.c (linux_wait_for_event): Reformat. Use the
17777 pass_signals array.
17778 * remote-utils.c (decode_address_to_semicolon): New.
17779 * server.c (pass_signals, handle_general_set): New.
17780 (handle_query): Mention QPassSignals for qSupported.
17781 (main): Call handle_general_set.
17782 * server.h (pass_signals, decode_address_to_semicolon): New.
17783
000ef4f0
DJ
177842006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
17785
17786 * server.c (handle_query): Correct error handling for read_auxv.
17787
b7149293
UW
177882005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
17789
17790 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
17791 and srv_linux_thread_db to yes.
17792 * linux-s390-low.c (s390_fill_gregset): New function.
17793 (target_regsets): Define data structure.
17794
dae5f5cf
DJ
177952006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
17796
17797 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
17798 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
17799 * config.in, configure: Regenerated.
17800 * inferiors.c (gdb_id_to_thread): New function.
17801 (gdb_id_to_thread_id): Use it.
17802 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
17803 * linux-low.h (struct process_info): Add th member.
17804 (thread_db_get_tls_address): New prototype.
17805 * remote-utils.c (decode_address): Make non-static.
17806 * server.c (handle_query): Handle qGetTLSAddr.
17807 * server.h (gdb_id_to_thread, decode_address): New prototypes.
17808 * target.h (struct target_ops): Add get_tls_address.
17809 * thread-db.c (maybe_attach_thread): Save the thread handle.
17810 (thread_db_get_tls_address): New.
17811
32ca6d61
DJ
178122006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
17813
17814 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
17815 (linux_resume_one_process): Take a siginfo_t *. Update all
17816 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
17817 (struct pending_signals): Add a siginfo_t.
17818 (linux_wait_for_process): Always set last_status.
17819 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
17820 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
17821 * linux-low.h (struct process_info): Add last_status.
17822
5ffff7c1
DJ
178232006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
17824
17825 * remote-utils.c (try_rle): New function.
17826 (putpkt_binary): Use it.
17827
8695c747
DJ
178282006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
17829
17830 * Makefile.in (clean): Clean reg-x86-64-linux.c.
17831 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
17832 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
17833 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
17834 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
17835 point registers.
17836
290fadea
RS
178372006-08-08 Richard Sandiford <richard@codesourcery.com>
17838
17839 * server.c (terminal_fd): New variable.
17840 (old_foreground_pgrp): Likewise.
17841 (restore_old_foreground_pgrp): New function.
17842 (start_inferior): Record the terminal file descriptor in terminal_fd
17843 and its original foreground group in old_foreground_pgrp. Register
17844 restore_old_foreground_pgrp with atexit().
17845
9f2e1e63
DJ
178462006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
17847
17848 * server.c (handle_query): Correct qPart to qXfer.
17849
b80864fb
DJ
178502006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
17851
17852 * configure.ac: Check for more headers which are missing on
17853 Windows. Automatically supply -lwsock32 and USE_WIN32API.
17854 * configure.srv: Add Cygwin and mingw32.
17855 * remote-utils.c: Don't include headers unconditionally which
17856 are missing on mingw32. Include <winsock.h> for mingw32.
17857 (remote_open): Adjust for mingw32 support. Flush
17858 standard error after writing to it.
17859 (remote_close, putpkt_binary, input_interrupt, block_async_io)
17860 (unblock_async_io, enable_async_io, disable_async_io)
17861 (readchar, getpkt): Update for Winsock support.
17862 (prepare_resume_reply): Expect a protocol signal number.
17863 * server.c: Disable <sys/wait.h> on mingw32.
17864 (start_inferior): Adjust for mingw32 support. Flush
17865 standard error after writing to it.
17866 (attach_inferior): Likewise. Use protocol signal
17867 numbers.
17868 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
17869 and names.
17870 * win32-i386-low.c: New file.
17871 * Makefile.in (XM_CLIBS): Set.
17872 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
17873 (win32-i386-low.o): New dependency rule.
17874 * linux-low.c (linux_wait): Use target signal numbers.
17875 * target.h (struct target_ops): Doc fix.
17876 * server.h (target_signal_to_name): New prototype.
17877 * gdbreplay.c: Don't include headers unconditionally which
17878 are missing on mingw32. Include <winsock.h> for mingw32.
17879 (remote_close, remote_open): Adjust for Winsock support.
17880 * configure, config.in: Regenerated.
17881
0876f84a
DJ
178822006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
17883
17884 * server.c (decode_xfer_read, write_qxfer_response): New.
17885 (handle_query): Take a packet length argument. Handle
17886 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
17887 the qSupported response.
17888 (main): Update call to handle_query.
17889
01f9e8fa
DJ
178902006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
17891
17892 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
17893 (putpkt_binary): Renamed from putpkt and adjusted for binary
17894 data.
17895 (putpkt): New wrapper for putpkt_binary.
17896 (readchar): Don't mask off the high bit.
17897 (decode_X_packet): New function.
17898 * server.c (main): Call putpkt_binary if a handler sets the packet
17899 length. Save the length of the incoming packet. Handle 'X'.
17900 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
17901
be2a5f71
DJ
179022006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
17903
17904 * server.c (handle_query): Handle qSupported.
17905
ea025f5f
DJ
179062006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
17907
17908 * remote-utils.c (all_symbols_looked_up): New variable.
17909 (look_up_one_symbol): Check it.
17910 * server.h (look_up_one_symbol): New declaration.
17911 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
17912
9308fc88
DJ
179132006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
17914
17915 * Makefile.in (linux-arm-low.o): Update dependencies.
66f338c7 17916 * linux-arm-low.c: Include "gdb_proc_service.h".
9308fc88
DJ
17917 (PTRACE_GET_THREAD_AREA): Define.
17918 (ps_get_thread_area): New function.
17919
52fb6437
NS
179202006-05-09 Nathan Sidwell <nathan@codesourcery.com>
17921
17922 * configure.srv (m68k*-*-uclinux*): New target.
17923 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
17924 (linux_resume_one_process): Remove extraneous cast.
17925 (linux_read_offsets): New.
17926 (linux_target_op): Add linux_read_offsets on mmuless systems.
17927 * server.c (handle_query): Add qOffsets logic.
17928 * target.h (struct target_ops): Add read_offsets.
17929
21b0f40c
DJ
179302006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
17931
17932 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
17933 (PTRACE_GET_THREAD_AREA): Define.
17934 (ps_get_thread_area): New function.
17935 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
17936 (linux-x86-64-low.o): Update.
17937
0050a760
DJ
179382006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
17939
17940 * configure.ac: Remove checks for prfpregset_t.
17941 * gdb_proc_service.h: New file.
17942 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
17943 new "gdb_proc_service.h".
17944 * proc-service.c: Likewise.
17945 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
17946 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
17947 * Makefile.in (gdb_proc_service_h): Updated.
17948 * configure, config.in: Regenerated.
17949
b92a518e
DJ
179502006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
17951
17952 * remote-utils.c (prepare_resume_reply): Move declaration
17953 of gdb_id_from_wait to the top of the block.
17954
545587ee
DJ
179552006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
17956
17957 * linux-low.c (regsets_store_inferior_registers): Read the regset
17958 from the target before filling it.
17959
9db87ebd
DJ
179602006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
17961
17962 * server.c (attach_inferior): Return SIGTRAP for a successful
17963 attach.
17964
dd24457d
DJ
179652006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
17966
17967 * Makefile.in (OBS): Add version.o.
17968 (STAGESTUFF): Delete.
17969 (version.o): Add dependencies.
17970 (version.c): Replace rule.
17971 (clean): Remove version.c.
17972 * server.c (gdbserver_version): New.
17973 (gdbserver_usage): Use printf.
17974 (main): Handle --version and --help.
17975 * server.h (version, host_name): Add declarations.
17976
6f0f660e
EZ
179772005-12-23 Eli Zaretskii <eliz@gnu.org>
17978
889bf7c5
PA
17979 * linux-arm-low.c:
17980 * linux-arm-low.c:
17981 * inferiors.c:
17982 * i387-fp.h:
17983 * i387-fp.c:
17984 * gdbreplay.c:
17985 * regcache.c:
17986 * proc-service.c:
17987 * mem-break.h:
17988 * mem-break.c:
17989 * linux-x86-64-low.c:
17990 * linux-sh-low.c:
17991 * linux-s390-low.c:
17992 * linux-ppc64-low.c:
17993 * linux-ppc-low.c:
17994 * linux-mips-low.c:
17995 * linux-m68k-low.c:
17996 * linux-m32r-low.c:
17997 * linux-low.h:
17998 * linux-low.c:
17999 * linux-ia64-low.c:
18000 * linux-i386-low.c:
18001 * linux-crisv32-low.c:
18002 * thread-db.c:
18003 * terminal.h:
18004 * target.h:
18005 * target.c:
18006 * server.h:
18007 * server.c:
18008 * remote-utils.c:
18009 * regcache.h:
18010 * utils.c:
18011 * Makefile.in:
18012 * configure.ac:
6f0f660e
EZ
18013 * gdbserver.1: Add (C) after Copyright. Update the FSF
18014 address.
18015
9d1fb177
DJ
180162005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
18017
18018 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
18019 (arm_breakpoint_at): Recognize both breakpoints.
18020 (the_low_target): Use the correct breakpoint instruction.
18021
011a70c2
DJ
180222005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
18023
18024 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
18025 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
18026 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
18027 (the_low_target): Update.
18028
7fb85e41
AS
180292005-10-25 Andreas Schwab <schwab@suse.de>
18030
18031 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
18032
18033 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
18034 (ia64_num_regs): Reduce to 462.
18035
3db0444b
DJ
180362005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
18037
18038 * acinclude.m4: Correct quoting.
18039 * aclocal.m4: Regenerated.
18040
18041 Suggested by SZOKOVACS Robert <szo@ies.hu>:
18042 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
18043 (thread_db_init): Call thread_db_err_str.
18044 * configure.ac: Check for TD_VERSION.
18045 * config.in, configure: Regenerated.
18046
bee0189a
DJ
180472005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18048
18049 * server.h (error, fatal, warning): Add ATTR_FORMAT.
18050
e9d25b98
DJ
180512005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
18052
18053 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
18054 is not available. Define HAVE_PTRACE_GETREGS if it is.
18055 * config.in, configure: Regenerated.
18056 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
18057 * linux-i386-low.c, linux-m68k-low.c: Update to use
18058 HAVE_PTRACE_GETREGS.
18059 * linux-low.c (regsets_fetch_inferior_registers)
18060 (regsets_store_inferior_registers): Only return 0 if we processed
18061 GENERAL_REGS.
18062 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
18063 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
18064
a06660f7
DJ
180652005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
18066
18067 * inferiors.c (struct thread_info): Add gdb_id.
18068 (add_thread): Add gdb_id argument.
18069 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
18070 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
18071 calls to add_thread.
18072 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
18073 * server.c (handle_query): Use thread_to_gdb_id.
18074 (handle_v_cont, main): Use gdb_id_to_thread_id.
18075 * server.h (add_thread): Update prototype.
18076 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
18077 prototypes.
18078
5a1f5858
DJ
180792005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
18080
18081 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
18082 left-padded registers.
18083 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
18084 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
18085
e122f1f5
SE
180862005-07-01 Steve Ellcey <sje@cup.hp.com>
18087
18088 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
18089 * configure: Regenerate.
18090 * config.in: Regenerate.
18091 * server.h (NEED_DECLARATION_STRERROR):
18092 Replace with !HAVE_DECL_STRERROR.
18093
d592fa2f
DJ
180942005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
18095
18096 * linux-low.c (linux_wait, linux_send_signal): Don't test
18097 an unsigned long variable for > 0 if it could be MAX_ULONG.
18098 * server.c (myresume): Likewise.
18099 * target.c (set_desired_inferior): Likewise.
18100
ccbd4912
MK
181012005-06-13 Mark Kettenis <kettenis@gnu.org>
18102
18103 * configure.ac: Simplify and improve check for socklen_t.
18104 * configure, config.in: Regenerate.
18105
f450004a
DJ
181062005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
18107
18108 * acconfig.h: Remove.
18109 * configure.ac: Add a test for socklen_t. Use three-argument
18110 AC_DEFINE throughout.
18111 * config.in: Regenerated using autoheader 2.59.
18112 * configure: Regenerated.
18113
18114 * gdbreplay.c (socklen_t): Provide a default.
18115 (remote_open): Use socklen_t.
18116 * remote-utils.c (socklen_t): Provide a default.
18117 (remote_open): Use socklen_t.
18118 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
18119 unsigned char.
18120
18121 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
18122 char for buffers.
18123 * linux-low.c (linux_read_memory, linux_write_memory)
18124 (linux_read_auxv): Likewise.
18125 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
18126 (check_mem_write): Likewise.
18127 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
18128 Likewise.
18129 * regcache.c (struct inferior_rgcache_data, registers_to_string)
18130 (registers_from_string, register_data): Likewise.
18131 * server.c (handle_query, main): Likewise.
18132 * server.h (convert_ascii_to_int, convert_int_to_ascii)
18133 (decode_M_packet): Likewise.
18134 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
18135 * target.h (struct target_ops): Update read_memory, write_memory,
18136 and read_auxv.
18137 (read_inferior_memory, write_inferior_memory): Update.
18138 * linux-low.h (struct linux_target_ops): Change type of breakpoint
18139 to unsigned char *.
18140 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
18141 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
18142 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
18143 linux-s390-low.c, linux-sh-low.c: Update for changes in
18144 read_inferior_memory and the_low_target->breakpoint.
18145
eee84df1
DJ
181462005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
18147
18148 * Makefile.in (SFILES): Add linux-ppc64-low.c.
18149 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
18150 * configure.srv: Add powerpc64-*-linux*.
18151 * linux-ppc64-low.c: New file.
18152
45b134e5
OF
181532005-05-23 Orjan Friberg <orjanf@axis.com>
18154
18155 * linux-cris-low.c: New file with support for CRIS.
18156 * linux-crisv32-low.c: Ditto for CRISv32.
18157 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
18158 (clean): Add reg-cris.c and reg-crisv32.c.
889bf7c5 18159 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
45b134e5
OF
18160 reg-crisv32.o, and reg-crisv32.c to make rules.
18161 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
18162 recognized targets.
18163
48d93c75
UW
181642005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
18165
18166 * linux-low.c (fetch_register): Ensure buffer size is a multiple
18167 of sizeof (PTRACE_XFER_TYPE).
18168 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
18169
e013ee27
OF
181702005-05-12 Orjan Friberg <orjanf@axis.com>
18171
889bf7c5 18172 * target.h (struct target_ops): Add insert_watchpoint,
e013ee27
OF
18173 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
18174 pointers for hardware watchpoint support.
18175 * linux-low.h (struct linux_target_ops): Ditto.
18176 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
18177 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
18178 to linux_target_ops.
18179 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
18180 reply packet.
18181 * server.c (main): Recognize 'Z' and 'z' packets.
18182
b0ded00b
UW
181832005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
18184
18185 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
18186 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
18187 (the_low_target): Add new members.
18188
8643e2ad
DJ
181892005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
18190
18191 * proc-service.c (ps_lgetregs): Search all_processes instead of
18192 all_threads.
18193
fc620387
DJ
181942005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
18195
18196 * server.c (start_inferior): Change return type to int.
18197 (attach_inferior): Change sigptr to int *.
18198 (handle_v_cont, handle_v_requests): Change signal to int *.
18199 (main): Change signal to int.
18200
182012005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
7cfbc4a0
KI
18202
18203 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
18204 * configure.srv: Add m32r*-*-linux*.
18205 * linux-m32r-low.c: New file.
18206
e0e76420
DJ
182072005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
18208
18209 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
18210
a1928bad
DJ
182112005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
18212
18213 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
18214 Take unsigned long arguments for PIDs.
18215 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
18216 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
18217 (wait_for_sigstop, linux_resume_one_process)
18218 (regsets_fetch_inferior_registers, linux_send_signal)
18219 (linux_read_auxv): Likewise. Update the types of variables holding
18220 PIDs. Update format string specifiers.
18221 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
18222 * remote-utils.c (prepare_resume_reply): Likewise.
18223 * server.c (cont_thread, general_thread, step_thread)
18224 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
18225 unsigned long.
18226 (handle_query): Update format specifiers.
18227 (handle_v_cont, main): Use strtoul for thread IDs.
18228 * server.h (struct inferior_list_entry): Use unsigned long for ID.
18229 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
18230 (general_thread, step_thread, thread_from_wait)
18231 (old_thread_from_wait): Update.
18232 * target.h (struct thread_resume): Use unsigned long for THREAD.
18233 (struct target_ops): Use unsigned long for arguments to attach and
18234 thread_alive.
18235
dcdb98d2
DJ
182362005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
18237
18238 * acinclude.m4: Include bfd/bfd.m4 directly.
18239 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
18240 <agriffis@toolchain.org>.
18241 * aclocal.m4, configure: Regenerated.
18242
bec39cab
AC
182432005-01-07 Andrew Cagney <cagney@gnu.org>
18244
18245 * configure.ac: Rename configure.in, require autoconf 2.59.
18246 * configure: Re-generate.
18247
434c4c77
DJ
182482004-12-08 Daniel Jacobowitz <dan@debian.org>
18249
18250 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
18251 LIBS when finished.
18252 * aclocal.m4: Regenerated.
18253 * configure: Regenerated.
18254
db1d3e1b
AS
182552004-11-21 Andreas Schwab <schwab@suse.de>
18256
18257 * linux-m68k-low.c (m68k_num_gregs): Define.
18258 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
18259 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
18260 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
18261 (m68k_breakpoint_at): New. Add to the_low_target.
18262
18263 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
18264 srv_linux_thread_db to yes.
18265
43360365
JB
182662004-10-20 Joel Brobecker <brobecker@gnat.com>
18267
18268 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
18269 (ARCH_SET_FS): Likewise.
18270 (ARCH_GET_FS): Likewise.
18271 (ARCH_GET_GS): Likewise.
18272
fd500816
DJ
182732004-10-16 Daniel Jacobowitz <dan@debian.org>
18274
18275 * linux-i386-low.c (ps_get_thread_area): New.
18276 * linux-x86-64-low.c (ps_get_thread_area): New.
18277 * linux-low.c: Include <sys/syscall.h>.
18278 (linux_kill_one_process): Don't kill the first thread here.
18279 (linux_kill): Kill the first thread here.
18280 (kill_lwp): New function.
18281 (send_sigstop, linux_send_signal): Use it.
18282 * proc-service.c: Clean up #ifdefs.
18283 (fpregset_info): Delete.
18284 (ps_lgetregs): Update and enable implementation.
18285 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
18286 implementations.
18287 * remote-utils.c (struct sym_cache, symbol_cache): New.
18288 (input_interrupt): Print a clearer message.
18289 (async_io_enabled): New variable.
18290 (enable_async_io, disable_async_io): Use it. Update comments.
18291 (look_up_one_symbol): Use the symbol cache.
18292 * thread-db.c (thread_db_look_up_symbols): New function.
18293 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
18294
f6de3c42
DJ
182952004-10-16 Daniel Jacobowitz <dan@debian.org>
18296
18297 * configure.in: Test for -rdynamic.
18298 * configure: Regenerated.
18299 * Makefile (INTERNAL_LDFLAGS): New.
18300 (gdbserver, gdbreplay): Use it.
18301
2c0fc042
AC
183022004-09-02 Andrew Cagney <cagney@gnu.org>
18303
18304 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
18305
075b3282
DJ
183062004-03-23 Daniel Jacobowitz <drow@mvista.com>
18307
18308 * linux-low.c (linux_wait): Clear all_processes list also.
18309
fa6a77dc
DJ
183102004-03-12 Daniel Jacobowitz <drow@mvista.com>
18311
18312 * linux-low.c: Include <errno.h>. Remove extern declaration of
18313 errno.
18314
6d782a97
DJ
183152004-03-12 Daniel Jacobowitz <drow@mvista.com>
18316
18317 * gdbreplay.c, server.h, utils.c: Update copyright years.
18318
3a7fb99b
DJ
183192004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
18320
18321 * server.c (main): Print child status or termination signal from
18322 variable 'signal', not 'sig'.
18323
c3e735a6
DJ
183242004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
18325
18326 * linux-low.c (linux_read_memory): Change return type to
18327 int. Check for and return error from ptrace().
18328 * target.c (read_inferior_memory): Change return type to int. Pass
18329 back return status from the_target->read_memory().
18330 * target.h (struct target_ops): Adapt *read_memory() prototype.
18331 Update comment.
18332 (read_inferior_memory): Adapt prototype.
18333 * server.c (main): Return an error packet if
18334 read_inferior_memory() returns an error.
18335
a59d1c82
DJ
183362004-03-04 Daniel Jacobowitz <drow@mvista.com>
18337
18338 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
18339 Unify with other clean targets.
18340
dc3f8883
DJ
183412004-02-29 Daniel Jacobowitz <drow@mvista.com>
18342
18343 * server.c (handle_v_cont): Call set_desired_inferior.
18344
89a208da
DJ
183452004-02-29 Daniel Jacobowitz <drow@mvista.com>
18346
18347 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
18348
62ea82f5
DJ
183492004-02-29 Daniel Jacobowitz <drow@mvista.com>
18350
18351 * linux-low.c (linux_wait): Unblock async I/O.
18352 (linux_resume): Block and enable async I/O.
18353 * remote-utils.c (block_async_io, unblock_async_io): New functions.
18354 * server.h (block_async_io, unblock_async_io): Add prototypes.
18355
6910d122
DJ
183562004-02-29 Daniel Jacobowitz <drow@mvista.com>
18357
18358 * remote-utils.c (remote_open): Print a status notice after
18359 opening a TCP port.
18360 * server.c (attach_inferior): Print a status notice after
18361 attaching.
18362
183632004-02-29 Daniel Jacobowitz <drow@mvista.com>
d677d77d
DJ
18364
18365 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
18366
c89dc5d4
DJ
183672004-02-26 Daniel Jacobowitz <drow@mvista.com>
18368
18369 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
18370 error packet.
18371 * server.c, target.h: Update copyright years.
18372
4b8dad4a
RM
183732004-02-25 Roland McGrath <roland@redhat.com>
18374
18375 * target.h (struct target_ops): New member `read_auxv'.
18376 * server.c (handle_query): Handle qPart:auxv:read: query using that.
18377 * linux-low.c (linux_read_auxv): New function.
18378 (linux_target_ops): Initialize `read_auxv' member to that.
18379
d7446758
JB
183802004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18381
18382 Committed by Jim Blandy <jimb@redhat.com>.
18383
18384 * linux-s390-low.c (s390_num_regs): Update.
4b8dad4a 18385 (s390_regmap): Remove control registers. Use __s390x__ predefine
d7446758
JB
18386 instead of GPR_SIZE to distiguish s390 and s390x targets.
18387
5544ad89
DJ
183882004-01-31 Daniel Jacobowitz <drow@mvista.com>
18389
18390 * linux-low.c: Update copyright year.
18391 (check_removed_breakpoint): Clear pending_is_breakpoint.
18392 (linux_set_resume_request, linux_queue_one_thread)
18393 (resume_status_pending_p): New functions.
18394 (linux_continue_one_thread): Use process->resume.
18395 (linux_resume): Only resume threads if there are no pending events.
18396 * linux-low.h (struct process_info): Add resume request
18397 pointer.
18398
2a68b70e
DJ
183992004-01-30 Daniel Jacobowitz <drow@mvista.com>
18400
18401 * regcache.c (new_register_cache): Clear the allocated register
18402 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
18403
64386c31
DJ
184042003-10-13 Daniel Jacobowitz <drow@mvista.com>
18405
18406 * linux-low.c (linux_resume): Take a struct thread_resume *
18407 argument.
18408 (linux_wait): Update call.
18409 (resume_ptr): New static variable.
18410 (linux_continue_one_thread): Renamed from
18411 linux_continue_one_process. Use resume_ptr.
18412 (linux_resume): Use linux_continue_one_thread.
18413 * server.c (handle_v_cont, handle_v_requests): New functions.
18414 (myresume): New function.
18415 (main): Handle 'v' case.
18416 * target.h (struct thread_resume): New type.
18417 (struct target_ops): Change argument of "resume" to struct
18418 thread_resume *.
18419 (myresume): Delete macro.
18420
c938e9b0
L
184212003-08-08 H.J. Lu <hongjiu.lu@intel.com>
18422
18423 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
18424 (uninstall): Support DESTDIR.
18425
7f313d07
BC
18426Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
18427
18428 * configure.srv: Add xscale*linux copy of arm*linux entry.
18429
3b2fc2ea
DJ
184302003-07-24 Daniel Jacobowitz <drow@mvista.com>
18431
18432 * linux-arm-low.c (arm_reinsert_addr): New function.
18433 (the_low_target): Add arm_reinsert_addr.
18434
1c0a559e
MK
184352003-07-08 Mark Kettenis <kettenis@gnu.org>
18436
18437 * mem-break.c: Remove whitespace at end of file.
18438
43d5792c
DJ
184392003-06-28 Daniel Jacobowitz <drow@mvista.com>
18440
18441 * configure.in: Check whether we need to prototype strerror.
18442 * server.h: Optionally prototype strerror.
18443 * gdbreplay.c (perror_with_name): Use strerror.
18444 * linux-low.c (linux_attach_lwp): Use strerror.
18445 * utils.c (perror_with_name): Use strerror.
18446 * config.in, configure: Regenerated.
18447
c8a86edf
DJ
184482003-06-28 Daniel Jacobowitz <drow@mvista.com>
18449
18450 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
18451 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
18452
73d37363
DJ
184532003-06-20 Daniel Jacobowitz <drow@mvista.com>
18454
18455 * Makefile.in (SFILES): Update.
18456 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
18457 low-sun3.c: Remove files.
18458
6ad8ae5c
DJ
184592003-06-17 Daniel Jacobowitz <drow@mvista.com>
18460
18461 * linux-low.c: Move comment to linux_thread_alive where it belonged.
18462 (linux_detach_one_process, linux_detach): New functions.
18463 (linux_target_ops): Add linux_detach.
18464 * server.c (main): Handle 'D' packet.
18465 * target.h (struct target_ops): Add "detach" member.
18466 (detach_inferior): Define.
18467
1581182a
MK
184682003-06-13 Mark Kettenis <kettenis@gnu.org>
18469
18470 From Kelley Cook <kelleycook@wideopenwest.com>:
18471 * configure.srv: Accept i[34567]86 variants.
18472
e5379b03
DJ
184732003-06-05 Daniel Jacobowitz <drow@mvista.com>
18474
18475 * linux-low.c (linux_wait_for_event): Correct comment typos.
18476 (linux_resume_one_process): Call check_removed_breakpoint.
18477 (linux_send_signal): New function.
18478 (linux_target_ops): Add linux_send_signal.
18479 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
18480 of kill.
18481 * target.h (struct target_ops): Add send_signal.
18482
2ff29de4
JB
184832003-05-29 Jim Blandy <jimb@redhat.com>
18484
18485 * linux-low.c (usr_store_inferior_registers): Transfer buf in
18486 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
18487 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
18488 away part of the register's value.
18489
254787d4
DJ
184902003-03-26 Daniel Jacobowitz <drow@mvista.com>
18491
18492 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
18493 (linux_wait_for_event, linux_init_signals): Likewise.
18494
94e10508
DJ
184952003-03-17 Daniel Jacobowitz <drow@mvista.com>
18496
18497 * configure.in: Check for stdlib.h.
18498 * configure: Regenerated.
18499 * config.in: Regenerated.
18500
4c0711e0
DJ
185012003-01-04 Andreas Schwab <schwab@suse.de>
18502
18503 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
18504
ef66e766
AC
185052003-01-02 Andrew Cagney <ac131313@redhat.com>
18506
18507 * Makefile.in: Remove obsolete code.
18508
a1358604
DJ
185092002-11-20 Daniel Jacobowitz <drow@mvista.com>
18510
18511 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
18512 defined(PT_FPR0_HI).
18513
23ce3b1c
DJ
185142002-11-17 Stuart Hughes <seh@zee2.com>
18515
18516 * linux-arm-low.c (arm_num_regs): Increase.
18517 (arm_regmap): Include status register.
18518
185192002-11-17 Daniel Jacobowitz <drow@mvista.com>
18520
18521 * linux-low.c (register_addr): Remove incorrect -1 check.
18522
a9fa9f7d
DJ
185232002-08-29 Daniel Jacobowitz <drow@mvista.com>
18524
18525 * linux-low.c (linux_create_inferior): Call setpgid. Return
18526 the new PID.
18527 (unstopped_p, linux_signal_pid): Remove.
18528 (linux_target_ops): Remove linux_signal_pid.
18529 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
18530 global instead of target method.
18531 * target.h (struct target_ops): Remove signal_pid. Update comment
18532 for create_inferior.
18533 * server.c (signal_pid): New variable.
18534 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
4b8dad4a 18535 gdbserver. Set the child to be the foreground process group.
a9fa9f7d
DJ
18536 (attach_inferior): Set signal_pid.
18537
17574093
DJ
185382002-08-23 Daniel Jacobowitz <drow@mvista.com>
18539
18540 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
18541
185422002-08-20 Jim Blandy <jimb@redhat.com>
18543
18544 * Makefile.in (LDFLAGS): Allow the configure script to establish a
18545 default for this.
18546
185472002-08-01 Andrew Cagney <cagney@redhat.com>
18548
18549 * Makefile.in: Make chill references obsolete.
18550
185512002-07-24 Kevin Buettner <kevinb@redhat.com>
18552
18553 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
18554 * configure: Regenerate.
18555 * config.in: Regenerate.
18556
185572002-07-09 David O'Brien <obrien@FreeBSD.org>
18558
18559 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
18560 (perror_with_name, remote_close, remote_open, expect, play): Static.
18561
185622002-07-04 Michal Ludvig <mludvig@suse.cz>
18563
4b8dad4a 18564 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
17574093
DJ
18565 byte offsets instead of an array of indexes.
18566 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
18567
185682002-06-13 Daniel Jacobowitz <drow@mvista.com>
18569
18570 * regcache.c: Add comment.
18571
185722002-06-11 Daniel Jacobowitz <drow@mvista.com>
18573
18574 * thread-db.c: New file.
18575 * proc-service.c: New file.
18576 * acinclude.m4: New file.
18577 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
18578 proc-service.o, and thread-db.o.
18579 (linux-low.o): Add USE_THREAD_DB.
18580 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
18581 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
18582 * aclocal.m4: Regenerated.
18583 * config.in: Regenerated.
18584 * configure: Regenerated.
18585 * configure.in: Check for proc_service.h, sys/procfs.h,
18586 thread_db.h, and linux/elf.h headrs.
18587 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
18588 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
18589 Check for -lthread_db and thread support.
18590 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
18591 PowerPC, and SuperH.
18592 * i387-fp.c: Constify arguments.
18593 * i387-fp.h: Likewise.
18594 * inferiors.c: (struct thread_info): Renamed from
18595 `struct inferior_info'. Remove PID member. Use generic inferior
18596 list header. All uses updated.
18597 (inferiors, signal_pid): Removed.
18598 (all_threads): New variable.
18599 (get_thread): Define.
18600 (add_inferior_to_list): New function.
18601 (for_each_inferior): New function.
18602 (change_inferior_id): New function.
18603 (add_inferior): Removed.
18604 (remove_inferior): New function.
18605 (add_thread): New function.
18606 (free_one_thread): New function.
18607 (remove_thread): New function.
18608 (clear_inferiors): Use for_each_inferior and free_one_thread.
18609 (find_inferior): New function.
18610 (find_inferior_id): New function.
18611 (inferior_target_data): Update argument type.
18612 (set_inferior_target_data): Likewise.
18613 (inferior_regcache_data): Likewise.
18614 (set_inferior_regcache_data): Likewise.
18615 * linux-low.c (linux_bp_reinsert): Remove.
18616 (all_processes, stopping_threads, using_thrads)
18617 (struct pending_signals, debug_threads, pid_of): New.
18618 (inferior_pid): Replace with macro.
18619 (struct inferior_linux_data): Remove.
18620 (get_stop_pc, add_process): New functions.
18621 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
18622 Use add_process and add_thread.
18623 (linux_attach_lwp): New function, based on old linux_attach. Use
18624 add_process and add_thread. Set stop_expected for new threads.
18625 (linux_attach): New function.
18626 (linux_kill_one_process): New function.
18627 (linux_kill): Kill all LWPs.
18628 (linux_thread_alive): Use find_inferior_id.
18629 (check_removed_breakpoints, status_pending_p): New functions.
18630 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
18631 Update. Use WNOHANG. Wait for cloned processes also. Update process
18632 struct for the found process.
18633 (linux_wait_for_event): New function.
18634 (linux_wait): Use it. Support LWPs.
18635 (send_sigstop, wait_for_sigstop, stop_all_processes)
18636 (linux_resume_one_process, linux_continue_one_process): New functions.
18637 (linux_resume): Support LWPs.
18638 (REGISTER_RAW_SIZE): Remove.
18639 (fetch_register): Use register_size instead. Call supply_register.
18640 (usr_store_inferior_registers): Likewise. Call collect_register.
18641 Fix recursive case.
18642 (regsets_fetch_inferior_registers): Improve error message.
18643 (regsets_store_inferior_registers): Add debugging.
18644 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
18645 (unstopped_p, linux_signal_pid): New functions.
18646 (linux_target_ops): Add linux_signal_pid.
18647 (linux_init_signals): New function.
18648 (initialize_low): Call it. Initialize using_threads.
18649 * regcache.c (inferior_regcache_data): Add valid
18650 flag.
18651 (get_regcache): Fetch registers lazily. Add fetch argument
18652 and update all callers.
18653 (regcache_invalidate_one, regcache_invalidate): New
18654 functions.
18655 (new_register_cache): Renamed from create_register_cache.
18656 Return the new regcache.
18657 (free_register_cache): Change argument to a void *.
18658 (registers_to_string, registers_from_string): Call get_regcache
18659 with fetch flag set.
18660 (register_data): Make static. Pass fetch flag to get_regcache.
18661 (supply_register): Call get_regcache with fetch flag clear.
18662 (collect_register): Call get_regcache with fetch flag set.
18663 (collect_register_as_string): New function.
18664 * regcache.h: Update.
18665 * remote-utils.c (putpkt): Flush after debug output and use
18666 stderr.
18667 Handle input interrupts while waiting for an ACK.
18668 (input_interrupt): Use signal_pid method.
18669 (getpkt): Flush after debug output and use stderr.
18670 (outreg): Use collect_register_as_string.
18671 (new_thread_notify, dead_thread_notify): New functions.
18672 (prepare_resume_reply): Check using_threads. Set thread_from_wait
18673 and general_thread.
18674 (look_up_one_symbol): Flush after debug output.
18675 * server.c (step_thread, server_waiting): New variables.
18676 (start_inferior): Don't use signal_pid. Update call to mywait.
18677 (attach_inferior): Update call to mywait.
18678 (handle_query): Handle qfThreadInfo and qsThreadInfo.
18679 (main): Don't fetch/store registers explicitly. Use
18680 set_desired_inferior. Support proposed ``Hs'' packet. Update
18681 calls to mywait.
18682 * server.h: Update.
18683 (struct inferior_list, struct_inferior_list_entry): New.
18684 * target.c (set_desired_inferior): New.
18685 (write_inferior_memory): Constify.
18686 (mywait): New function.
18687 * target.h: Update.
18688 (struct target_ops): New signal_pid method.
18689 (mywait): Removed macro, added prototype.
18690
18691 * linux-low.h (regset_func): Removed.
18692 (regset_fill_func, regset_store_func): New.
18693 (enum regset_type): New.
18694 (struct regset_info): Add type field. Use new operation types.
18695 (struct linux_target_ops): stop_pc renamed to get_pc.
18696 Add decr_pc_after_break and breakpoint_at.
18697 (get_process, get_thread_proess, get_process_thread)
18698 (strut process_info, all_processes, linux_attach_lwp)
18699 (thread_db_init): New.
18700
18701 * linux-arm-low.c (arm_get_pc, arm_set_pc,
18702 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
18703 (the_low_target): Add new members.
18704 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
18705 (i386_store_fpxregset): Constify.
18706 (target_regsets): Add new kind identifier.
18707 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
18708 (i386_set_pc): Add debugging.
18709 (i386_breakpoint_at): New function.
18710 (the_low_target): Add new members.
18711 * linux-mips-low.c (mips_get_pc, mips_set_pc)
18712 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
18713 (mips_breakpoint_at): New.
18714 (the_low_target): Add new members.
18715 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
18716 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
18717 (the_low_target): Add new members.
18718 * linux-sh-low.c (sh_get_pc, sh_set_pc)
18719 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
18720 (the_low_target): Add new members.
18721 * linux-x86-64-low.c (target_regsets): Add new kind
18722 identifier.
18723
187242002-05-15 Daniel Jacobowitz <drow@mvista.com>
18725
18726 From Martin Pool <mbp@samba.org>:
18727 * server.c (gdbserver_usage): New function.
18728 (main): Call it.
18729
187302002-05-14 Daniel Jacobowitz <drow@mvista.com>
18731
18732 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
18733 stop_at -> stop_pc.
18734
187352002-05-04 Andrew Cagney <ac131313@redhat.com>
18736
18737 * Makefile.in: Remove obsolete code.
18738
187392002-04-24 Michal Ludvig <mludvig@suse.cz>
18740
18741 * linux-low.c (regsets_fetch_inferior_registers),
18742 (regsets_store_inferior_registers): Removed cast to int from
18743 ptrace() calls.
18744 * regcache.h: Added declaration of struct inferior_info.
18745
187462002-04-20 Daniel Jacobowitz <drow@mvista.com>
18747
18748 * inferiors.c (struct inferior_info): Add regcache_data.
18749 (add_inferior): Call create_register_cache.
18750 (clear_inferiors): Call free_register_cache.
18751 (inferior_regcache_data, set_inferior_regcache_data): New functions.
18752 * regcache.c (struct inferior_regcache_data): New.
18753 (registers): Remove.
18754 (get_regcache): New function.
18755 (create_register_cache, free_register_cache): New functions.
18756 (set_register_cache): Don't initialize the register cache here.
18757 (registers_to_string, registers_from_string, register_data): Call
18758 get_regcache.
18759 * regcache.h: Add prototypes.
18760 * server.h: Likewise.
18761
187622002-04-20 Daniel Jacobowitz <drow@mvista.com>
18763
18764 * mem-break.c: New file.
18765 * mem-break.h: New file.
18766 * Makefile.in: Add mem-break.o rule; update server.h
18767 dependencies.
18768 * inferiors.c (struct inferior_info): Add target_data
18769 member.
18770 (clear_inferiors): Free target_data member if set.
18771 (inferior_target_data, set_inferior_target_data): New functions.
18772 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
18773 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
18774 * linux-low.c (linux_bp_reinsert): New variable.
18775 (struct inferior_linux_data): New.
18776 (linux_create_inferior): Use set_inferior_target_data.
18777 (linux_attach): Likewise. Call add_inferior.
18778 (linux_wait_for_one_inferior): New function.
18779 (linux_wait): Call it.
18780 (linux_write_memory): Add const.
18781 (initialize_low): Call set_breakpoint_data.
18782 * linux-low.h (struct linux_target_ops): Add breakpoint
18783 handling members.
18784 * server.c (attach_inferior): Remove extra add_inferior
18785 call.
18786 * server.h: Include mem-break.h. Update inferior.c
18787 prototypes.
18788 * target.c (read_inferior_memory)
18789 (write_inferior_memory): New functions.
18790 * target.h (read_inferior_memory)
18791 (write_inferior_memory): Change macros to prototypes.
18792 (struct target_ops): Update comments. Add const to write_memory
18793 definition.
18794
187952002-04-11 Daniel Jacobowitz <drow@mvista.com>
18796
18797 * linux-low.c (usr_store_inferior_registers): Support
18798 registers which are allowed to fail to store.
18799 * linux-low.h (linux_target_ops): Likewise.
18800 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
18801 (ppc_cannot_store_register): FPSCR may not be storable.
18802
188032002-04-09 Daniel Jacobowitz <drow@mvista.com>
18804
18805 * server.h: Include <string.h> if HAVE_STRING_H.
18806 * ChangeLog: Correct paths in last ChangeLog entry.
18807
188082002-04-09 Daniel Jacobowitz <drow@mvista.com>
18809
18810 * linux-low.h: Remove obsolete prototypes.
18811 (struct linux_target_ops): New.
18812 (extern the_low_target): New.
18813 * linux-low.c (num_regs, regmap): Remove declarations.
18814 (register_addr): Use the_low_target explicitly.
18815 (fetch_register): Likewise.
18816 (usr_fetch_inferior_registers): Likewise.
18817 (usr_store_inferior_registers): Likewise.
18818 * linux-arm-low.c (num_regs): Remove.
18819 (arm_num_regs): Define.
18820 (arm_regmap): Renamed from regmap, made static.
18821 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
18822 made static.
18823 (arm_cannot_store_register): Renamed from cannot_store_register,
18824 made static.
18825 (the_low_target): New.
18826 * linux-i386-low.c (num_regs): Remove.
18827 (i386_num_regs): Define.
18828 (i386_regmap): Renamed from regmap, made static.
18829 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
18830 made static.
18831 (i386_cannot_store_register): Renamed from cannot_store_register,
18832 made static.
18833 (the_low_target): New.
18834 * linux-ia64-low.c (num_regs): Remove.
18835 (ia64_num_regs): Define.
18836 (ia64_regmap): Renamed from regmap, made static.
18837 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
18838 made static.
18839 (ia64_cannot_store_register): Renamed from cannot_store_register,
18840 made static.
18841 (the_low_target): New.
18842 * linux-m68k-low.c (num_regs): Remove.
18843 (m68k_num_regs): Define.
18844 (m68k_regmap): Renamed from regmap, made static.
18845 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
18846 made static.
18847 (m68k_cannot_store_register): Renamed from cannot_store_register,
18848 made static.
18849 (the_low_target): New.
18850 * linux-mips-low.c (num_regs): Remove.
18851 (mips_num_regs): Define.
18852 (mips_regmap): Renamed from regmap, made static.
18853 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
18854 made static.
18855 (mips_cannot_store_register): Renamed from cannot_store_register,
18856 made static.
18857 (the_low_target): New.
18858 * linux-ppc-low.c (num_regs): Remove.
18859 (ppc_num_regs): Define.
18860 (ppc_regmap): Renamed from regmap, made static.
18861 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
18862 made static.
18863 (ppc_cannot_store_register): Renamed from cannot_store_register,
18864 made static.
18865 (the_low_target): New.
18866 * linux-s390-low.c (num_regs): Remove.
18867 (s390_num_regs): Define.
18868 (s390_regmap): Renamed from regmap, made static.
18869 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
18870 made static.
18871 (s390_cannot_store_register): Renamed from cannot_store_register,
18872 made static.
18873 (the_low_target): New.
18874 * linux-sh-low.c (num_regs): Remove.
18875 (sh_num_regs): Define.
18876 (sh_regmap): Renamed from regmap, made static.
18877 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
18878 made static.
18879 (sh_cannot_store_register): Renamed from cannot_store_register,
18880 made static.
18881 (the_low_target): New.
18882 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
18883 (the_low_target): New.
18884
188852002-04-09 Daniel Jacobowitz <drow@mvista.com>
18886
18887 * Makefile.in: Add stamp-h target.
18888 * configure.in: Create stamp-h.
18889 * configure: Regenerated.
18890
188912002-04-09 Daniel Jacobowitz <drow@mvista.com>
18892
18893 * inferiors.c: New file.
18894 * target.c: New file.
18895 * target.h: New file.
18896 * Makefile.in: Add target.o and inferiors.o. Update
18897 dependencies.
18898 * linux-low.c (inferior_pid): New static variable,
18899 moved from server.c.
18900 (linux_create_inferior): Renamed from create_inferior.
18901 Call add_inferior. Return 0 on success instead of a PID.
18902 (linux_attach): Renamed from myattach.
18903 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
18904 (linux_thread_alive): Renamed from mythread_alive.
18905 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
18906 child dies.
18907 (linux_resume): Renamed from myresume. Add missing ``return 0''.
18908 (regsets_store_inferior_registers): Correct error message.
18909 Add missing ``return 0''.
18910 (linux_fetch_registers): Renamed from fetch_inferior_registers.
18911 (linux_store_registers): Renamed from store_inferior_registers.
18912 (linux_read_memory): Renamed from read_inferior_memory.
18913 (linux_write_memory): Renamed from write_inferior_memory.
18914 (linux_target_ops): New structure.
18915 (initialize_low): Call set_target_ops ().
18916 * remote-utils.c (unhexify): New function.
18917 (hexify): New function.
18918 (input_interrupt): Send signals to ``signal_pid''.
18919 * server.c (inferior_pid): Remove.
18920 (start_inferior): Update create_inferior call.
18921 (attach_inferior): Call add_inferior.
18922 (handle_query): New function.
18923 (main): Call handle_query for `q' packets.
18924 * server.h: Include "target.h". Remove obsolete prototypes.
18925 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
18926
189272002-04-09 Daniel Jacobowitz <drow@mvista.com>
18928
18929 * Makefile.in: Add WARN_CFLAGS. Update configury
18930 dependencies.
18931 * configure.in: Check for <string.h>
18932 * configure: Regenerate.
18933 * config.in: Regenerate.
18934 * gdbreplay.c: Include needed system headers.
18935 (remote_open): Remove strchr prototype.
18936 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
18937 * regcache.c (supply_register): Change buf argument to const void *.
18938 (supply_register_by_name): Likewise.
18939 (collect_register): Change buf argument to void *.
18940 (collect_register_by_name): Likewise.
18941 * regcache.h: Add missing prototypes.
18942 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
18943 * server.c (handle_query): New function.
18944 (attached): New static variable, moved out of main.
18945 (main): Quiet longjmp clobber warnings.
18946 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
18947 * utils.c (error): Remove NORETURN.
18948 (fatal): Likewise.